Documente Academic
Documente Profesional
Documente Cultură
100,000+ Servers Already in Use. Order Yours & Start Work in Seconds
ARTICLES
SCRIPTS
TRAININGS
CONTACT
A RT IC LE S / T OOLS / WORKFLOW
Workflow tutorial
Prudhvi Avuthu
Search
Apps Questions
Ask a Question
erpSchools
Like
Overview:
This workflow tutorial will illustrate how to create or define a new workflow from
collect the details of the item created and sends a notification to group of users along
Forms Migration
sibvisions.com
August 2014
Create Process
Create Functions including START and END
Create Attributes
Create Messages
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Create Notification
1/26
8/25/2014
Jul
POPULAR QUESTIONS
Specify the steps that need to be
done starting from creating an invoice
until transferring it to GL in AP.
asked by
Prudhvi Avuthu
Prudhvi Avuthu
Prudhvi Avuthu
Prudhvi Avuthu
Prudhvi Avuthu
Prudhvi Avuthu
asked by
Prudhvi Avuthu
Prudhvi Avuthu
http://erpschools.com/articles/workflow-tutorial
2/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
3/26
8/25/2014
2) Create Process
Double click on Process to open up the properties window as shown below
http://erpschools.com/articles/workflow-tutorial
4/26
8/25/2014
Click OK
http://erpschools.com/articles/workflow-tutorial
5/26
8/25/2014
Double click ErpSchools Process Icon to open process window where we can draw our
workflow diagram.
http://erpschools.com/articles/workflow-tutorial
6/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
7/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
8/26
8/25/2014
Go to Node tab and select End from the drop down. This is mandatory and cant be
ignored.
Click Apply and then OK
http://erpschools.com/articles/workflow-tutorial
9/26
8/25/2014
We will come back to this process window later after we have all components /
activities ready to link. for now just close process window and go to navigator
http://erpschools.com/articles/workflow-tutorial
10/26
8/25/2014
We will join these activities later after we have our notification ready.
http://erpschools.com/articles/workflow-tutorial
11/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
12/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
13/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
14/26
8/25/2014
http://erpschools.com/articles/workflow-tutorial
15/26
8/25/2014
Drag and drop both attributes to Send Item Details Message. If you miss this step
you will not be able to see the attribute values with in email.
http://erpschools.com/articles/workflow-tutorial
16/26
8/25/2014
17/26
8/25/2014
ion
http://erpschools.com/articles/workflow-tutorial
18/26
8/25/2014
DECLARE
lv_id
NUMBER
:= :NEW.inventory_item_id;
lv_item_segment1
VARCHAR2(100)
:= :NEW.segment1;
lv_itemtype
VARCHAR2(80)
:= :NEW.item_type;
lv_user_id
NUMBER
:= -1;
lv_itemkey
VARCHAR2(10);
lv_orgid
NUMBER
error_msg
VARCHAR2(2000);
10 error_code
:=2;
NUMBER;
11 BEGIN
12 lv_user_id := fnd_global.user_id;
13 lv_orgid := fnd_global.org_id;
14 lv_itemkey := 1132; -- This should be unique value
15 ERP_DEMO.LAUNCH_WORKFLOW('ERP_DEMO'
16 ,lv_itemkey
17 ,'ERPSCHOOLS_PROCESS' --process name
18 ,lv_id
19 ,lv_orgid
20 ,lv_item_segment1
21 );
22 EXCEPTION WHEN OTHERS THEN
23 error_code := SQLCODE;
24 error_msg
:= SQLERRM(SQLCODE);
25 RAISE_APPLICATION_ERROR(-20150,error_msg);
26 END;
PROCEDURE LAUNCH_WORKFLOW
itemtype
IN VARCHAR2,
itemkey
IN VARCHAR2,
process
IN VARCHAR2,
item_id
IN NUMBER,
org_id
IN NUMBER,
item_segment1
IN VARCHAR2
10 );
11 END ERP_DEMO;
http://erpschools.com/articles/workflow-tutorial
19/26
8/25/2014
PROCEDURE LAUNCH_WORKFLOW(
itemtype
IN VARCHAR2,
itemkey
IN VARCHAR2,
process
IN VARCHAR2,
item_id
IN NUMBER,
org_id
IN NUMBER,
item_segment1
IN VARCHAR2
10 IS
11 v_master_form_link varchar2(5000);
12 v_item_number varchar2(100);
13 v_add_item_id varchar2(5000);
14 error_code varchar2(100);
15 error_msg varchar2(5000);
16 BEGIN
17 v_add_item_id := ' ITEM_ID="' || item_id || '"';
18 v_item_number := item_segment1;
19 v_master_form_link := v_master_form_link || v_add_item_id;
20 WF_ENGINE.Threshold := -1;
21 WF_ENGINE.CREATEPROCESS(itemtype, itemkey, process);
22 -- Get the value of attribute assigned in workflow
23 v_master_form_link := wf_engine.getitemattrtext(
24 itemtype => itemtype
25 ,itemkey
=> itemkey
26 ,aname
=> 'ERP_SEND_ITEM_FORM_LINK');
:= SQLERRM(SQLCODE);
IN VARCHAR2,
43 itemkey
IN VARCHAR2,
44 actid
IN NUMBER,
45 funcmode
IN VARCHAR2,
http://erpschools.com/articles/workflow-tutorial
20/26
8/25/2014
46 resultout
47 )
48 IS
49 v_GET_ITEM_NUMBER VARCHAR2(1000);
50 BEGIN
51 SELECT SEGMENT1 INTO V_GET_ITEM_NUMBER FROM MTL_SYSTEM_ITEMS_B WHERE ROWNUM =1;
52 WF_ENGINE.SetItemAttrText(itemtype, itemkey, 'ERP_ITEM_NUMBER',v_GET_ITEM_NUMBER );
53 -- you can use the get function as below.
54 --v_GET_ITEM_NUMBER := wf_engine.getitemattrtext(
55 --
56 --
,itemkey
=> itemkey
57 --
,aname
=> 'X_ATTRIBUTE');
58 resultout:='COMPLETE:'||'Y';
59 exception when others then
60 dbms_output.put_line('Entered Exception');
61 fnd_file.put_line(fnd_file.log,'Entered Exception');
62 END GET_ITEM_DETAILS;
63 END ERP_DEMO;
64 /
RELATED POSTS
A RT IC LE S /
21/26
8/25/2014
A RT IC LE S /
DataLoader Tutorial
33 COMMENTS
thirupathi
REPLY
shantanu jain
REPLY
Core Tamil
REPLY
Ammmaa Apdiya..
kartheeka
REPLY
abhi karthi
REPLY
sudhakar
REPLY
Aparna
REPLY
Can you please post such screenshots for discoverer tutorial for beginner
like where to write the query and all
javed khan
REPLY
Can you please post such screenshots for discoverer plus tutorial for
http://erpschools.com/articles/workflow-tutorial
22/26
8/25/2014
beginner like how to edit the query and how to create new worksheet and
how to define the LOV for the parameter like wiseAll related
informatin.
sreenivas
REPLY
Its good but but you missed the connectivity between start, function,
notification and end.
Its more usefull when yo provide such sreen shots for who ever wants to
do sample workflow development.
and its more usefull when you provide issues where you mostly will struck
up while developing workflow.
you site is very usefull for techical consultant.Keep it up our job my
friend.
Thanks
Sreenivas
REPLY
MILAN
REPLY
Waqas Hassan
REPLY
Hi,
I want to download Oracle Workflow Builder. How can i download this
software?
Regards.
Mahendar
REPLY
Use ful
but need brief intruduction about the used proces,,,,,
mahesh
REPLY
hi,
how to add request date date column in order workflow first table and this
column extracts information from order line request date..
PLZ help me
sreekanth
REPLY
shishu paul
REPLY
http://erpschools.com/articles/workflow-tutorial
23/26
8/25/2014
Raman
REPLY
Dear Sir,
Very good material, but small issue while saving the workflow,
can you help me out. Please find the error given below
382: Design Validation generated 1 warning(s). You may save
invalid definitions but they should not be used in running
process.
354: SAVE validation failed for activity
ERP_DEMO/ERP_ITEM_PROCESS.
352: Process must contain a start activity with no in
transitions.
Raman
REPLY
Jack
JU N 08, 2012 @ 00:51:38
aithya
REPLY
hi
good material oracle workflow
Nageswara Rao
REPLY
Hi Sir
This Example is very good.please tell me out deploy oracla apps.
sasha
REPLY
Sunil Mane
REPLY
I have tried this example. When I saved in data base and checked from
tables, get data from item_types,messages,attributes,processes. But i
cant get value for notification from WF_NOTIFICATIONS table. I have
created item in master organization and again checked but still not
getting value for notification and also from front end on workflow screen.
Can u help me to resolve it.
Puspendu Das
REPLY
abhi
MA Y 21, 2013 @ 21:47:26
Great . document
Regards
http://erpschools.com/articles/workflow-tutorial
24/26
8/25/2014
Abhi
Subhan
REPLY
This is very use full material and very easy for beginner.
Jagadekara Reddy
REPLY
HI RAMAN,
DOUBLE CLICK ON START ICON NODE TAB GIVE START/END AS START
AND END FOR END ICON THEN IT WILL VALIDATE
Abid
REPLY
Abid
REPLY
Mahtab
REPLY
chandu
JU N 11, 2014 @ 14:20:08
chandu
REPLY
Priya MP
REPLY
venkat
REPLY
Hi Sir,
Thanks for your effort
LEAVE A REPLY
http://erpschools.com/articles/workflow-tutorial
25/26
8/25/2014
YOUR NAME
YOUR EMAIL
YOUR WEBSITE
POS T C OM M E NT
B AC K TO TOP
TAGS
Add ADF AP
API
ar
o2c
iexpense
OAF OAF Page om Oracle Oracle Apps order to cash output payables payment batch
process Publisher R12 REceivables Remove responsibilities responsibility
http://erpschools.com/articles/workflow-tutorial
26/26