08-25-2016 08:50 AM
List<Execution> executions = runtimeService.createExecutionQuery().list();
List<ProcessInstance> pis = runtimeService.createProcessInstanceQuery().list();
LOGGER.info("Executions: " + executions.size());
LOGGER.info("PIs: " + pis.size());
08-25-2016 08:57 AM
08-25-2016 11:23 AM
08-26-2016 02:37 AM
08-26-2016 05:55 AM
08-30-2016 04:49 AM
08-30-2016 06:26 AM
is there a way to get the "most parent" id of the process which would be the BPMN execution IDYes. You can traverse from any execution up by getSuperExecution()/getParent()
The bottom line is - how do I get at any point the number of activities in a process with ability to say which ones have already completed ?You can write counters into separate data store, not into process variables, and not related to activiti transactions.
08-30-2016 06:35 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.