RCG Product Process API - Implementation Template

(0 reviews)

Deployment

Each Accelerator implementation template in Exchange includes Bash and Windows scripts for building and deploying the APIs to CloudHub. These scripts depend on repositories, global settings, deployment profiles, and associated properties configured in the Maven settings.xml file.

Many templates can also be run from Anypoint Studio without having to customize the Run/Debug profiles. However, some templates make use of hidden deployment properties to protect sensitive information (e.g., passwords and secret keys). These properties must be supplied to the runtime by updating the configuration profile and adding them as VM arguments.

Preparation

Ensure the Maven profile CloudHub-RCG-DEV has been properly configured in your settings.xml file. In particular, make sure the common properties for your environment have been provided (e.g., Anypoint Platform client ID and secret).

Required property overrides

At a minimum, the following properties must be customized to reflect the target deployment environment.

Property NameDescription
api.autodiscovery-idRequired if using API Manager to secure this API
products-prc-api.http-client.client-idClient Id provided for Products Process API to interact with all System API's
products-prc-api.http-client.client-secretClient Secret provided for Customer Process API to interact with all System API's
mdm-sys.hostMDM System API Instance Hostname
mdm-sys.portMDM System API Instance Port
mdm-sys.base-pathMDM System API Instance base path
salesforce-b2b-products-sys.hostSalesforce System API Instance Hostname
salesforce-b2b-products.portSalesforce System API Instance Port
salesforce-b2b-products.base-pathSalesforce System API Instance base path
sap-hana-sys-sys.hostSAP S/4 HANA System API Instance Hostname
sap-hana-sys.portSAP S/4 HANA System API Instance Port
sap-hana-sys.base-pathSAP S/4 HANA System API Instance base path
b2c-commerce-sys.hostB2C Commerce System API Instance Hostname
b2c-commerce-sys.portB2C Commerce System API Instance Port
b2c-commerce-sys.base-pathB2C Commerce System API Instance base path
ofbiz-products-sys.hostOFBIZ Products System API Instance Hostname
ofbiz-products-sys.portOFBIZ Products System API Instance Port
ofbiz-products-sys.base-pathB2C Commerce System API Instance base path
salsify-products-sys.hostSalsify System API Instance Hostname
salsify-products-sys.portSalsify System API Instance Port
salsify-products-sys.base-pathSalsify System API Instance Base path
cgcloud-products-sys.hostSalsify System API Instance Hostname
cgcloud-products-sys.portSalsify System API Instance Port
cgcloud-products-sys.base-pathSalsify System API Instance Base path
anypoint-mq.server-urlAnypoint MQ URL where the message Exchange, Topics, queues have been created
anypoint-mq.client-idAnypoint MQ Client Id to access messages from MQ
anypoint-mq.client-secretAnypoint MQ Client Secret to access messages from MQ

Running the application from Anypoint Studio

The following instructions are for running applications from Studio but apply to debugging as well.

  1. Update the src/main/resources/config/config-local.yaml file and provide values for the properties described above.
  2. Right-click the project and select Run As -> Mule Application (configure)
  3. If hidden deployment properties (e.g., Anypoint MQ credentials) are required, select the Arguments tab and add the property definitions to the VM arguments section. For example:
     -M-Danypoint-mq.client-id=<client id> -M-Danypoint-mq.client-secret=<client secret>
  4. Click Run to launch the application.

To debug an application, choose Debug As -> Mule Application (configure) in the second step instead.

Next steps

Visit the Data mappings tab to learn more about how the request and response data structures are mapped between the API interface and other API's.


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onSep 17, 2022
Asset overview

Asset versions for 2.6.x

Asset versions
VersionActions
2.6.2
2.6.1
2.6.0