This action might not be possible to undo. Are you sure you want to continue?
Presented by: Wallace Harrell METHODS Technology Solutions, Inc.
Oracle Workflow is a series of tools designed to facilitate the creation and management of business process models. Oracle Workflow is comprised of:
Workflow engine – implements the workflow process definitions at runtime monitoring the states and coordinating the routing of process activities
The workflow engine is a database package containing procedures run on a schedule. The workflow engine recognizes activities meeting specific criteria and only operates on those activities. Through the use of standard APIs, background engines can be scheduled to target activities meeting other specified criteria, such as deferred and stuck status activities.
Workflow Monitor – allows monitoring and administration of defined workflows via standard web browser capable of supporting Java Workflow Builder .Components (Cont.) Business Event System – utilizes Oracle Advanced Queuing infrastructure to communicate information between systems • • Employs agents watching for subscriptions to user-defined events Event information propagated across systems via queues using specified payload (defined data structure).graphical tool that facilitates the modeling of business processes with simple drag-and-drop operations .
Oracle Workflow allows you to: Model sophisticated business processes that include looping. including the activities occurring as part of the process and the relationships of those activities. parallel processing. rendezvous. branching. and more Choose transitional paths based on the result of stored procedures (PL/SQL or Java) Integrate the business process with the supporting business application through the use of standard APIs .What can it do? Oracle Workflow manages business processes according to defined rules (workflow process definitions).
and the path taken to get there Help with gathering metrics on the activities comprising the business process Receive and respond to notifications via email .) Visualize the stage of the business process that has been reached.What can it do? (Cont.
Oracle Workflow Builder Oracle Workflow Builder displays a navigator window with a hierarchy tree containing the following tree nodes: Item Type – classification of the components that comprise the workflow process definition Attributes – property associated with a given item type that acts as a global variable that can be referenced or updated by any activity within a process or externally through the use of standard APIs Processes – a collection of activities in a specific relationship Notifications – allow for definition of how a message will be used within the process model as an activity .
usually performing fully automated process steps Events – a business event from the Business Event System Messages – defines the information conveyed in a notification Lookup Types –a static list of values that can be used by messages and activity attributes .Oracle Workflow Builder (Cont.) Functions – defined by the PL/SQL or external program it calls.
Create a Process Definition A simple workflow process definition can be created in a few easy steps… Define an item type and an initial process using the Quick Start Wizard from the File menu .
number.) Define necessary attributes Item type attributes can be defined as types such as text. (Cont. lookup …. date.Create a Process Def. The value item can be used to set a default value for the attribute . role.
right click. select the lookup type.) Define necessary lookup types and codes Right click on the Lookup Types node and select New from the menu After the lookup type has been created.Create a Process Def. and select New Lookup Code from the menu . (Cont.
go to the Body tab and enter the text (or HTML) desired Attributes are referenced within the body by using “&” Attributes referenced in the body must also be dragged from the attribute node and dropped in the message . (Cont.Create a Process Def.) Define messages to convey information Right click on the message node and select New After creating the message.
) Define notifications to deliver the messages • Drag and drop the message onto the Notification node to initiate creation of a notification based on a specific message .Create a Process Def. (Cont.
(Cont.Create a Process Def.) Drag-and-Drop notifications onto the workflow diagram • • Organize the activities Draw transitions as required by the necessary organization of the activities by pressing down the right mouse button on the beginning point of the transition and dragging the mouse to the next step then releasing the mouse button .
(Cont.) • • Double click on the notification activities to add the performer (recipient) on the Node tab Hovering over an activity will display important information about the activity .Create a Process Def.
) Verify the workflow process definition by pressing the blue check mark icon on the toolbar Save the workflow process definition to the database by pressing the yellow disk icon on the toolbar and entering the Workflow Administrator account information .Create a Process Def. (Cont.
Workflow Monitoring The Workflow Monitor can be used to test a workflow process definition Open web browser and enter address for workflow monitor <webagent>/wfa_html.home Login to Oracle Workflow as user with admin privileges .
showing a listing of all executable item types Click the item type link for the item type to be launched .) Click on the Launch Processes Link • • The Launch Process window will appear.Workflow Monitoring (Cont.
) The Initiate Workflow page appears. listing item type attributes that can be initialized when the workflow is executed Press OK to execute the worklow .Workflow Monitoring (Cont.
Workflow Monitoring (Cont. the Activities List page is automatically displayed • • Clicking on the activity link WH Demo will display the Item Type Definition page which shows process details Clicking on the View Diagram button will display our workflow .) Once the workflow is executed.
Workflow Monitoring (Cont.) Press the Home icon to go back to the Workflow Monitoring home page Press the Find Notifications link to bring up the notification search page Enter search criteria and press OK Worklist page appears displaying matching notifications Select subject link to display a notification .
Workflow Monitoring (Cont.) .
Workflow Monitoring (Cont.) The Reviewer notification that was sent as part of the workflow initiation requires a response The bottom frame of the notification contains response buttons based on the lookup type selected for the notification result The selected response will dictate the transition path taken from the Review notification activity .
) The workflow image at the top right is pre-approval The workflow image at the bottom right is post-approval • The Approve button was pressed on the Reviewer notification causing the approve transition path to be taken .Workflow Monitoring (Cont.
flow will not continue until all transitions to the function are completed Or – function facilitating the rendezvous of parallel threads.Standard Functions Oracle Workflow Builder comes equipped with several built-in worklows and demos. a workflow process definition used to define standard functions usable within other workflow process definitions. text. allows continuation or exit of the looping flow based on counter Comparison operations – functions used to compare date. allows branching based on the result of the comparison . one of which is WF_STANDARD. and number values to corresponding item attribute types. flow will continue with completion of the first transition to the function Loop Counter – function used to count the number of times a looping flow has transitioned through. WF_STANDARD includes functions such as: • • • • And – function facilitating the rendezvous of parallel threads.
Standard Functions • • XML Get Tag Value – function facilitating the retrieval of data from an event attribute and storage in another item attribute XML Comparison operations – similar to regular comparison operations. except the comparisons utilize data retrieved from events for path determination Assign – function allowing a value for an item attribute to be set within the worklfow process at run-time Wait – function that will hold a transition from completion until a specified period or date has passed Defer Thread – function used to force all following activities on the same thread to be deferred for the background engine to run • • • .
Standard APIs There is an entire library of standard APIs.GetItemAttrText – used to retrieve the value of a text item attribute from within a workflow process and return it to PL/SQL . but here are a few examples… • • • • • wf_engine.SetItemAttrText – used to set the value of a text item attribute within a workflow process externally from PL/SQL wf_engine.StartProcess –initiates the created workflow process (used in tandem with CreateProcess) wf_engine.background – runs a “one-time” background engine wf_engine.CreateProcess –creates an instantiation of the specified workflow process wf_engine.
IN VARCHAR2. IN VARCHAR2. IN OUT VARCHAR2) . IN NUMBER.Standard APIs (Cont.) Another type of standard API is the user-defined function/procedure having pre-defined parameters and return types (where applicable) • A procedure with the following parameter list can be called from within a workflow process and given a user specified name (itemtype itemkey actid funcmode resultout IN VARCHAR2.
Access Explanation Review the “Allow modifications of customized objects” checkbox in Help menu • • Checked value means workflow builder is operating in upload mode Unchecked value means workflow builder is operating in upgrade mode .
) Selected Check box Resulting Levels Who can modify object NONE Customization=0 Access=100 Protection=1000 Updatable by any access level Preserve Customizations Customization=100 Access=100 Protection=1000 Only updatable by access level 100-1000.Access Explanation (Cont. also by 0-99 if “Allow modifications..” checked Updatable by access level 0-100 only Lock at this Access Level Customization=0 Access=100 Protection=100 BOTH Customization=100 Access=100 Protection=100 Updatable by access level 100 only. also by 0-99 if “Allow modifications..” checked .