Offline Model Loading by using Catalog Client Service

By using the catalog client service, you can upload offline files on JMS or HTTP. Through this catalog client service, you can upload any models from the offline directory.

To use the service, perform the following configurations in the application.properties file:

  • Set the catalogMode flag as OPE for Offer and Price Engine.

  • Set catalogPublishMode as JMS or REST per the requirement.

  • Set the authorization properties to generate auth token.

  • Set JMS or HTTP configuration and Offline model loading catalog URL.

The following REST service is used for uploading offline models.

Operation Upload Offline Models

Endpoint: http://<host_address>:<port_address>/v1/uploadModel

Method: POST

Select the modelType from the drop-down list and enter the tenantId for which you want to publish the models.

Models from the offline model loading directory are uploaded.

Note: It is a good practice not to use catalog client service on a cloud platform as the models are fetched from a local directory. To use this service with JMS, enable the com.tibco.catalog.loading.using.ems flag in the $OPE_HOME/seed-data/app-properties/ConfigValues_CatalogService.json file.