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 theBpmnModelInstance
and the currently executedFlowElement
.- Author:
- Daniel Meyer, Sebastian Menski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FlowElement
getBpmnModelElementInstance()
Returns the currently executed Element in the BPMN Model.BpmnModelInstance
getBpmnModelInstance()
Returns theBpmnModelInstance
for the currently executed Bpmn Model
-
-
-
Method Detail
-
getBpmnModelInstance
BpmnModelInstance getBpmnModelInstance()
Returns theBpmnModelInstance
for 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
FlowElement
which 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 correspondingFlowNode
forExecutionListener.EVENTNAME_START
andExecutionListener.EVENTNAME_END
and the correspondingSequenceFlow
forExecutionListener.EVENTNAME_TAKE
.- Returns:
- the
FlowElement
corresponding to the current Bpmn Model Element
-
-