Hi Kasun,

I have been working on ESB script last week, and two comments.

1. If we use payload factory mediator, and if Xpath matches more than one
results, what do we do? It is a valid usecase if someone want to copy N
elements from request to response via payload factory.

2. Enrich has too many parameters, and some combinations does not work. (
see below).

<enrich>
    <source [clone=true|false] [type=custom|envelope|body|property|inline]
xpath="" property="" />
    <target [action=replace|child|sibiling]
[type=custom|envelope|body|property|inline] xpath="" property="" />
</enrich>

I think we can remove "type" and "property" and support both via Xpath
only. We can break Xpath to <source>/foo/bar where source can be $envelope,
$body $header $getProperty("bar") etc ( $envelope etc is already there).

If we do this correct, we can refer to anything in ESB environment via
Xpath of the format <source>/foo/bar. Then we can make this consistent
across the language.

WDYT?

--Srinath

-- 
============================
Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://people.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to