How to figure out if mule flow message processing is in progress -
I have a requirement where I need to make sure that only one message is being processed by a consumption flow . Trigger by Flow quartz scheduler that reads a file from the FTP server at all times
My proposed solution is to keep a global variable "flovestats", which will be set to "Running" when a message is received and The message will be reset to "STOPPED" once the message is processed.
Any message fed to the flow will check for this variable and if it is "running" then cancel it.
This setup works, but I was thinking that there is a better way to do this.
Is there any best practice around this, or to get any inbuilt mule assistants instead of relying on the global variable
Comments
Post a Comment