Requisition Approval Workflow

Whenever you submit a requisition for approval or take an action in the Notifications Summary window, Purchasing uses Oracle Workflow technology in the background to handle the approval process. Workflow uses the approval controls and hierarchies you define according to the setup steps in the section Setting Up Document Approval and Security to route documents for approval. You can use the Workflow Builder to modify your approval process.

The requisition approval workflow consists of processes, which are viewable in the Workflow Builder as a diagram, some of whose objects and properties you can modify. Each workflow process, in turn, consists of individual function activities.

The PO Requisition Approval workflow is initiated at the following points in Purchasing:

For information on the purchase order approval workflow, see: Purchase Order Approval Workflow.

Customizing the PO Requisition Approval Workflow

Use the Oracle Workflow Builder to customize workflows. When you customize a workflow, only those documents that are submitted for approval after you customize it are affected by the customized workflow.

You can also use the Workflow Builder to create unique approval workflows for each document type in your organization. You associate particular workflows with certain document types in the Document Types window. See: Defining Document Types.

You can use the Workflow Monitor to follow where certain documents are in a workflow process. See: Monitoring Workflow Processes.

To display the workflow in the Oracle Workflow Builder:

  1. Choose Open from the File menu, and connect to the database.

    See: Opening and Saving Item Types.

    The Display name of the PO Requisition Approval workflow is PO Requisition Approval. The name of its Workflow definition file is poxwfrqa.wft.

  2. Expand the data source, then the PO Requisition Approval item type branch within that data source.

  3. Expand the Processes branch within the PO Requisition Approval branch, then double-click on a process activity to display its diagram.

Creating a New Custom Process

You can either modify the default PO Requisition Approval workflow that Purchasing provides, or copy it and create a whole new workflow. You can use the Document Types window to select a custom PO Requisition Approval Workflow Startup Process for specific document types or operating units.

If you create different workflows for different documents or operating units, the recommended practice is not to copy and rename the item type (such as PO Requisition Approval 1), but to copy and rename the Workflow Startup Process, which you will modify to call your own custom subprocesses. All of your operating units will point to the same item type, and will use the default item attributes and other activities that the item type requires, but one operating unit will also use your custom startup process.

Attention: Creating a new workflow process with a new Internal Name affects the implementation of future upgrades. See: Upgrade Support.

Required Modifications

There are no required modifications you need to make to the PO Requisition Approval workflow. However, this documentation assumes that you have already set up Purchasing and performed the Workflow setup steps described in Workflow Setup Options.

Supported and Unsupported Customizations

The following is a discussion of what you can and definitely cannot modify in the PO Requisition Approval workflow. For those things you can modify, the discussion includes important guidelines that you need to be careful of when making customizations.

For important information on how to customize workflows, see the Oracle Workflow Developer's Guide.

To further help you with your customizations, refer to the sections later in this document, starting with The PO Requisition Approval Item Type. These sections describe the components of the main processes in the PO Requisition Approval workflow. If you haven't already, see also: Customization Guidelines.

Attention: If a particular Workflow object does not appear in the following sections on the lists of things you can customize, do not modify it, regardless of its access level.

Attributes

You can modify the following attribute only, by changing its Default Value:

Its Default Value is Y for Yes, to send automatic document creation to Background mode, but you can change it to N for No, to operate in Online mode. See: Choosing Workflow Options.

Processes

If you modify a 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 Requisition subprocess 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 any process, either by replacing a portion of its flow or by adding additional function activities, remember the following:

The process listed below may be modified as your business processes require; however, remember that after your customizations, the attributes that were set and the database states that were maintained by the default process must also be set or maintained by your customized process.

You may add your own additional function activities to the processes listed below, but do not remove any default function activities from them:

Notifications

All of the notifications can be modified to meet your individual business needs. However, if the 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. See also: Message Result and To Create a Message.

Function Activities

You cannot modify any functions in the PO Requisition Approval workflow.

However, you can replace some function activities with function activities of your own. When you replace a function activity, you are modifying the process in which it is contained. See the guidelines for customizing the PO Requisition Approval processes in the section Processes above.

If you substitute default function activities in a process with function activities that you create, you must remember the following:

Messages

All of the messages can be modified to meet your individual business needs.

Lookup Types

