Package org.jbpm.pvm

Examples of org.jbpm.pvm.Execution.signal()


          .transition().to("b")
        .node("b").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
  }

}
View Full Code Here


          .node("two").behaviour(new Display("two"))
        .compositeEnd()
    .done();

    Execution execution = processDefinition.startExecution();
    execution.signal();
    assertTrue(execution.isEnded());
    assertEquals("sequence", execution.getNode().getName());
  }
}
View Full Code Here

        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.setVariable("creditRate", 13);
    execution.signal();
    assertEquals("a", execution.getNode().getName());

    execution = processDefinition.startExecution();
    execution.setVariable("creditRate", 2);
    execution.signal();
View Full Code Here

    execution.signal();
    assertEquals("a", execution.getNode().getName());

    execution = processDefinition.startExecution();
    execution.setVariable("creditRate", 2);
    execution.signal();
    assertEquals("b", execution.getNode().getName());

    execution = processDefinition.startExecution();
    execution.setVariable("creditRate", -13);
    execution.signal();
View Full Code Here

    execution.signal();
    assertEquals("b", execution.getNode().getName());

    execution = processDefinition.startExecution();
    execution.setVariable("creditRate", -13);
    execution.signal();
    assertEquals("c", execution.getNode().getName());
  }

}
View Full Code Here

        .node("wait 3").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    assertEquals("wait 1", execution.getNode().getName());
    execution.signal();
    assertEquals("wait 2", execution.getNode().getName());
    execution.signal();
    assertEquals("wait 3", execution.getNode().getName());
  }
}
View Full Code Here

   
    Execution execution = processDefinition.startExecution();
    assertEquals("wait 1", execution.getNode().getName());
    execution.signal();
    assertEquals("wait 2", execution.getNode().getName());
    execution.signal();
    assertEquals("wait 3", execution.getNode().getName());
  }
}
View Full Code Here

        .compositeEnd()
        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    execution.signal();
  }

  public void testPropagationDisabledProcess(){
    ProcessDefinition processDefinition = ProcessFactory.build("propagate")
View Full Code Here

        .node("b").behaviour(new WaitState())
        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    assertEquals("creditRate?", execution.getNode().getName());
    execution.signal("good");
    assertEquals("a", execution.getNode().getName());

    execution = processDefinition.startExecution();
View Full Code Here

        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    execution.signal();
  }

  public void testPropagationDisabledProcess(){
    ProcessDefinition processDefinition = ProcessFactory.build("propagate")
        .compositeNode("composite")
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.