Hi,
This is a use case for for-each mediator which is planned for 4.9.0
For current released version there is no solid solution. However you can
try the following.
I can't use enrich since the original scope is not visible. - Try with
operation scope
I can't use aggregate mediator since I don't know the message count. - Use
the message count as -1
eg:-
<completeCondition>
<messageCount min="-1" max="-1"/>
</completeCondition>
On Fri, May 1, 2015 at 5:56 PM, Manuranga Perera <[email protected]> wrote:
> I have an XML validate and remove use-case. I'll use following sample to
> explain
>
> <request>
> <pizza>
> <vegetable>pineapple<vegetable>
> </pizza>
> <!--following one is an wrong and should be remove-->
> <pizza>
> <vegetable>chicken</vegetable>
> </pizza>
> <pizza>
> <meat>chicken</meat>
> </pizza>
> </request>
>
> For each pizza I have a validity criteria and I have to remove the ones
> that are invalid.
>
> I am currently planning to iterate and do a validate mediator. But I am
> not sure how to aggregate. I can't use enrich since the original scope is
> not visible. I can't use aggregate mediator since I don't know the message
> count.
>
> Please advise me on possible options.
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : [email protected]
>
--
Best Regards,
Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev