예제 #1
0
  protected void ensureProcessDefinitionInitialized() {

    if (processDefinition == null && processDefinitionId != null) {
      ProcessDefinitionEntity processDefinition =
          Context.getProcessEngineConfiguration()
              .getDeploymentManager()
              .findDeployedProcessDefinitionById(processDefinitionId);
      setProcessDefinition(processDefinition);
    }
  }
예제 #2
0
 public void setProcessInstance(ProcessInstanceEntity processInstance) {
   setProcessInstanceId(processInstance.getId());
   setProcessDefinition((ProcessDefinitionEntity) processInstance.getProcessDefinition());
   this.processInstance = processInstance;
 }