Skip Headers

Oracle Workflow Developer's Guide
Release 12.1
Part Number E12905-04
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next

Testing Workflow Definitions

This chapter tells you how to test your workflow definitions using the Developer Studio.

This chapter covers the following topics:

Testing Workflow Definitions Using the Developer Studio

The Developer Studio lets you view workflow definitions stored in your database. If you have workflow administrator privileges, you can also run a test workflow process for a workflow definition. Workflow administrator privileges are assigned in the Workflow Configuration page. See: Setting Global User Preferences, Oracle Workflow Administrator's Guide.

Although you can run a test workflow process against any Oracle Workflow database, it is recommended that you create a separate environment for testing purposes. You should set up test users and roles in your test environment before you begin.

Note: If you plan to use e-mail to view notifications, you can send all notifications to a single e-mail address by setting an override address for a notification mailer in its Component Details page in Oracle Applications Manager. See: Reviewing Service Component Details, Oracle Workflow Administrator's Guide.

To Search for Workflow Definitions in the Developer Studio

  1. Use a Web browser to navigate to the Developer Studio, using a responsibility and navigation path specified by your system administrator. See: Oracle Workflow Developer Navigation Paths.

  2. Search for the workflow definitions you want to review. The search criteria are:

  3. If you have workflow administrator privileges, you can run a test workflow process by selecting the run icon for that workflow definition. See: To Run a Test Workflow Process.

    Note: If a workflow definition does not include any runnable processes, its run icon is disabled.

    Additionally, if a workflow process begins with a Receive event activity, you cannot use the Developer Studio to test the process. Instead, you should raise a test event from the Event Manager to trigger an event subscription that launches the process. See: To Raise a Test Event.

To Run a Test Workflow Process

  1. Navigate to the Run Workflow page.

  2. In the Workflow Identifier region, specify the identifying details for the workflow process you want to run.

  3. The Workflow Attributes region displays any item attributes associated with the workflow item type. Enter values for any item attributes that are required to initiate the process.

  4. Select the Run Workflow button. To initiate the workflow process, the Run Workflow page calls the Workflow Engine CreateProcess() and StartProcess() APIs for the specified workflow item type and item key. It also calls the Workflow Engine SetItemOwner() and SetItemAttr() APIs to set the process owner and all the item type attributes to the specified values.

  5. To view the status of the workflow process, choose the Status Monitor tab and search for the process in the Workflows search page. See: Accessing the Administrator Monitor, Oracle Workflow Administrator's Guide.

  6. If the process you are testing includes notifications, choose the Notifications tab to view and respond to the notifications in the Worklist. See: To View Notifications from the Advanced Worklist, Oracle Workflow User's Guide.

    Alternatively, if you have set the notification preference of the recipients to receive e-mail notifications, you can use an e-mail reader to view and respond to the notifications. If you specified an override e-mail address for the notification mailer, you can connect to that e-mail account to access all notifications for the process. See: Reviewing Notifications via Electronic Mail, Oracle Workflow User's Guide.