Search in sources :

Example 1 with BpmnExecutionContext

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;
}
Also used : ExecutionEntity(org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity) BpmnExecutionContext(org.camunda.bpm.engine.impl.context.BpmnExecutionContext)

Aggregations

BpmnExecutionContext (org.camunda.bpm.engine.impl.context.BpmnExecutionContext)1 ExecutionEntity (org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity)1