Class BpmnModelEventDispatchAction
- java.lang.Object
-
- org.flowable.engine.delegate.event.impl.BpmnModelEventDispatchAction
-
- All Implemented Interfaces:
EventDispatchAction
public class BpmnModelEventDispatchAction extends Object implements EventDispatchAction
-
-
Constructor Summary
Constructors Constructor Description BpmnModelEventDispatchAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatchEvent(CommandContext commandContext, FlowableEventSupport eventSupport, FlowableEvent event)protected org.flowable.bpmn.model.BpmnModelextractBpmnModelFromEvent(FlowableEvent event)In case no process-context is active, this method attempts to extract a process-definition based on the event.
-
-
-
Method Detail
-
dispatchEvent
public void dispatchEvent(CommandContext commandContext, FlowableEventSupport eventSupport, FlowableEvent event)
- Specified by:
dispatchEventin interfaceEventDispatchAction
-
extractBpmnModelFromEvent
protected org.flowable.bpmn.model.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:
-
-