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

    ensureProcessDefinitionInitialized();

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