All of the lookup types can be modified to meet your individual business needs.

Note: If you change a lookup type, be sure that all activities that use the lookup type allow for the change. For example, if you change the 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.

The PO Requisition Approval Workflow Item Type

The Requisition Approval process is associated with an item type called PO Requisition Approval. This item type identifies all requisition approval workflow processes available. The following workflow processes are associated with PO Requisition Approval:

The PO Requisition Approval item type also has many attributes associated with it. These attributes reference information in the Purchasing application tables. The attributes are used and maintained by function activities as well as notification activities throughout the process.

PO Requisition Approval Workflow Item Type Attributes

Display Name Description Type Length/ Format/ Lookup Type
Action history of the document Action history of the document as displayed in the approval notification Document  
Application ID Unique identifier for the application (such as Purchasing) Number  
Approval List ID Unique identifier for the list of approvers that the requester sees or modifies in iProcurement Number  
Approval Path ID Unique identifier for the approval hierarchy Number  
Approver Employee ID Unique identifier for the approver Number  
Approver Display Name Approver's name as displayed in Purchasing Text  
Approver User Name User name of the approver Text  
Approve Requisition Message Message header that indicates the specific document requiring approval Document  
Authorization Status Status of the document, such as Approved or Incomplete Text 25
Authorization Status Display Document status as displayed in Purchasing Text 25
Closed Code Indicator that the document is closed Text 25
Closed Code Display Closed status as displayed in Purchasing Text 25
Concurrent Request ID Request ID for the Document Approval Manager Number  
Context ORG_ID Unique identifier for the organization Number  
Document ID Unique identifier for the document Number  
Document Manager Error Number Error number for the Document Manager Failed notification Number  
Document Subtype Document subtype, such as Purchase or Internal Text 25
Document Subtype Display Document subtype as displayed in Purchasing Text 25
Document Type Document type, such as Requisition Text 25
Document Type Display Document type as displayed in Purchasing Text 25
Emergency PO Number Purchase order number reserved in advance for a requisition created in iProcurement Text 20
Forward From Display Name Name of the forward-from person as displayed in Purchasing Text 60
Forward From ID Unique identifier for the forward-from person Number  
Forward From User Name User name for the forward-from person Text 60
Forward To Display Name Name of the forward-to person as displayed in Purchasing Text 60
Forward To ID Unique identifier for the forward-to person Number  
Forward-To ID Old Value Item attribute for internal use that keeps track of the previous forward-to person Number  
Forward To User Name User name for the forward-to person Text 60
Functional Currency Functional currency Text  
Interface Source Source of the requisition, such as ICX or POR Text 25
"Invalid Forward To" Translated Message Message used when approving the document if the forward-to user name is invalid Text  
No Approver Found Message Message header that indicates the specific document for which the approver was not found Document  
Note Note to the approver Text 240
Online Report ID For Doc Complete Check Unique identifier for the error message displayed after saving a document that is in error Number  
Online Report Text For Doc Complete Check Text of the error message displayed after saving a document that is in error Text 2000
Open From Command Command that Purchasing sends to open the document from the notification Form  
Original Authorization Status Status of the document before it was submitted for approval Text 25
PL/SQL Error Document The document that was being approved when a PL/SQL error occurred Text 2000
PL/SQL Error Location Where an internal, PL/SQL error occurred Text 2000
PL/SQL Error Message Text for the notification sent when a PL/SQL error occurs Text 2000
Preparer Display Name Name of the person who created the document, as displayed in Purchasing Text 80
Preparer ID Unique identifier for the person who created the document Number  
Preparer User Name User name for the person who created the document Text 60
Print Document Indicator of whether Print Document was selected when submitting the requisition for approval Text  
"Requires Approval" Translated Message Message text used to indicate the document requires approval Text  
Requisition Amount Display Total amount, without tax, as displayed in Purchasing Text  
Requisition Approved Message Message header that indicates the specific document requiring approval Document  
Requisition Detail Used in iProcurement to enable you to view requisition details URL  
Requisition Description Header description Text 240
Requisition line details Requisition line details displayed in the approval notification Document  
Requisition Number Requisition number Text 20
Requisition Rejected Message Message header that indicates the specific document that was rejected Document  
Responder Display Name Name of the approver as displayed in Purchasing Text  
Responder ID Unique identifier for an approver's response to a notification Number  
Responder User Name User name of the approver Text  
Response Forward-To Forward-to name as entered by the person forwarding the document Text 100
Responsibility ID Unique identifier for the requester's user responsibility Number  
Resubmit Requisition Used in iProcurement to enable you to resubmit a requisition URL  
Send PO Autocreation to Background Indicator of whether to send automatic documentation creation to online or background modes Text 1
System Administrator Error Message Document Approval Manager failed message Text 2000
Tax Amount Display Tax amount displayed in the approval notification Text 30
Total Amount Display Total document amount, with tax, displayed in the approval notification Text 30
Update Requisition Used in iProcurement to enable you to update a requisition URL  
User ID Unique identifier for the requester Number  

