camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <>
Subject [jira] Resolved: (CAMEL-188) Filter doesn't stop pipeline execution when not matched
Date Fri, 19 Oct 2007 15:24:23 GMT


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

<from uri="direct:foo"/>
  <to uri="mock:foo"/>

> Filter doesn't stop pipeline execution when not matched
> -------------------------------------------------------
>                 Key: CAMEL-188
>                 URL:
>             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.

View raw message