Search Results get_wms_sys_task_type




Overview

APPS.WMS_RULE_PVT is the private PL/SQL package that implements the rule engine for Oracle Warehouse Management (WMS) in Oracle E-Business Suite 12.1.1 and 12.2.2. Its central responsibility is to evaluate a WMS rule against a transaction or reservation request and generate execution recommendations. The package specification is delivered in WMSVPPRS.pls, with the current source header dated 2013/01/31. It is declared AUTHID CURRENT_USER, meaning it executes with the privileges of the calling session rather than the definer.

The rule engine underpins directed put-away, picking, replenishment, labeling, and operation assignment. Callers supply a rule identifier, a rule type code, and the identifier of the source transaction or reservation so the package can apply the configured rule logic and persist the resulting recommendations. Because the package is classified as PVT, it is not supported for direct customer invocation; it is consumed internally by WMS and by approved product code. The metadata records 23 documented procedures and functions, and the package is referenced by 35 other packages, confirming its position as a foundational internal API.

Key Procedures and Functions

The documented entry points fall into three functional groups.

  • APPLY — the principal entry point. It applies a WMS rule to a given transaction or reservation input and creates recommendations. The source notes that the strategy temporary view must contain a unique record for the transaction, at least one transaction detail line must exist, the rule must exist in WMS_RULES_B, and, for picking, a quantity tree must have been created via INV_Quantity_Tree_PVT.Create_Tree.
  • Rule execution: EXECUTE_TASK_RULE, EXECUTE_OP_RULE, APPLYDEFLOC, APPLYLABEL, ASSIGNTTS, ASSIGNTT, ASSIGN_OPERATION_PLANS, ASSIGN_OPERATION_PLAN, and QUICKPICK. These apply rule definitions to task, operation, default location, label, and quick-pick scenarios.
  • Rule maintenance: FIND_RULE, CHECKSYNTAX, GENERATERULEPACKAGE, GETPACKAGENAME, COMPILE_ALL_RULE_PACKAGES, CALCRULEWEIGHT, GETCONVERSIONRATE, GET_WMS_SYS_TASK_TYPE, ISRULEDEBUGON, and ROLLBACK_CAPACITY_UPDATE. These support rule lookup, syntax validation, dynamic package generation and compilation, weighting, UOM conversion, system task type resolution, debug control, and recovery of capacity updates.

GET_WMS_SYS_TASK_TYPE is the function associated with the search term "get_wms_sys_task_type". It resolves the system task type used during rule evaluation, allowing rule logic to branch on the task being performed.

Tables Accessed

The package reads and writes core WMS and inventory tables through APPS synonyms:

Usage Notes

WMS_RULE_PVT is normally invoked indirectly. Warehouse execution forms and concurrent programs such as rule compilation and strategy processing call into it, and 35 other packages reference it, including public WMS APIs that delegate rule evaluation. Custom code should not call this package directly; integrators should use the supported public APIs and let them invoke WMS_RULE_PVT. The AUTHID CURRENT_USER declaration requires that the invoking session hold the necessary object privileges.