Package org.jbpm.graph.exe

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


      "</process-definition>"
    );
    processDefinition = saveAndReload(processDefinition);
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);

    assertTrue(schedulerSession.findTimersByDueDate().hasNext());
  }
View Full Code Here


      "</process-definition>"
    );
    processDefinition = saveAndReload(processDefinition);
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);

    assertTrue(schedulerSession.findTimersByDueDate().hasNext());
    processInstance.signal();
View Full Code Here

    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);

    assertTrue(schedulerSession.findTimersByDueDate().hasNext());
    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);

    assertFalse(schedulerSession.findTimersByDueDate().hasNext());
  }
View Full Code Here

      "</process-definition>"
    );
    processDefinition = saveAndReload(processDefinition);
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);

    List timersByName = schedulerSession.findTimersByName("reminder", processInstance.getRootToken());
    assertNotNull(timersByName);
View Full Code Here

    );
    processDefinition = saveAndReload(processDefinition);
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    long before = System.currentTimeMillis();
    processInstance.signal();
    long after = System.currentTimeMillis();
   
    jbpmContext.save(processInstance);

    newTransaction();
View Full Code Here

    assertFalse(iter.hasNext());
    assertEquals(origDueDate+5000, timer.getDueDate().getTime());
   
    processInstance = jbpmContext.loadProcessInstance(processInstance.getId());
    before = System.currentTimeMillis();
    processInstance.signal("back");
    after = System.currentTimeMillis();

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

    assertFalse(iter.hasNext());
   
    newTransaction();

    processInstance = jbpmContext.loadProcessInstance(processInstance.getId());
    processInstance.signal();
    jbpmContext.save(processInstance);

    newTransaction();

    iter = schedulerSession.findTimersByDueDate();
View Full Code Here

   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    ContextInstance contextInstance = processInstance.getContextInstance();
    contextInstance.setVariable("a", "value a");
    contextInstance.setVariable("b", "value b");
    processInstance.signal();
    jbpmContext.save(processInstance);

    commitAndCloseSession();

    SchedulerThread schedulerThread = new SchedulerThread(jbpmConfiguration);
View Full Code Here

    jbpmContext.setActorId("the other guy");
    try {
      processInstance = jbpmContext.newProcessInstanceForUpdate("testStartStateSwimlaneInitialization");
      taskMgmtInstance = processInstance.getTaskMgmtInstance();
      taskMgmtInstance.createStartTaskInstance();
      processInstance.signal();
    } finally {
      jbpmContext.setActorId(null);
    }

    newTransaction();
View Full Code Here

      "  </task-node>" +
      "</process-definition>"
    );
   
    ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate("testSwimlaneAssignmentHandler");
    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);
   
    TaskMgmtInstance taskMgmtInstance = processInstance.getTaskMgmtInstance();
    TaskInstance changeNappy = (TaskInstance) taskMgmtInstance.getTaskInstances().iterator().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.