The following describes how to set up, connect, and configure a template to use for Electronic Laboratory Reporting to CalREDIE.
Please review the pre-requisite setup instructions for setting up Salesforce Health Cloud and Salesforce Connected App.
Running on Studio
Mule Studio offers several ways to import a project into the workspace, for instance:
- Anypoint Studio Project from File System.
- Packaged mule application (.jar).
- Configure config-LOCAL.yaml with your Salesforce properties.
- Configure config-secured-LOCAL.yaml with your Salesforce passwords.
- Once the application is started, the application will be triggered by the scheduler.
https.host— sets the service host interface. It should be configured in
config-<mule.env>.yamlfile. (Defaults to 0.0.0.0 for all interfaces).
https.port— sets the HTTPS service port number. It should be configured in
config-<mule.env>.yamlfile. (Default 8082).
- TLS Configuration - Keystore properties setup:
keystore.alias- sets the alias to the keystore. It should be configured in
keystore.path- sets the path to the key file. Key should be availabe in /src/main/resources/keystore. It should be configured in
keystore.keypass— sets keystore keypass to support HTTPS operation. It should be encrypted and configured in
keystore.password— sets keystore password to support HTTPS operation. It should be encrypted and configured in
Salesforce Connector Configuration
MuleSoft's Salesforce Connector requires username, password, and optionally a security token to communicate with Salesforce. After obtaining the necessary credentials information configure it in the properties file located in
salesforce.username should be configured in
salesforce.password should be encrypted and configured in
Please refer to the attached link on how to secure the configuration properties.
Deployment instructions for CloudHub using provided scripts
Ensure the Maven profile
CloudHub-DEV has been properly configured in your
settings.xml file. Reference can be found by downloading the Accelerator Common Resources asset. Additional instructions are available in the Getting Started with MuleSoft Accelerators - Build Environment guide.
Update the config-.yaml properties appropriately and then use one of the following scripts to deploy the application to CloudHub:
- packageDeploy.sh or deployOnly.sh (Mac/Linux)
- packageDeploy.cmd or deployOnly.cmd (Windows)
Tested and verified
This solution was developed and tested on Anypoint Studio 7.15 and Mule Runtime 4.4.0.