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
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.
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.
|anypoint-mq.order-update-destination||Anypoint-mq Order Update Queue Name|
|anypoint-mq.order-update-dl-destination||Anypoint-mq Order Update Dead Letter Queue Name|
|anypoint-mq.customer-update-destination||Anypoint-mq customer Update Queue Name|
|anypoint-mq.customer-update-dl-destination||Anypoint-mq customer Update Dead Letter Queue Name|
|anypoint-mq.product-update-destination||Anypoint-mq Product Update Dead Letter Queue Name|
|anypoint-mq.product-update-dl-destination||Anypoint-mq Product Update Dead Letter Queue Name|
|anypoint-mq.server-url||Anypoint-mq server host url|
|anypoint-mq.client-id||Anypoint-mq client id|
|anypoint-mq.client-secret||Anypoint-mq client secret|
Running the application from Anypoint Studio
The following instructions are for running applications from Studio but apply to debugging as well.
- Update the
src/main/resources/config/config-local.yamlfile and provide values for the properties described above.
- Right-click the project and select
Run As -> Mule Application (configure)
- If hidden deployment properties (e.g., Anypoint MQ credentials) are required, select the
Argumentstab and add the property definitions to the
VM argumentssection. For example:
-M-Danypoint-mq.client-id=<client id> -M-Danypoint-mq.client-secret=<client secret>
Runto launch the application.
To debug an application, choose
Debug As -> Mule Application (configure) in the second step instead.
Deployment instructions for CloudHub
The following instructions apply to CloudHub deployments only.
- Update the
config-dev.yamlproperties as described above. You can also choose to add them to your
- Use one of the following scripts to deploy application to CloudHub:
packageDeploy.cmd(Windows) - clean, build, and deploy the application
deployOnly.cmd(Windows) - deploy a previously-built application
- Bring up the Runtime Manager console in Anypoint and monitor the application for proper startup.
Visit the Data mappings tab to learn more about how the request and response data structures are mapped between API interface and SAP S/4HANA system.