20
Copyright Oracle Corporation, 2000. All rights reserved. ® Defining Item Types, Item Attributes, and Lookup Types

oracle workflow tutorial

Embed Size (px)

DESCRIPTION

oracle workflow tutorial

Citation preview

Page 1: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Defining Item Types, Item Attributes, and Lookup Types

Defining Item Types, Item Attributes, and Lookup Types

Page 2: oracle workflow tutorial

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

Page 3: oracle workflow tutorial

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

Page 4: oracle workflow tutorial

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.

Page 5: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Quick Start WizardQuick Start Wizard

Page 6: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Quick Start Wizard (Continued)Quick Start Wizard (Continued)

Page 7: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Define an Item TypeDefine an Item Type

Page 8: oracle workflow tutorial

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

Page 9: oracle workflow tutorial

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

Page 10: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Define Item Type Attributes (continued)Define Item Type Attributes (continued)

Page 11: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Form AttributesForm Attributes

Click on form icon to launch Oracle Applications form

Page 12: oracle workflow tutorial

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:

Page 13: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

URL AttributesURL Attributes

Page 14: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

URL AttributesURL Attributes

Click on attachment icon to launch Web browser

Page 15: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Define Lookup TypesDefine Lookup Types

Page 16: oracle workflow tutorial

Copyright Oracle Corporation, 2000. All rights reserved.®

Define Lookup CodesDefine Lookup Codes

Page 17: oracle workflow tutorial

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

Page 18: oracle workflow tutorial

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

Page 19: oracle workflow tutorial

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.

Page 20: oracle workflow tutorial

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