Offer and Price Engine (OPE) can be customized to support the functionalities that can be integrated by using the Java extension.
All OPE web services can be extended using custom configurations in the specified hooks while requests execution. All the web service requests are executed sequentially in the phases and the custom hooks are provided for each phase. Following are the phases and the hooks provided for every phase:
GetOffer
Phase
|
Hook in ope_config file
|
Custom Validation
|
customOfferValidationRule
|
Custom Filter Processing
|
customOfferFilterRules
|
Custom Eligibility
|
customEvaluateEligibilityRule
|
Custom Publishing
|
customOfferResponseRule
|
Validate Offer
Phase
|
Hook in ope_config file
|
Custom Validation
|
customOfferValidationRule
|
Custom Publishing
|
customOfferResponseRule
|
GetProductInformation
Phase
|
Hook in ope_config file
|
Custom Filter Processing
|
customOfferFilterRules (If the request contains query elements)
|
Custom Publishing
|
customProdInfoResponseRule
|
GetPrices
Phase
|
Hook in ope_config file
|
Custom Processing
|
customPriceProcessingRule
|
Custom Publishing
|
customPriceResponseRule
|
GetPriceInformation
Phase
|
Hook in ope_config file
|
Custom Processing
|
priceCustomInfoProcessingRule
|
Custom Publishing
|
customPriceResponseRule
|
Prerequisites
For all the files used for the implementation of this Java extension, you need to refer the
Java API References .
To extend the execution of OPE web service requests during different phases, add the java-based custom classes as described in the following steps: