Workflow With Approval Notification-1
Workflow With Approval Notification-1
The target is to send an email notification to one person using Oracle workflow.
For this as step one we are creating an Item Attribute which is similar to a Global Variable in a
PLSQL Package. There are different types of item attributes like Text, number, date, lookup, form,
url, document, role, attribute and event. Here we are selecting a text. We can even go for a Role
type but then we need to create a role and assign it then to the attribute.
Once the attribute is created then create a new message which needs to be send in the notification.
Set the properties of the new message:
In the body the actual email notification Body and in the subject the email notification subject goes
in. We can also modify using html body if we need to enter the data in tables with different color
coding, .etc. Here in the message body we have appended the Item attribute just for reference on
how to add item attributes which change dynamically in the workflow.
As we are using standard Approve/Reject notification we are selecting an existing lookup. Else if we
want to create a new, we can always create a new lookup with its values and use it here.
Add the display name and description which are mandatory.
Create a new notification by using right click on the notifications menu in
Custom workflow:
Drag the item attribute to the message as we are using the item attribute in the message:
Drag another end so that when in the notification when user selects another result which is Reject, it
should also flow till the end. Use can also use default as when there are multiple results, then other
than the result mentioned in the flow rest all comes under this flow. Any can also be chosen if the
workflow should also follow this path in either case. –
Validate and save the workflow in the database or on the desktop and upload it using WFLOAD.
Once the Workflow is saved in the database then validates using following scripts: -
SELECT *
FROM wf_item_activities_history_v
WHERE item_type = 'XAOATEST';
SELECT *
FROM wf_item_types
WHERE name = 'XAOATEST';
SELECT *
FROM WF_PROCESS_ACTIVITIES
WHERE process_item_type = 'XAOATEST';
SELECT *
FROM wf_item_types_tl