public DeploymentEntity getDeployment() { String deploymentId = getProcessDefinition().getDeploymentId(); DeploymentEntity deployment = Context.getCommandContext().getDeploymentEntityManager().findById(deploymentId); return deployment; } }
protected BusinessProcessEvent createEvent(DelegateExecution execution) { ProcessDefinition processDefinition = Context.getExecutionContext().getProcessDefinition(); return new CdiBusinessProcessEvent(activityId, transitionName, processDefinition, execution, type, new Date()); }
protected BusinessProcessEvent createEvent(DelegateExecution execution) { ProcessDefinition processDefinition = Context.getExecutionContext().getProcessDefinition(); return new CdiBusinessProcessEvent(activityId, transitionName, processDefinition, execution, type, new Date()); }
public DeploymentEntity getDeployment() { String deploymentId = getProcessDefinition().getDeploymentId(); DeploymentEntity deployment = Context.getCommandContext().getDeploymentEntityManager().findById(deploymentId); return deployment; } }
public DeploymentEntity getDeployment() { String deploymentId = getProcessDefinition().getDeploymentId(); DeploymentEntity deployment = Context .getCommandContext() .getDeploymentEntityManager() .findDeploymentById(deploymentId); return deployment; } }
public DeploymentEntity getDeployment() { String deploymentId = getProcessDefinition().getDeploymentId(); DeploymentEntity deployment = Context .getCommandContext() .getDeploymentEntityManager() .findDeploymentById(deploymentId); return deployment; } }
protected ClassLoader resolveProcessArchiveClassLoader() { final DeploymentCache deploymentCache = Context.getProcessEngineConfiguration().getDeploymentCache(); final ExecutionContext executionContext = getExecutionContext(); if (executionContext != null) { String processDefinitionId = executionContext.getProcessInstance().getProcessDefinitionId(); // check whether the process definition is deployed to the cache. // if the process definition is not deployed to the cache, we do not attempt // to resolve the deploymentClassloader since the process archive is undeployed. if (deploymentCache.getProcessDefinitionCache().containsKey(processDefinitionId)) { String processDefinitionKey = executionContext.getProcessDefinition().getKey(); // look up the classloader for that processDefinition: return deploymentClassloaderMap.get(processDefinitionKey); } } return null; }