Examples of WaitState


Examples of org.jbpm.examples.ch02.WaitState

*/
public class _02_ExternalDecisionTest extends TestCase {

  public void testExternalTransitionDecision() {
    ProcessDefinition processDefinition = ProcessFactory.build()
        .node("initial").initial().behaviour(new WaitState())
          .transition().to("creditRate?")
        .node("creditRate?").behaviour(new ExternalSelection())
          .transition("good").to("a")
          .transition("average").to("b")
          .transition("bad").to("c")
        .node("a").behaviour(new WaitState())
        .node("b").behaviour(new WaitState())
        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    assertEquals("creditRate?", execution.getNode().getName());
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.