Create a Workflow Transition
Use this API to create a Workflow transition. A Workflow transition connects two Workflow activities.
Name
CDR_PUB_DF_WORKFLOW.CreateWfTransition
Signature
PROCEDURE CREATEWFTRANSITION( P_API_VERSION IN NUMBER, P_INIT_MSG_LIST IN VARCHAR2 := CDR_PUB_DEF_CONSTANTS.G_FALSE, P_COMMIT IN VARCHAR2 := CDR_PUB_DEF_CONSTANTS.G_FALSE, P_VALIDATION_LEVEL IN NUMBER := CDR_PUB_DEF_CONSTANTS.G_VALID_LEVEL_FULL, X_RETURN_STATUS OUT VARCHAR2, X_MSG_COUNT OUT NUMBER, X_MSG_DATA OUT VARCHAR2, PIO_SOURCECDRNAMING IN OUT CDR_NAMING_VERSION_OBJ_TYPE, PI_CDRWFTRANSITION IN OUT CDR_WMG_TRANS_OBJ_TYPE );
Parameters
This API has standard parameters (see Standard Parameters) and the following parameters:
- PIO_SOURCECDRNAMING (Mandatory) This is a parameter of table type
CDR_NAMING_VERSIONS_OBJ_TYPE that contains CDR Naming Version attributes.
For OBJECT_TYPE_RC enter $OBJTYPES$WORKFLOW if you are creating a definition only; $OBJTYPES$WORKFLOWREF if you are creating an instance of an existing definition; and also if you are creating a new definition and an instance of it.
- PI_CDRWFTRANSITION The Object ID and Version of the two Workflow activities
being connected through this transition should be populated in the CDR_WMG_TRANS_OBJ_TYPE.
In the CONDITION_RC attribute, specify the activity condition based on which the workflow transitions to the other specified activity.
The possible values are $WFTRANSITIONS$NONE, $WFTRANSITIONS$SUCCESS, $WFTRANSITIONS$ERROR,$WFTRANSITIONS$WARNING
Parent topic: Create and Modify Workflows