You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2007/10/19 17:24:23 UTC
[jira] Resolved: (CAMEL-188) Filter doesn't stop pipeline execution
when not matched
[ https://issues.apache.org/activemq/browse/CAMEL-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Strachan resolved CAMEL-188.
----------------------------------
Resolution: Won't Fix
So this is our bad - the XML encoding has changed a little. now a <filter> contains the prediate and the actions to perform if the filter matches (like <when> as well).
e.g. this should do what you want
{code}
<route>
<from uri="direct:foo"/>
<filter>
<xpath>
/alwaysFalse
</xpath>
<to uri="mock:foo"/>
</filter>
</route>
{code}
> Filter doesn't stop pipeline execution when not matched
> -------------------------------------------------------
>
> Key: CAMEL-188
> URL: https://issues.apache.org/activemq/browse/CAMEL-188
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Dejan Predovic
>
> <route>
> <from uri="direct:foo"/>
> <filter>
> <xpath>
> /alwaysFalse
> </xpath>
> </filter>
> <to uri="mock:foo"/>
> </route>
> Exchange to mock:foo gets executed even when expression evaluates to false. when it evaluates to true, it doesn't get executed twice.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.