Create a Notification
Use this API to create a Notification definition or instance. This API also initializes the classification of the new Notification object.
Name
CDR_PUB_DF_NOTIFICATIONS.CreateNotification
Signature
PROCEDURE CREATENOTIFICATION( 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_CDRNOTIFICATION IN CDR_NOTIFICATION_OBJ_TYPE, PI_CREATEOBJECT IN VARCHAR2, PI_DEFCLASSIFICATIONCOLL IN CDR_CLASSIFICATIONS_COLL );
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.
If you are creating a new definition only or a new definition and an instance of it, enter values for the new definition.
If you are creating an instance of an existing definition, enter values to identify the existing definition.
For OBJECT_TYPE_RC enter $OBJTYPES$NOTIFICATION if you are creating a definition only; $OBJTYPES$NOTIFREF 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_CDRNOTIFICATION (Mandatory) This is a parameter of table type
CDR_NOTIFICATION_OBJ_TYPE that contains Notification specific attributes.
Enter FYI or APPROVAL for NOTIF_TYPE_RC.
Enter HIGH, MEDIUM, or LOW for NOTIF_PRIORITY_RC.
Enter ALL or ANY for ALL_REPLIES_FLAG_RC for Notifications of type APPROVAL.
- PI_CREATEOBJECT Enter DEFN for creating a definition, INST for creating an instance, and BOTH for creating a definition and an instance of it.
- PI_DEFCLASSIFICATIONCOLL (Optional) By default the new definition is
classified according to the subtype you assigned it in the CDR_NAMING_VERSION_OBJ_TYPE.
If you want to override the default classifications for one or more classification levels, use this parameter. This is a collection of CDR_CLA_OBJ_TYPEs, which have 5 attributes, including CLA_LEVEL_ID and CLASSIFICATION_ID.
If you want the definition to inherit its classifications for a particular level from its parent, enter the classification level ID and, for the CLASSIFICATION_ID, enter 0 (zero).
If you want to explicitly assign one or more terms for a particular level, initialize a CDR_CLA_OBJ_TYPE for each term, entering the classification level ID and, for the CLASSIFICATION_ID, the term ID.
The PAR_ attributes are not relevant to Notifications. Do not enter any values for them.
Parent topic: Create and Modify Notifications