[Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-01 Thread Isuru Haththotuwa
Hi Devs, Do we support $subject with latest ESB? The use case is as follows: - The endpoints are dynamically picked up during the mediation flow (Ex. via a DB query, etc.). The number of endpoints are not fixed - In the aggregation, need to wait till the all the endpoints to which the

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-01 Thread Isuru Haththotuwa
Missed the link: [1]. https://docs.wso2.com/display/IntegrationPatterns/Scatter-Gather On Sun, Oct 2, 2016 at 11:12 AM, Isuru Haththotuwa wrote: > Hi Devs, > > Do we support $subject with latest ESB? The use case is as follows: > >- The endpoints are dynamically picked up during the mediati

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-02 Thread Isuru Udana
Hi Isuru, By looking at the synapse code of RecipientListEndpoint, I can see that there is an option to pick endpoint list dynamically. I am not sure whether that is configurable through tooling. You may have a look on that. Please note that I haven't tried it out. Thanks. On Sun, Oct 2, 2016

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-02 Thread Viraj Rajaguru
Hi, On Mon, Oct 3, 2016 at 7:43 AM, Isuru Udana wrote: > Hi Isuru, > > By looking at the synapse code of RecipientListEndpoint, I can see that > there is an option to pick endpoint list dynamically. I am not sure whether > that is configurable through tooling. You may have a look on that. > ESB

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-03 Thread Isuru Haththotuwa
Thanks for the info IsuruU and Viraj. Will check this. On Mon, Oct 3, 2016 at 10:03 AM, Viraj Rajaguru wrote: > Hi, > > On Mon, Oct 3, 2016 at 7:43 AM, Isuru Udana wrote: > >> Hi Isuru, >> >> By looking at the synapse code of RecipientListEndpoint, I can see that >> there is an option to pick e

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-04 Thread Isuru Haththotuwa
Additionally, is it possible to set min and max values for messageCount of completeCondition to be dynamically picked, preferably property, etc? On Mon, Oct 3, 2016 at 9:57 PM, Isuru Haththotuwa wrote: > Thanks for the info IsuruU and Viraj. Will check this. > > On Mon, Oct 3, 2016 at 10:03 AM,

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-04 Thread Isuru Haththotuwa
On Wed, Oct 5, 2016 at 7:10 AM, Isuru Haththotuwa wrote: > Additionally, is it possible to set min and max values for messageCount of > completeCondition to be dynamically picked, preferably property, etc? > Meant to say 'preferably from a msg context property' > > On Mon, Oct 3, 2016 at 9:57 PM

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-05 Thread Isuru Haththotuwa
It seems we can't dynamically set min and max values for messageCount of completeCondition. If I omit the min, max response message counts and the timeout, still it aggregates the responses. The defaults are -1 for min and max message counts and 0 for timeout [1]. How does the mediator figure out

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-05 Thread Isuru Udana
On Wed, Oct 5, 2016 at 8:06 PM, Isuru Haththotuwa wrote: > It seems we can't dynamically set min and max values for messageCount of > completeCondition. > > If I omit the min, max response message counts and the timeout, still it > aggregates the responses. The defaults are -1 for min and max mes

Re: [Dev] Scatter and Gather Pattern for Dynamic Endpoints

2016-10-05 Thread Isuru Haththotuwa
On Wed, Oct 5, 2016 at 8:10 PM, Isuru Udana wrote: > > > On Wed, Oct 5, 2016 at 8:06 PM, Isuru Haththotuwa wrote: > >> It seems we can't dynamically set min and max values for messageCount of >> completeCondition. >> >> If I omit the min, max response message counts and the timeout, still it >>