RCG PIM Synchronization 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 for this application to reflect the target deployment environment.

Property NameDescription
api.autodiscoveryIDRequired if using API Manager to secure this API
https.request.akamai.hostAKAMAI API hostname
https.request.akamai.hostAKAMAI API path
https.request.pimSysAPI.hostPIM System API hostname
https.request.pimSysAPI.pathPIM System API base path
https.request.pimSysAPI.clientIdClient ID required to access PIM System API
https.request.pimSysAPI.clientSecretClient Secret required to access PIM System API
https.request.b2cSysAPI.hostB2C System API hostname
https.request.b2cSysAPI.pathB2C System API path
amq.hostAnypoint MQ hostname
amq.destinationAnypoint MQ queue name

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.


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onOct 18, 2022
Asset overview

Asset versions for 2.3.x

Asset versions
VersionActions
2.3.0