Integration Engine Solutions to Connect Anything to Anything

Log out?

Purpose:

To practice more common uses of OGNL Expressions in the eiConsole.



Create a Route

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

Document the 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 XML File.
    3. Select the Choose Source Icon button, and scroll down to select one of the XML 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.
    4. Go to the Post-Process tab and select Delete from Postprocess Operation:.

Initial Transport Configuration

    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.

Configure the Transport Target File Name with Source File Name and Timestamp Using OGNL Expression

    1. For the Target File Name, choose the button on the very far right of the field to open the Enhanced Settings panel. New buttons and a new text field should appear.
    2. Look at the new buttons, one of them has an icon with two overlapping circles on it. This is the OGNL Expression button. Select it to open the OGNL Expression Constructor.
    3. In the OGNL Expression Constructor, scroll down the top panel list to find the com.pilotfish.FileName item. Select it and click the Insert button on the far right.
    4. The selected expression is now populated in the text field at the bottom of the dialog.
    5. In the text field at the bottom of the dialog, after the expression, add the following text: + '-' +
    6. In the panel at the top, scroll down the list to find the @java.util.UUID@randomUUID() item. Select it and click the Insert button on the far right to update the field. If done correctly, the full expression should read: getAttribute('com.pilotfish.FileName') + '-' + @java.util.UUID@randomUUID()
    7. Click OK to populate it in the configuration field.Add Timestamp

Configuring the Transport Target Extension With Source Extension Using OGNL Expression

    1. For the Target File Extension, choose the button on the very far right of the field to open the Enhanced Settings panel. New buttons and a new text field should appear.
    2. Of the new buttons, one of them has an icon with two overlapping circles on it. This is the OGNL Expression button. Select it to open the OGNL Expression Constructor.
    3. In the OGNL Expression Constructor, scroll down the top panel list to find the com.pilotfish.FileExtension item. Select it and click the Insert button on the far right.
    4. The selected expression is now populated in the text field at the bottom of the dialog.
    5. Click OK to populate it in the configuration field.Expression Populated

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.xml 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. There should be a file there whose name starts with people and includes the current timestamp in the name. This file should have contents identical to the people.xml input file.

Output Files

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

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