Oracle Workflow

download Oracle Workflow

of 63

  • date post

  • Category


  • view

  • download


Embed Size (px)

Transcript of Oracle Workflow

Oracle Workflow

Version 1.0


Agenda Overview Workflow Builder

Workflow Components Create Workflow Process Item Type - Standard Workflow Architecture Workflow Directory Services Workflow Monitor Workflow Item attributes Business Event System Workflow development Approaches Workflow Technical Architecture

Version 1.0


Objectives Know what is Oracle workflow Know how business processes are modelled with workflow builder Know how workflow processes can be monitored Know architecture of Oracle workflow

Version 1.0


Overview Oracle Workflow is a Business Process Management tool. It is used for modeling, automating & monitoring Business processes, during which documents, information or tasks are passed from one participant to another for action, according to a set of procedural rules. Here is a sample workflow process diagram..

Version 1.0


Overview (Contd.).Oracle Workflow accomplishes these important business requirements: 1. Models Business Process with Rules :

Oracle Workflow lets you model sophisticated business processes with loop, branch, parallel flows and then decompose into subflows. Oracle Workflow can decide which path to take based on the result of a stored PL/SQL procedure. Routes information through Oracle Apps for action or notification. The attachments include self-service Web page and Application forms. Delivers electronic notifications to any Oracle Applications user. Delivers electronic notifications to any e-mail or Internet user. Oracle Workflow lets you set up subscriptions to business events which can launch workflows. You can communicate events among systems within your own enterprise and with external systems as well to achieve complex system integration scenarios.5

2. Routes Information for necessary Action :

3. Delivers Electronic Notifications :

4. Integrating Systems

Version 1.0

Workflow Builder

Oracle Workflow Builder is a graphical tool that lets you create, view, or modify abusiness process with simple drag and drop operations.

Version 1.0


Workflow Components Data Store: A database connection or flat file that holds a workflow processdefinition.

Item Type: A specific business document or transaction eg. Purchase order can be

an item type. All the workflow components mentioned below are grouped together as an Item type. Item Type Attribute: A feature of the item type which stores information that can be globally referenced by any activity in a process. Also referred to as an item attribute. Process Activity: A series of actions that need to be performed to accomplish a business goal. A process is represented by a workflow diagram. A process can include function activities, notification activities, event activities, and other subprocesses. Event Activity: A business event modeled as an activity so that it can be included in a workflow process. Notification Activity: A unit of work that requires human intervention. A notification activity sends a message to a performer. Function Activity: An automated unit of work, usually defined as a PL/SQL stored procedure. A function activity can also run an external function. In the standalone version of Oracle Workflow, a function activity can also run a Java program on the middle tier. Message: The information sent by a notification activity. The message may request the performer to do some work or may simply provide information.

Version 1.0


Workflow Components (Contd.). Lookup Type: A list of values that can be referenced by any activity in a workflowprocess. The values in the list are called lookup codes.

Transition: The relationship that defines the completion of one activity and theactivation of another activity within a process. In a process diagram, a transition is represented as an arrow between two activities.

Item: A specific business document or transaction. For example, purchase order canbe an item type while a purchase order identified by a particular ID number is an item of that item type.

Process Instance: A unique item being managed by a process.

Version 1.0


Workflow Components (Contd.).Process: F T N Y Function: PL/SQL code returns Result Notification: Message Result T Result F Result B Result A

}Result Type = Lookup Type Result Y Result N

}RESULT Resp 1 Resp 2

FYI Response Required

Send Attributes Send and Respond Attributes


Event: Event MessageVersion 1.0

Receive Raise Send


(No Result)

Create Workflow Process

Version 1.0

Version 1.0


Create Item Type Open or create a data store in Navigator window. Right click and create an item type. Assign an eight character internal name in upper case without colons or spaces. Specify a persistence type of temporary or permanent. If temporary, then provide the no. of days after which its audit trail will be purged, once the workflow item instance is completed. If any workflow item type has more than one runnable processes, the selector function identifies the specific process the workflow Engine should execute when a workflow is initiated for this item type. Select the Access tab page to set the access and customization levels for this item type.

Version 1.0


Create Item Attribute Create an item attribute , assign it an internal name which must be uppercase, maximum 8 characters. this is not updatable and should not have colons or spaces. It acts as a global variable that can be referenced or updated by any activity within a process.

Version 1.0


Create Lookup Type A lookup type is a static list of values. These lists can be referenced as Result type by function and notification activities. A message attribute can reference a lookup type as a means of providing a list of possible responses to the performer of a notification. We can create an Approval lookup type, which will have 2 lookup codes viz: Approved & Rejected.

Version 1.0


Create Lookup Code Lookup codes represent the actual values in a lookup type. The lookup codes for a lookup type are defined in the navigator tree beneath the lookup type. Right click on the lookup type and choose New lookup code to create a APPROVED lookup code.

Version 1.0


Create Message A message is what a notification activity sends to a role in a workflow process. A message can prompt a user for a reply or an action to take that determines what the next activity in the process should be. The recipient of a workflow message is called the performer, which is defined in Notification node.

The subject can include message attributes that get token replaced with runtime values. To include a message attribute, use an ampersand (&) followed by the message attributes internal name. You can enter plain text or html formatted message in the body.

Version 1.0


Create Message Result and Attributes Specify a display name and description for Message Result. Select a lookup type from the poplist field. The lookup type you select should be identical to the lookup type specified for the notification activitys result type.

Enter message attribute internal name. Specify Send or Respond in the Source field to indicate whether this attribute should send information or prompt a recipient for a response. The Display Name appears as the response prompt, If this is a Respond message attribute.

Version 1.0


Create Notification Activity The message sent by a notification activity can simply convey information or it can require a response. If the message requires a response, then create Send message attributes that provide enough information for the recipient to respond, and also create Respond message attributes that prompt a response. If you plan to assign this notification to a role consisting of multiple users and you want to send an individual copy of this notification to each user in the role, then check Expand Roles. If you uncheck Expand Roles, then only one copy of the notification is delivered to the role as a whole. If you provide a PL/SQL procedure as Function, then it lets you add processing logic to the notification activity and also known as a post-notification function.

Version 1.0


Create Function Activity The PL/SQL procedure for a function activity can return some result that determines the next transition the Workflow Engine takes. That result should be defined as a code in a lookup type.

Version 1.0


Create Event Activity An event activity can either receive, raise, or send a business event from the Business Event System. An event activity does not have a result, but you can branch on the contents of an event message using comparison activities provided in the Standard item type.

Version 1.0


Create Process Activity

You can drag and drop activities from the navigator tree into the process window or create activities directly in the process window by right-click and choosing the option. You define transitions between activities by drawing arrows from one node to the next by clicking the right mouse button and drawing it to the next activity while keeping it pressed. Notification, function, event, and process activities make up the nodes of a process. 20

Version 1.0

Workflow Technical Architecture

Version 1.0

Version 1.0



Version 1.0