Upload
yogita-sarang
View
360
Download
8
Tags:
Embed Size (px)
DESCRIPTION
oracle workflow tutorial
Citation preview
Copyright Oracle Corporation, 2000. All rights reserved.®
Defining Item Types, Item Attributes, and Lookup Types
Defining Item Types, Item Attributes, and Lookup Types
Copyright Oracle Corporation, 2000. All rights reserved.®
ObjectivesObjectives
After this lesson, you should be able to:
• Create an item type
• Create an item type selector/callback function
• Create item type attributes
• Create lookup types
After this lesson, you should be able to:
• Create an item type
• Create an item type selector/callback function
• Create item type attributes
• Create lookup types
Copyright Oracle Corporation, 2000. All rights reserved.®
Create a New Workflow Process Definition
Create a New Workflow Process Definition
To create a new workflow process:To create a new workflow process:
• Define the item type of the processDefine the item type of the process
• Define item type attributes for the processDefine item type attributes for the process
• Define lookup types and lookup codesDefine lookup types and lookup codes
• Define messagesDefine messages
• Define message attributesDefine message attributes
• Define the activities in the process as Function, Define the activities in the process as Function, Notification, or ProcessNotification, or Process
• Diagram the relationship of the activitiesDiagram the relationship of the activities
Copyright Oracle Corporation, 2000. All rights reserved.®
Top-Down DesignTop-Down Design
• Draw the process diagram first and then define the underlying components.
• Create new activities while drawing a process diagram.
• View activity and process activity property pages from one dialogue.
• Property page includes all tabs for base activity of the node and the usage of the individual node.
• Save a partially completed or errored process and complete or correct later.
• Draw the process diagram first and then define the underlying components.
• Create new activities while drawing a process diagram.
• View activity and process activity property pages from one dialogue.
• Property page includes all tabs for base activity of the node and the usage of the individual node.
• Save a partially completed or errored process and complete or correct later.
Copyright Oracle Corporation, 2000. All rights reserved.®
Quick Start WizardQuick Start Wizard
Copyright Oracle Corporation, 2000. All rights reserved.®
Quick Start Wizard (Continued)Quick Start Wizard (Continued)
Copyright Oracle Corporation, 2000. All rights reserved.®
Define an Item TypeDefine an Item Type
Copyright Oracle Corporation, 2000. All rights reserved.®
Item Type Selector/Callback FunctionItem Type Selector/Callback Function
• The Workflow Engine can call the selector/callback function with one of three commands:
– RUN: selects the appropriate process to start
– SET_CTX: sets any item type context information needed for a function activity, prior to executing the function activity in a new database session
– TEST_CTX: determines whether a form can be launched with the current item type context information just before the Notification Detail Web page launches a reference form
• The Workflow Engine can call the selector/callback function with one of three commands:
– RUN: selects the appropriate process to start
– SET_CTX: sets any item type context information needed for a function activity, prior to executing the function activity in a new database session
– TEST_CTX: determines whether a form can be launched with the current item type context information just before the Notification Detail Web page launches a reference form
Copyright Oracle Corporation, 2000. All rights reserved.®
Define Item Type AttributesDefine Item Type Attributes
• What should be considered an item type attribute?
– Information required by notification messages, such as the display format of a currency value
– Information required by function activities, such as values that link back to applications data like a person_ID
– Information maintained by a workflow activity, such as activities that identify who to forward information to and from in a loop construct
• What should be considered an item type attribute?
– Information required by notification messages, such as the display format of a currency value
– Information required by function activities, such as values that link back to applications data like a person_ID
– Information maintained by a workflow activity, such as activities that identify who to forward information to and from in a loop construct
Copyright Oracle Corporation, 2000. All rights reserved.®
Define Item Type Attributes (continued)Define Item Type Attributes (continued)
Copyright Oracle Corporation, 2000. All rights reserved.®
Form AttributesForm Attributes
Click on form icon to launch Oracle Applications form
Copyright Oracle Corporation, 2000. All rights reserved.®
Document AttributesDocument Attributes
• PL/SQL document: a document representing data from the database, generated from a PL/SQL procedure.
– Ideal for use when document content varies
– For example, purchase orders with variable number of lines or sales orders with variable lines, discounts, and shipping addresses
– DM document: a document managed by an external document management system
• PL/SQL document: a document representing data from the database, generated from a PL/SQL procedure.
– Ideal for use when document content varies
– For example, purchase orders with variable number of lines or sales orders with variable lines, discounts, and shipping addresses
– DM document: a document managed by an external document management system
You can specify the following types of documents in You can specify the following types of documents in the default value field: the default value field:
Copyright Oracle Corporation, 2000. All rights reserved.®
URL AttributesURL Attributes
Copyright Oracle Corporation, 2000. All rights reserved.®
URL AttributesURL Attributes
Click on attachment icon to launch Web browser
Copyright Oracle Corporation, 2000. All rights reserved.®
Define Lookup TypesDefine Lookup Types
Copyright Oracle Corporation, 2000. All rights reserved.®
Define Lookup CodesDefine Lookup Codes
Copyright Oracle Corporation, 2000. All rights reserved.®
Practice OverviewPractice Overview
This practice covers the following topics:
• Using the QuickStart Wizard
• Drawing transitions
• Saving a Process
This practice covers the following topics:
• Using the QuickStart Wizard
• Drawing transitions
• Saving a Process
Copyright Oracle Corporation, 2000. All rights reserved.®
Guided Practice Using the Quick Start Wizard
Guided Practice Using the Quick Start Wizard
1. Create a new Item Type with an internal name of “WFVACXX” where XX is the unique number assigned to your station. The display name should also include “XX” to make it easy for you to identify your Item Type. For example, the item type internal name could be “WFVAC02” and the display name “02 Vacation Proposal”. The process internal name could be “WFVAC02_PROCESS” and the display name also “02 Vacation Proposal”.
Hint: Use menu option File -> Quick Start Wizard
1. Create a new Item Type with an internal name of “WFVACXX” where XX is the unique number assigned to your station. The display name should also include “XX” to make it easy for you to identify your Item Type. For example, the item type internal name could be “WFVAC02” and the display name “02 Vacation Proposal”. The process internal name could be “WFVAC02_PROCESS” and the display name also “02 Vacation Proposal”.
Hint: Use menu option File -> Quick Start Wizard
Copyright Oracle Corporation, 2000. All rights reserved.®
Guided Practice Drawing Transitions
Guided Practice Drawing Transitions
2. In the Process Diagram,
a. The process diagram is automatically created with Start and End nodes. The diagram automatically opens.
b. Select the Start node and draw a transition to the End node by holding down your right mouse button and dragging your mouse from the Start node to the End node. Let go of the right mouse button.
c. Close the Process Diagram window.
2. In the Process Diagram,
a. The process diagram is automatically created with Start and End nodes. The diagram automatically opens.
b. Select the Start node and draw a transition to the End node by holding down your right mouse button and dragging your mouse from the Start node to the End node. Let go of the right mouse button.
c. Close the Process Diagram window.
Copyright Oracle Corporation, 2000. All rights reserved.®
Guided Practice Saving Your Process
Guided Practice Saving Your Process
3. In the Builder Navigator,
a. Verify the definition using File -> Verify.
b. Save your new data store and Item Type to a workflow definition file using File -> Save As...
c. Save your Item Type and process definition to a test database using File -> Save As...
3. In the Builder Navigator,
a. Verify the definition using File -> Verify.
b. Save your new data store and Item Type to a workflow definition file using File -> Save As...
c. Save your Item Type and process definition to a test database using File -> Save As...