Professional Documents
Culture Documents
Oracle Workflow Builder is the development tool for Oracle Workflow lets you
graphically define and customize workflow definitions.
Oracle Workflow Builder consists of two parts:
Navigator Tree
The navigator provides a tree structure for the workflow definition, with
the highest level being the data store. Next is the item type. The lower
levels are the workflow objects themselves. All these objects are
organized into their respective categories within the tree.
Process Diagram
A process is represented by a workflow diagram.
The diagram is made up of icons representing workflow objects. A
diagram is built by dragging the objects from the navigator window
and dropping them into the process diagram window.
18/10/10
Workflow Components
Data Store:
A database connection or flat file that holds a workflow process
definition.
You can save workflow definitions to a flat file for back up.
Item Type:
A grouping of workflow components into a high level category. All
components of a workflow process must be associated with a specific
item type. An item type can contain multiple processes.
Item Type objects:
Lookup types
A static list of values that can be referenced by any
activity in a workflow process. The values in the list are
called lookup codes.
Attributes:
A feature of the item type which stores information that
can be globally referenced by any activity in a process.
It acts as a global variable that can be referenced or
updated by any activity within a process.
Messages:
The information sent by a notification activity. The
message may request the performer (the role receiving
the message) to do some work or may simply provide
information.
Message attributes:
Specify either Send or Respond in the Source field
to indicate whether the attribute should send
information to the recipient or prompt the recipient
for a response, respectively. You should set the
source to Send for any message attributes that you
include in the message subject and message body
for token substitution
A message can have multiple Respond attributes.
If you define a result for a message, the result is
automatically defined as a special Respond
attribute with the internal name RESULT.
The Notification System uses a message's Respond
attributes to generate the response section of the
notification.
The icon for a Respond attribute in the navigator
tree includes a red question mark in its lower left
corner to distinguish it from Send attributes. The
icon for a message in the navigator tree includes a
red question mark in its lower left corner when the
message has a result defined for it
You can optionally include message attributes in
the subject or body by specify the internal name of
the message attribute and precede that internal
name with an ampersand (&).
If the message only provides information (such as a
For Your Information (FYI) message), then create
and include Send message attributes in the
message as necessary.
If the message requires a response, then create
Send message attributes that provide enough
information for the recipient to respond, and also
Functions
An automated unit of work, usually defined as a
PL/SQL stored procedure or an external Java
function.
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.
Enter the name of the PL/SQL stored procedure that
you want the Workflow Engine to execute for this
function activity. Use the following format:
<package_name>.<procedure_name>
Standard API for PL/SQL Procedures Called by
Function Activities : See
StandardAPIforPLSQLProceduresCalledbyFunctionAc
tivities.Sql
If you are defining a function activity during the
process design phase and you do not yet know the
package and procedure name for the PL/SQL
procedure you want the activity to call, you can
enter WF_STANDARD.NOOP as a placeholder in the
Function Name field. WF_STANDARD.NOOP is a
standard Workflow PL/SQL procedure that sets the
resultout parameter to wf_engine.eng_completed
and returns
Optionally, specify a relative cost, in seconds, that
represents how long the procedure takes to run. If
the cost exceeds the Workflow Engine threshold,
the activity will be deferred for later processing by
a background engine
The default Workflow Engine threshold is 500
milliseconds. This value is equivalent to 0.5 when
compared with function activity costs entered in
the function properties in the Workflow Builder
The Workflow Engine executes one activity at a
time. If possible, you should avoid placing costly
activities along the critical path of a process.
Instead, place costly activities on parallel branches
in a process, where they can be deferred for a
background engine to process later.
Events
Receive: Receive an event from the Business Event
System.
Raise : Raise an event to the Business Event
System.
Send : Send an event directly from one Event agent
to another agent without re-raising the event to the
Business Event System.
In the process window, you can display information about
an activity by positioning your mouse over the activity.
You can toggle between the following two display modes in Oracle
Workflow Builder from the View menu:
Presentation mode: Oracle Workflow Builder shows the display names and
activity icons that you specify in the property page for each activity.
Developer mode: Oracle Workflow Builder shows internal names and standard
activity icons to assist you in developing large, complex processes.
You can also verify the definitions in the current data store at any time during
a Builder session.
Select Verify from the File menu or click the Verify button in the
Navigator toolbar
The Verify option is enabled in the File menu only when the navigator tree is
the current window.
Validation Performed by the Verify Command
The process contains at least one Start activity and one End activity.
All activity nodes marked as End nodes do not have any outgoing
transitions.
Each notification activity's result type matches the lookup type defined
for the message's RESULT message attribute.