Main Requisition Approval Process Activities

The following is a description of each activity in the Main Requisition Approval process.

Start of Approve Requisition Process (Node 2)

See: Start of Approve Requisition Process.

Verify Requisition (Node 3)

See: Verify Requisition.

Reserve At The Start (Node 5)

See: Reserve At The Start.

Does Approval List Exist? (Node 6)

This activity checks if a requester in iProcurement created or modified an approval list.

Build Default Approval List (Node 7)

If a requester in iProcurement did not create or modify the approval list, or if the requisition was submitted in Purchasing, this activity builds an approval list based on the approval hierarchy setup in Purchasing.

Can Owner Approve? (Node 10)

This function activity checks if Owner Can Approve is enabled for the specific document type in the Document Types window. See: Defining Document Types. If the owner can approve, the subprocess Verify Approval Authority verifies the owner's approval authority. If not, the subprocess Approval List Routing begins.

Verify Approval Authority (Node 15)

See: Verify Approval Authority.

Set Req Status to Pre-Approved (Node 16)

If the requester has the approval authority to approve the document, this function activity sets the requisition's status to Pre-Approved. The status is set to Pre-Approved until the subprocess Approve Requisition or the subprocess Reserve Before Approve explicitly sets the status to Approved.

This activity updates the document status only, not the action history. Later another activity, Update Action History, updates the Action History window.

Is Approval List Empty? (Node 17)

This activity makes sure there are no more approvers. If there are not, the workflow begins approving the requisition. If there are, the workflow routes the document for their approval.

Approval List Routing (Node 11)

See: Approval List Routing.

Reject Requisition (Node 12)

See: Reject Requisition.

Requisition Rejected (Node 13)

This activity sends a notification to the requester that the requisition has been rejected.

Return Requisition to Submitter (Node 8)

See: Return Requisition to Submitter .

Rebuild Approval List After Forward Action (Node 19)

If the requisition is forwarded, this activity rebuilds the approval list to include that forward-to person.

Oracle iProcurement Example:

A requester in iProcurement adds Approvers X and Y:

Approver C, however, forwards the document to Approver D, who is part of another branch in the hierarchy:

The approval routing will then be as follows, assuming Approver D does not have final approval authority:

Reserve Before Approve (Node 18)

See: Reserve Before Approve.

Approve Requisition (Node 20)

See: Approve Requisition.

Is Requisition Created Through the Web? (Node 22)

This activity checks if the requisition was created through iProcurement.

Create Information Template Attachment (Node 23)

This activity turns iProcurement information templates, if used, into attachments. The Define Information Template window in Purchasing lets you define these templates for iProcurement. For example, you can create a template for ordering business cards in iProcurement. The template used to gather the business card information is converted into an attachment in Purchasing by this activity.

Note: Information templates in iProcurement are not the same as requisition templates in Purchasing. See the Oracle iProcurement Implementation Manual.

Requisition Approved (Node 24)

This function activity sends a notification to the appropriate individual that the requisition has been approved.

This notification's message uses Document type item attributes to call two PL/SQL functions, one that retrieves all of the lines in the document and displays them in the notification, and another that retrieves the action history of the document and displays that in the notification.

Print Document Process (Node 25)

See: Print Document Process.

Get AutoCreate PO Mode (Node 26)

