Anda di halaman 1dari 13

Oracle Workflow

Solutions

Part 1 - Exercise 1
Simple Notification
Scenario 1: Send a notification along with a message to the client about the project status.
Assumptions: This workflow does not require a database table or procedure.
Solution :
Workflow Item Type
Internal Name:
Description:
Persistence Type:
Number of Days:

WF_EX1
Workflow Notification Ex-1
Temporary
0

Oracle Workflow

Workflow Process
Internal Name:
Description:

Solutions

WF_EX1_
Workflow Notification Ex-1 Process

Create the attributes in the order mentioned below:


Attributes:
Project Code
Internal Name: PROJ_CD
Display Name: Project Code
Description:
Project Code
Type:
Text
Length:
5

Oracle Workflow

Project Name
Internal Name:
Display Name:
Description:
Type:
Length:

Solutions

PROJ_NM
Project Name
Project Name
Text
30

Oracle Workflow

Solutions

Project Completion Date


Internal Name: PROJ_CDT
Display Name: Project Completion Date
Description:
Project Completion Date
Type:
Date
Length:
dd-mon-yyyy

Oracle Workflow

Project Status
Internal Name:
Display Name:
Description:
Type:
Length:

Solutions

Text
15 Characters
PROJ_STAT
Project Status
Project Status
Text
15

Oracle Workflow

Solutions

Create a new notification for this workflow


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

Oracle Workflow

Solutions

Create a new message for the workflow and attach it to the notificationWF_EX1_N
Activity Tab
Internal Name:
WF_EX1_MSG
Display Name:
Workflow Notification Message Ex-1
Description:
Priority:
Normal
Body Tab
Subject:
Text Body Tab
Text:

Project Status Info


Dear Sir/Madam,
The Project &PROJ_CD, &PROJ_NM is &PROJ_STAT on &PROJ_CDT.
Warm Regards
Sr. Tech Consultant

Oracle Workflow

Solutions

Oracle Workflow

Solutions

Modify the Notification WF_EX1_N and in the message area select the Message Workflow Notification
Message Ex-1 and click on OK button.

Drag-and-Drop the Notification WF_EX1_N to the process window between the START & END functions.
Draw a transition from Start function till the Notification.
Draw a similar transition from Notification to the End function.

Oracle Workflow

Solutions

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 to save.

10

Oracle Workflow

Solutions

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 the Message section.
Select each attributes of the Message section and change the following:
Default Region
Type:
Item Attribute
Value:
(eg. Project Code)

Change all the attributes of the message section, for the respective Item Type Attributes.
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_EX1
Item Key:
A1
User Key:
A1
Process Name:
Workflow Notification Ex-1 Process
Process Owner:
SYSADMIN
Project Code:
10010
Project Name:
Oracle APPS 11i Migration
Project Completion Date:
04-DEC-2003

11

Oracle Workflow
Project Status:

Solutions
Completed

Click on Ok 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.

12

Oracle Workflow

Solutions

13

Anda mungkin juga menyukai