06-08-2012 07:10 AM
@Deployment(resources = { "workflow/TestProcess2.bpmn20.xml" })
@Test
public void should_complete_process() {
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(RESTART, new HashMap<String, Object>());
Assert.assertNotNull(processInstance);
List<Task> list = taskService.createTaskQuery().processInstanceId(processInstance.getId()).list();
for (Task task : list) {
taskService.complete(task.getId());
}
List<ProcessInstance> list1 = runtimeService.createProcessInstanceQuery().processDefinitionKey(RESTART).list();
Assert.assertTrue(list1.isEmpty());
}
06-26-2012 03:57 AM
06-26-2012 04:23 AM
06-27-2012 06:26 AM
06-27-2012 08:35 AM
RuntimeService.signalEventReceived(String signalName, String executionId);
To only restart the process we want to restart.
07-11-2012 07:53 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.