While the function activity Get Workflow Approval Mode sets the processing mode for the entire approval workflow in Purchasing, based on how the profile option PO: Workflow Processing Mode is set, this function activity looks to the item attribute Send PO Autocreation to Background, which enables you to change the processing mode specifically for automatic purchase order creation. Background mode enables you to proceed to your next Purchasing activity while the approval process for this document completes in the background.

Wait for Background Process (Node 27)

If the item attribute Send PO Autocreation to Background is set to Yes, this function activity waits for the Workflow Background Engine to pick up this document for processing by the workflow. This activity enables you to proceed to your next Purchasing activity while the approval process for this document completes in the background.

Launch Create PO Workflow (Node 28)

After a requisition is approved, the Main Requisition Approval process launches a workflow for the automatic creation of purchase orders if you've allowed automatic approval for approved requisition lines. Automatic approval is allowed for approved requisition lines when the item attribute Is Automatic Creation Allowed? is set to Y for Yes. (By default, this item attribute is set to Y.)

Start of Approve Requisition Process Activities

The following is a description of each activity in the Start of Approve Requisition Process, listed by the activity's display name.

Remove All Notifications For This Document (Node 2)

This function activity removes previous notifications for a requisition previously submitted to workflow that was not completed because of an error or because of an action such as rejection.

Set Workflow Startup Values (Node 3)

This function activity sets all initial values necessary to identify a unique requisition.

Set Req Status to In-Process and Update with Item Type & Key (Node 4)

This function activity sets the document status to In Process and updates the document header with the item type and item key, which indicate that this requisition has been submitted to Workflow.

Find Approval List (Node 5)

This activity looks for an approval list created in iProcurement.

Get Workflow Approval Mode (Node 6)

This function activity retrieves the value from the profile option PO: Workflow Processing Mode, which lets you choose whether you want the approval process to run in Online or Background modes. For definitions of Background and Online modes, see: Profile Options in Purchasing.

Wait for Background Process (Node 7)

If the profile option PO: Workflow Processing Mode is set to Background, this function activity waits for the Workflow Background Engine to pick up this document for processing by the workflow. This activity enables you to proceed to your next Purchasing activity while the approval process for this document completes in the background. See: To Schedule Background Engines.

Get Requisition Attributes (Node 8)

This function activity retrieves key values from the requisition header and lines, and assigns them to Workflow attributes.

Verify Requisition Subprocess Activities

The following is a description of each activity in the Verify Requisition subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Does Document State Allow Approval Action? (Node 2)

This activity checks if the document status is compatible with the approval action. Examples of document statuses that allow an approval action are Incomplete, In Process, and Pre-Approved.

Is Document Complete? (Node 4)

This activity verifies that the requisition is complete-for example, verifying that all the quantities match, and at least one line and one distribution exist.

Record Submit In Action History (Node 6)

This activity inserts a Submit Action row into the PO_ACTION_HISTORY table to record that the document has been submitted for approval. It also inserts an additional row with a null ACTION_CODE to simulate a forward-to action, since the document status is In Process. The document manager looks for this row.

Document Manager Failed (Nodes 3 and 5)

If the Document Approval Manager fails, the requester receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the requester must respond to the notification by choosing Retry, so that the workflow can continue.

Document Failed State Check (Node 8)

This activity sends a notification to the requester that the document failed the state check. See: Document Status Checks.

Document Failed Correctness Check (Node 9)

This activity sends a notification to the requester that the document failed the correctness check. See: Document Submission Checks.

Set Req Status to Original Status (Node 10)

This function activity sets the document back to its status before it entered this process activity, if the document has failed state or correctness checks.

End (Nodes 7 and 11)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Verify Requisition subprocess activity has a result type of PO Document Verification, each End activity node must have a process result matching one of the lookup codes in the PO Document Verification lookup type.

Reserve At The Start Subprocess Activities

The following is a description of each activity in the Reserve At The Start subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Is Requisition Created Through the Web? (Node 2)

This activity determines if the requisition was created through iProcurement.

Is Interface Source Req Import? (Node 3)

This activity checks if the requisition sent through Requisition Import was created in Web Requisitions Release 11.

Is Encumbrance On and Is Document Not Reserved? (Node 5)

This function activity checks whether you are using encumbrance accounting, and whether the document is already reserved.

Reserve Document (Node 7)

This activity tries to reserve funds for the document.

Document Manager Failed (Node 10)

