Examples of startExecution()


Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

          .node("2").behaviour(new WaitState())
          .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.ProcessDefinition.startExecution()

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

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

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

    Execution execution = processDefinition.startExecution();
    execution.setVariable("creditRate", 13);
    execution.signal();
    assertEquals("a", execution.getNode().getName());

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

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

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

    execution = processDefinition.startExecution();
    execution.setVariable("creditRate", 2);
    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.ProcessDefinition.startExecution()

        .node("a").initial().behaviour(new Display("hello"))
          .transition().to("b")
        .node("b").behaviour(new Display("world"))
    .done();
   
    Execution execution = processDefinition.startExecution();
    assertEquals("b", execution.getNode().getName());
    assertTrue(execution.isEnded());
  }

}
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

        .compositeEnd()
    .done();
   
    Map<String, Object> variables = new HashMap<String, Object>();
    variables.put("creditRate", 13);
    Execution execution = processDefinition.startExecution(variables);
    assertEquals("good", execution.getNode().getName());

    variables = new HashMap<String, Object>();
    variables.put("creditRate", 2);
    execution = processDefinition.startExecution(variables);
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

        .node("automatic 4").behaviour(new Display("four"))
          .transition().to("wait 3")
        .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.ProcessDefinition.startExecution()

    Execution execution = processDefinition.startExecution(variables);
    assertEquals("good", execution.getNode().getName());

    variables = new HashMap<String, Object>();
    variables.put("creditRate", 2);
    execution = processDefinition.startExecution(variables);
    assertEquals("average", execution.getNode().getName());

    variables = new HashMap<String, Object>();
    variables.put("creditRate", -18);
    execution = processDefinition.startExecution(variables);
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

    execution = processDefinition.startExecution(variables);
    assertEquals("average", execution.getNode().getName());

    variables = new HashMap<String, Object>();
    variables.put("creditRate", -18);
    execution = processDefinition.startExecution(variables);
    assertEquals("bad", execution.getNode().getName());
  }

}
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

        .node("shred evidence").behaviour(new TaskActivity())
          .transition().to("next")
        .node("next").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();

    assertEquals("shred evidence", execution.getNode().getName());

    Task task = TaskService.getTaskList("johndoe").get(0);
    task.complete();
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.