use of org.camunda.bpm.engine.impl.context.BpmnExecutionContext in project camunda-bpm-platform by camunda.
the class DelegateExecutionContext method getCurrentDelegationExecution.
/**
* Returns the current delegation execution or null if the
* execution is not available.
*
* @return the current delegation execution or null if not available
*/
public static DelegateExecution getCurrentDelegationExecution() {
BpmnExecutionContext bpmnExecutionContext = Context.getBpmnExecutionContext();
ExecutionEntity executionEntity = null;
if (bpmnExecutionContext != null) {
executionEntity = bpmnExecutionContext.getExecution();
}
return executionEntity;
}
Aggregations