You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Dejan Predovic (JIRA)" <ji...@apache.org> on 2007/10/19 16:18:23 UTC

[jira] Created: (CAMEL-188) Filter doesn't stop pipeline execution when not matched

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.


[jira] Resolved: (CAMEL-188) Filter doesn't stop pipeline execution when not matched

Posted by "James Strachan (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (CAMEL-188) Filter doesn't stop pipeline execution when not matched

Posted by "Dejan Predovic (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40432 ] 

Dejan Predovic commented on CAMEL-188:
--------------------------------------

Ok, works. :) But I wouldn't call it "filter" then, it's actually an "if".


> 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.


[jira] Updated: (CAMEL-188) Filter doesn't stop pipeline execution when not matched

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea updated CAMEL-188:
----------------------------------

    Fix Version/s: 1.3.0

> 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
>             Fix For: 1.3.0
>
>
> <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.