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

Getting the process template states

BP Server provides the APIs to determine the current state of the ProcessTemplate.
*public String getStateDescription()
This API returns the state of ProcessTemplate, from the possible states listed below:
*P_CREATED
*P_INSTALLED
*P_SUSPENDED
The following direct APIs are available to check whether a ProcessTemplate is Activated or Suspended.
*public boolean isActivated()
If the process template is in the Activated state, then you get the value as "true". You can perform any operation on the Activated ProcessTemplate, including suspension and removal.
*public boolean isSuspended()
If the process template is in the suspended state, then you get the value as "true". You can only resume a suspended ProcessTemplate, or remove it completely.
*public boolean is ProcessTemplateExist(Session session, String ptName)
BP Server provides a direct API in BP Server, which enables you to check the existence of a process template without loading the ProcessTemplate SVO.