Package org.camunda.bpm.engine.runtime

Examples of org.camunda.bpm.engine.runtime.ProcessInstanceQuery.caseInstanceId()


  }

  public void testQueryByInvalidCaseInstanceId() {
    ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery();

    query.caseInstanceId("invalid");

    assertEquals(0, query.count());

    try {
      query.caseInstanceId(null);
View Full Code Here


    query.caseInstanceId("invalid");

    assertEquals(0, query.count());

    try {
      query.caseInstanceId(null);
      fail("The passed case instance should not be null.");
    } catch (Exception e) {}

  }
View Full Code Here

      .withCaseExecution(processTaskId)
      .manualStart();

    ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery();

    query.caseInstanceId(caseInstanceId);

    assertEquals(2, query.count());

    List<ProcessInstance> result = query.list();
    assertEquals(2, result.size());
View Full Code Here

      .withCaseExecution(processTaskId)
      .manualStart();

    ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery();

    query.caseInstanceId(caseInstanceId);

    assertEquals(1, query.count());

    List<ProcessInstance> result = query.list();
    assertEquals(1, result.size());
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.