Package org.camunda.bpm.engine.delegate
Interface BpmnModelExecutionContext
- All Known Subinterfaces:
ActivityExecution,DelegateExecution,DelegateTask
- All Known Implementing Classes:
ExecutionEntity,ExecutionImpl,PvmExecutionImpl,TaskEntity
public interface BpmnModelExecutionContext
Implemented by classes which provide access to the
BpmnModelInstance
and the currently executed FlowElement.- Author:
- Daniel Meyer, Sebastian Menski
-
Method Summary
Modifier and TypeMethodDescriptionReturns the currently executed Element in the BPMN Model.Returns theBpmnModelInstancefor the currently executed Bpmn Model
-
Method Details
-
getBpmnModelInstance
BpmnModelInstance getBpmnModelInstance()Returns theBpmnModelInstancefor the currently executed Bpmn Model- Returns:
- the current
BpmnModelInstance
-
getBpmnModelElementInstance
FlowElement getBpmnModelElementInstance()Returns the currently executed Element in the BPMN Model. This method returns a
FlowElementwhich may be casted to the concrete type of the Bpmn Model Element currently executed.If called from a Service
ExecutionListener, the method will return the correspondingFlowNodeforExecutionListener.EVENTNAME_STARTandExecutionListener.EVENTNAME_ENDand the correspondingSequenceFlowforExecutionListener.EVENTNAME_TAKE.- Returns:
- the
FlowElementcorresponding to the current Bpmn Model Element
-