Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Search web

Home Learning Topic > 3) Workflow Tutorial >


Learning Topic
1) Flexfield
10) How to Add
Third Party Web
Page Link to Oracle
Application Web
Page e are ready with our custom workflow definition and saved in database(Ref:- Custom Workflow Development ).Now we have to prepare pl/sql procedure that will
11) How to Create trigger our custom workflow.Our custom workflow will be triggered when it(pl/Sql procedure) will be called by any other processes(viz. from a web page or from any other
Global User Defined
pl/sql procedure etc).
Table(UDT)
12) How to Add
Element Value in The input parameter of this process must be as mentioned below.
Oracle Online 1) Person Id :- person id of the person who has submitted the request
Payslip
2) Leave Type:- Type of leave person has applied
13) How to
Enable/Disable 3) Leave From Date:- Start date of leave
Concurrent Program 4) Leave to Date:- End date of leave
Parameter
Dynamically
We are taking input to ensures that we received all the information that user entered in web page application and required for workflow process.
2) XML Publisher
3) Workflow Tutorial
Item Key
a) ABC of
Workflow
b) Requirement hen a workflow is triggered,It creates a instance of the workflow definition. To identify the instance of the workflow a string is required. The string that uniquely
Mapping &
Custom identifies the instance of the workflow definition is known as item-key. Item-key can be alpha-numeric.
Workflow Design
c) Custom Note:- Different item-type can have same item-key but for same item-type it is unique. Analogy can be drawn with concurrent program internal name and request id.
Workflow
Development
d) Triggering a
Development of Custom Procedure
custom
workflow he following tasks needs to be performed to trigger a custom workflow successfully
e) How To Take
Approver's Input 1) Create the process
f) How To Attach 2) Set attribute values
Document With 3) Start the process
Notification
4) commit transaction
g) How To Send
Notification To
Multiple Users 1) Create the process
h) How to Send Oracle provided us API to create the instance of the workflow definition process.
Reminder
wf_engine.createprocess(itemtype => <Internal name of item type>,
Notification to
Approver itemkey => <Item key value>,
4) Form process => <Internal name of process>
Personalization - );
How to Change Field
Name
5) iRecruitment Here v_process should be internal name of runnable process.Here it is ‘XX_TEST_PROC’.
Data Migration -
How To Migrate
Resume
6) How to Restrict
Agency from
entering Duplicate
Candidate
7)How to Change
User Password
8) How To
Customise Vacancy
Search in
iRecruitment-
Adding Subsidiary
Logo
9)Problem With
XML Parsing
Sitemap

2)Set attribute values

Once the process is created, it actually creates the instance of the workflow definition. Once the instance is created, we need to set attribute values. To set the attribute
values we need to call oracle provided workflow apis
wf_engine.SetItemAttrText(itemtype => <Internal name of item type>,
itemkey => <Item key value>,
aname =><Internal name of attribute>,
avalue =><Attribute value that need to set>);
wf_engine.SetItemAttrDate(itemtype => <Internal name of item type>,
itemkey => <Item key value>,
aname =><Internal name of attribute>,
avalue =><Attribute value that need to set>);
wf_engine.SetItemAttrnumber(itemtype => <Internal name of item type>,
itemkey => <Item key value>,
aname =><Internal name of attribute>,
avalue =><Attribute value that need to set>);

3)Start the process

wf_engine.startprocess(<Internal name of item type>type, <Item key value>);

4) Commit Transactions

commit;

Triggering Workflow from a pl/Sql block

nstead of trigerring workflow from a Web-page just for sake of illustration we will trigger workflow from a pl/sql block by passing necessary parameter values to our
TRIGGER_WORKFLOW procedure.

DECLARE
BEGIN
XX_TEST_LEAVE_PKG.TRIGGER_WORKFLOW(P_PERSON_ID => 14760
,P_LEAVE_TYPE => 'Seek Leave'
,P_LEAVE_FROM_DATE => '01-MAR-2011'
,P_TO_DATE => '04-MAR-2011'
);
END;

Once the above block is exceuted it will trigger the custom workflow and notification will go to the approver for approval.
Please see the screen shot below

To track the present status of the workflow follow the below mentioned navigation.
Login as (Sysadmin) >> Workflow Administrator Web Applications >> Status Monitor>>

Enter the internal name of item type of your workflow under "Type Internal Name" and click on "GO". You will find the list of workflows that was triggered. Select any of
them and click on View Diagram.
XX_TEST_LEAVE_PKG.pkg Suman Kalyan Malaker, v.1

Sign in | Report Abuse | Print Page | Powered By Google Sites

You might also like