Messages

The Messages branch of the navigator tree lists all available workflow messages for the current item type.

A message is what a notification activity sends to a role in a workflow process. A message can prompt a user for a reply or an action to take that determines what the next activity in the process should be. The recipient of a workflow message is called the performer.

Each message is associated with a particular item type. This allows the message to reference the item type's attributes for token replacement at runtime when the message is delivered.

When you define a message, you can specify that the message prompts a recipient for a special result response value that the Workflow Engine then uses to determine how to branch to the next eligible activity in the process. You can create a message with context-sensitive content by including message attribute tokens in the message subject and body that reference item type attributes. You can also use message attribute tokens to embed inline images in the message body. A message function lets you include a formatted table of message attributes or an action history table in the message body. You can also attach message attributes that represent entire documents or URLs to a notification message. In addition, you can create message attributes that generate a response section that is unique to the message. You can also embed an Oracle Application Framework region within the message body.

You can drag a message onto the Notifications branch to create a new notification activity that sends that message. You can also drag a message directly onto an existing notification activity to update the message that the activity sends.

Note: You can display message attributes specific to particular types of notifications in the Personal Worklist by using worklist flexfields. See: Defining Specialized Worklist Views with Worklist Flexfields.

Message Result

When you create a message for a notification activity, you should make note of whether the notification activity has a Result Type specified. If it does, then the message you create needs to prompt the notification recipient for a special response that is interpreted as the result of the notification activity. The Workflow Engine uses that result to determine how it should branch to the next eligible activity in the process.

To create a message that prompts for this special response, complete the Result tab in the message's property page. The information you enter creates a special 'Respond' message attribute for the message that has an internal name of RESULT. The RESULT message attribute has a data type of Lookup and must be set to the same lookup type as the notification activity's Result Type. This ensures that the performer of the notification can choose from a list of possible response values that matches the list of possible results that the notification activity is expecting. See: Send and Respond Message Attributes.

Send and Respond Message Attributes

Once you create a message, you can define as many message attributes as necessary for that message. Message attributes are listed beneath a message in the navigator tree.

The source (Send or Respond) of a message attribute determines how the message attribute is used. When you define a message attribute with a source of 'Send', you can embed the message attribute in the subject and/or body of the message for token substitution. In addition, you can attach the message attribute to the message when the notification is sent.

Each message attribute has a specific data type. The value of a 'Send' message attribute can be a constant or can be a value returned by an item type attribute of that same data type. To embed a message attribute in a message's subject or body for token substitution, specify the internal name of the message attribute using the format &MESGATTR within the subject or body text.

Note: If your workflow process will be translated into other languages, you can embed PL/SQL document message attributes in the subject or body of a message to enable translation of context-sensitive content. Include code in your workflow process that determines the context-sensitive values and provides the corresponding translated values dynamically at runtime.

A message attribute defined with a source of 'Respond' constitutes the response section of a message. A 'Respond' message attribute provides instructions that prompts a recipient for a response. When you define a 'Respond' message attribute, you must specify the data type of the attribute. You can also provide an optional default value for the response. The default value can be a constant or a value returned from an item type attribute of the same data type.

You can define 'Respond' message attributes of type URL or form if you want the notification recipient to respond to the notification through the specified Web page or form. In this case that custom Web page or form must mark the notification as closed and include a call to the Workflow Engine CompleteActivity() API to inform the Workflow Engine when the notification response is complete. Also, you must not define any 'Respond' message attributes of other types. Any response values that are required must be entered in the specified Web page or form. See: CompleteActivity.

If you define 'Respond' message attributes of type URL or form, the Notification Details page will display only the URL response links or form response icons and will not display any other response fields. However, users will still be able to reassign or request more information for the notification as usual, if the notification is defined to allow those options.

See: Message Attributes.

Action History

A notification that is sent to an unexpanded recipient role can include an action history table that shows what actions users have performed on the notification to date. The action history table contains a row for each previous execution of the same notification activity node in a process, as well as a row for the initial submission of the process. For example, for a requisition approval notification activity that sends a certain notification to several approvers in turn, the action history table would contain a row for each approver to whom the notification was sent, as well as a row for the process owner. Additionally, if a notification is reassigned to another user in either delegate or transfer mode, or if one user requests more information about the notification and another user answers or transfers that request, the action history contains rows for those actions also. If Oracle Workflow cannot apply a vacation rule because the rule would reassign the notification to the process owner or the from role for the notification, then the action history contains a row showing that the reassignment was prevented and the rule was not applied.

Note: Oracle Workflow does not support including the action history in a notification with the Expand Roles check box selected, which causes a separate copy of the notification to be sent to each user in the recipient role. See: Notification Activity.

