Search Results validate_eventoffer
Overview
AMS_EVENTOFFER_CUHK is a customer-hook package within the Oracle E-Business Suite Advanced Marketing (AMS) module, owned by the APPS schema. Its name follows the standard Oracle naming convention for customer extensions: the "CUHK" suffix denotes a customer hook, indicating that the package exposes stub entry points intended to be customized or overridden by implementers without modifying Oracle's seeded code. The package serves as the customization layer for the Event Offer business object, which represents promotional offers tied to marketing events managed through the AMS Event Management and Offer Management functionality.
The package operates in tandem with AMS_EventOffer_PVT, the private API that performs the core validation, insert, update, delete, and lock logic for event offers. AMS_EVENTOFFER_CUHK supplies pre-processing and post-processing wrappers around those private API operations, giving customers a sanctioned mechanism to inject additional business rules, defaulting logic, or side effects at defined points in the event offer lifecycle. The package is declared AUTHID CURRENT_USER, so its procedures execute with the privileges of the invoking user rather than the package owner.
Key Procedures and Functions
The ETRM metadata documents ten procedures, organized as five paired pre/post hooks corresponding to the principal event offer operations:
- CREATE_EVENTOFFER_PRE — customer pre-processing invoked before the event offer creation logic executes.
- CREATE_EVENTOFFER_POST — customer post-processing invoked after the event offer record is created.
- DELETE_EVENTOFFER_PRE — pre-processing invoked before an event offer is deleted.
- DELETE_EVENTOFFER_POST — post-processing invoked after deletion of an event offer.
- LOCK_EVENTOFFER_PRE — pre-processing invoked before an event offer is locked for update.
- LOCK_EVENTOFFER_POST — post-processing invoked after the lock operation.
- UPDATE_EVENTOFFER_PRE — pre-processing invoked before an event offer is updated.
- UPDATE_EVENTOFFER_POST — post-processing invoked after the update completes.
- VALIDATE_EVENTOFFER_PRE — pre-processing invoked before event offer validation. This is the procedure most likely to be relevant to a search for "validate_eventoffer", since it brackets the validation routine.
- VALIDATE_EVENTOFFER_POST — post-processing invoked after validation of an event offer.
The documented signatures use the evo_rec_type record defined in AMS_EventOffer_PVT, along with identifiers such as evo_id and object_version_number, and consistently return a status indicator. Notably, the pre-processing procedures accept their record and identifier parameters as IN OUT NOCOPY, allowing customer code to modify values before the private API processes them, while post-processing procedures take input-only parameters. Implementers are expected to replace the stub bodies with their own PL/SQL; the seeded versions typically contain no logic or a simple success assignment.
Tables Accessed
The ETRM metadata for this package does not list any directly referenced tables. This is consistent with the design of a customer hook: the package does not itself perform DML against event offer tables. Instead, persistence is handled by AMS_EventOffer_PVT, which writes to the underlying AMS event offer entities through APPS synonyms. Any table access performed by customer code placed in these hooks would be authored by the implementer, not by the seeded package. The package passes the evo_rec_type record and numeric identifiers between the hooks and the private API, so the effective data surface is the event offer record plus associated marketing entities.
Usage Notes
AMS_EVENTOFFER_CUHK is not typically invoked directly by end users. It is called by AMS_EventOffer_PVT or by higher-level AMS APIs and forms that delegate to the private package, which in turn fires the corresponding customer hook at each lifecycle stage. The package is referenced by one other package within the application, confirming this caller relationship.
The standard customization pattern is to edit the seeded package body and insert custom logic into the appropriate pre or post procedure. Because the pre hooks receive IN OUT NOCOPY parameters, they are the correct place to apply defaulting or transformation rules; post hooks are appropriate for audit logging, workflow initiation, or downstream propagation. Customer changes should be preserved across patching by tracking the package as a custom object. Administrators should validate modified hook logic in a non-production environment, since errors raised inside these procedures propagate through the calling private API and can interrupt event offer creation, update, deletion, lock, or validation.
-
PACKAGE: APPS.AMS_EVENTOFFER_CUHK
12.2.2
-
PACKAGE: APPS.AMS_EVENTOFFER_CUHK
12.1.1
-
PACKAGE: APPS.AMS_EVENTOFFER_VUHK
12.1.1
-
PACKAGE: APPS.AMS_EVENTOFFER_VUHK
12.2.2
-
PACKAGE: APPS.AMS_EVENTOFFER_PUB
12.1.1
-
PACKAGE: APPS.AMS_EVENTOFFER_PUB
12.2.2
-
PACKAGE BODY: APPS.AMS_EVENTOFFER_PUB
12.1.1
-
PACKAGE BODY: APPS.AMS_EVENTOFFER_PUB
12.2.2
-
PACKAGE: APPS.AMS_EVENTOFFER_PUB_W
12.2.2
-
PACKAGE: APPS.AMS_EVENTOFFER_PUB_W
12.1.1
-
APPS.AMS_EVENTOFFER_VUHK dependencies on AMS_EVENTOFFER_PVT
12.2.2
-
APPS.AMS_EVENTOFFER_CUHK dependencies on AMS_EVENTOFFER_PVT
12.2.2
-
APPS.AMS_EVENTOFFER_CUHK dependencies on AMS_EVENTOFFER_PVT
12.1.1
-
APPS.AMS_EVENTOFFER_VUHK dependencies on AMS_EVENTOFFER_PVT
12.1.1
-
APPS.AMS_EVENTOFFER_PUB dependencies on AMS_EVENTOFFER_PVT
12.2.2
-
APPS.AMS_EVENTOFFER_PUB dependencies on FND_API
12.2.2
-
APPS.AMS_EVENTOFFER_PUB dependencies on AMS_EVENTOFFER_PVT
12.1.1
-
APPS.AMS_EVENTOFFER_PUB dependencies on AMS_EVENTOFFER_PUB
12.2.2
-
APPS.AMS_EVENTOFFER_PUB dependencies on AMS_EVENTOFFER_PUB
12.1.1
-
APPS.AMS_EVENTOFFER_PUB dependencies on FND_API
12.1.1
-
PACKAGE BODY: APPS.AMS_EVENTOFFER_PUB_W
12.1.1
-
PACKAGE BODY: APPS.AMS_EVENTOFFER_PUB_W
12.2.2
-
APPS.AMS_EVENTOFFER_PUB dependencies on FND_API
12.1.1
-
APPS.AMS_EVENTOFFER_PUB dependencies on FND_API
12.2.2
-
APPS.AMS_EVENTOFFER_PUB_W dependencies on FND_API
12.1.1
-
APPS.AMS_EVENTOFFER_PUB_W dependencies on FND_API
12.2.2