Package org.jbpm.graph.exe

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


        instance.getContextInstance().getVariable("message"));

    // Move the process instance from its start state to the first state.
    // The configured action should execute and the appropriate message
    // should appear in the message process variable.
    instance.signal();
    assertEquals(
        "Instance is in first state",
        instance.getRootToken().getNode().getName(),
        "first");
    assertEquals(
View Full Code Here


        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

    Object object = super.execute(jbpmContext);
    if (object instanceof ProcessInstance)
    {
      ProcessInstance processInstance = (ProcessInstance)object;
      if (startTransitionName == null || startTransitionName.length() == 0)
        processInstance.signal();
      else
        processInstance.signal(startTransitionName);
     
      // [JBPM-1876] Missing jpbmContext.save on StartProcessInstanceCommand
      jbpmContext.save(processInstance);
View Full Code Here

    {
      ProcessInstance processInstance = (ProcessInstance)object;
      if (startTransitionName == null || startTransitionName.length() == 0)
        processInstance.signal();
      else
        processInstance.signal(startTransitionName);
     
      // [JBPM-1876] Missing jpbmContext.save on StartProcessInstanceCommand
      jbpmContext.save(processInstance);
    }
    return object;
View Full Code Here

        }
      }
    }

    // send the signal to start the subprocess
    subProcessInstance.signal();
  }

  public void leave(ExecutionContext executionContext, Transition transition)
  {
    ProcessInstance subProcessInstance = executionContext.getSubProcessInstance();
View Full Code Here

   
    contextInstance.setVariable("a", "1");
    contextInstance.setVariable("b", "2");
    contextInstance.setVariable("c", "3");
   
    processInstance.signal();
    TaskInstance taskInstance = (TaskInstance) taskMgmtInstance.getTaskInstances().iterator().next();

    jbpmContext.save(processInstance);
   
    newTransaction();
View Full Code Here

    graphSession.saveProcessDefinition(processDefinition);
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    jbpmContext.save(processInstance);
    long before = System.currentTimeMillis();
    processInstance.signal();
    long after = System.currentTimeMillis();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
View Full Code Here

    );

    graphSession.saveProcessDefinition(processDefinition);
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    jbpmContext.save(processInstance);
    processInstance.signal();
    processInstance.signal();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
View Full Code Here

    graphSession.saveProcessDefinition(processDefinition);
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    jbpmContext.save(processInstance);
    processInstance.signal();
    processInstance.signal();
    jbpmContext.save(processInstance);
   
    newTransaction();
   
    assertFalse(schedulerSession.findTimersByDueDate().hasNext());
View Full Code Here

    jbpmContext.save(processInstance);
    newTransaction();
   
    processInstance = graphSession.loadProcessInstance(processInstance.getId());
    processInstance.signal();
   
    processDefinition = processInstance.getProcessDefinition();
    Iterator iter = processDefinition.getNode("sometask").getEvent("node-enter").getActions().iterator();
    while (iter.hasNext()) {
      Action action = (Action) iter.next();
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.