Procedure
-
To have a look at the generated code, click the Code tab at the bottom of the design workspace.
As shown in this piece of code, messages
from
the sender are filtered bycMessageFilter_1
according to.xpath("/person[city='Paris']")
and the messages matching the filter are send.to
the endpointParis_only
, while all messages are sent.to
the endpointUnfiltered
. -
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 messages are filtered according to the defined criterion and the messages containing "Paris" are redirected to the Paris_only folder, all the messages, including those containing "Paris", are sent to the Unfiltered folder.