Available in...
Cloud API Services Platform
Cloud Data Fabric
Data Fabric
Data Services Platform
ESB
MDM Platform
Real-Time Big Data Platform
About this task
Procedure
- From the Palette, drag and drop cFile, a cConvertBodyTo, a cSetbody and a cLog components onto the design workspace.
- Link the components using the Row > Route connection.
-
Double-click the cFile component to open
its Basic settings view in the Component tab.
-
In the Path field, enter the path of the
message source.
In the fileName field, enter the name of the message source.
- Double-click the cConvertBodyTo component to open its Basic settings view in the Component tab.
-
In the Target Class Name field, enter
your target class name, String.class in this
scenario.
- Double-click the cSetBody component to open its Basic settings view in the Component tab.
-
From the Language list, select XPATH.
In the Expression field, type in
"/Customers/Customer[Address/State='MA']"
to extract the customer whoseState
is MA. - Keep the default settings of the cLog to log the message exchanges.
- Press Ctrl+S to save your Route.