Call a flow of one mule project in another mule project

Amer Sufi

I have a mule project-A where in I need to call a flow from another mule project-B. I have added <classifier>mule-plugin</classifier> in the project-B's pom. And I have added a dependency with project-B's group-Id, version, artifact-Id, classifier in project-A's pom and also created an "import" config in project-A with flow name of project-B which I want to use. Still I am unable to call the flow of project-B in project-A

Thinker-101

If you are implementing this to just test in your local machine, then follow the below steps. You can also look at the concept of Mule Domain Project, which does resource sharing for those apps falling under the same domain ; enabling you to call other apps flow-refs, global configurations and more.

Note : All this below said has to be in Mule 4.

First, export your Project-B as a mule deployable jar.

Steps

  1. Right click on Project-A and goto - > mule
  2. Add a maven dependency.
  3. Choose your Project-B.jar from your local repository and add.

    This will get your project imported as a maven dependency in your pom.xml file.

  4. Make sure your jar added under your project libraries of 'A' in the package explorer.
  5. Goto to the global elements of Project-A and select import configurations.
  6. Add the Import configuration to your elements and specify your Project-B main XML file you want to use in Project-A.
  7. Finally refresh/restart your main project and check if you can reference the flows.

If you still can't get this work, try updating to the latest version of studio, like 4.3.1 which is a much stable version.

Detailed explanation is given here -> Mule Shared Projects


Update

You can also try doing the same in your cloudhub runtime. You don't need a Domain project concept to do this. Basically you kind of imported your Project-B into Project-A completely ; Altogether making it a one mashed up Mega project.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Mule 4 : Questions related to Mule 4 project structure and Anypoint Studio

From Dev

Dynamic table creation in mule flow

From Dev

Mule processing strategies - call async private flow from synchronous flow

From Dev

mule async flow ws call cause read timeout

From Dev

Mule ESB data flow design

From Dev

Calling flow from another project in Mule

From Dev

mule flow to create and download files

From Dev

transfer files from sftp server to another sftp server with mule flow

From Dev

Mule Project as a dependency in other Mule Project

From Dev

Mule ESB and maximum flow threads

From Dev

Mule - Retry connection with basic flow

From Dev

Create a Mule deployable archive from a domain project using Maven

From Dev

Mule - error running project with Maven

From Dev

Issue when running mule maven project

From Dev

Mule - Set properties on spring object call in Mule flow

From Dev

MuleStudio - packaging mule project as web app (WAR)

From Dev

REST call in MULE ESB

From Dev

Mule: How can project configs cause such misleading SAX errors?

From Dev

Calling flow from another project in Mule

From Dev

Mule ESB, Launching project encountered an issue after the project was renamed

From Dev

What am I doing wrong in returning a custom object to a mule flow and How do I return an object that can be consumed by another mule flow?

From Dev

How to call MySQL stored procedure using mule 3.4.2. I m new to Mule and project team is using 3.4.2 version

From Dev

how to invoke other flow based success of one flow in mule

From Dev

Choice in Mule Flow

From Dev

SSL authentication not works in Mule ESB project (illegal_parameter)

From Dev

Mule-Unable to access Session Variable value in another flow

From Dev

Mule: Exception Handling in File transfer Mule flow

From Dev

Consuming a web service in a MULE domain project

From Dev

Can not build the project after upgrading to mule version 3.8.4 to 3.7.4

Related Related

  1. 1

    Mule 4 : Questions related to Mule 4 project structure and Anypoint Studio

  2. 2

    Dynamic table creation in mule flow

  3. 3

    Mule processing strategies - call async private flow from synchronous flow

  4. 4

    mule async flow ws call cause read timeout

  5. 5

    Mule ESB data flow design

  6. 6

    Calling flow from another project in Mule

  7. 7

    mule flow to create and download files

  8. 8

    transfer files from sftp server to another sftp server with mule flow

  9. 9

    Mule Project as a dependency in other Mule Project

  10. 10

    Mule ESB and maximum flow threads

  11. 11

    Mule - Retry connection with basic flow

  12. 12

    Create a Mule deployable archive from a domain project using Maven

  13. 13

    Mule - error running project with Maven

  14. 14

    Issue when running mule maven project

  15. 15

    Mule - Set properties on spring object call in Mule flow

  16. 16

    MuleStudio - packaging mule project as web app (WAR)

  17. 17

    REST call in MULE ESB

  18. 18

    Mule: How can project configs cause such misleading SAX errors?

  19. 19

    Calling flow from another project in Mule

  20. 20

    Mule ESB, Launching project encountered an issue after the project was renamed

  21. 21

    What am I doing wrong in returning a custom object to a mule flow and How do I return an object that can be consumed by another mule flow?

  22. 22

    How to call MySQL stored procedure using mule 3.4.2. I m new to Mule and project team is using 3.4.2 version

  23. 23

    how to invoke other flow based success of one flow in mule

  24. 24

    Choice in Mule Flow

  25. 25

    SSL authentication not works in Mule ESB project (illegal_parameter)

  26. 26

    Mule-Unable to access Session Variable value in another flow

  27. 27

    Mule: Exception Handling in File transfer Mule flow

  28. 28

    Consuming a web service in a MULE domain project

  29. 29

    Can not build the project after upgrading to mule version 3.8.4 to 3.7.4

HotTag

Archive