I had two process instances running, when I made a call using ksession.getProcessInstances(). It return the size of 0, I am expecting 2. Does anyone know what am I missing? Thanks.
this is expected when ksession is backed with persistence. To get information about existing processes when using persistence use audit service (aka history log).
Retrieving data ...