public static DelegateExecution getCurrentDelegationExecution() {
    BpmnExecutionContext bpmnExecutionContext = Context.getBpmnExecutionContext();
    ExecutionEntity executionEntity = null;
    if (bpmnExecutionContext != null) {
      executionEntity = bpmnExecutionContext.getExecution();
    }
    return executionEntity;
  }
public static DelegateExecution getCurrentDelegationExecution ( ) { BpmnExecutionContext bpmnExecutionContext = Context . getBpmnExecutionContext ( ) ; ExecutionEntity executionEntity = null ; if ( bpmnExecutionContext != null ) { executionEntity = bpmnExecutionContext . getExecution ( ) ; } return executionEntity ; }
Returns the current delegation execution or null if the
execution is not available.

@return the current delegation execution or null if not available