10 - How To Send Notification To Multiple Users - Shareapps4u
10 - How To Send Notification To Multiple Users - Shareapps4u
3) Now we have to add this newly created role to the performer of the notification (Initially it was Supervisor User Name). Now open the process (in our case it will be
"Test Leave Approval Process"). Open the notification and go to the "Node" tab. Modify the performer.
4) Validate your design and save it to database.
We will first discuss how can we define Role from Oracle Application and use the same in workflow.
Enter the value for "role_name" (Must not be more than 320 character and keep the name in uppercase) and "role_display_name" parameter. Keep the other
parameter to its default value.
If you want to make this role inactive after definite time period enter value for it (Ex:- for 365 days it should be sysdate+365. Means after 365 days role will be expired).
Here
role_name =>XX_TEST_ADHOC_ROLE
role_display_name=>Test Adhoc Role
ii) Add the user to the newly created Role using wf_directory.AddUsersToAdHocRole utility.
wf_directory.AddUsersToAdHocRole(role_name in varchar2,
c in varchar2
)
Here
role_name => Internal name of the role
role_name => User name of the list of users that we need to add. The user name of the users must be either comma/space separated.
iii) Now set the Role attribute value. The value of the Role attribute should be the Internal name of the adhoc role.
To set the Role attribute we need to call wf_engine.SetItemAttrText procedure. This will internally check for Role attribute(though this utility is for setting Text
attribute) and perform the task accordingly.
iv) Now compile procedure and workflow is ready to trigger.
Note:- 1) As we see we can define Role in two ways 1) Global Application Role 2) Database Adhoc Role.
When we have a identified static list of approver/stakeholder to whom we need to send the notification we will use the Global Application
Role. It is easy to maintain.
When we have a dynamic list of approver/stakeholder (if our requirement is something like send the notification to all the people who are in a
particular grade) to whom we need to send the notification we will use the database adhoc Role.
2) If we check the "Expand Roles"(Double click on notification >> Notification Tab) check box it will send an individual copy of the notification message to
each user in the role(The notification id will be different). The notification remains in a user’s notification queue until the user responds or closes the
notification.
Since this is a actionable notification and we are not using voting activity thus "First responder Win" happen.
If any of the role performer acts on the notification it will "Closed" in his/her queue. Whereas other will see it as "Cancelled".
3) 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.
References:- 1) https://metalink.oracle.com
2) Oracle Workflow Developer's Guide ( Release 12) B31433-04
3) Oracle. Workflow API Reference Release 2.6.3.5 Part No. B12163–02
Disclaimer:- This is a knowledge sharing site. This topic talks about a custom solution. Oracle Corporation may not provide you a support for any data
corruption or any other problem in your custom code/problem arises because of the custom code.
The author is not responsible for any kind of system/data problem appears because of usages of this code.Reader/implementer must do it on his/her own
risk/responsibility.
Oracle Corporation may change API definition/usages. User must read the necessary documentation before using Oracle provided
APIs.
Sign in | Report Abuse | Print Page | Powered By Google Sites