Search Results oe_close_wf




Overview

OE_CLOSE_WF is a PL/SQL package in the Oracle E-Business Suite Order Management (OM) module, owned by the APPS schema and declared with AUTHID CURRENT_USER. Its purpose is to provide the workflow-callable business logic that closes (finalizes) sales orders and order lines within the Oracle Order Management workflow. The package name carries the "WF" suffix, indicating that its procedures are designed to be invoked as Workflow function activities — that is, as server-side PL/SQL functions referenced by name from an Oracle Workflow process definition. The header date (2005) and version stamp place the object well within the release 11i/12.x lineage, and it remains present and documented in 12.1.1 and 12.2.2.

The package contains no business data of its own; instead it acts as a thin workflow adapter that authenticates the workflow process context, resolves the order or line being processed, and delegates to the underlying Order Management close/fulfill logic. This separation allows the Order Management workflow (commonly the Order Flow or Line Flow generic processes) to trigger close processing declaratively rather than embedding procedural code in the workflow definition.

Key Procedures and Functions

The documented interface exposes two public procedures, both following the standard Oracle Workflow PL/SQL function-activity signature. Neither procedure returns a value directly; results are communicated through an IN OUT NOCOPY resultout parameter.

  • Close_Order — Performs the order-level close action. Invoked by the order flow workflow when a sales order reaches the point in its lifecycle at which it should be marked closed. It resolves the order from the workflow item key and applies the closing business rules.
  • Close_Line — Performs the line-level close action. Invoked by the line flow workflow to close an individual order line once its obligations (fulfillment, shipping, invoicing rules) have been satisfied. Because a single order may contain lines progressing independently, this procedure is the more frequently executed of the two.

The shared parameter set (itemtype, itemkey, actid, funcmode, resultout) is the standard Workflow activity signature: itemtype and itemkey identify the workflow instance and hence the business object; actid identifies the activity instance; funcmode distinguishes the run, cancel, and timeout modes; and resultout returns the activity completion result back to the Workflow engine.

Tables Accessed

The ETRM metadata for OE_CLOSE_WF does not enumerate directly referenced tables, which is consistent with a workflow adapter: the close operations are typically implemented by calling Order Management's public close APIs rather than issuing DML from this package. Those APIs operate against the core Order Management tables through their APPS synonyms — principally OE_ORDER_HEADERS_ALL and OE_ORDER_LINES_ALL (order and line state), and the order/line workflow status columns that determine whether a line is eligible to close. Referenced-by metadata shows zero dependent packages, confirming that OE_CLOSE_WF sits at the leaf of the call hierarchy and is not a utility consumed by other PL/SQL units.

Usage Notes

OE_CLOSE_WF is not intended for direct invocation by end users or custom code. It is registered as a Workflow function activity — its procedures appear in the Workflow Builder function list under the Order Management item types — and is executed by the Oracle Workflow background engine as part of the order and line flows. Typical triggers are the completion of shipping and invoicing activities, or the Order Management close concurrent processing that advances orders toward their terminal status.

Because it is invoked from workflow rather than from a form, no Oracle Forms trigger calls this package directly. Customizations should not call these procedures ad hoc; rather, developers extending the order lifecycle should either configure the standard flows or create their own workflow function activities that call the documented close APIs, leaving OE_CLOSE_WF to the seeded processes.