Package org.activiti.engine.impl.context

Examples of org.activiti.engine.impl.context.ExecutionContext


    }
  }
 
  protected ExecutionEntity getExecutionFromContext() {
    if(Context.getCommandContext() != null) {
      ExecutionContext executionContext = Context.getExecutionContext();
      if(executionContext != null) {
        return executionContext.getExecution();
      }
    }
    return null;
  }
View Full Code Here


    }
  }
 
  protected ExecutionEntity getExecutionFromContext() {
    if(Context.getCommandContext() != null) {
      ExecutionContext executionContext = Context.getExecutionContext();
      if(executionContext != null) {
        return executionContext.getExecution();
      }
    }
    return null;
  }
View Full Code Here

  }
 
  protected static void populateEventWithCurrentContext(ActivitiEventImpl event) {
    boolean extractedFromContext = false;
    if(Context.isExecutionContextActive()) {
      ExecutionContext executionContext = Context.getExecutionContext();
      if(executionContext != null) {
        extractedFromContext = true;
        event.setExecutionId(executionContext.getExecution().getId());
        event.setProcessInstanceId(executionContext.getExecution().getProcessInstanceId());
        event.setProcessDefinitionId(executionContext.getExecution().getProcessDefinitionId());
      }
    }
   
    // Fallback to fetching context from the object itself
    if(!extractedFromContext){
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.context.ExecutionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.