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
 org.camunda.bpm.model.bpmn.instance.FlowElement getBpmnModelElementInstance()
          Returns the currently executed Element in the BPMN Model.
 org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
          Returns the BpmnModelInstance for the currently executed Bpmn Model
 

Method Detail

getBpmnModelInstance

org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
Returns the BpmnModelInstance for the currently executed Bpmn Model

Returns:
the current BpmnModelInstance

getBpmnModelElementInstance

org.camunda.bpm.model.bpmn.instance.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 corresponding FlowNode for ExecutionListener.EVENTNAME_START and ExecutionListener.EVENTNAME_END and the corresponding SequenceFlow for ExecutionListener.EVENTNAME_TAKE.

Returns:
the FlowElement corresponding to the current Bpmn Model Element


Copyright © 2017 camunda services GmbH. All rights reserved.