public TaskDefinition getTaskDefinition() { ensureProcessDefinitionInitialized(); if (processDefinition != null && taskDefinition == null && nodeId != null) { TaskDefinition taskDefinition = processDefinition.getTaskDefinitions().get(nodeId); setTaskDefinition(taskDefinition); } return taskDefinition; }
protected void ensureNodeInitialized() { ensureProcessDefinitionInitialized(); if (node == null && nodeId != null && processDefinition != null) { KernelFlowNode flowNode = processDefinition.findFlowNode(nodeId); if (flowNode != null) { setNode(flowNode); } } }
public ProcessDefinitionEntity getProcessDefinition() { ensureProcessDefinitionInitialized(); return processDefinition; }