Accelerator Common Resources - Source

(0 reviews)

home

This asset is a component of the MuleSoft Accelerators, which are a collection of technical assets (predominantly API specifications and implementation templates) and documentation to accelerate the implementation of multiple use cases supporting a larger business or industry problem.

For more details regarding how to use the Common Build resources, refer to the Getting Started with MuleSoft Accelerators guide.

Project contents

The accelerator-common-resources project provides Maven build profiles for both the Salesforce Clouds and Retail accelerators. It also includes scripts, product-specific config files, and Postman collections used for environment setup and testing.

To obtain the source for this project, download the asset and extract the contents into a temporary folder. The archive contains a single project folder, which can be moved/copied to the desired location and/or imported directly into Studio as an existing project.

Build files

Maven module build files are provided to simplify building and deploying all assets required by each use case. All projects in each build file must already exist under the root workspace folder.

Configuration files

The settings-accelerators.xml file is a Maven configuration template that should be used as the basis for building and deploying assets related to the MuleSoft Accelerators. Copy or merge the content of this file to one on your local workstation (the default location is $HOME/.m2/settings.xml on Linux/MacOS, %USERPROFILE%\.m2\settings.xml on Windows) and customize the following sections as per your organization's target Anypoint instance:

  • The global-settings-org global profile properties
  • The CloudHub-DEV deployment profile properties
  • Credentials for the anypoint-exchange, anypoint-exchange-v2, anypoint-exchange-v3, accelerator-exchange, and mule-enterprise server entries

Once configured correctly, you will be able to build and deploy any implementation template to your own Anypoint instance using Maven.

Postman collections

The following Postman collections can be found under the collections folder:

  • Accelerator-Deployment-Verification - provides a set of test cases to invoke the new /ping endpoint on all accelerator APIs
  • Anypoint-MQ-Configuration - can be used to automatically create the Anypoint MQ destinations and client application required by many accelerator components
  • MultiChain-Configuration - helper collection to create wallet addresses and assets in a MultiChain instance

Salesforce

The following scripts and classes can be found under the Salesforce folder which are used by the Salesforce System APIs and Event Listeners:

  • CreateApexTriggers.txt - includes apex triggers used to publish the events which are processed by Accelerator Salesforce Party Event Listener and Accelerator Salesforce Financial Account Event Listener
  • CreateCustomFields.txt - includes scripts to create custom fields in Salesforce
  • CreateCustomObjects.txt - includes scripts to create custom objects in Salesforce
  • CreatePlatformEventsCustomFields.txt - includes scripts to create custom fields on a Platform event which is processed by Accelerator Salesforce Party Event Listener and Accelerator Salesforce Financial Account Event Listener
  • CustomFieldUtility.apxc - This apex class includes functions which can be used to create custom fields in Salesforce
  • CustomObjectUtility.apxc - This apex class includes functions which can be used to create custom objects in Salesforce

Note:
The scripts for creating Custom Fields, Custom Objects and Apex Triggers are consolidated for all the usecases in Accelerators. You may not need to run all of them. Refer the Documentation of the System API or the Event Listener that you are setting up to understand what is applicable for your specific usecase.


Reviews

TypeCustom
OrganizationMulesoft
Published by
MuleSoft Organization
Published onDec 12, 2023
Asset overview

Asset versions for 2.3.x

Asset versions
VersionActions
2.3.1