In this scenario, the cStop component
stops the sub-route on which it is dropped before it completes and does not have
properties to set.
Procedure
Double-click the cIntercept component to display its
Basic settings view in the Component
tab.
Select the From intercept type and enter
"file*" in the Component filter
field to intercept messages from the component with the name matching the
file* pattern.
Double-click the cProcessor
component, to display its Basic settings view in
the Component tab.
Customize the code in the Code area to display
the CamelFileName header of the intercepted message on the
console: