Package org.camunda.bpm.engine.runtime

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


  }

  public void testQueryByActive() throws Exception {
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();

    assertEquals(5, processInstanceQuery.active().count());

    repositoryService.suspendProcessDefinitionByKey("oneTaskProcess");

    assertEquals(5, processInstanceQuery.active().count());
View Full Code Here


    assertEquals(5, processInstanceQuery.active().count());

    repositoryService.suspendProcessDefinitionByKey("oneTaskProcess");

    assertEquals(5, processInstanceQuery.active().count());

    repositoryService.suspendProcessDefinitionByKey("oneTaskProcess", true, null);

    assertEquals(1, processInstanceQuery.active().count());
View Full Code Here

    assertEquals(5, processInstanceQuery.active().count());

    repositoryService.suspendProcessDefinitionByKey("oneTaskProcess", true, null);

    assertEquals(1, processInstanceQuery.active().count());

    // db cleanup
    TestHelper.clearOpLog(processEngineConfiguration);
  }
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.