Hi Lahiru,

I tested a sample and it seems not working when aggregated in inSequence
itself.
Appreciate if you can provide a  sample configuration.

Thanks,
Lahiru

On Fri, Dec 7, 2018 at 4:49 PM Lahiru Sandaruwan <[email protected]> wrote:

>
>
> On Fri, Dec 7, 2018 at 5:18 AM Lahiru Sandaruwan <[email protected]> wrote:
>
>> Hi,
>>
>> We do not have any samples at [1] for $subject. They all show having
>> splitting requests in InSequence and aggregation in outSequence.
>>
>> Q1, Is this recommended?
>> Q2, If yes, shall we an a sample?
>>
>> For example,
>>
>> <clone id="test-agr">
>>         <target>
>>             <sequence>
>> *               // do something*
>>             </sequence>
>>         </target>
>>         <target>
>>             <sequence>
>> *                 // do something*
>>             </sequence>
>>         </target>
>>     </clone>
>>     <property name="Aggregated_Responses" scope="default">
>>         <jsonObject/>
>>     </property>
>>     <aggregate id="test-agr">
>>         <completeCondition>
>>             <messageCount max="-1" min="-1"/>
>>         </completeCondition>
>>         <onComplete enclosingElementProperty="Aggregated_Responses"
>> expression="//jsonObject" xmlns:ns="http://org.apache.synapse/xsd";>
>>
>> *// do more with aggregated response*
>>
>>         </onComplete>
>>     </aggregate>
>>
>>
>>
>> Cache mediator has a similar sample at [2], with specific property,
>>
>> <property name="RESPONSE" value="true" scope="default" type="STRING"/>.
>>
>> [1] https://docs.wso2.com/display/EI611/Aggregate+Mediator
>> [2] https://docs.wso2.com/display/EI611/Cache+Mediator
>>
>> Thanks.
>>
>> --
>> --
>>
>> Lahiru Sandaruwan
>> WSO2 Inc., http://wso2.com
>>
>> lean.enterprise.middleware
>>
>> m: +1 901 530 2379
>> e: [email protected] b: https://medium.com/@lahirugmg
>> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
> --
> --
>
> Lahiru Sandaruwan
> WSO2 Inc., http://wso2.com
>
> lean.enterprise.middleware
>
> m: +1 901 530 2379
> e: [email protected] b: https://medium.com/@lahirugmg
> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to