You are facing an issue while using the BPM APIs. You are trying to retrieve all the running BPM process instances. For this, you are using a code similar to:
ProcessDefinitionManager processDefinitionManager = BPMFactory.getProcessDefinitionManager();
ProcessDefinition processDefinition = processDefinitionManager.getActiveProcessDefinition("example.com", "exe~udi~flow", "udiprocess");
ProcessInstanceManager processInstanceManager = BPMFactory.getProcessInstanceManager();
Collection processInstanceCollection = processInstanceManager.getRunningProcessInstances(processDefinition.getId());
The issue you are facing is that this code returns the running process instances only after the last DC deployment but the above BPM API code does not return all the running processes from the beginning, only the ones initiated after last BPM DC deployment.
BPM, API, getRunningProcessInstances, active , KBA , bpm api , collection , getprocessdefinitionmanager , BC-BMT-BPM-ANA , Analytics and Reporting , BC-BMT-BPM-DSK , Process Desk , How To
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.