Invoke a MuleSoft Composer Flow Through An External System

Arif Ali Mansuri
Another Integration Blog
4 min readDec 7, 2023

To begin, let’s uncover why someone would want to invoke a Composer flow from an external system:

MuleSoft Composer flows are used to streamline and automate business processes by connecting various applications, systems, and data sources. Composer flows enable users to design workflows visually, making it easier to orchestrate complex integrations without extensive coding.

MuleSoft composer was designed with the Business User in mind. Meaning, you no loner have to caode to create automated integrations that help streamline your business processes! Composer flows vary in their capabilities, and can solve business problems like broadcasting, automated communication, auto-replies and many other daily business tasks.

Composer flows are particularly useful for:

  1. Rapid Integration: Composer flows allow for quick integration between different applications, reducing development time and effort.
  2. Low Code Development: Users with varying technical expertise can design and implement integrations using a visual, low code approach, minimizing the need for extensive coding skills.
  3. Connectivity: They facilitate the connection of disparate systems, applications, and data sources, fostering seamless communication and data exchange.
  4. Automation: Composer flows help automate repetitive tasks and workflows, improving operational efficiency and reducing manual errors.
  5. Scalability: With MuleSoft’s AnyPoint Platform, Composer flows provide a scalable solution that can adapt to changing business needs and handle increased data volumes.
  6. API Management: They support API led connectivity, allowing for the creation, management, and consumption of APIs to enable better communication between different services.

Overall, MuleSoft Composer flows contribute to building a more agile and connected IT landscape, enabling organizations to respond more effectively to evolving business requirements.

To better understand, let’s follow a use case that invokes MuleSoft composer flow via a popular external system i.e. POSTMAN

Prerequisites:

1. MuleSoft Composer credentials

2. Any external system to invoke and test

i.e. Advance Rest Client (ARC), Postman, AnyPoint Studio, different composer flow etc.

Step 1. Log in to AnyPoint Composer Web UI.

Step 2. Go to Create new Flow > Create Flow from Scratch.

Step 3. Select Invoke option

Step 4. Define Add Input Fields that is required while invoking the flow

Step 5. Just for demo purposes let’s add some system action to validate working flow. i.e. Create Google Calendar Event By Integration.

Step 6. Add Google Account & authenticate the google account which is used for creation of events.

Step 7. Let configure the Create Calendar Event details with the incoming payload.

Step 8. Now let configure the Returning values to the Triggering System.

Step 9. Save & Activate.

We can find flow credentials after activating the flow at flow details.

After completing the all above steps, validate the working of our flow by Invoking it from external system.

Google calendar before invoking flow from external system.

Let’s raise the request by External System (POSTMAN)

Conclusion

This use case exemplifies the seamless integration of a provider’s appointment scheduling system with external services using MuleSoft Composer. The flexibility and reliability of Composer enable organizations to enhance services, improve efficiency, and maintain accurate scheduling information.

--

--

Arif Ali Mansuri
Another Integration Blog

MuleSoft Mentor | Integration Engineer at NTT Data Services | Certified MuleSoft Developer | MCIA | MIA | MCDL2