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

Claus Ibsen commented on CAMEL-3751:
------------------------------------

Yeah Ben. I thought of this last night when I saw that you have assigned this 
ticket. I also came to the same conclusion we can't really currently support 
EIP as annotations for EIPs which support child outputs (eg filter, splitter, 
aggregator).

If the filter always just stopped continue routing then it would be possible 
using the ROUTE_STOP indicator. But you can also filter only a part of a route.

{code}
from X
  filter when ??
    to A
    to B
  end // filter
  to foo
  to bar
{code}

eg in the route above to foo and to bar are outside the filter and always part 
of the routing.

So maybe we should mark this as "incomplete"?

> @Filter EIP to allow a bean to act as the filter EIP pattern
> ------------------------------------------------------------
>
>                 Key: CAMEL-3751
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3751
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.6.0
>            Reporter: Claus Ibsen
>            Assignee: Ben O'Day
>
> There is a JIRA ticket for more EIPs as annotations.
> But the Filter EIP is simple, so we should probably just add it so you can do
> {code}
> @Filter
> public boolean isGoldCustomer(@Header("id") int id) {
>    ...
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to