Details
-
Enhancement
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
None
Description
See screenshot.
I added that last when, and from it I dragged output to all the existing nodes in the UI that it would allow me.
IMHO it should only allow one output, as most of the other EIPs does.
The generated source looks like
<camelContext xmlns="http://camel.apache.org/schema/spring"> <package>foo</package> <route> <from uri="file:src/data?noop=true"/> <choice> <when> <xpath>/person/city = 'London'</xpath> <log message="UK message"/> <to uri="file:target/messages/uk"/> </when> <when> <language language="simple">header.type == 'gold'</language> <to uri="file:target/gold"/> <log message="Other message"/> <to uri="file:target/messages/others"/> <log message="UK message"/> <to uri="file:target/messages/uk"/> <to uri="file:target/messages/others"/> <to uri="file:target/messages/uk"/> </when> <otherwise> <log message="Other message"/> <to uri="file:target/messages/others"/> </otherwise> </choice> </route> </camelContext>