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