Hi ,

You could have a look at [1] where templates can be used to specify dynamic
XPath expressions.

[1]
https://docs.wso2.com/display/ESB500/Sample+751%3A+Message+Split+Aggregate+Using+Templates

Thanks,
Himasha

On Wed, May 24, 2017 at 2:55 AM, Júnior <[email protected]> wrote:

> Hi,
>
> Is it possible to pass dynamic values to the attachPath of iterateMediator?
>
> I have scenario where I'd like to apply the same iterate sequence to
> different payloads, and the only thing that I need to change is the
> attachPath and expression.
>
> Expression seems to work, but not attachPath.
>
>  <iterate xmlns:imp1="myNamesPace"
>                   attachPath="$ctx:TAG"
>                   continueParent="true"
>                   expression="//imp1:Person"
>                   preservePayload="true"
>                   sequential="true">
>
>
> In this TAG property I have the attachPath xpath, but, it seems that the
> code is evaluating only the string not the Xpath itself.
>
> Is there any to achieve this? Or using iterate mediator this way, I need
> to create the same itereate but with different configs?
>
>
>
> Thanks,
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to