Create a Route with an input file, headers, a cMap component and an output file.
Procedure
- Open the Integration perspective, right-click the Route Designs node and click Create Route.
- Enter a name, purpose and description for your Route, then click Finish.
-
Add the following components to your design workspace and link them with Row > Route connections:
- A cFile
- A cSetHeader
- A cMap
- A second cFile
Your Route should look like this: -
Double-click the first cFile and set the path and file
name for your input XML file.
Example
-
Double-click the cSetHeader and add the following
headers:
Name Language Value "Account_Website" Constant "www.company.com" "Account_Phone" Constant "(555)555-5555" - Double-click the second cFile and set the path and file name for your output JSON file.
-
Double-click the cMap
and follow the wizard to generate the map.
- In the first step, select the input structure you created in Creating the input structure for your Route and click Next
- In the second step, select the output structure you created in Creating the output structure for your Route and click Finish.