Integrating TIBCO Fulfillment Catalog Discount Model Offline

Discount models can be loaded in the engine using the offline or online integration with TIBCO Fulfillment Catalog. The offline format for discount models must conform to the schema used by TIBCO Fulfillment Catalog to generate the models.

OPE uses the discount models to get the discounts configured in the discount catalog and correlates these discounts to a given price based on the relationship.

Procedure

  1. Set the following configurations for OPE to consume the discount models offline using the poller mechanism or offline web service.
    <Category description="Discount Catalog Configuration" name="Discount Catalog Configuration" visibility="Advanced">
       <ConfValue description="Use offline discount" name="Use offline discount" propname="com.tibco.fom.oms.afi.offline.discount.use" sinceVersion="3.0" visibility="Advanced">
          <ConfBool default="false" value="false" />
       </ConfValue>
       <ConfValue description="Discount catalog poller and WS directory" name="Discount catalog poller and WS directory" propname="com.tibco.fom.oms.afi.offline.discount.directory" sinceVersion="3.0" visibility="Advanced">
          <ConfString default="/usr/tibco/discount" value="/usr/tibco/discount" />
       </ConfValue>
       <ConfValue description="Discount catalog import success poller and WS directory" name="Discount catalog import success poller and WS directory" propname="com.tibco.fom.oms.afi.offline.discount.importsuccess.directory" sinceVersion="3.0" visibility="Advanced">
          <ConfString default="/usr/tibco/discount-success" value="/usr/tibco/discount-success" />
       </ConfValue>
       <ConfValue description="Discount catalog import failure poller and WS directory" name="Discount catalog import failure poller and WS directory" propname="com.tibco.fom.oms.afi.offline.discount.importfailure.directory" sinceVersion="3.0" visibility="Advanced">
          <ConfString default="/usr/tibco/discount-failure" value="/usr/tibco/discount-failure" />
       </ConfValue>
    </Category>
    
  2. For the web service, set the following parameter to true in the service request:

    <off:DiscountOffline>true</off:DiscountOffline>

  3. Create the following topic:
    tibco.aff.ope.events.discount.publish