The formatting of the action history table depends on whether the notification contains an embedded Oracle Application Framework region.

The standard action history table provided by Oracle Workflow includes the following columns:

You can optionally create a custom action history table to replace the standard action history table, using the special message attribute named #HISTORY. Your custom action history table must be formatted as an Oracle Application Framework region, PL/SQL document, or PL/SQL CLOB document. See: #HISTORY Attribute, Embedding Oracle Application Framework Regions in Messages, and WF_NOTIFICATION() Message Function.

You can use the special message attribute named #RELATED_HISTORY to include the action history of one notification in another notification. See: #RELATED_HISTORY Attribute.

WF_NOTIFICATION() Message Function

In addition to message attribute tokens, you can also use a special message function called WF_NOTIFICATION() to add context-sensitive content to a message body. Depending on the parameters you provide, the WF_NOTIFICATION() function can produce either a table of message attributes or an action history table for the notification.

By default, the tables are created as Oracle Application Framework regions, unless the message body also includes any message attribute tokens that reference values other than Oracle Application Framework regions. In this case, the tables are created in a standard Oracle Workflow format. See: Embedding Oracle Application Framework Regions in Messages.

Note: WF_NOTIFICATION() is not a PL/SQL function, but rather a special message function that can only be called within an Oracle Workflow message body.

Message Attribute Table

To include a table of message attributes in a message body, call WF_NOTIFICATION() with the ATTRS option followed by the internal names of the message attributes, separated by commas. Use the following format:

WF_NOTIFICATION(ATTRS,<attribute1>,<attribute2>,<attribute3>,...)

Note: You must not include any spaces or carriage returns in the call to WF_NOTIFICATION(). You only need to use a comma to delimit the parameters in the list.

The message attribute table contains a row for each message attribute listed in the WF_NOTIFICATION() call, showing the display name and the value for each attribute.

Action History Table

To include an action history table in a message body, call WF_NOTIFICATION() with the HISTORY option in the following format:

WF_NOTIFICATION(HISTORY)

The action history table contains the standard action history information provided by Oracle Workflow, unless you have defined the #HISTORY attribute for a message to use a custom action history region instead. See: Action History and #HISTORY Attribute.

#WF_REASSIGN_LOV Attribute

You can use a special message attribute with the internal name #WF_REASSIGN_LOV to specify the users to whom a message can be reassigned. Create a role whose members are all the users that you want to allow as possible new recipients when the notification is reassigned, and assign this role as the value for the #WF_REASSIGN_LOV attribute. Then, when the notification recipient attempts to reassign the notification, only the users that belong to that role will appear in the list of values for the Assignee fields in the Reassign Notifications page. See: To Reassign a Notification to Another User.

The #WF_REASSIGN_LOV attribute must be of type role and must have a source of Send. You can either specify a particular role as a constant value for the #WF_REASSIGN_LOV attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically sets that item type attribute to the role you want at runtime. If no existing role meets your needs, you can include logic in your process to create an ad hoc role at runtime and add the users you want to that role. See: CreateAdHocRole and AddUsersToAdHocRole.

Note: If the notification recipient has grants for the Oracle Workflow user list of values that allow access only to specific partitions within the Oracle Workflow directory service, then the recipient can only select roles from those partitions in the Assignee fields in the Reassign Notifications page and the Vacation Rule: Response page, even if the role you specify as the #WF_REASSIGN_LOV attribute value also includes roles in other partitions. See: Configuring the Oracle Workflow User List of Values.

However, note that the #WF_REASSIGN_LOV attribute overrides any grants that restrict access to specific user and role values in the Oracle Workflow user list of values. If you define the #WF_REASSIGN_LOV attribute, then the Assignee fields display the roles included in the #WF_REASSIGN_LOV attribute value that are within the available partitions.

#HIDE_REASSIGN Attribute

You can use a special message attribute with the internal name #HIDE_REASSIGN to hide the Reassign button in the Notification Details Web page. The response section in the Notification Details page includes the Reassign button by default. If you want to restrict users from reassigning a notification, you can add the #HIDE_REASSIGN attribute to control whether the Reassign button is displayed or hidden. See: To Reassign a Notification to Another User.

Note: The Notification Details page may include the Delegate button or the Transfer button instead of the Reassign button, depending on the setting of the WF: Notification Reassign Mode profile option. The #HIDE_REASSIGN attribute controls the Delegate button and the Transfer button in the same way as the Reassign button. See: Setting the WF: Notification Reassign Mode.

The #HIDE_REASSIGN attribute also controls whether a notification can be reassigned using the Reassign button in the Advanced Worklist, Personal Worklist, or self-service home page. The Reassign button in these pages will still be displayed, but an error message will appear if users attempt to reassign notifications for which the #HIDE_REASSIGN attribute has been set. See: To View Notifications from the Advanced Worklist and To View Notifications from the Personal Worklist.

Additionally, with this attribute you can specify whether or not the notification can still be reassigned through vacation rules. You can choose to both hide the Reassign button and prevent reassignment through vacation rules. In this case Oracle Workflow does not apply any vacation rules to reassign those notifications, but simply delivers the notifications to the worklist of the original recipient. You can also choose to hide the Reassign button but still allow reassignment through vacation rules.

The #HIDE_REASSIGN attribute must be either of type text or lookup.

Note: If you want to prevent reassignment in all cases, it is recommended to define the #HIDE_REASSIGN attribute with a type of lookup and assign it the predefined Yes/No lookup type that is provided in the Standard item type. The Yes/No lookup type contains two lookup codes with the display names Yes and No, representing the values Y and N, respectively. However, if you want to set the value to B, you must either define the attribute with a type of text or define a custom lookup.

Note: Users who have workflow administrator privileges can reassign all notifications, regardless of any restrictions set through the #HIDE_REASSIGN attribute. For users with workflow administrator privileges, Oracle Workflow always displays the Reassign button in the Notification Details page and allows reassignment from the Advanced Worklist, Personal Worklist, and self-service home page, even if the #HIDE_REASSIGN attribute for a notification is set to Y or B. This ability to override restrictions on reassignment lets administrators intervene when necessary in exception cases.

Workflow administrator privileges are assigned in the Workflow Configuration page. See: Setting Global User Preferences.

Note: The #HIDE_REASSIGN attribute does not affect a user's ability to transfer a request for more information about a notification to another user. This attribute controls only the reassignment of the original notification.

#HIDE_MOREINFO Attribute

You can use a special message attribute with the internal name #HIDE_MOREINFO to hide the Request Information button in the Notification Details page. When users view a notification that requires a response from their Worklist page, the response region in the Notification Details page includes the Request Information button by default. If you want to prevent users from requesting more information about a notification, you can add the #HIDE_MOREINFO attribute to control whether the Request Information button is displayed or hidden.

Note: The #HIDE_MOREINFO attribute also determines whether the Request Information response link is included or excluded in HTML-formatted e-mail notifications. However, note that if the #HIDE_MOREINFO attribute is not defined for a particular notification, the default behavior is different for the Notification Details page and for HTML-formatted e-mail notifications. The Notification Details page displays the Request Information button if the #HIDE_MOREINFO attribute is not defined, while an HTML-formatted e-mail notification will exclude the Request Information response link by default if the #HIDE_MOREINFO attribute is not defined. To control this option in all interfaces where users access notifications, you should explicitly define and set the #HIDE_MOREINFO attribute. See: To Respond to an HTML E-mail Notification.

The #HIDE_MOREINFO attribute must be either of type text or lookup. To hide the Request Information button, set the value of this attribute to Y. To display the Request Information button, set the value to N.

Note: It is recommended to define the #HIDE_MOREINFO attribute with a type of lookup and assign it the predefined Yes/No lookup type that is provided in the Standard item type. The Yes/No lookup type contains two lookup codes with the display names Yes and No, representing the values Y and N, respectively.

#MORE_INFO_PARTICIPANTS Attribute

You can use a special message attribute with the internal name #MORE_INFO_PARTICIPANTS to designate additional users or roles from whom the notification recipient can request more information. When a user chooses to request more information about a notification, the Request More Information From page or the e-mail request template includes a list of workflow participants to whom the user can choose to send the request. By default, the list of workflow participants includes the following:

If you want to designate additional users as participants from whom information about this message can be requested, create a role whose members are all the users that you want to add, and assign this role as the value for the #MORE_INFO_PARTICIPANTS attribute. Then, when the notification recipient chooses to request more information, the users that belong to that role are added to the default list of workflow participants.

The #MORE_INFO_PARTICIPANTS attribute must be of type role and must have a source of Send. You should specify an item type attribute as the value for the #MORE_INFO_PARTICIPANTS attribute and include logic in your workflow process that dynamically sets that item type attribute to the role you want at runtime. If no existing role meets your needs, you can include logic in your process to create an ad hoc role at runtime and add the users you want to that role.

See: To Respond to an HTML E-mail Notification and To Request More Information From Another User.

#FROM_ROLE Attribute

