Hook & ProcessMiningProvider
Through the useProcessMiningContext
hook, users gain access to the process mining model, allowing them to utilize its
functions for further customization of the interaction with the diagram.
This hook is accessible only when used in a child component of a ProcessMiningProvider
. This condition is consistently
met when implementing child components for the ProcessMining
component. However, if the hook is called outside the
process mining component, the ProcessMiningProvider
must be a common ancestor.
The following example demonstrates how to use the hook for a button in a sidebar or a customized context menu.