camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-2967) XPathBuilder - Add support for functions to leverage properties and simple
Date Tue, 20 Jul 2010 07:36:52 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-2967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-2967.
--------------------------------

    Resolution: Fixed

trunk: 965744.

> XPathBuilder - Add support for functions to leverage properties and simple
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-2967
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2967
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> See CAMEL-2759 for background
> Add a {{function}} prefix to the xpath so you can do something like this
> {code}
>                 from("direct:in").choice()
>                     .when().xpath("$type = function:properties('foo')")
>                         .to("mock:camel")
>                     .when().xpath("//name = function:simple('${properties:bar}')")
>                         .to("mock:donkey")
>                     .otherwise()
>                         .to("mock:other")
>                     .end();
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message