You can use a special message attribute with the internal name #FROM_ROLE to specify the role that is the source of a notification. For example, if you have a notification that informs an approver that a requisition was submitted, you can set the requisition preparer as the From Role for the message.

If a notification with this attribute is reassigned through the Worklist Web pages, Oracle Workflow automatically sets the From Role to the previous recipient when sending the notification to the new recipient. Also, Oracle Workflow automatically sets the From Role for a request for more information to the user who sent the request, and sets the From Role for a response providing more information to the user who sent the response.

The From Role for each notification is displayed in the Worklist Web page and in e-mail notifications to give users additional information for reviewing and responding to the notifications. Additionally, the Notification Search page and Personal Worklist let you search for notifications based on the From Role. See: To View Notifications from the Advanced Worklist, Searching for Users' Notifications in Oracle E-Business Suite, and To View Notifications from the Personal Worklist.

To enhance security, Oracle Workflow does not allow a notification to be reassigned to the role specified as its From Role.

The #FROM_ROLE attribute must be of type role and must have a source of Send. The display name and description of the attribute should both be From Role. You should specify an item type attribute as the value for the #FROM_ROLE attribute and include logic in your workflow process that dynamically sets that item type attribute to the role you want at runtime.

#WF_SIG_POLICY Attribute

You can use a special message attribute with the internal name #WF_SIG_POLICY to require that a user's response to a notification be signed electronically. This electronic signature is analogous to a written signature. If you define a notification to require an electronic signature, users must respond to the notification from the Notification Details Web page and enter the appropriate type of signature. Otherwise, the response will not be considered valid.

The signed response text for both types of signatures contains the notification header information and the response values entered by the user. You can optionally require the signed response text to include the notification message body as well.

Note: If the message body contains a link or an image, the signed response text includes the HTML code used to reference the link or image, rather than the content of the referenced file itself. The signed response text does not include notification attachments.

The #WF_SIG_POLICY attribute must be either of type text or lookup.

For ease of maintenance, you can define the #WF_SIG_POLICY attribute with a type of lookup and assign it the predefined Signature Policy lookup type provided in the Standard item type. The Signature Policy lookup type contains five lookup codes with the display names Password Signature, Password Signature With Body, X509 Signature, X509 Signature With Body, and Default, representing the values PSIG_ONLY, PSIG_BODY, PKCS7X509_ONLY, PKCS7X509_BODY, and DEFAULT, respectively.

You can also define the #WF_SIG_POLICY attribute with a type of text. In this case, you must manually maintain the values that you set for this attribute.

You can either specify a constant value for the #WF_SIG_POLICY attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically determines at runtime whether a signature should be required or not and sets that item type attribute accordingly.

Oracle Workflow records the status of requested and submitted signatures in the Signature Evidence Store, for both password-based signatures and certificate-based digital signatures. You can search for signatures in the Signature Evidence Store to check the status of a signature request and review details that provide evidence of the signature. If your business logic requires a signature to be validated as a prerequisite for other activities, your workflow can include a notification to an administrator to confirm the signature status before continuing. See: Reviewing Electronic Signature Details.

To preserve electronic signature evidence for future reference, the Purge Obsolete Workflow Runtime Data concurrent program and the Oracle Workflow purging APIs by default do not delete any notifications that required signatures or their associated signature information. If you anticipate needing access to signature evidence after the associated workflow processes are complete, ensure that you choose to preserve signature data when purging. If you do not need to maintain signature evidence, you can choose to delete signature-related information when purging. See: Purging Workflow Data and Workflow Purge APIs.

For more information, see: Setting Up for Electronic Signatures, Electronic Signatures, Viewing Responses, and NtfSignRequirementsMet.

#WF_SIG_ID Attribute

You can specify an electronic signature policy for notifications by defining the #WF_SIG_POLICY message attribute. If you specify a signature policy that requires an electronic signature to confirm a user's response to a notification, Oracle Workflow creates another message attribute named #WF_SIG_ID after the notification is signed. The #WF_SIG_ID attribute stores the identifier for the signature, which you can use to reference information about the signature later if necessary. This attribute is of type text and has a source of 'Respond'.

Note: Oracle Workflow automatically creates and sets the value of the #WF_SIG_ID attribute when a user submits a response to a notification with an electronic signature. You do not need to manually create or set this attribute.

#WF_SECURITY_POLICY Attribute

You can use a special message attribute with the internal name #WF_SECURITY_POLICY to control whether notifications that include sensitive content can be sent in e-mail. If you specify that a notification's content must not be sent in e-mail, users receive an e-mail message that only informs them that they must access the notification through the Notification Details Web page instead to view its content and respond. To access the Notification Details page, users can either log into Oracle E-Business Suite separately, or, if their notification preference includes HTML attachments, use the Notification Detail Link. See: Reviewing Notifications via Electronic Mail.

