Package org.jbpm.graph.node

Examples of org.jbpm.graph.node.TaskNode


      "      </event>" +
      "    </task>" +
      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("a");
    Task task = taskNode.getTask("clean ceiling");
    assertNotNull( task.getEvent(Event.EVENTTYPE_TASK_END) );
  }
View Full Code Here


      "      </timer>" +
      "    </task>" +
      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("a");
    Task task = taskNode.getTask("clean ceiling");
    Event event = task.getEvent(Event.EVENTTYPE_TASK_CREATE);
    assertNotNull(event);
    CreateTimerAction createTimerAction = (CreateTimerAction) event.getActions().get(0);
    assertNotNull(createTimerAction);
    assertEquals("2 business minutes", createTimerAction.getDueDate());
View Full Code Here

      "      </timer>" +
      "    </task>" +
      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("a");
    Task task = taskNode.getTask("clean ceiling");
    Event event = task.getEvent(Event.EVENTTYPE_TASK_CREATE);
    assertNotNull(event);
    assertSame(CreateTimerAction.class, event.getActions().get(0).getClass());

    event = task.getEvent(Event.EVENTTYPE_TASK_START);
View Full Code Here

      "</process-definition>"
    );
   
    processDefinition = saveAndReload(processDefinition);
   
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    assertNotNull(taskNode);
    assertEquals("t", taskNode.getName());
    assertEquals(TaskNode.SIGNAL_FIRST_WAIT, taskNode.getSignal());
    assertFalse(taskNode.getCreateTasks());
    assertEquals(3, taskNode.getTasks().size());
   
    Map tasks = new HashMap();
    Iterator iter = taskNode.getTasks().iterator();
    while (iter.hasNext()) {
      Task task = (Task) iter.next();
      tasks.put(task.getName(), task);
    }
    Task task = (Task) tasks.get("change the world once");
View Full Code Here

    assertSupportedEvents(new SuperState(), new String[] { "transition", "before-signal", "after-signal", "node-enter", "node-leave", "superstate-enter",
        "superstate-leave", "subprocess-created", "subprocess-end", "task-create", "task-assign", "task-start", "task-end", "timer" });
  }

  public void testTaskNodeEvents() {
    assertSupportedEvents(new TaskNode(), new String[] { "node-enter", "node-leave", "before-signal", "after-signal" });
  }
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.