Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Workstep template management : APIs for workstep templates
 

APIs for workstep templates

BP Server provides appropriate APIs to determine the current type of WorkStepTemplate. Along with the type information you can check for the e-mail support provided, and verify whether the WorkStepTemplate is dynamic or not.

APIs

*public int getType()
Returns the type of WorkStepTemplate as integer value. BP Server defines specific integer value for each type. This API is not generally meant to be used directly. Instead, it is recommended to use the API getTypeString(), which returns the type of WorkStepTemplate as String.
*public String getTypeString()
Returns the type of WorkStepTemplate as a String value. The possible types of a WorkStepTemplate:
*START
*END
*OR-JOIN
*XOR-JOIN
*AND-JOIN
*PARALLEL-SPLIT
*DECISION-SPLIT
*EXTERNAL
*ATOMIC
*NESTED
*SUBSCRIBER
*PUBLISHER
*INLINEBLOCK
*BLOCKSTART
*BLOCKEND
*public boolean hasEmailSupport()
Checks whether the WorkStepTemplate is e-mail supported. If the WorkStepTemplate is supported by e-mail, then user can perform the task via e-mail.
*public boolean isDynamic()
Checks whether the WorkStepTemplate is dynamic.