Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Process instance management : Removing process instances
 

Removing process instances

BP Server provides an API which can directly remove the process instance irrespective of its state.
*public void remove()
You can remove a process instance that is in any state, from the BP Server.
Note: The ProcessInstance can also be removed by invoking the API on the corresponding ProcessTemplate.
*public void removeProcessInstance(long piid)
You must specify the ProcessInstance ID which is to be removed. If the ProcessInstance ID does not exist, then and an exception is raised.
*public long removeAllProcessInstance()
This API removes all the process instances and returns the ID of all the removed process instances.