The #WF_SECURITY_POLICY attribute must be of type text. To prevent notification content from being sent in e-mail, set the value of the #WF_SECURITY_POLICY attribute to NO_EMAIL. If you set the value to EMAIL_OK or DEFAULT, leave the value blank, or if you do not define a #WF_SECURITY_POLICY attribute for the message, Oracle Workflow sends the full notification content in e-mail to users whose notification preference is set to receive e-mail.

You can either specify a constant value for the #WF_SECURITY_POLICY attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically determines at runtime whether the notification content can be sent in e-mail or not and sets that item type attribute accordingly.

Header Attributes

You can use special header message attributes to display key information in the notification header region of the Notification Details page. Header attributes are also displayed at the beginning of e-mail notifications. To identify a message attribute as a header attribute, you must define an internal name for it that begins with #HDR_ using the following format:

#HDR_<name>

The display order of any header attributes in the Notification Details page or the e-mail notification is determined by the sequence of those attributes within the navigation tree in the Workflow Builder. The display name of each header attribute will appear as a label before the attribute value in the notification header region. You can either specify a constant value for each attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically sets the item type attribute value at runtime.

#HDR_REGION Attribute

The notification header region by default contains general message information such as the from role, recipient, sent date, due date, and notification ID, together with any special header attributes defined for the notification, and, if a notification with the #ATTACHMENTS attribute is viewed in the Notification Details page, links to the specified Oracle E-Business Suite attachments. You can optionally use a special message attribute with the internal name #HDR_REGION to replace this default header with a custom header region.

Your custom header must be defined as an Oracle Application Framework region. For more information about building an Oracle Application Framework region, refer to the Oracle Application Framework Developer's Guide, available from My Oracle Support Knowledge Document 1315485.1.

The #HDR_REGION attribute must be of type document and must have a source of Send. Set the value of this attribute to a Java Server Page (JSP) call that references your custom header region. For detailed instructions on how to specify the attribute value, see: Embedding Oracle Application Framework Regions in Messages.

Note: The Frame Target field is not applicable for message attributes of type document. Additionally, you must not select the Attach Content check box for the #HDR_REGION attribute.

#RELATED_APPL Attribute

The Related Applications region in Oracle Application Framework-based notifications by default contains icons with links to attached URLS, documents, or forms. You can optionally use a special message attribute with the internal name #RELATED_APPL to replace this default region with a custom Related Applications region.

Your custom Related Applications region must be defined as an Oracle Application Framework region. For more information about building an Oracle Application Framework region, refer to the Oracle Application Framework Developer's Guide, available from My Oracle Support Knowledge Document 1315485.1.

The #RELATED_APPL attribute must be of type document and must have a source of Send. Set the value of this attribute to a Java Server Page (JSP) call that references your custom region. For detailed instructions on how to specify the attribute value, see: Embedding Oracle Application Framework Regions in Messages.

Note: The Frame Target field is not applicable for message attributes of type document. Additionally, you must not select the Attach Content check box for the #RELATED_APPL attribute.

#ATTACHMENTS Attribute

In Oracle E-Business Suite, you can link attachments to a data record. For a workflow notification that includes an embedded Oracle Application Framework region, you can optionally use a special message attribute with the internal name #ATTACHMENTS to include such Oracle E-Business Suite attachments when the notification is sent by e-mail. In this case, the recipient does not need to log into Oracle E-Business Suite to view the attachments. Oracle E-Business Suite attachments of type Short Text and Long Text are attached to the e-mail message as text files, Oracle E-Business Suite attachments of type URL are attached as HTML files, and Oracle E-Business Suite attachments of type File are attached as the file format in which they were uploaded.

If the recipient views the notification in the Notification Details page, the notification header displays an Attachment(s) heading with links to the Oracle E-Business Suite attachments.

The #ATTACHMENTS attribute must be of type document and must have a source of Send. In the value for the attribute, specify the entity with which the attachments are associated and the primary keys used to identify the record with which the attachments are associated. Specify the #ATTACHMENTS attribute in the following format:

FND:entity=<entity>&pk1name=<primary_key_1_name>&pk1value=<primary_key_1_value>&pk2name=<primary_key_2_name>&pk2value=<primary_key_2_value>&pk3name=<primary_key_3_name>&pk3value=<primary_key_3_value>&pk4name=<primary_key_4_name>&pk4value=<primary_key_4_value>&pk5name=<primary_key_5_name>&pk5value=<primary_key_5_value>

In the attribute value, replace the variables as follows:

