SAP Knowledge Base Article - Preview

2026750 - BPM API getRunningProcessInstances() not returning everything


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("", "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.



SAP NetWeaver 7.4


BPM, API, getRunningProcessInstances, active , KBA , collection , bpm api , getprocessdefinitionmanager , BC-BMT-BPM-ANA , Analytics and Reporting , BC-BMT-BPM-DSK , Process Desk , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.