Search Results cs_contracts_wfa
Overview
The APPS.CS_CONTRACTS_WFA package is the Oracle Workflow–enabled approval engine for Oracle Service Contracts. In Oracle EBS 12.1.1 and 12.2.2, the Service Contracts module allows users to route contracts through a configurable approval process before they become active. The Workflow Architecture (WFA) components that drive this flow are implemented as callable PL/SQL procedures stored inside CS_CONTRACTS_WFA. The package is declared with AUTHID CURRENT_USER, meaning its procedures execute with the privileges of the invoking schema rather than as a definer-rights package owned by APPS.
The package name itself identifies its role: WFA denotes Workflow Activity handlers, and it is bound to the Service Contracts approval item type. Each procedure is designed to be invoked by the Oracle Workflow engine at a specific activity node within the contract approval process, receiving standard Workflow callback parameters (itemtype, itemkey, actid, funmode) and returning a status string through the result OUT parameter. The header comment indicates the source file is csctwfas.pls, an original-era Service Contracts file, confirming that this is long-standing seeded functionality rather than a recently introduced feature.
Key Procedures and Functions
Six procedures are documented, each corresponding to a discrete Workflow activity in the contract approval lifecycle:
- Selector — The entry point invoked first by the Workflow engine to determine which subsequent activity path should be followed; it evaluates the item and returns the branch result.
- Initialize_Request — Performs setup work at the start of the approval flow, initializing the request context and any Workflow item attributes needed by later nodes.
- Select_Approver — Resolves and assigns the appropriate approver for the contract, based on approval routing rules, so that the approval notification is sent to the correct user.
- Approve_Contract — Executes the approval action itself when an approver approves the contract; this is the procedure returned when searching for
approve_contract. - Reject_Contract — Executes the rejection action, terminating or returning the contract workflow when an approver rejects it.
- Initialize_Errors — Handles error initialization within the flow, providing a controlled response if earlier activities fail or encounter exceptions.
All six procedures share the same signature shape — itemtype, itemkey, actid, funmode, and result — which is the standard Oracle Workflow PL/SQL activity API convention. No parameter list should be assumed beyond the documented items.
Tables Accessed
Per the ETRM metadata, the only referenced table is CS_CONTRACTS_ALL, accessed via its APPS synonym. This is the base Service Contracts entity table storing contract headers and lines. The package reads and writes it to determine contract status, update approval flags, and record the outcome of approve/reject actions. The procedures depend on Workflow item attributes for state, but the persistent contract record itself resides in CS_CONTRACTS_ALL.
Usage Notes
This package is not typically called directly by end users or custom code. Instead, it is invoked by the Oracle Workflow engine as part of the Service Contracts approval item type, configured through Workflow Builder. Each procedure is attached to an activity node defined in the seeded contract approval process, and the engine passes the standard argument set at runtime. Customizations that modify approval routing should be implemented at the Workflow process/attribute level rather than by altering the package. Because the ETRM metadata records zero packages referencing this one, it sits at the top of its call chain within APPS, driven exclusively by Workflow rather than by other PL/SQL packages.
-
PACKAGE: APPS.CS_CONTRACTS_WFA
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CS_CONTRACTS_WFA, status:VALID,
-
PACKAGE: APPS.CS_CONTRACTS_WFA
12.1.1
-
PACKAGE BODY: APPS.CS_CONTRACTS_WFA
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CS_CONTRACTS_WFA, status:VALID,
-
PACKAGE: APPS.CS_CONTRACTS_WFA
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CS_CONTRACTS_WFA, status:VALID,
-
PACKAGE: APPS.CS_CONTRACTS_WFA
12.2.2
-
PACKAGE BODY: APPS.CS_CONTRACTS_WFA
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CS_CONTRACTS_WFA, status:VALID,
-
SYNONYM: APPS.CS_CONTRACTS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CS_CONTRACTS_ALL, status:VALID,
-
PACKAGE: APPS.CS_CONTRACTS_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CS_CONTRACTS_PUB, status:VALID,
-
SYNONYM: APPS.CS_CONTRACTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CS_CONTRACTS_ALL, status:VALID,
-
PACKAGE: APPS.CS_CONTRACTS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CS_CONTRACTS_PUB, status:VALID,
-
PACKAGE: APPS.CS_CONTRACT_WF_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CS_CONTRACT_WF_PUB, status:VALID,
-
PACKAGE: APPS.CS_CONTRACT_WF_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CS_CONTRACT_WF_PUB, status:VALID,
-
PACKAGE: APPS.WF_MONITOR
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_MONITOR, status:VALID,
-
PACKAGE: APPS.WF_MONITOR
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_MONITOR, status:VALID,
-
PACKAGE: APPS.TAPI_DEV_KIT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:TAPI_DEV_KIT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.TAPI_DEV_KIT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:TAPI_DEV_KIT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.CS_CONTRACTS_WFA
12.1.1
-
PACKAGE BODY: APPS.CS_CONTRACTS_WFA
12.2.2
-
APPS.CS_CONTRACTS_WFA dependencies on CS_CONTRACTS_WFA
12.1.1
-
APPS.CS_CONTRACTS_WFA dependencies on CS_CONTRACTS_WFA
12.2.2
-
PACKAGE: APPS.WF_CORE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_CORE, status:VALID,
-
PACKAGE: APPS.WF_CORE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_CORE, status:VALID,
-
PACKAGE: APPS.WF_ENGINE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_ENGINE, status:VALID,
-
PACKAGE: APPS.WF_ENGINE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_ENGINE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_GLOBAL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_GLOBAL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.FND_GLOBAL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_GLOBAL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.FND_MESSAGE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_MESSAGE, status:VALID,
-
PACKAGE: APPS.FND_MESSAGE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_MESSAGE, status:VALID,
-
PACKAGE: APPS.FND_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
PACKAGE: APPS.FND_API
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,