Exemplo n.º 1
0
  protected void ensureProcessDefinitionInitialized() {

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