Now I got it now through "expressionNode.getExpression().toString()", which
return a string "{delayTime}". Then I can get the subString in it. Are there
some better methods?


alloyer wrote:
> 
> Thanks, I found lots of  test cases there.
> When I construct the groovy route definition from a RouteDefinition
> object, I have to process the processor definitions and its sub-classes?
> Most of them, like SendDefinition, OutputDefinition and ChoiceDefinition
> are easy to handle, but the ExpressionNode brought some problems.
> 
> like the simplest one: DelayDefinition, when I want to generate the
> sentence "delay(xxxx)", I don't know where to get the xxxx delayTime. I
> have tried several ways:
>       exp.getExpression()
>       exp.getExpression().getExpression()
>       exp.getExpression().getExpressionValue()
>       but it always return a null value.
> Can you give me some suggestions? That's much better if you can tell a
> overview of the expression node structure because the bundle of concepts:
> Expression, Predicate, ExpressionDefinition..., let me a little confusing.
> 
> 
> Claus Ibsen-2 wrote:
>> 
>> On Fri, Jun 26, 2009 at 6:22 PM, alloyer<allo...@gmail.com> wrote:
>>>
>>> Now groovy renderer has been implemented, but only tested by using some
>>> rotue
>>> with basic processorDefinitions now.
>>> For test all the processorDefinitions, I wonder where can I get some
>>> complex
>>> route definition test cases?
>> 
>> We got complex unit tests in camel-core. So you can look in
>> camel-core/src/test/java
>> Usually they are in the processor package.
>> 
>> You can try the RoutePerformanceTest to see how goes
>> 
>> Or the ChoiceTest to see how it renders this.
>> 
>> 
>> 
>> 
>>>
>>> Thanks
>>>
>>>
>>> JIRA j...@apache.org wrote:
>>>>
>>>>
>>>>      [
>>>> https://issues.apache.org/activemq/browse/CAMEL-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>> ]
>>>>
>>>> Jonathan Anstey reassigned CAMEL-1392:
>>>> --------------------------------------
>>>>
>>>>     Assignee: Xueqiang Mi
>>>>
>>>> Xueqiang is looking into this as part of the groovy web console
>>>> addition.
>>>>
>>>>> groovy renderer
>>>>> ---------------
>>>>>
>>>>>                 Key: CAMEL-1392
>>>>>                 URL:
>>>>> https://issues.apache.org/activemq/browse/CAMEL-1392
>>>>>             Project: Apache Camel
>>>>>          Issue Type: Sub-task
>>>>>            Reporter: James Strachan
>>>>>            Assignee: Xueqiang Mi
>>>>>
>>>>
>>>>
>>>> --
>>>> This message is automatically generated by JIRA.
>>>> -
>>>> You can reply to this email to add a comment to the issue online.
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-jira--Created%3A-%28CAMEL-1392%29-groovy-renderer-tp22220288p24223272.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
>> 
>> -- 
>> Claus Ibsen
>> Apache Camel Committer
>> 
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-jira--Created%3A-%28CAMEL-1392%29-groovy-renderer-tp22220288p24238426.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to