Click the Code tab at the bottom of the
design workspace to have a look at the generated code.
As shown in the code, a message route is built
.toanother, and while in routing, the source message is split according to the condition
cSplitter_1, and each sub-message is given a header named
CamelFileName, the value of which is returned by
Click the Run view to display it and
click the Run button to launch the
execution of your Route. You can also press F6 to execute it.
RESULT: The source file message is split into sub-messages and each sub-message is renamed after the city name it contains and routed to the receiving endpoint.