Skip to Content
0

Initiate Two OData Calls and Merge Results in iFlow

Jun 23, 2017 at 06:05 AM

80

avatar image

Hello,

In my iFlow, I want to trigger two different OData calls and then merge the results of the two. I know about the Gather/Join patterns that can be used to merge two or more messages. However, I am facing trouble setting up the two branches for the OData calls, both of which I want to be always processed. I've tried using a Router but with that, only one of the branches (or routes) will be processed.

Any ideas how this can be achieved?

Thanks,
Akshat

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

2 Answers

Sriprasad Shivaram Bhat Jun 23, 2017 at 10:12 AM
1

Hello Akshat,

First option would be have a parallel multicast and then use join gather to merge both the data.

Second option is (not recommended for huge data) post first request reply store the data in a property( you can use content modifier) and process with the second call and then merge both the calls data using content modifier.

Third option to go with Content Enricher with combine option.

Regards,

Sriprasad Shivaram Bhat

Share
10 |10000 characters needed characters left characters exceeded
Kumar Akshat
Jun 23, 2017 at 11:13 AM
0

Hi Sriprasad,

Thanks for your answer. I had already tried using Parallel Multicast but it wasn't allowing me to use it as the first step in my iFlow (right after the timer start event).

I've been playing around with the Content Modifier pattern. Hopefully, I'll be able to crack it. However, the fact is that there is huge data involved here and, like you said, this may not be the best way.

I am also trying an alternative way that may not need me to make the two calls in the first place. Let's see.

Thanks once again for your help.

Regards,
Akshat

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

Hello Akshat,

Have a content modifier just before parallel multicast or after timer element with some dummy data then it should work.

Regards,

Sriprasad Shivaram Bhat

1