You are on page 1of 13

workflow How to retry multiple errored workflow processes? What is the access level in workflow used for?

How do you define start and end functions in workflow? How does they differ from normal functions? Give me some workflow tables? What is the difference between a function and notification in workflow? I have sent two different notifications to two different users and I want to wait till both they are approved to send 3rd notification. How can you achieve it? What is item type and item key in workflow? How do you use attribute values in workflow messages? How do you use lookups in workflow? No related Articles found... What are roles in workflow and how they are used? Roles are simillar to email distribution lists. Roles holds group of users to send email. No related Articles found... How do you download or upload a workflow from a server? We can do in two ways 1. from command prompt using wfload 2. open workflow in standalone builder and then do save as and select database. Related Articles: 1. BPEL Olite Database Connection 2. Database Adapter Part 2 What are steps to customize the workflow?

What functions can you perform from workflow administrator responsibility? To send an email to the user workflow notification is the only way or is there any other ways to send it? Give me some workflow standard procedures? No related Articles found... How can you run/start/kickoff workflow? What is wf_engine package used for? How many processes can each workflow contain? What is Runnable option in workflow? At what level it exists? No related Articles found... What are different types of attributes in workflow? No related Articles found... How do you reassign a notification? No related Articles found... What is process in workflow? How can you send direct oracle form link through workflow notifications? How can you send a notification to multiple users? Can you change the list dynamically? Can you send html code in workflow notification? I have sent two different notifications to two different users and I want to wait till atleast one is approved to send 3rd notification. How can you achieve it?

Oracle Workflow Architecture

10
POSTED BY OADBA IN ORACLE WORKFLOW

SundayOCT 2010
LEAVE A COMMENT

Rate This

Oracle Workflow Architecture Oracle Workflow allows you to define business processes using a drag-and-drop designer. You can route relevant information to decision makers, automate processes, deliver electronic notifications to users in a given workflow, and monitor your processes as they are implemented. You can display any workflow diagram as a process in the Process Navigator.

Development Client The development client is a Windows PC. This tier is used to create and modify Oracle Workflow process definitions, and to save and load flat files containing Oracle Workflow process definitions and XML definitions for Business Event System objects.

Oracle Database The server tier is the Oracle Database that hosts the business application integrated with Oracle Workflow, the Workflow Engine, Business Event System, Notification System, and directory service. The Business Event System leverages the Advanced Queuing feature within the Oracle Database.

Application Server The application server is the middle tier environment outside of the database. This environment includes ancillary services such as the Oracle HTTP Server as the Web server, and Oracle Workflow service components that run in the middle tier, such as agent listeners and notification mailers.

End-User Client The end-user client is the workstation or PC that an end user uses to perform daily tasks. This client includes browser support for accessing Oracle Workflow Web pages, as well as for accessing the Oracle Workflow Manager component. Oracle Workflow Manager is available through Oracle Applications Manager (OAM) for the version of Oracle Workflow embedded in Oracle E-Business Suite, or through Oracle Enterprise Manager (OEM) for the standalone version of Oracle Workflow. The enduser client also includes a mail client application for reviewing and responding to notifications by e-mail.

Workflow Processes

10
POSTED BY OADBA IN ORACLE WORKFLOW

SundayOCT 2010
LEAVE A COMMENT

Very Poor

Oracle Workflow manages business processes according to rules that you define. The rules, which we call a workflow process definition, include the activities that occur in the process and the relationship between those activities. An activity in a process definition can be an automated function defined by a PL/SQL stored procedure or an external function, a notification to a user or role that may optionally request a response, a business event, or a subflow that itself is made up of a more granular set of activities. A workflow process is initiated when an application calls a set of Oracle Workflow Engine APIs. The Workflow Engine takes over by driving the relevant work item defined by the application, through a specific workflow process definition. According to the workflow process definition, the Workflow Engine performs automated steps and invokes appropriate agents when external processing is required. The following diagram depicts a simplified workflow process definition that routes a requisition to a manager or set of managers for approval. We refer to the whole drawing as a process or process diagram. The icons represent activities, and the arrows represent the transitions between the activities. In the above example, new items are created for the process when a user creates and submits a requisition in the appropriate application. This process contains several workflow activities implemented as PL/SQL stored procedures, including:

Select Approverto select, according to your business rules, who should approve the requisition. Verify Authorityto verify that a selected approver has the spending authority to approve the requisition.

A workflow process definition must be saved to the same database as the Workflow Engine. A process definition is composed of activities and the transitions between them. A completed application transaction or event can initiate a workflow process by raising an event or by calling a series of Workflow Engine APIs. The Workflow Engine locates the Start activity in the process definition. The Workflow Engine drives through the process, performing all automated steps such as function activities and Raise and Send event activities, until an asynchronous activity such as a notification, Receive event activity, or blocking activity occurs. - The Workflow Engine calls the Notification System to

deliver a notification message to an appropriate role. Once a user of that role completes the notification response, the Workflow Engine continues to drive through the remaining activities in the process. If a blocking activity is encountered, the Workflow Engine waits for an external program to complete and call the appropriate Workflow Engine API before proceeding to the next activity.

If a Receive event activity is encountered, the Workflow Engine waits to receive the event from the Business Event System before proceeding to the next activity.

The process completes when the Workflow Engine encounters an End activity.

Example: Order Processing This example shows a workflow process that includes business events. The example comes from the Event System Demonstration workflow which is available with the standalone version of Oracle Workflow.

You can do as Roger suggested, however you will need to ensure you code the wrapper for fnd_request.submit_request as an autonomous transaction. You should not be committing inside your pl/sql called directly from workflow. Check out metalink note 187735.1 for more info on commits. Using an autonomous transaction for submitting your request will workaround the issue, but you do lose some control by doing this. There is a cleaner alternative. You can use the predefined activities seeded with 11i. There are 3 activities: Execute Concurrent Program - submits request and waits for completion. Submit Concurrent Program - submits request and does not wait for completion. Wait for Concurrent Program - waits for a submitted request. These are all documented in the workflow developer's guide over at docs.oracle.com. These have been available since 11.5.8 at least. To access these activities, start workflow builder, connect to the database, and open the item type name "Concurrent Manager Functions". Expand the functions node and drag the required activity (execute, submit or wait) into you workflow item type. Follow the developer's guide for setting the attributes correctly.

There are some things to note with using these activities. First, you need to be calling the FND_GLOBAL.APPS_INITIALIZE api before submitting the request (if the apps context has not been set). I tend to always call the api as it is one less thing to worry about when you debug. Also make sure you call the api in SET_CTX mode in the selector/callback function you have defined. And make sure the background engine is running if you use the execute function.

You might also like