Hi Keith
I have a xml message coming into the ESB
The xml messages contains a list of elements that I need to validate.
If an element in the list fails validation I would like to remove it from
the list.
I would then like to send the incoming xml messages minus the elements that
failed validation to the next step in the process.

I've been playing with the iterate and validate mediators and I've looked at
the aggregate mediator but I can't seem to pull it off.

Any suggestions?
I do not think using the iterate mediator is suitable here, since it splits the message into multiple. It would be better to use just validate, and pass the elements to be validated - if thats a well known list. Then you could remove those which fail using the new detach mediator which would be available with 1.3..

cheers
asankha

--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com




Reply via email to