Package org.jbpm.graph.node

Examples of org.jbpm.graph.node.TaskNode


         
          // and change the reference (take name mappings into account!)
          if (timer.getGraphElement() instanceof Task) {
            // change to new task definition
            Task oldTask = (Task)timer.getGraphElement();
            TaskNode oldNode =  oldTask.getTaskNode();
            timer.setGraphElement(
                findReplacementTask(newDef, oldNode, oldTask));
          }
          else {
            // change to new node
View Full Code Here


      "</process-definition>"
    );
   
    processDefinition = saveAndReload(processDefinition);
   
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    Task task = taskNode.getTask("clean ceiling");
    TaskController taskController = task.getTaskController();
    assertNotNull(taskController);
    assertNull(taskController.getTaskControllerDelegation());
    List variableAccesses = taskController.getVariableAccesses();
    assertNotNull(variableAccesses);
View Full Code Here

      "</process-definition>"
    );
   
    processDefinition = saveAndReload(processDefinition);
   
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    Task task = taskNode.getTask("clean ceiling");
    TaskController taskController = task.getTaskController();
    assertTrue( (taskController.getVariableAccesses()==null)
                || (taskController.getVariableAccesses().isEmpty()) );
    Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
    assertNotNull(taskControllerDelegation);
View Full Code Here

      "  </task-node>" +
      "</process-definition>"
    );
   
    processDefinition = saveAndReload(processDefinition);
    TaskNode taskNode = (TaskNode) processDefinition.getNode("saturday afternoon");
    Task task = taskNode.getTask("wash car");

    assertNotNull(task.getTaskNode());
    assertSame(taskNode, task.getTaskNode());
  }
View Full Code Here

      "  </task-node>" +
      "</process-definition>"
    );
   
    processDefinition = saveAndReload(processDefinition);
    TaskNode taskNode = (TaskNode) processDefinition.getNode("saturday afternoon");
    Task task = taskNode.getTask("wash car");

    assertNotNull(task.getTaskMgmtDefinition());
    assertSame(processDefinition.getTaskMgmtDefinition(), task.getTaskMgmtDefinition());
  }
View Full Code Here

    );
   
    processDefinition = saveAndReload(processDefinition);
    TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition();
    Swimlane butler = taskMgmtDefinition.getSwimlane("butler");
    TaskNode taskNode = (TaskNode) processDefinition.getNode("saturday afternoon");
    Task task = taskNode.getTask("wash car");

    assertNotNull(task.getSwimlane());
    assertSame(butler, task.getSwimlane());
  }
View Full Code Here

      "  </task-node>" +
      "</process-definition>"
    );
   
    processDefinition = saveAndReload(processDefinition);
    TaskNode taskNode = (TaskNode) processDefinition.getNode("saturday afternoon");
    Task task = taskNode.getTask("wash car");

    assertNotNull(task.getAssignmentDelegation());
    assertEquals("the-wash-car-assignment-handler-class-name", task.getAssignmentDelegation().getClassName());
  }
View Full Code Here

      "      </controller>" +
      "    </task>" +
      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    Task task = taskNode.getTask("clean ceiling");
    TaskController taskController = task.getTaskController();
    assertNotNull(taskController);
    assertNull(taskController.getTaskControllerDelegation());
    List variableAccesses = taskController.getVariableAccesses();
    assertNotNull(variableAccesses);
View Full Code Here

      "      </controller>" +
      "    </task>" +
      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    Task task = taskNode.getTask("clean ceiling");
    TaskController taskController = task.getTaskController();
    assertNull(taskController.getVariableAccesses());
    Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
    assertNotNull(taskControllerDelegation);
    assertEquals("my-own-task-controller-handler-class", taskControllerDelegation.getClassName());
View Full Code Here

      );
   
    processDefinition = saveAndReload(processDefinition);
    taskMgmtDefinition = processDefinition.getTaskMgmtDefinition();
   
    TaskNode work = (TaskNode) processDefinition.getNode("work");
    Task manage = work.getTask("manage");
    assertNotNull(manage);
    assertSame(taskMgmtDefinition.getTask("manage"), manage);
   
    assertNotNull(manage.getSwimlane());
    assertSame(taskMgmtDefinition.getSwimlane("boss"), manage.getSwimlane());
View Full Code Here

TOP

Related Classes of org.jbpm.graph.node.TaskNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.