Christina Lin
File Endpoint
uri: file://myxml?delete=true
Log Endpoint
Message: ${in.header.CamelFileName} with content -> ${body}
Data Transformation
Transform ID: transOrder
Dozer file path: transOrder.xml
Source Type: XML
Target Type: Java
Remove links between Data Transformations & log
DON NOT SAVE YET!!!!!!!!
And then Save
Move existing node, please remove the links to/from
the setHeader node
Move the setHeader node right after otherwise node and link them together
Save the route after done dragging splitter to canvas
Go to source, and replace the spliter tokenize tag
A pop-up will appear, with warning, click ok
<?xml version="1.0" encoding="UTF-8"?>
<!-- Red Hat Stock Exchange and Trading Systems-->
<stocktrading>
<name>Christina Lin</name>
<custId>A123456789</custId>
<vip>1</vip>
<stockId>XYZ</stockId>
<shares>11</shares>
</stocktrading>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Red Hat Stock Exchange and Trading Systems-->
<stocktrading>
<name>Frank Jarrod</name>
<custId>F475678678</custId>
<vip>4</vip>
<stockId>ABC</stockId>
<shares>20</shares>
</stocktrading>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Red Hat Stock Exchange and Trading Systems-->
<multiple>
<stocktrading>
<name>John Osborn</name>
<custId>K34567854</custId>
<vip>1</vip>
<stockId>KUJ</stockId>
<shares>25</shares>
</stocktrading>
<stocktrading>
<name>Sarah Fox</name>
<custId>C3456767878</custId>
<vip>5</vip>
<stockId>SOU</stockId>
<shares>10</shares>
</stocktrading>
</multiple>