Examples of signal()


Examples of org.jbpm.graph.exe.ProcessInstance.signal()

        instance.getContextInstance().getVariable("message"),
        "Going to the first state!");

    // Move the process instance to the end state. The configured action
    // should execute again. The message variable contains a new value.
    instance.signal();
    assertEquals(
        "Instance is in end state",
        instance.getRootToken().getNode().getName(),
        "end");
    assertTrue("Instance has ended", instance.hasEnded());
View Full Code Here

Examples of org.jbpm.graph.exe.Token.signal()

      public Object doInJbpm(JbpmContext context) {
        Token token = processInstance.getRootToken().findToken(tokenName);
                if (token == null) {
                    processInstance.signal();
                } else {
                    token.signal();
                }
                return null;
      }
    });
  }
View Full Code Here

Examples of org.jbpm.graph.exe.Token.signal()

      public Object doInJbpm(JbpmContext context) {
        Token token = processInstance.getRootToken().findToken(tokenName);
                if (token == null) {
                    processInstance.signal(transitionId);
                } else {
                    token.signal(transitionId);
                }
                return null;
      }
    });
  }
View Full Code Here

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

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

          .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

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

        .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

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

    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

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

    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

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

        .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

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

   
    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
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.