Search Results upd_flow_status_code_mix_rej
Overview
The APPS.OE_RMA_WF package body provides the workflow-enabled integration layer between Oracle Order Management's Return Material Authorization (RMA) processing and the Oracle Workflow Engine. It encapsulates the PL/SQL logic invoked by workflow activities attached to the RMA order and return line lifecycles, allowing the Order Management application to drive return-related business events — such as outbound shipment creation and receiving confirmation — through the Workflow Engine rather than through direct procedural calls.
The package is classified as an OTHER API in the ETRM repository, indicating that it is not published as a public, customer-facing API but is instead an internal implementation component consumed by seeded workflow definitions. Its header comment identifies it as a workflow callback package, with the standard callback signature (itemtype, itemkey, actid, funcmode, resultout) governing each entry point. This design allows each function or procedure to return activity outcomes such as COMPLETE, WAITING, DEFERRED, NOTIFIED, or ERROR, consistent with Workflow Engine conventions.
Key Procedures and Functions
The package exposes six documented program units, each tied to a specific workflow activity within the RMA process:
- CREATE_OUTBOUND_SHIPMENT — Invoked as a workflow activity to generate the outbound shipment associated with an RMA return. It assembles Order Management public API structures (header, line, adjustment, and sales credit records) and delegates shipment creation to the Order Management APIs.
- IS_RETURN_LINE — A validation function that determines whether a given order line is a return line, allowing the workflow to branch conditionally based on the line's RMA nature.
- IS_LINE_RECEIVABLE — Evaluates whether a return line is eligible to be received, supporting the receiving branch of the RMA workflow.
- WAIT_FOR_RECEIVING — Places the workflow into a waiting state until receiving has been completed for the return line, resuming execution upon the appropriate receiving event.
- UPD_FLOW_STATUS_CODE_REJ — Updates the return line's flow status code to reflect a rejection outcome, driving the line to the appropriate rejected state.
- UPD_FLOW_STATUS_CODE_MIX_REJ — Updates the flow status code for the mixed-rejection scenario. This is the unit most directly associated with the search term
upd_flow_status_code_mix_rej, which is typically encountered when diagnosing a workflow activity that fails or does not transition as expected during partial RMA rejections.
The UPD_FLOW_STATUS_CODE_MIX_REJ activity is commonly implicated in workflow error stacks, because an invalid flow status transition or a locked order line will raise an exception that surfaces as a workflow activity error.
Tables Accessed
The package interacts with the following tables through APPS synonyms:
- MTL_SYSTEM_ITEMS — Referenced to validate item attributes associated with return lines.
- OE_ORDER_LINES and OE_ORDER_LINES_ALL — The primary transactional tables read and updated by the flow status procedures, including
UPD_FLOW_STATUS_CODE_MIX_REJ, which writes the updatedFLOW_STATUS_CODEback to the order line. - WF_ITEM_ACTIVITY_STATUSES and WF_PROCESS_ACTIVITIES — Workflow runtime tables queried to determine current activity state and configuration during callback execution.
Usage Notes
OE_RMA_WF is not intended for direct invocation by end users or custom applications. It is executed by the Oracle Workflow Engine when the seeded RMA workflow item type transitions through its activities. Consequently, the package is triggered indirectly through Order Management forms, the RMA receiving process, and Order Management concurrent programs that advance order and return flow statuses. ETRM records zero packages referencing OE_RMA_WF, confirming it sits at the top of the dependency chain as a workflow-callback consumer. Troubleshooting the UPD_FLOW_STATUS_CODE_MIX_REJ activity therefore begins with the Workflow Engine's activity error stack and the corresponding order line status, rather than with a direct API call.
-
APPS.OE_RMA_WF SQL Statements
12.2.2
-
PACKAGE BODY: APPS.OE_RMA_WF
12.2.2
-
PACKAGE: APPS.OE_RMA_WF
12.2.2
-
APPS.OE_RMA_WF dependencies on STANDARD
12.2.2
-
APPS.OE_RMA_WF dependencies on WF_CORE
12.2.2
-
APPS.OE_RMA_WF dependencies on OE_STANDARD_WF
12.2.2
-
APPS.OE_RMA_WF dependencies on OE_RMA_WF
12.2.2
-
APPS.OE_RMA_WF dependencies on OE_DEBUG_PUB
12.2.2
-
APPS.OE_RMA_WF dependencies on OE_ORDER_WF_UTIL
12.2.2