If the Document Approval Manager fails, the requester receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the requester must respond to the notification by choosing Retry, so that the workflow can continue.

End (Nodes 4, 6, 8, and 9)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Reserve at the Start subprocess activity has a result type of PO Activity Performed, each End activity node must have a process result matching one of the lookup codes in the PO Activity Performed lookup type.

Verify Approval Authority Subprocess Activities

The following is a description of each activity in the Verify Approval Authority subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Does Approver Have Authority? (Node 2)

This function activity verifies the approver's authority based on the authority limits defined in the Approval Groups and Assign Approval Groups windows. See: Defining Approval Groups. See: Assigning Approval Groups.

Document Manager Failed (Node 3)

If the Document Approval Manager fails, the approver receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the approver must respond to the notification by choosing Retry, so that the workflow can continue.

End (Nodes 4 and 5)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Verify Approval Authority subprocess activity has a result type of Yes/No, each End activity node must have a process result matching one of the lookup codes in the Yes/No lookup type.

Approval List Routing Subprocess Activities

The following is a description of each activity in the Approval List Routing subprocess, listed by the activity's display name.

Get Next Approver (Node 2)

This activity finds the first (or next) approver in the approval list.

Rebuild Approval List for Invalid Approver (Node 3)

If an approver is invalid (for example, the approver left the company shortly after the requisition was submitted), this activity rebuilds the approval list without that approver.

Note: If the approver does not have a logon user name, this activity does not rebuild the approval list in that instance.

Notify Approver (Node 5)

See: Notify Approver.

Response with Reject Action (Node 6)

See: Response with Reject Action.

Response with Approve Action (Node 9)

See: Response with Approve Action.

Response with Approve and Forward Action (Node 10)

See: Response with Approve and Forward Action.

Is Approval List Empty? (Node 11)

This activity makes sure there are no more approvers. If there are not, the workflow begins approving the requisition. If there are, the workflow routes the document for their approval.

Is Requisition Pre-Approved? (Node 12)

This function activity checks if the purchase order has been pre-approved. A Pre-Approved document is one that has already been approved by the appropriate individual, who also chose to forward it to yet another person for approval. Or, it is a document that has been authorized for approval but for which funds have not yet been reserved. A document is still considered pre-approved until the subprocess Reserve Before Approve or the subprocess Approve Requisition sets its status to Approved.

Reject Requisition Subprocess Activities

The following is a description of each activity in the Reject Requisition subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Reject the Requisition (Node 2)

This activity sets a requisition to a Rejected status. It also reverses encumbrance if the document has been encumbered.

Unable to Reject Document (Node 5)

This activity sends a notification to the approver that Purchasing was unable to reject the document-for example, because its status is closed, frozen, or on hold.

Document Manager Failed (Node 4)

If the Document Approval Manager fails, the approver receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the approver must respond to the notification by choosing Retry, so that the workflow can continue.

End (Nodes 3 and 6)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Reject Requisition subprocess activity has a result type of PO Approval Action and Doc Verification, each End activity node must have a process result matching one of the lookup codes in the PO Approval Action and Doc Verification lookup type.

Return Requisition to Submitter Subprocess Activities

The following is a description of each activity in the Return Requisition to Submitter subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Set Req Status to Original Status (Node 2)

This activity sets the requisition back to its status before it entered this process activity, if no approver was found.

Notify Requestor of No Approver Available (Node 3)

This activity sends a notification to the requestor when no approver is found.

This notification's message uses Document type item attributes to call two PL/SQL functions, one that retrieves all of the lines in the document and displays them in the notification, and another that retrieves the action history of the document and displays that in the notification.

Is Submitter Last Approver? (Node 4)

This function activity checks if the requester is also the sole or last approver. If so, the subprocess skips node 5 so as not to send the requester two notifications.

Notify Last Approver of No Approver Found (Node 5)

This activity sends a notification to the last approver that the next approver was not found.

This notification's message uses Document type item attributes to call two PL/SQL functions, one that retrieves all of the lines in the document and displays them in the notification, and another that retrieves the action history of the document and displays that in the notification.

End (Node 6)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Return Requisition to Submitter subprocess activity has a result type of PO Activity Performed, each End activity node must have a process result matching one of the lookup codes in the PO Activity Performed lookup type.

