Beispiel #1
0
 public TaskDefinition getTaskDefinition() {
   ensureProcessDefinitionInitialized();
   if (processDefinition != null && taskDefinition == null && nodeId != null) {
     TaskDefinition taskDefinition = processDefinition.getTaskDefinitions().get(nodeId);
     setTaskDefinition(taskDefinition);
   }
   return taskDefinition;
 }
Beispiel #2
0
  protected void ensureNodeInitialized() {

    ensureProcessDefinitionInitialized();

    if (node == null && nodeId != null && processDefinition != null) {
      KernelFlowNode flowNode = processDefinition.findFlowNode(nodeId);
      if (flowNode != null) {
        setNode(flowNode);
      }
    }
  }
Beispiel #3
0
 public ProcessDefinitionEntity getProcessDefinition() {
   ensureProcessDefinitionInitialized();
   return processDefinition;
 }