Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8357033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:21:36+00:00 2026-06-09T10:21:36+00:00

My current situation: I currently have a Mule ESB application with three flows which

  • 0

My current situation:

I currently have a Mule ESB application with three flows which process messages originating from two different sources, these three flows are tied together using a VM queue.

Flow #1:

Inbound (Endpoint #1) -> (Perform message processing and transformations) -> Outbound (Endpoint #3)

Flow #2:

Inbound (Endpoint #2) -> (Perform message processing and transformations) -> Outbound (Endpoint #3)

Flow #3

Inbound (Endpoint #3) -> (Perform message processing and transformations, do stuff) -> Outbound

Problem/ Issue:

Now what I want to do is introduce a fourth flow, Flow #4, that gets state information from an inbound endpoint and based off this information be able to prevent Flow #3 from ever being executed/ prevent it from processing its inbound messages.

In other words, what I’d ideally like is to have Flow #4 run at the startup of the ESB application (like all flows seem to automatically do), and based on the state information it gets from its inbound message, prevent/ allow or enable/ disable Flow #3 from ever processing messages from Endpoint #3.

The following are what I ideally require:

Requirements:

  1. Must be able to accomplish solely through the mule flow XML, no additional POJO/ custom Java objects.
  2. Flow #4 must be performed at startup of the ESB application and only the first inbound message needs to ever be processed.
  3. Ideally, I don’t want Flow #3 to have a composite inbound source or have to evaluate every inbound message the state of some global variable.

What’s the best way to accomplish what I want to do?

If there is no real good solution, then if I must omit #3 requirement, then what’s the best way to accomplish such a global variable that is shared between two independent flows that aren’t tied together by some outbound -> inbound endpoint in the XML config? I’ve tried using session properties, but they require that the flows be tied together as either subflows or by an endpoint.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:21:38+00:00Added an answer on June 9, 2026 at 10:21 am

    Use a global property and a few MEL expressions to make this happen:

    <global-property name="gate_open" value="true" />
    
    <flow name="gated-flow">
        <vm:inbound-endpoint path="gated.in" />
        <expression-filter expression="#[app.registry.gate_open]" />
        ...
    </flow>
    
    
    <flow name="gate-controller">
        <vm:inbound-endpoint path="gate.in"  />
        <expression-component>
          app.registry.gate_open = false
        </expression-component>
    </flow>
    

    Sending any message to vm://gate.in will close the gate and gated-flow will stop processing the messages it receives.

    You can use any protocol you want instead of VM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my current situation: I have a NSMutableArray named dictKeyArray which I assign a
On a current project which I'm currently working, i have a symfony task that
We currently have a desktop app which uses data from SQL CE. We used
let me explain my current situation i have a SharePoint site lets say it
My current situation is: I have to read a file and put the contents
Here is my current situation; I am a near complete regexp illiterate, and have
First, I'd like to describe my current situation. I have an RDLC whose data
Current situation: Ubuntu 8.04 server edition (live server) Postgresql 8.3.7 (from standard repositories) Postgis
I am using Asp.Net/C# in my application.My current situation is that I am using
I am developing a web application in asp.net vb. My current situation is, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.