Note: The Attach Content check box is not applicable for the #ATTACHMENTS attribute. If you define this attribute, the specified attachments are included in the e-mail notification, regardless of the setting of the Attach Content check box.

See: Using Attachments.

#HISTORY Attribute

Response-required notifications and some FYI notifications include an action history table. You can optionally use a special message attribute with the internal name #HISTORY to replace the default action history table provided by Oracle Workflow with a custom action history region. See: Action History.

Your custom action history table must be defined as an Oracle Application Framework region, or as a PL/SQL or PL/SQL CLOB document that contains text or HTML. For more information about building an Oracle Application Framework region, refer to the Oracle Application Framework Developer's Guide, available from My Oracle Support Knowledge Document 1315485.1.

The #HISTORY attribute must be of type document and must have a source of Send. For an Oracle Application Framework region, set the value of this attribute to a Java Server Page (JSP) call that references your custom action history region. For detailed instructions on how to specify the attribute value, see: Embedding Oracle Application Framework Regions in Messages.

For a PL/SQL or PL/SQL CLOB document, set the attribute value to the procedure and document ID from which the document is generated. See: To Define a Document Attribute.

Note: The Frame Target field is not applicable for message attributes of type document. Additionally, you must not select the Attach Content check box for the #HISTORY attribute.

#SUBMIT_COMMENTS Attribute

The action history region for notifications begins with a row for the initial submission of the process, when the notification is first sent. You can optionally use a special message attribute with the internal name #SUBMIT_COMMENTS to display comments from the process owner for this initial action. See: Action History.

The #SUBMIT_COMMENTS attribute must be of type text and must have a source of Send. You should specify an item type attribute as the value for the #SUBMIT_COMMENTS attribute and include logic in your workflow process that dynamically sets that item type attribute to contain the comments at runtime. Ensure that you provide a way for the process owner to enter the comments when submitting the process and store the comments in the appropriate item type attribute.

#RELATED_HISTORY Attribute

You can use a special message attribute with the internal name #RELATED_HISTORY to include the action history of one notification in another notification. For example, if a workflow process contains a notification that submits a request for approval and another notification that informs the requestor whether the request was approved or rejected, the second notification can include the action history of the first notification to show the requestor more details about the approvers' decisions.

You can include related action history in both FYI (For Your Information) and response-required notifications. Each notification can only include the related action history for one related notification. The related notification can belong to the same work item or to a different work item, identified by the item type and item key.

The notification for which you define the #RELATED_HISTORY attribute must be formatted using an embedded Oracle Application Framework region. See: Embedding Oracle Application Framework Regions in Messages.

The related action history table appears as an embedded Oracle Application Framework region. The default title for the table is Related Action History. You can optionally specify a custom title to use instead. The related action history table includes the same columns as the default action history table for a notification's own action history. See: Action History.

The #RELATED_HISTORY attribute must be of type text and must have a source of Send. Specify the value for this attribute in the following format:

{<title>}[<item_type>:<item_key>]<process_name>:<activity_label_name>

For instance, the following example shows the attribute value for a related notification in another work item, fully qualified with the process name, specifying a custom table title.

{Approval History}[WFDEMO:1234]NOTIFYAPPROVER:NTF_APPROVE_REQUISITION

The following example shows the attribute value for a related notification in another work item, that is unique within its item type and does not require the process name to be specified, and that will be displayed with the default table title.

[WFDEMO:1234]NTF_APPROVE_REQUISITION

The following example shows the attribute value for a related notification in a parent work item, fully qualified with the process name, specifying a custom table title.

{Approval History}[WFDEMO]NOTIFYAPPROVER:NTF_APPROVE_REQUISITION

The following example shows the attribute value for a related notification in the same work item, fully qualified with the process name, specifying a custom table title.

{Approval History}NOTIFYAPPROVER:NTF_APPROVE_REQUISITION

The following example shows the attribute value for a related notification in the same work item, that is unique within its item type and does not require the process name to be specified, and that will be displayed with the default table title. Note that in this case only the activity node label name is required.

NTF_APPROVE_REQUISITION

You can either specify a constant value for the #RELATED_HISTORY attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically determines the related notification details at runtime and sets that item type attribute accordingly. You can also token substitute individual arguments in the #RELATED_HISTORY attribute value with other message attributes. The message attributes used for token substitution in turn can have constant values or can reference the values returned from item type attributes. See: To Token Substitute an Attribute.

For instance, the following example shows the attribute value using token substitution for a related notification in another work item, fully qualified with the process name, specifying a custom table title.

