Package org.jbpm.graph.node

Examples of org.jbpm.graph.node.Decision


      "  </decision>" +
      "</process-definition>");
   
    processDefinition = saveAndReload(processDefinition);
   
    Decision decision = (Decision) processDefinition.getNode("d");
    DecisionCondition decisionCondition = (DecisionCondition) decision.decisionConditions.get(0);
    assertEquals("one", decisionCondition.transitionName);
    assertEquals("a == 1", decisionCondition.expression);
   
    decisionCondition = (DecisionCondition) decision.decisionConditions.get(1);
View Full Code Here


      "  </decision>" +
      "</process-definition>");
   
    processDefinition = saveAndReload(processDefinition);
   
    Decision decision = (Decision) processDefinition.getNode("d");
    Delegation decisionDelegation = decision.decisionDelegation;
    assertNotNull(decisionDelegation);
    assertEquals("org.jbpm.graph.node.JpdlDbTest$MyDecisionHandler", decisionDelegation.getClassName());
    MyDecisionHandler decisionHandler = (MyDecisionHandler) decisionDelegation.instantiate();
    assertEquals("testing... one, two... testing", decisionHandler.decisionHandlerConfigText);
View Full Code Here

  public void testNodeEvents() {
    assertSupportedEvents(new Node(), new String[] { "node-enter", "node-leave", "before-signal", "after-signal" });
  }

  public void testDecisionEvents() {
    assertSupportedEvents(new Decision(), new String[] { "node-enter", "node-leave", "before-signal", "after-signal" });
  }
View Full Code Here

TOP

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

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.