Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

After you have defined the Destination application, you need to define the routing. Using this option, you can exchange data between the Partners based on the content of the file. You can route the data on the basis of Transaction Parameters defined while creating a Template or Partner Parameters define while creating a Network. Therefore, before defining routing, ensure that you have defined the Transaction parameters or Partner parameters.

To define routing:  

  1. Clickto create a routing.



  2. On the Create Routing window, provide a unique routing name.



  3. Select whether you want to fetch and process data on the basis of Transaction Parameter or Partner Parameter. 

    OptionDescription
    Transaction ParameterThis option will bring and process the data based on the parameters defined for a Transaction.
    Partner Parameter

    This option will bring and process data based on the parameters defined for a Partner.


    Depending on the option chosen in the previous step, the next steps would differ. 

    Transaction Parameters

    For example, there are three files (F1, F2, and F3) with headers ID, Age, and Name and values F1 (001, 23, Smith), F2 (002, 43, John), and F3 (003, 45, Michael). If you want to route data on the basis of Transaction parameter whose id is 002 and Name is John then you need to define the Destination Identifier as follows:

    1. In the Destination Identifier, type the XPath of the field on the basis of which you want to route the data. As in our example, to route the data on the basis of Id and Name then XPath will be /Root/Record/Id and /Roor/Record/Name. The XPath will differ based on the file type.
    2. Select Equals from the Condition.
    3. Select the parameter of the Transaction Partner that maps corresponding to the field.
    4. Click AND Filter to add another identifier in a similar way.


    Partner Parameters
    For example, there are three text files at Source (F1, F2, and F3) with headers ID and Name and values F1 (001, Smith), F2 (002, John), and F3 (003, Michael). At Destination, you have three files (F4, F5, and F6) with headers Age and Designation and values F4 (23, Developer), F5 (35, Manager), and F6 (51, Team Lead). If you want to send data whose Id is 002 and Name is John to the Partner whose Age is 35 with Manager as Designation then you need to define these fields in the Source Identifier and Destination Identifier as follows:

    1. In the Source Identifier, type the XPath of the field on the basis of which you want to fetch the data from the file. As in our example, to fetch the data on the basis of Id and Name then XPath will be /Root/Record/ID and Root/Record/Name. The XPath will differ based on the file type.

    2. Select Equals from the Condition.
    3. Select the parameter of the Source Partner that maps corresponding to the field.
    4. Click AND Filter to add another identifier in a similar way.      



    5. In the Destination Identifier, type the XPath of the field on the basis of which you want to send the data. As in our example, to send the data to the Partner on the basis of Age and Designation then XPath will be /Root/Record/Age and Root/Record/Designation. The XPath will differ based on the file type.
    6. Select Equals from the Condition.
    7. Select the parameter of the Destination Partner that maps corresponding to the field.
    8. Click AND Filter to add another identifier in a similar way.    

       

  4. Click Save.

 

Next Step

Defining a Custom VAN Mapping

  • No labels