{&TITLE}[&ITEM_TYPE:&ITEM_KEY]&PROCESS_NAME:&ACTIVITY_LABEL_NAME  

In this example the values for the title, item type, item key, process name, and activity label name are derived from the values of other message attributes named TITLE, ITEM_TYPE, ITEM_KEY, PROCESS_NAME and ACTIVITY_LABEL_NAME, respectively.

Note: The format for the #RELATED_HISTORY attribute value has been extended to include enhancements introduced in Release 12.2, including the ability to display a custom title and to specify a related notification that belongs to a different work item. However, the enhanced format is backwardly compatible with the format used in previous releases, <process_name>:<activity_label_name>. No changes are required to continue using any #RELATED_HISTORY attributes that you defined previously.

Region Personalization Attributes

You can use special message attributes to apply personalizations at different levels to Oracle Application Framework regions embedded in notifications.

You can also create personalizations for an Oracle Application Framework region at site level. In this case the personalizations will automatically be applied when the region appears embedded in a notification, as well as when it appears in any other location.

Notification Mailer Attributes

You can use special message attributes to control how a notification mailer generates the e-mail message for a notification, if the recipient has a notification preference to receive e-mail notifications. For example, if you want to customize notifications from a particular department, you can define these attributes for those notifications.

For more information, see: Notification Mailer Configuration Wizard, Setting Up Notification Mailers. and Locale Data, Oracle Database Globalization Support Guide.

Notification Mailer Message Template Attributes

You can use special message attributes to specify which message templates a notification mailer uses to generate the e-mail message for a notification, if the recipient has a notification preference to receive e-mail notifications. For example, if you want to customize notifications from a particular department, you can define these attributes for those notifications. The templates specified in these attributes for a particular notification override the templates specified in the configuration parameters for a notification mailer.

You can create your own message templates by using the Workflow Builder to define skeleton messages within an item type. See: Modifying Your Message Templates.

The value for a message template attribute must be specified in the following format:

<item_type_internal_name>:<message_internal_name>

For example, to specify the Workflow Open Mail (Templated) message within the System: Mailer item type, you would enter the following value:

WFMAIL:OPEN_MAIL

You can either specify a constant value for a message template attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically determines at runtime which message template to use and sets that item type attribute accordingly.

You can define the following attributes to specify templates to be used for a notification message at various stages in e-mail notification processing.

See: Notification Mailer Configuration Wizard.

Additional E-mail Recipient Attributes

You can use special message attributes to specify additional recipients for a notification e-mail message, if the primary recipient has a notification preference to receive individual e-mail notifications.

The #WFM_CC and #WFM_BCC attributes must be of type text and must have a source of Send. Specify the attribute value as a list of the e-mail addresses or role names of the additional recipients, separated by semicolons (;).

You can either specify a constant value for each attribute, or specify an item type attribute as the value and include logic in your workflow process that dynamically determines the e-mail address at runtime and sets that item type attribute accordingly.

The notification mailer sends the CC and BCC recipients copies of the e-mail message generated for the primary recipient. However, the CC and BCC recipients are not added to the recipient role for the notification in the Notification System.

Adding CC and BCC recipients is recommended only for FYI notifications. If you do add CC or BCC recipients to a response-required notification, consider whether the additional recipients should be able respond to the notification, and set up your security options accordingly.

See: E-mail Notification Security.

Approvals Data Services Attributes

If you configure messages for use with approvals data services, you can use special message attributes to control how the approval notifications appear in the Oracle Mobile Approvals for Oracle E-Business Suite app. These message attributes let you specify how to handle content for a message that is used as a boilerplate template to send approval notifications from multiple notification activities for different approval objects.

For more information, see: Identifying Approval Notification Content.

Example 'Respond' Message Attributes

Following are examples of how the Notification System generates the Response section of an e-mail notification using a sample set of 'Respond' message attributes that have no default values.

The following table lists some sample 'Respond' message attributes.

Sample Respond Attributes

Internal Name Type Format/Lookup Type Display Name Description
RESULT lookup WFSTD_APPROVAL Action Do you approve?
COMMENT text 2000 Review Comments  
REQDATE date DD-MON-YYYY Required Date If there is no required date, leave this blank.
MAXAMT number   Maximum Amount This is the maximum approved amount.

For the templated response method, the following boilerplate text is used to generate the Response template section of an e-mail notification:

<Description> 
<Display Name>: " "
          <list of lookup codes>

Portion of Resulting Response Template as Shown in a Templated Response E-mail Notification

Do you approve?
Action: " "
Approve
Reject
 
Review Comments: " "
 
If there is no required date, leave this blank.
Required Date: " "
 
