public virtual void testQueryProcessInstanceOperationsByProcessDefinitionKey() { // given process = runtimeService.startProcessInstanceByKey("oneTaskProcess"); // when runtimeService.suspendProcessInstanceByProcessDefinitionKey("oneTaskProcess"); runtimeService.activateProcessInstanceByProcessDefinitionKey("oneTaskProcess"); // then assertEquals(0, query().entityType(PROCESS_INSTANCE).count()); }