Post Installation Task 5: Integrating with TIBCO Offer and Price Engine Service

TIBCO Order Management provides an inbuilt integration with TIBCO Offer and Price Engine Service.

Procedure

  1. In $OM_HOME/roles/configurator/standalone/config/ConfigValues_OrchService.xml file, within the existing parent category "OPE Configuration", configure the following properties.
    1. To enable the offer validation, set the value of the following property as true:
      Property Description Default Value
      extResource.enableOfferValidation Enable offer validation false
    2. In $OM_HOME/roles/configurator/standalone/config/ConfigValues_Common.xml file, if enableSecureAPI is true, then the Orchestrator calls the secure API of Offer and Price Engine. Set the following flags for this:
      Property Description Default Value
      extResource.opeGetAuthTokenURL This is the complete URL for OPE Login API. This API returns oAuth token that is passed along offerValidation API if enableSecureAPI is true. http://localhost:8181/login
      extResource.opeSecureApiUsername User name for OPE login API admin
      extResource.opeSecureApiPassword Password for OPE login API admin
      extResource.opeOfferValidationSecureURL Complete URL for OPE Secure Offer Validation API. It supports OAuth based Authentication. http://localhost:8181/opes/api/v1/offers/validate
    3. In $OM_HOME/roles/configurator/standalone/config/ConfigValues_Common.xml file, if enableSecureAPI is false, then the orchestrator calls the non-secure API of Offer and Price Engine. Set the following flag for this:
      Property Description Default Value
      extResource.opeOfferValidationNonSecureURL Complete URL for OPE non-secure offer validation URL. http://localhost:9090/opes/api/v1/offers/validate
  2. In $OM_HOME/roles/ocs/standalone/config/application.properties file, configure the following properties.

    1. Property Description Default Value
      com.tibco.af.ope.default.tenantId It refers to the default tenant of OPE. TIBCO
    2. For pricing service, set the following property:
      Property Default Value
      com.tibco.af.ocs.pricingService.host localhost
      com.tibco.af.ocs.pricingService.port 8090
      com.tibco.af.ocs.pricingService.username admin
      com.tibco.af.ocs.pricingService.password admin
      com.tibco.af.ocs.pricingService.url ${com.tibco.af.ocs.ap.protocol}://${com.tibco.af.ocs.pricingService.host}:${com.tibco.af.ocs.pricingService.port}/opes/api/v1/offers/prices
      com.tibco.af.ocs.pricingService.trust.store cert/trust.jks
      com.tibco.af.ocs.pricingService.trust.password changeit
      Note: User does not need to change the URL for configurations.
    3. For OPE eligibility API, set the following property:
      Property Default Value
      com.tibco.af.ocs.eligibilityService.host localhost
      com.tibco.af.ocs.eligibilityService.port 8090
      com.tibco.af.ocs.eligibilityService.url ${com.tibco.af.ocs.ap.protocol}://${com.tibco.af.ocs.eligibilityService.host}:${com.tibco.af.ocs.eligibilityService.port}/opes/api/v1/offers/eligible
      com.tibco.af.ocs.eligibilityService.username admin
      com.tibco.af.ocs.eligibilityService.password admin
      com.tibco.af.ocs.eligibilityService.trust.store cert/trust.jks
      com.tibco.af.ocs.eligibilityService.trust.password changeit
      Note: User does not need to change the URL for configurations.