Integration Engine Solutions to Connect Anything to Anything

Log out?

Purpose:

To practice transforming delimited files using the File Spec Editor.



Create a Route

    1. From the eiConsole File Management screen, select the Add Route button.
    2. In the dialog that appears, enter the name Delimited Files and select OK.
    3. The Route should now appear in the table on the screen. Double-click it to open it.

Document Source System

    1. Select the Source System stage in the Route Editing Grid. The configuration panel will appear at the bottom.
    2. Change the System Name to Text File
    3. Select the Choose Source Icon button, and scroll down to select one of the plain file icons

Configure the Listener

    1. Select the Listener stage in the Route Editing Grid. The configuration panel will appear at the bottom.
    2. Select Directory / File from the Listener Type selection box. Optionally, click the button to open the Module Search Dialog, which provides a faster way to find the module you’re looking for.
    3. Assign a polling directory, using the button to open the file selector. The polling directory should NOT be the directory with all the sample files, since files will be moved/deleted by the listening process.

Add Source Transformation Module

    1. Select the Source Transform stage in the Route Editing Grid. The configuration panel will appear at the bottom.
    2. Click the Add Format button. In the dialog that appears, name the Format People Delimited File Spec, and click OK. The transformation configuration panel will appear below.
    3. Select Delimited and Fixed-Width File from the Transformation Module selection box. Optionally, click the button to open the Module Search Dialog, which provides a faster way to find the module you’re looking for.
    4. In the new configuration panel that appears below, select the Edit button next to the File Spec configuration field to open the File Spec Editor.Open File Spec Editor

Create a File Spec

    1. When the File Spec Editor opens, a dialog called Select for New File Type will be present. In the sole selection box, choose the last option in the list, called User-defined, and click Next.Select User Defined
    2. In the new screen, leave Record Style set to Delimited with the Record Delimiter as \n. Change the Field Style to be Delimited with a Field Delimiter of |. Finally, click Save.Configure Delimiters
    3. In the File Spec Editor, the left-hand panel is a tree where the specification will be built.
    4. Right-click on the root Node of the tree, called Base, and select Add New Record. In the dialog that pops up, enter People as the record name, and click OK.Add Record
    5. Right-click on the new People record, and select Add New Field. Name the field First Name, and click OK.Add Fields
    6. Repeat the above process to add the following new fields until the specification is complete:
      1. Middle Initial
      2. Last Name
      3. Gender
      4. SSN
      5. Birth Date
      6. Occupation
      7. Vehicle Make
      8. Vehicle Model
      9. Address1
      10. Address2
      11. City
      12. State
      13. Zip Code
    7. Once the spec is complete, click the Save icon in the toolbar above the tree. Enter people-file-spec as the name of the specification to save it.Finish Spec
    8. After saving it, press the X button in the top right of the screen to close the File Spec Editor and return to the Route Editing Grid.

Configure the Transport

    1. Select the Transport stage in the Route Editing Grid. The configuration panel will appear at the bottom.
    2. Select Directory / File from the Transport Type selection box. Optionally, click the button to open the Module Search Dialog, which provides a faster way to find the module you’re looking for.
    3. Select the Target Directory, using the button to open the file selector.
    4. Set people-delimited-output as the Target File Name.
    5. Set xml as the Target File Extension.

Document the Target System

    1. Select the Target System stage in the Route Editing Grid. The configuration panel will appear at the bottom.
    2. Change the System Name to XML File
    3. Select the Choose Target Icon button, and scroll down to select one of the XML icons

Prepare to Test

    1. In the menu bar at the top, select Mode -> Testing Mode. Make sure the changes to the Route are saved.
    2. Copy the file called people_delimited.txt from the Samples directory provided into the directory chosen as the polling directory.

Perform the Test

    1. At the top of the Testing Mode screen, select the Execute Test button.
    2. If the Route was configured successfully, all the Stages should light up with green checkmarks.
    3. In the OS File Explorer, open the directory selected as the Target Directory. The file people-output.xml should be there, with the contents of the original file transformed into XML.

Output Files

    1. Compare the results from the exercise with the following example output files to see if they are correct.
      1. people-output.xml

This is a unique website which will require a more modern browser to work! Please upgrade today!