[ 
https://issues.apache.org/activemq/browse/CAMEL-325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45969#action_45969
 ] 

Raul Kripalani commented on CAMEL-325:
--------------------------------------

Hadrian,

Thanks for the insight. What actually confused me was the fact that the XPath 
expression in the code block that I copied above evaluates to a boolean, not to 
an int! Is this a typo in the code block?

Regards.

> support a loop operation in the routing DSL
> -------------------------------------------
>
>                 Key: CAMEL-325
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-325
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Hadrian Zbarcea
>             Fix For: 1.5.0
>
>
> It'd be nice to do something like
> {code}
> from("file://foo").
>   loop(100).
>   to("blah");
> {code}
> Or use some kinda expression
> {code}
> from("file://foo").
>   loop().xpath("/something = 'abc').
>   to("blah");
> {code}
> To essentially add a loop inside a route. Testing is the main use case for 
> this really. e.g. take a few production messages and generate zillions of 
> test case messages
> {code}
> from("file://foo").
>   loop(100).
>   bean(MyRandomizerTransform.class).
>   to("blah");
> {code}

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

Reply via email to