Each company uses a set of processes to run the business. These processes are quite common, for example each company will need to create an invoice, send it out, receive the payment and register the payment for further processing. This logic will be quite similar for small businesses as well as for the large ones, no matter the industry or country. With Mulesoft API templates, the process integration becomes faster and less error-prone.
Imagine the process API as the logic controller for the various connected systems and the business logic manager. It decides which sources to use and what to do with the handled data. In our example, it will deal with the CRM system, the banking systems, the partner management, etc. The process API will manage the logic of using the various data sources and transforming the data. Many of the APIs will contain:
• Source – the data source called by a System API
• Destination – the data destination called by a System API
• Rules – requirements on the handled data
• Result – to verify the integration process
The five frequent integration patterns – migration, broadcast, aggregation, correlation, and bi-directional synchronization – can be reused the same way.
The data used in the Process APIs is usually coming from different sources. System APIs are the building blocks that connect to the data sources and destinations and hide the complexity of the different systems. System APis can be reused by anyone needing the same data.
API template recipe
1. Connect – Use REST APIs to connect to the data sources
2. Link to data
3. Create business logic – Implement for example the broadcast of the payment received operation
There are three different layers containing reusable API templates that will be part of every integration. While the System API manages the data sources and destinations, the Process API handles the logic, the Experience API presents the process and/or the result in different HID systems, in our example perhaps the screen for reviewing the invoice, a smartphone to verify the payment and so on.
Check out the first API templates for databases, Salesforce and SAP. We are proud to be part of the development.