AnsweredAssumed Answered

RuntimeService execution query returns empty list

Question asked by serid on Aug 25, 2016
Latest reply on Aug 30, 2016 by serid
Hi All,

I am completely new to Apache Activiti and doing some basic stuff trying to understand how it all works.
I have a very basic bpmn file consisting only of start, service task and stop.
I have implemented the service task using JavaDelegate.
Using activiti with spring boot.

After starting the process I try to get executions for the process:


List<Execution> executions = runtimeService.createExecutionQuery().list();
List<ProcessInstance> pis = runtimeService.createProcessInstanceQuery().list();
LOGGER.info("Executions: " + executions.size());
LOGGER.info("PIs: " + pis.size());


and am always getting empty lists. Can anybody please explain why is that ?

Thanks,
Adrian

Outcomes