[ https://issues.apache.org/activemq/browse/CAMEL-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49744#action_49744 ]
Claus Ibsen commented on CAMEL-879: ----------------------------------- Okay its the <stop/> that is the problem, the predicate is supported and it works fine. However its only the <stop/> that is the problem as it gets global and stops always {code:xml} <intercept> <when> <simple>${body} contains 'Goofy'</simple> <to uri="mock:goofy"/> </when> <stop/> </intercept> {code} We only want it to stop if the predicate is true. Its silly to stop always as it will intercept all and just stop. So we might wanna do some tricks on the Spring DSL side and only perform stop if the predicate was evaluated to true. > InterceptType does not support taking a predicate in Spring DSL > --------------------------------------------------------------- > > Key: CAMEL-879 > URL: https://issues.apache.org/activemq/browse/CAMEL-879 > Project: Apache Camel > Issue Type: Sub-task > Components: camel-core > Affects Versions: 1.4.0 > Reporter: Jonathan Anstey > Assignee: Claus Ibsen > Fix For: 2.0.0 > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.