Examples of TaskNode


Examples of org.jbpm.graph.node.TaskNode

      "</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

Examples of org.jbpm.graph.node.TaskNode

      "</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

Examples of org.jbpm.graph.node.TaskNode

      "  </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

Examples of org.jbpm.graph.node.TaskNode

      "  </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

Examples of org.jbpm.graph.node.TaskNode

    );
   
    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

Examples of org.jbpm.graph.node.TaskNode

      "  </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

Examples of org.jbpm.graph.node.TaskNode

      "      </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

Examples of org.jbpm.graph.node.TaskNode

      "      </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

Examples of org.jbpm.graph.node.TaskNode

      );
   
    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

Examples of org.jbpm.graph.node.TaskNode

    private static final long serialVersionUID = 1L;
    public void execute(ExecutionContext executionContext) throws Exception {
      Token token = executionContext.getToken();
      TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance();
     
      TaskNode taskNode = (TaskNode) executionContext.getNode();
      Task changeNappy = taskNode.getTask("change nappy");

      // now, 2 task instances are created for the same task.
      tmi.createTaskInstance(changeNappy, token);
      tmi.createTaskInstance(changeNappy, token);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.