This is the maximum approved amount.
Maximum Amount: " "

For the direct response method, the following boilerplate text is used to generate the Response section of an e-mail notification:

Enter the <Display Name> on line <Sequence>. <Description> <Type_Hint> 

<Display Name> is replaced with the Display Name of the message attribute. <Sequence> is replaced with the relative sequence number of the 'Respond' message attribute as it appears in the Navigator tree among all 'Respond' message attributes (that is, the presence of 'Send' message attributes is ignored when determining the sequence). <Description> is replaced with the Description of the message attribute. In addition, <Type_Hint> is replaced with a hint statement if the message attribute matches a data type that has a hint. The following table shows the data types with hints and the corresponding hint statements.

Data Type Hints

Type Type Hint
Lookup Value must be one of the following: <list of lookup codes>
Date Value must be a date [in the form "<format>"].
Number Value must be a number [in the form "<format>"].
Text Value must be <format> bytes or less.

Portion of Resulting Response Section as Shown in a Direct Response E-mail Notification

Enter the Action on line 1. Do you approve? Value must be one of the following:
Approve
Reject
 
Enter the Review Comments on line 2. Value must be 2000 bytes or less.
 
Enter the Required Date on line 3. If there is no required date, leave this blank. Value must be a date in the form "DD-MON-YYYY".
 
Enter the Maximum Amount on line 4. This is the maximum approved amount. Value must be a number.

Embedding Oracle Application Framework Regions in Messages

If you have Oracle Application Framework set up in Oracle JDeveloper for custom development, you can embed Oracle Application Framework regions in a notification message. To embed a region, define a message attribute whose value is a Java Server Page (JSP) call that references the region.

The message attribute representing the region must be of type document and must have a source of Send. You can assign the attribute any appropriate internal name, display name, and description.

Specify the value for the attribute in the following format:

JSP:/OA_HTML/OA.jsp?OAFunc=<Function_Name> 

where <Function_Name> is the self-service function name for the region you want to embed in the notification, as registered in the Form Functions window in Oracle E-Business Suite. For example:

JSP:/OA_HTML/OA.jsp?OAFunc=EMBED_WL_FUNC

To pass parameters to the region, specify the value for the attribute in the following format:

JSP:/OA_HTML/OA.jsp?OAFunc=<Function_Name>&<Name1>=<Value1>
&<Name2>=<Value2>...

where <Function_Name> is the function name for the region, <Name1> and <Value1> are the parameter name and value for the first parameter, <Name2> and <Value2> are the parameter name and value for the second parameter, and so on. For example:

JSP:/OA_HTML/OA.jsp?OAFunc=EMBED_WL_FUNC&Order_Type=12345

You can set the value for the message attribute in the following ways:

Note: The Frame Target field is not applicable for message attributes of type document. Additionally, you must not select the Attach Content check box for a message attribute that references a region. An Oracle Application Framework region can only be displayed within the message body of a notification. It cannot be included as an attachment to the notification.

To embed the region in the message, enter the token for the message attribute in the HTML body for the message. A message can include multiple regions, which will be displayed in the sequence in which their tokens appear in the HTML Body field. Additionally, the message can include calls to the special message function WF_NOTIFICATION() to produce a table of message attributes or an action history table, which will also be rendered as Oracle Application Framework regions. See: WF_NOTIFICATION() Message Function.

Note: If you embed an Oracle Application Framework region in a message, then the message body can only contain message attribute tokens referencing such regions and calls to the special message function WF_NOTIFICATION(). The message body cannot contain any tokens for message attributes that do not reference regions.

Leave the Text Body field blank for an Oracle Application Framework region message. Oracle Workflow does not use the text body for such messages. Instead, a text version of the message is derived directly from the included regions. Note that non-text content such as images, links, or special HTML formatting will not appear in the text version of a region.

Follow these guidelines when you are developing an Oracle Application Framework region for inclusion in a notification message:

For more information about building an Oracle Application Framework region, refer to the Oracle Application Framework Developer's Guide, available from My Oracle Support Knowledge Document 1315485.1.

When you configure a notification mailer, you can set certain parameters to control how the notification mailer includes Oracle Application Framework content in e-mail notifications. For example, you can specify the user, responsibility, and application through which a notification mailer accesses Oracle Application Framework content. You can also specify whether to attach any stylesheet and images referenced in Oracle Application Framework regions to e-mail notifications, or simply display the stylesheet and image references as URLs. See: Notification Mailer Configuration Wizard.

You can use the Workflow Mailer URL Access Tester page to test whether Oracle Application Framework content can be generated correctly for e-mail notifications. See: Testing Mailer URL Access.

Related Topics