Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Process template management : Working with process template states : Changing the process template states
 

Changing the process template states

BP Server allows the transitions between suspending and resuming the process template. The process template can also be removed explicitly with the API support.
*public void suspend()
An activated process template can be suspended by invoking this API. In this state, new instances of the process template cannot be created. However, already existing process instances of the process template are not affected.
In the suspended state, attributes of the process template cannot be updated. The suspended process template can be resumed later, if required.
Note: BP Server does not allow suspending a process template that is not activated. If you try to invoke the API on a Suspended process template, then an exception is raised.
*public void resume()
You can use this API to reactivate the suspended process template. BP Server does not allow you to resume a process instance that is already activated.
*public void remove()
The API removes the Activated process template, irrespective of its state. You can remove a process template from the BP Server, if there are no process instances for that process template.
If you want to remove a process template that has one or more process instances, then you must first remove all the process instances. BP Server provides an API for removing the all process instances of that process template. Refer to the chapter Fetching the next available work item.