Class BpmnModelEventDispatchAction

java.lang.Object
org.flowable.engine.delegate.event.impl.BpmnModelEventDispatchAction
All Implemented Interfaces:
EventDispatchAction

public class BpmnModelEventDispatchAction extends Object implements EventDispatchAction
  • Constructor Details

    • BpmnModelEventDispatchAction

      public BpmnModelEventDispatchAction()
  • Method Details

    • dispatchEvent

      public void dispatchEvent(CommandContext commandContext, FlowableEventSupport eventSupport, FlowableEvent event)
      Specified by:
      dispatchEvent in interface EventDispatchAction
    • extractBpmnModelFromEvent

      protected BpmnModel extractBpmnModelFromEvent(FlowableEvent event)
      In case no process-context is active, this method attempts to extract a process-definition based on the event. In case it's an event related to an entity, this can be deducted by inspecting the entity, without additional queries to the database. If not an entity-related event, the process-definition will be retrieved based on the processDefinitionId (if filled in). This requires an additional query to the database in case not already cached. However, queries will only occur when the definition is not yet in the cache, which is very unlikely to happen, unless evicted.
      Parameters:
      event -
      Returns: