Results for “get_owner_pre”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
AS_LEAD_ROUTING_WF_CUHK is a user hook package in Oracle E-Business Suite that provides a customization extension point for the lead routing engine within Oracle Sales and Telesales. The package name suffix "CUHK" denotes a customer user hook, signaling that it is intended to be extended by implementers who require custom routing logic beyond the seeded territory-based rules. The specification is defined in the APPS schema with AUTHID CURRENT_USER, and the header comment identifies it as part of the Oracle Sales (AS) lead management module, with the source file named asxcldos.pls.
The package's declared purpose is to allow a user to implement custom routing rules by creating a package body for the supplied specification. The hook is invoked by the routing engine whenever a lead is created or updated from the OSO Leads tab, the Telesales Leads tab, or the lead import concurrent program. The calling package is documented as AS_LEAD_ROUTING_WF.GetOwner, which means the hook participates in the owner determination step of the routing process. By supplying a custom body, an organization can influence which resource is assigned as the owner of a newly captured or updated lead.
Key Procedures and Functions
The ETRM metadata documents a single public routine in this package:
- GET_OWNER_PRE — The pre-routing hook procedure. Its documented parameter philosophy includes p_api_version_number, p_init_msg_list, p_validation_level, and p_commit, consistent with the standard Oracle API parameter convention. In the 11i Oracle Sales application the API version number is documented as 2.0. The routine is intended to execute prior to the standard owner determination performed by AS_LEAD_ROUTING_WF.GetOwner, giving the custom implementation an opportunity to evaluate business-specific criteria and return an owner assignment or otherwise influence the routing decision.
The specification itself contains no seeded business logic; the package body is expected to be authored by the implementing organization. The header explicitly instructs that the body must not issue a COMMIT, because the calling Oracle Application code will issue the commit once the transaction is complete.
Tables Accessed
The following tables are documented as referenced through APPS synonyms:
- AS_SALES_LEADS — The core lead entity, holding lead header information used by the routing engine.
- AS_TERRITORY_ACCESSES — Territory access definitions that govern which resources may be considered for assignment.
- JTF_RS_RESOURCE_EXTNS — Resource extension information for the sales resources eligible to own the lead.
- JTF_TERR_RSC_ALL — The association of resources to territories, used to resolve which resources belong to a qualifying territory.
A custom body typically queries these tables to derive candidate owners and evaluate routing criteria consistent with the organization's sales coverage model.
Usage Notes
This package is invoked automatically by the lead routing engine; it is not called directly from a form or concurrent program by the end user. The documented invocation points are lead creation and update from the OSO Leads tab, the Telesales Leads tab, and the lead import program. Because the hook runs inside the caller's transaction, custom code must not commit. The specification is owned by APPS and is referenced by two other packages, and it is classified as an OTHER API in the ETRM registry. Implementers extending this hook should perform thorough regression testing across all three invocation paths, as a faulty custom body will affect lead assignment for interactive and batch lead processing alike.