Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 13

Exercise 2

Decision Making using Lookup Types


Scenario 1:

Show selection of employees for a particular project based on skill set of required level. Create
a Lookup Type with Oracle APPS and SAP as two transitions whereby different skill sets are
assigned to message texts.

Assumptions: This workflow does not require a database table or procedure.


Solution :
Workflow Item Type
Internal Name:
Description:
Persistence Type:
Number of Days:

WF_EX2
Workflow Lookup Type Ex-2
Temporary
0

Workflow Process
Internal Name:
Description:

WF_EX2_P
Workflow Lookup Type Ex-2 Process

Create an attribute in the order mentioned below:


Attributes:
Message Text
Internal Name: MSG_TEXT
Display Name: Message Text for Skill Set
Description:
Message Text for Skill Set
Type:
Text
Length:
100

Create a new notification for this workflow.


Activity Tab
Internal Name:
WF_EX2_N
Display Name:
Workflow Lookup Notification Ex-2
Description:
Workflow Lookup Notification Ex-2
Icon:
NOTIFY.ICO
Function Name:
Function Type:
Result Type:
<None>
Message:

Create a new message for the workflow and attach it to the notificationWF_EX2_N
Activity Tab
Internal Name:
WF_EX2_MSG
Display Name:
Workflow Lookup Message Ex-2
Description:
Priority:
Normal

Body Tab
Subject:
Text Body Tab
Text:

Project Requirement Info


Dear Sir/Madam,

As our esteemed client is having various requirements of skilled professionals as under:


&MSG_TEXT
Warm Regards
Sr. Tech Consultant

Drag-and-Drop the attributes mentioned in the Item Type Attributes section to the Message section. Check if all
the attributes mentioned in the Message body are appearing under Message section.
Create a new Lookup Type for the workflow WF_EX2
Lookup Type Tab
Internal Name:
WF_EX2_LKP
Display Name:
Workflow Lookup Type
Click on Ok to save the Lookup Type

Create a new Lookup Codes for the workflow WF_EX2


Lookup Code Tab
Lookup Type:
Workflow Lookup Type (This value is protected)
Internal Name:
OA
Display Name:
Oracle APPS 11i

Click on Ok to save the Lookup Type


Lookup Code Tab
Lookup Type:
Internal Name:
Display Name:

Workflow Lookup Type (This value is protected)


SAP
SAP Enterprise Ed-2

Click on Ok to save the Lookup Type

Modify the Notification WF_EX2_N as under:


Result Type
Workflow Lookup Type
Message Area
Workflow Lookup Message Ex-2
Click on OK button.

Select MSG_TEXT attribute of the Message section and change the following:
Default Region
Type:
Item Attribute
Value:
(eg. Message for Skill Set)
Create an attribute in the order mentioned below:
Attribute:
Message:
WF_EX2_MSG
Internal Name: MY_RES
Display Name:
My MSG Result
Description:
My MSG Result
Type:
Lookup
Source:
Respond
Lookup Type:
Workflow Lookup Type

Right-click on the message WF_EX2_MSG and choose the properties option. Choose the Result Tab
and change the following:
Result Tab
Display Name:
MY_MSG
Description:
Message Result
Lookup Type:
Workflow Lookup Type
You should get a RED tag for the message WF_EX2_MSG and message attribute MY_MSG
Drag-and-Drop the Notification WF_EX2_N to the process window between the START & END functions.
Drag-and-Drop an End function in the process window parallel to the earlier End from WF Standard Functions.
Right-click on the new End function and select the properties option. Change to the Node Tab in navigator
control properties and do the following:
Start/End:

End (from Normal)

Click on Ok button
Draw a transition from Start function till the Notification.
Draw a similar transition from Notification to the (first) End function and select one of the Lookup Codes, which we
have created, in the same way repeat for the next lookup code.
Draw a transition from Notification to the (second) End function and select the Default option from the Lookup
Codes.

In the Process window, right-click on the Notification and choose the properties option. Select the Node Tab
and in the Performer region do the following:
Node Tab:
Performer Region:
Type:
Value:

Constant
SYSADMIN (Pls type this in CAPITALS only).

Click on OK button to save


Logon to APPS (11.5.9) as SYSADMIN and choose the Workflow Administrator Web Applications
Choose the Launch Processes option from the Workflow Function.
Choose through the Find Option or Ctrl+F, the process Workflow Notification Ex-1 and click on it.
When a window appears key in the following:
Initiate Workflow WF_EX2
Item Key:
A2
User Key:
A2
Process Name:
Workflow Lookup Type Ex-2 Process
Process Owner:
SYSADMIN
Message Text for Skill Set: Workflow, Interface, Reports and Forms Customization
Click on Ok button to launch the process.
When Activities List window appears click on View Diagram to see the Workflow.
If there is no error in workflow you will see the transition is colored as green.
Go back to APPS menu and select the Worklist option from the Workflow Function to see a similar output.

Go to the Worklist Option and search for the notification. On opening the notification please RESPOND to the
options given at the bottom of the notification.

You might also like