Skip to Content

Suppress exception after processing in exception subprocess

Dec 05, 2017 at 02:44 PM


avatar image

I'm developing an Iflow which needs to process two types of messages with a dependency: upon sending message type X to the receiver channel we first need to make sure message type Y has been send.

I implemented this with the data store functionality: processed type Y messages are in datastore Y, yet unprocessable type X messages are in datastore X.

The issue is in the validation from message X that message Y has been send,the get operation to data store Y does not yield result. Then an exception is thrown, resulting in a failed message in the MPL. Is it possible to suppress this exception? When the get operation does not succeed I simply want to store the type X message in datastore X, and the result of the processing should be completed in the MPL.

Thanks in advance!


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sriprasad Shivaram Bhat
Dec 05, 2017 at 03:08 PM

Hello Bram,

If I am not wrong you want to send Message X only after Message Y reached receiver.

You can leverage Sequential Multicast to achieve the same.It waits till the first call is successfully processed and then process the second.


Sriprasad Shivaram Bhat

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Sriprasad,

Thanks for helping out! The sequential multicast is applicable for this scenario, the problem is that message X and Y do not arrive at the same time. They are uploaded to the same ftp location, but there can be up to five minutes delay between them. Therefore the usage of data stores.

The alternative I see is to create a subprocess that reads every message in the data store and selects the proper one. But that could be a lot of effort.

Any other ideas?


Former Member

You can add a Groovy script to delay the execution for 5 min

int waitFor = 5; // minutes 
Thread.sleep(waitFor * 1000); 

Best regards,
Mohamed Amine.