Oracle Workflow Tutorial PDF
Oracle Workflow Tutorial PDF
Oracle Workflow Tutorial PDF
Overview:
This article will illustrate how to create or define workflow attributes, notifications, messages, roles or
users, functions, processes and last but not the least, how to launch a workflow from PL/SQL. The
workflow concepts are better explained using an example.
Business Requirement:
When an item is created in inventory, workflow needs to be launched and it should collect the details
of the item created and sends a notification to group of users along with the details and link to master
item form.
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
Expand the node to see attributes, processes, notifications, functions, Events, Messages and lookup
types.
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
Enter fields
Internal Name: ERP_SEND_ITEM_DET
Display Name: Send Item Detials
Description: Send Item Detials
Message: Sned Item Details Message
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
6) Create Roles:
Adhoc roles can be created through PL/SQL from database or they can be created from Applications
using User Management Responsibility. If you use PL/SQL to create roles make sure you give all
user names and role names in UPPER case to avoid some problems
Script to Create a Adhoc Role
Script to Add user to existing Adhoc Role
Script to Remove user from existing Adhoc Role
Using Adhoc roles in workflow notifications
Adhoc Roles Tables
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
Tables:
WF_ROLES
WF_USER_ROLES
WF_LOCAL_ROLES
WF_USER_ROLE_ASSIGNMENTS
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
RAJU CHINTHAPATLA
Oracle Workflow Tutorial Workflow
-- set the attribute values in workflow so that you can use them in
notifications
WF_ENGINE.SetItemAttrText(itemtype, itemkey, 'MASTERFORM',
v_master_form_link);
WF_ENGINE.SetItemAttrText(itemtype, itemkey, 'ERP_ITEM_NUMBER',
item_segment1);
-- This procedure will just put the item number into workflow attribute
ERP_ITEM_NUMBER
PROCEDURE GET_ITEM_DETAILS(
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
resultout OUT NOCOPY VARCHAR2
)
IS
v_GET_ITEM_NUMBER VARCHAR2(1000);
BEGIN
SELECT SEGMENT1 INTO V_GET_ITEM_NUMBER FROM MTL_SYSTEM_ITEMS_B WHERE
ROWNUM =1;
WF_ENGINE.SetItemAttrText(itemtype, itemkey,
'ERP_ITEM_NUMBER',v_GET_ITEM_NUMBER );
-- you can use the get function as below.
-- v_GET_ITEM_NUMBER := wf_engine.getitemattrtext(
-- itemtype => itemtype
-- ,itemkey => itemkey
-- ,aname => 'X_ATTRIBUTE');
resultout:='COMPLETE:'||'Y';
exception when others then
dbms_output.put_line('Entered Exception');
fnd_file.put_line(fnd_file.log,'Entered Exception');
END GET_ITEM_DETAILS;
END ERP_DEMO;
/
RAJU CHINTHAPATLA