Package org.jbpm.graph.exe

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


      "  <state name='b' />" +
      "</process-definition>"
    );
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    processInstance.signal();

    TaskMgmtInstance tmi = (TaskMgmtInstance) processInstance.getInstance(TaskMgmtInstance.class);
    assertNotNull(tmi);
    assertEquals(2, tmi.getTaskInstances().size());
    Iterator iter = tmi.getTaskInstances().iterator();
View Full Code Here


    );

    processDefinition = saveAndReload(processDefinition);
   
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    processInstance.signal();
   
    processInstance = saveAndReload(processInstance);

    long tokenId = processInstance.getRootToken().getId();
    List taskInstances = taskMgmtSession.findTaskInstancesByToken(tokenId);
View Full Code Here

      "  <state name='b' />" +
      "</process-definition>"
    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();

    TaskMgmtInstance tmi = (TaskMgmtInstance) processInstance.getInstance(TaskMgmtInstance.class);
    assertNotNull(tmi);
    assertEquals(3, tmi.getTaskInstances().size());
   
View Full Code Here

      "  <state name='b' />" +
      "</process-definition>"
    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();

    TaskMgmtInstance tmi = (TaskMgmtInstance) processInstance.getInstance(TaskMgmtInstance.class);
    assertNotNull(tmi);
    assertEquals(3, tmi.getTaskInstances().size());
   
View Full Code Here

      "  <state name='b' />" +
      "</process-definition>"
    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();

    TaskMgmtInstance tmi = (TaskMgmtInstance) processInstance.getInstance(TaskMgmtInstance.class);
    assertNotNull(tmi);
    assertEquals(3, tmi.getTaskInstances().size());
   
View Full Code Here

      // after each task, check if the token remains in a
      assertSame(processDefinition.getNode("a"), token.getNode());
    }
    // signal='never' is used when an external trigger should trigger execution, without
    // any relation to the tasks finishing
    processInstance.signal();
    assertSame(processDefinition.getNode("b"), token.getNode());
  }

  public void testSignalUnsynchronized() {
    ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
View Full Code Here

      "  <state name='b' />" +
      "</process-definition>"
    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();

    TaskMgmtInstance tmi = (TaskMgmtInstance) processInstance.getInstance(TaskMgmtInstance.class);
    assertNotNull(tmi);
    assertEquals(3, tmi.getTaskInstances().size());
   
View Full Code Here

      "  <state name='b' />" +
      "</process-definition>"
    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();

    TaskMgmtInstance tmi = (TaskMgmtInstance) processInstance.getInstance(TaskMgmtInstance.class);
    assertNotNull(tmi);
    assertNull(tmi.getTaskInstances());
   
View Full Code Here

      "  <state name='b' />" +
      "</process-definition>"
    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();
    assertSame(processDefinition.getNode("a"), token.getNode());
    processInstance.signal();
    assertSame(processDefinition.getNode("b"), token.getNode());
  }
View Full Code Here

    );
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    processInstance.signal();
    assertSame(processDefinition.getNode("a"), token.getNode());
    processInstance.signal();
    assertSame(processDefinition.getNode("b"), token.getNode());
  }

  public void testBlockingTask() {
    ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
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.