Click the Code tab at the bottom of the
design workspace to have a look at the generated code.
As shown in the code, the messages are routed according to conditions initialized with the .choice() piece of code. The filter you defined is initialized with the .when() piece of code, and the non filtered messages are routed through the .otherwise() piece of code.
Click the Run button in the Run view or press F6 to execute your Route.
RESULT: The files containing "Paris" are sent to a folder named Paris_only, and the other messages are sent in a folder called Other_cities.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!