Customization Guidelines

Following are some of the important guidelines you should follow when customizing any workflow in Purchasing.

Access Levels

In the Workflow Builder, some of activities in the procurement workflows are locked, or protected against customization, and some are unlocked, or available for modification to suit your business needs. You should not change your access level to modify locked activities.

For more, important information on access levels, see Overview of Workflow Access Protection and Allowing Access to an Object.

Backups and Testing

Always make a backup and test your customized workflow on a test database before uploading it to your actual database. The sections in this documentation describing each workflow in Purchasing let you know if you should modify the default workflow that Purchasing provides or if you can create a new one. For more, important information on saving, backing up, and uploading customized workflows, see the Oracle Workflow Developer's Guide.

Upgrade Support

Future upgrades of Purchasing can include upgrades to the Purchasing workflows. As you customize workflows, think about whether to protect your customizations against future upgrades. For complete information, see the Oracle Workflow Developer's Guide.

Workflow Monitor

You can use the Workflow Monitor to monitor a workflow's progress. See: Overview of Workflow Monitoring.

Guidelines

It is important to use these guidelines in conjunction with information in the Oracle Workflow documentation. In addition, refer to the documentation for each workflow in Oracle Purchasing for a list of activities you can and cannot customize, and other recommendations particular to the workflow. You can also use the Item Type Definitions Web page to extract detailed information about each activity in a workflow. See: Item Type Definitions, Oracle Workflow Developer's Guide.

See also: Oracle Workflow Support Policy, Oracle Workflow Developer's Guide.

Attributes

You can modify only the attributes listed as customizable in the documentation for each Purchasing workflow.

Processes

If you modify a customizable process, it is essential that the basic flow remain intact to maintain data integrity in the database. For example, you should not remove or bypass the function activity Is Document Complete? in the Verify Document subprocess in the approval workflows because this may allow incomplete data to be inserted into the database tables. However, you could add additional checks (processes or function activities) before allowing data to be inserted into the tables.

If you modify a customizable process, either by replacing a portion of its flow or by adding additional function activities, keep in mind:

To get a list of the workflow function activities that use SetItemAttr, GetItemAttr, SetItemUserKey, SetItemOwner, Insert Into, or Update statements, run the PL/SQL script powfcust.sql.

Attention: This script gives you an idea of the impact of removing a function activity; however, before you customize a process, always conduct your own analysis of the impact.

To run powfcust.sql:

  1. Change to the directory where the PL/SQL-stored procedures are kept:

     cd $PO_TOP/sql
    
    
  2. At the SQL prompt, start the following script:

     @powfcust.sql
    
    
  3. When prompted, enter the internal name for the workflow item type for which you want to run the script, or enter ALL to run the script for all of the Purchasing workflows.

    The internal workflow names for Purchasing are as follows:

    Workflow Internal Name
    PO Account Generator POWFPOAG
    PO Requisition Account Generator POWFRQAG
    PO Approval POAPPRV
    PO Requisition Approval REQAPPRV
    PO Create Documents CREATEPO
    PO Confirm Receipts PORCPT
    PO Send Notifications for Purchasing Documents APVRMDER
    PO Catalog Price Tolerance Exceeded Notifications POPRICAT

    The script displays every function activity in the workflow that uses a SetItemAttr, GetItemAttr, SetItemUserKey, SetItemOwner, Insert Into, or Update statement.

    Recall that this script gives you an idea of the impact of removing a function activity. Before you customize a process, always conduct your own analysis of the impact.

Notifications

If a notification has a reply code, make sure that the Result Type of your customized notification matches the transitions in the workflow diagram. See: To Create a Notification Activity, Oracle Workflow Developer's Guide. See also: Message Result, Oracle Workflow Developer's Guide and To Create a Message, Oracle Workflow Developer's Guide.

Function Activities

Usually, you cannot modify a function activity, but can replace it with one of your own, unless the documentation for the workflow advises against removing default function activities.

When you replace a function activity, you are effectively modifying the process in which it is contained. If you substitute default function activities in a process with function activities that you create, you must remember the following:

Lookup Types

If you change a customizable lookup type, be sure that all activities that use the lookup type allow for the change. For example, if you change a lookup type from Yes/No to something else, the activities that use that lookup type should also change their Result Type from Yes/No to whatever new lookup type you created. See: Lookup Types, Oracle Workflow Developer's Guide.

Related Topics