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

Luca Burgazzoli commented on CAMEL-9285:
----------------------------------------

Just played a little with ControlBusProducer so in ActionTask.run I've added 
something like:

{code:java}
if (ObjectHelper.isEmpty(id) && !ObjectHelper.equal("stats", action)) {
    id = ExpressionBuilder.routeIdExpression().evaluate(exchange, String.class);
}
{code}

However it always return null as both RouteContext and FromRouteId are null 
from the exchnage ActionTask holds.
Have I missed something ?


> controlbus - Allow to grab current route id so you can control current route 
> easier
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-9285
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9285
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, eip
>            Reporter: Claus Ibsen
>            Assignee: Luca Burgazzoli
>            Priority: Minor
>             Fix For: Future
>
>
> http://camel.apache.org/controlbus.html
> For example routeId=current, or some special name that indicate the current 
> route, which we can get from the exchange.
> Or maybe better if routeId is not specified then its using current by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to