Details
-
Enhancement
-
Resolution: Done
-
Minor
-
1.1
-
None
Description
I am following the tutorial.
http://fusesource.com/docs/ide/camel/1.0/tutorials/tutorials.html
I am at chapter 3, doing the CBR example.
The choice, when and otherwise EIPs have auto assigned ids in the properties panel.
- choice1
- when1
- otherwise1
We should try to avoid auto assigning ids, as it just makes the XML more verbose and don't add value for the end user.
Having id's only makes value when the end user assign a custom id, which makes sense for t he end user.
<camelContext xmlns="http://camel.apache.org/schema/spring" trace="true"> <route id="myRoute"> <from uri="file:src/data?noop=true"/> <choice id="choice1"> <when id="when1"> <language language="xpath">/person/city = 'london'</language> <to uri="file:target/messages/uk"/> </when> <otherwise id="otherwise1"> <to uri="file:target/messages/others"/> </otherwise> </choice> </route> </camelContext>
Notice we do not auto assign ids for the <from> and <to>