2026750 - BPM API getRunningProcessInstances() not returning everything | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2026750 - BPM API getRunningProcessInstances() not returning everything

Symptom

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.


Read more...

Product

SAP NetWeaver 7.4

Keywords

BPM, API, getRunningProcessInstances, active , KBA , bpm api , collection , getprocessdefinitionmanager , BC-BMT-BPM-ANA , BPM 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 ONE Support launchpad (Login required).

Search for additional results

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