Notify Approver Subprocess Activities

The following is a description of each activity in the Notify Approver subprocess, listed by the activity's display name.

Update Action History (Expect Response) (Node 2)

This activity records in the action history that the document awaits a response from the approver. This activity works in conjunction with the other Update Action History activities, used in other subprocesses, to update the Action History window.

Approve Requisition Notification (Node 3)

This activity sends a notification to the approver requesting approval.

This notification's message uses Document type item attributes to call two PL/SQL functions, one that retrieves all of the lines in the document and displays them in the notification, and another that retrieves the action history of the document and displays that in the notification.

Requisition Approval Reminder1 (Node 10)

If no approval response is received after a period of time, this activity sends a first reminder if you designate a timeout period in the activity's Properties window.

This notification's message uses Document type item attributes to call two PL/SQL functions, one that retrieves all of the lines in the document and displays them in the notification, and another that retrieves the action history of the document and displays that in the notification.

Requisition Approval Reminder 2 (Node 17)

If still no approval response is received, this activity sends a second reminder if you've entered a timeout period in the activity's Properties window.

This notification's message uses Document type item attributes to call two PL/SQL functions, one that retrieves all of the lines in the document and displays them in the notification, and another that retrieves the action history of the document and displays that in the notification.

Is Forward-To Valid (Nodes 4, 8, 11, 15, 18, and 22)

This function activity checks that the Forward-To name entered in the Forward-To field, in response to an approval notification, is a valid user name.

Response with Approve Action Subprocess Activities

The following is a description of each activity in the Response with Approve Action subprocess, listed by the activity's display name.

Update Approval List Response (Node 2)

This activity updates the Oracle internal approval list tables PO_APPROVAL_LIST_HEADERS and PO_APPROVAL_LIST_LINES with the approver's approval.

Update Action History (Approve) (Node 3)

This activity records an Approve action action in the Action History window.

Set Req Status to Pre-Approved (Node 8)

A requisition's status is set to Pre-Approved if any of the following has occurred:

This activity updates the document status only, not the action history.

Is Requisition Pre-Approved? (Node 4)

This function activity checks if the purchase order has been pre-approved.

Verify Approval Authority for Approve Action (Node 6)

See: Verify Approval Authority for Approve Action.

Response with Approve and Forward Action Subprocess Activities

The following is a description of each activity in the Response with Approve and Forward Action subprocess, listed by the activity's display name.

Update Action History (Approve/Forward) (Node 2)

This activity records an Approve and Forward action in the Action History window.

Verify Approval Authority for Approve and Forward Action (Node 4)

See: Verify Approval Authority for Approve and Approve/Forward Action.

Set Req Status to Pre-Approved (Node 5)

A requisition's status is set to Pre-Approved if any of the following has occurred:

This activity updates the document status only, not the action history.

Is Requisition Pre-Approved? (Node 3)

This function activity checks if the requisition has been pre-approved.

Update Approval List Response (Node 6)

This activity updates the Oracle internal approval list tables PO_APPROVAL_LIST_HEADERS and PO_APPROVAL_LIST_LINES with the approver's approval and forward action.

Response with Forward Action Subprocess Activities

The following is a description of each activity in the Response with Forward Action subprocess, listed by the activity's display name.

Update Approval List Response (Node 2)

This activity updates the Oracle internal approval list tables PO_APPROVAL_LIST_HEADERS and PO_APPROVAL_LIST_LINES with the approver's forward action.

Update Action History (Forward) (Node 3)

This activity records a Forward action in the Action History window.

Response with Reject Action Subprocess Activities

The following is a description of each activity in the Response with Reject Action subprocess, listed by the activity's display name.

Update Approval List Response (Node 2)

This activity updates the Oracle internal approval list tables PO_APPROVAL_LIST_HEADERS and PO_APPROVAL_LIST_LINES with the approver's rejection.

Update Action History (Reject) (Node 3)

This activity records a Reject action in the Action History window.

Reserve Before Approve Subprocess Activities

Following is a description of each activity in the Reserve Before Approve subprocess, listed by the activity's display name.

Is Encumbrance On and Is Document Not Reserved? (Node 2)

This function activity checks whether you are using encumbrance accounting and whether the document is already reserved.

