09-12-2011 03:38 AM
for (ProcessInstance processInstance : runtimeService.createProcessInstanceQuery().list()) {
System.out.println("RUNNING>: " + processInstance.getId());
}
Well the current running process is not in the query result.09-12-2011 04:46 AM
09-12-2011 05:14 AM
ProcessInstance instance = runtimeService.startProcessInstanceByKey(processKey, variables);
for (ProcessInstance in : runtimeService.createProcessInstanceQuery().list()) {
System.out.println("RUNNING>: " + in.getId() + " " + in.getProcessDefinitionId());
}
09-12-2011 05:58 AM
09-12-2011 07:22 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.