Reserve Document (Node 4)

This activity tries to reserve funds for the document.

Document Manager Failed (Nodes 5 and 11)

If the Document Approval Manager fails, the approver receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the approver must respond to the notification by choosing Retry, so that the workflow can continue.

Unable to Reserve Document (Node 6)

This activity notifies the requester that Purchasing failed to reserve funds for the requisition, and provides instructions for resolving the failure. The approver must then use the Approve Document window to try to reserve the document again if, for example, more funds have been allocated, and then respond with Retry in the notification; reject the document; or forward the document to somebody else with authority to reserve the funds.

Is Forward-To Valid (Node 7)

This activity checks that the Forward-To name entered in the Forward-To field, in response to an approval notification, is a valid user name.

Set Forward-To/From Forward (Node 8)

If the approver responded to the notification Unable to Reserve Document by forwarding the document, this function activity resets the Forward-To and Forward-From attributes.

Reject the Requisition (Node 10)

This activity sets a requisition to a Rejected status and records the rejection in the Action History window. It also reverses encumbrance if the document has been encumbered.

Unable to Reject Document (Node 13)

This activity sends a notification to the approver that Purchasing was unable to properly reject the requisition-for example, because its status is closed, frozen, or on hold.

Approve Requisition Subprocess Activities

The following is a description of each activity in the Approve Requisition subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Is Document Approved? (Node 2)

If you are using encumbrance and the document was Pre-Approved at the time that funds were reserved for it, then its status already changed to Approved.

Does Document State Allow Approval Action? (Node 4)

Examples of document statuses that allow an approval action are Incomplete, In Process, and Pre-Approved.

Is Document Complete? (Node 6)

This activity verifies that the requisition is complete-for example, verifying that all the quantities match, and at least one line and one distribution exist.

Approve the Requisition (Node 8)

This activity sets the status of the requisition to Approved.

Get Requisition Attributes (Node 14)

This function activity retrieves key values from the requisition header and lines, in case these have changed, and assigns them to Workflow attributes.

Document Manager Failed (Nodes 5, 7, and 9)

If the Document Approval Manager fails, the approver receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the approver must respond to the notification by choosing Retry, so that the workflow can continue.

Document Failed State Check (Node 10)

This function activity sends a notification to the approver that the document failed the state check. See: Document Status Checks.

Document Failed Correctness Check (Node 11)

This function activity sends a notification to the approver that the document failed the correctness check. See: Document Submission Checks.

Set Req Status to Original Status (Node 12)

This function activity sets the requisition back to its original status, if the document has failed state or correctness checks.

End (Nodes 3 and 13)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Approve Requisition subprocess activity has a result type of PO Approval Action and Doc Verification, each End activity node must have a process result matching one of the lookup codes in the PO Approval Action and Doc Verification lookup type.

Print Document Subprocess Activities

The following is a description of each activity in the Print Document subprocess, listed by the activity's display name.

Start (Node 1)

This is a Standard function activity that simply marks the start of the subprocess.

Does User Want Document Printed? (Node 2)

This activity checks if Print was selected when the requisition was first submitted.

Print Document (Node 4)

If Print was selected when the requisition was first submitted, this activity prints the document.

End (Nodes 3 and 5)

This function activity marks the end of the process. Although the activity itself does not have a result type, each node of this activity in the process must have a process result assigned to it. The process result is assigned in the property page of the activity node. Since the Print Document subprocess activity has a result type of PO Activity Performed, each End activity node must have a process result matching one of the lookup codes in the PO Activity Performed lookup type.

Verify Approval Authority Subprocess Activities

The following is a description of each activity in the Verify Approval Authority for Approve Action subprocess and the Verify Approval Authority for Approve and Forward Action subprocess, listed by the activity's display name.

Does Approver Have Authority? (Node 2)

This function activity verifies the approver's authority based on the authority limits defined in the Approval Groups and Assign Approval Groups windows. See: Defining Approval Groups. See: Assigning Approval Groups.

Document Manager Failed (Node 3)

If the Document Approval Manager fails, the approver receives this notification that it failed. Once a system administrator successfully restarts the Document Approval Manager, the approver must respond to the notification by choosing Retry, so that the workflow can continue.