Create Mappings

After adding the trigger (source) connection and invoke (target) connection in your integration, you can create mappings between the source and target data structures in the integration. It includes the following mappings:

  • Map the data for the request message

  • Map the data for the response message

Create mappings for the request message:

  1. In the middle of the integration, click the Mapper icon for the request.

    Click Create (the + icon) to display the mapper.

  2. Perform the following tasks to assign constant values to the target elements:

    • In the Target section, expand the getPersonAbsenceBalanceDtls_Input node, and then the RESTHeader node.

      Click the ctx_responsibility element to open the Build Mappings page.

    • Enter “EMPLOYEE_DIRECT_ACCESS_V4.0” in the text box as the value for ctx_responsibility element.

    Similarly, use the same approach to assign values to the target elements listed in the following table:

    Path Element Value
    getPersonAbsenceBalanceDtls_Input/RESTHeader ctx_respapplication PER
    getPersonAbsenceBalanceDtls_Input/RESTHeader ctx_securitygroup STANDARD
    getPersonAbsenceBalanceDtls_Input/FilterParameters businessGroupId 202
    getPersonAbsenceBalanceDtls_Input/FilterParameters absenceAttendanceTypeId 12

    Notice that a green check mark icon appears for the element that has a mapping value assigned. Additionally, the mapped data appears in the Mapping column of the Target section.

  3. Create the mappings between the source and target elements:

    • In the Source section, expand the execute node, then the QueryParameters node.

      Select the personid element.

    • In the Target section, expand the getPersonAbsenceBalanceDtls_Input node, and then the FilterParameters node.

      Select the personid element.

    Drag the personid element from the Source section to the personid element in the Target section to map the data.

    Once you complete this step, the mapped source value and the corresponding target element are marked with green checks.


    Description of getperson_requestmapping.gif follows
    Description of the illustration getperson_requestmapping.gif
  4. Once the mapping is complete, click Validate and save your work.

  5. Click Exit Mapper.

Create mappings for the response message:

  1. In the middle of the integration, click the Mapper icon for the response.

    Click Create (the + icon) to display the mapper.

  2. Create mappings to map the source and target elements.

    • In the Source section, expand the getPersonAbsenceBalanceDtlsResponse node, then the getPersonAbsenceBalanceDtls_Output node, then the OutputParameters node, then the Output node, and then the PerAbsenceBalanceDataBean node.

      Select the Personid element.

    • In the Target section, expand the executeResponse node, then the response-wrapper node, then the getPersonAbsenceBalanceDtls node, then the OutputParameters node, then the Output node, and then the PerAbsenceBalanceDataBean node.

      Select the Personid element.

    Drag the Personid element from the Source section to the Personid element in the Target section to map the data.

  3. Use the same approach to complete the mappings for the elements listed in the following table.

    Source Path Source Element Target Path Target Element
    getPersonAbsenceBalanceDtlsResponse/getPersonAbsenceBalanceDtls_Output/OutputParameters/Output/PerAbsenceBalanceDataBean BusinessGroupId executeResponse/response-wrapper/getPersonAbsenceBalanceDtls/OutputParameters/Output/PerAbsenceBalanceDataBean BusinessGroupId
    getPersonAbsenceBalanceDtlsResponse/getPersonAbsenceBalanceDtls_Output/OutputParameters/Output/PerAbsenceBalanceDataBean AbsenceAttendanceTypeId executeResponse/response-wrapper/getPersonAbsenceBalanceDtls/OutputParameters/Output/PerAbsenceBalanceDataBean AbsenceAttendanceTypeId
    getPersonAbsenceBalanceDtlsResponse/getPersonAbsenceBalanceDtls_Output/OutputParameters/Output/PerAbsenceBalanceDataBean AbsenceTypeName executeResponse/response-wrapper/getPersonAbsenceBalanceDtls/OutputParameters/Output/PerAbsenceBalanceDataBean AbsenceTypeName
    getPersonAbsenceBalanceDtlsResponse/getPersonAbsenceBalanceDtls_Output/OutputParameters/Output/PerAbsenceBalanceDataBean Total executeResponse/response-wrapper/getPersonAbsenceBalanceDtls/OutputParameters/Output/PerAbsenceBalanceDataBean Total
    getPersonAbsenceBalanceDtlsResponse/getPersonAbsenceBalanceDtls_Output/OutputParameters/Output/PerAbsenceBalanceDataBean Taken executeResponse/response-wrapper/getPersonAbsenceBalanceDtls/OutputParameters/Output/PerAbsenceBalanceDataBean Taken
    getPersonAbsenceBalanceDtlsResponse/getPersonAbsenceBalanceDtls_Output/OutputParameters/Output/PerAbsenceBalanceDataBean Planned executeResponse/response-wrapper/getPersonAbsenceBalanceDtls/OutputParameters/Output/PerAbsenceBalanceDataBean Planned

    Description of getperson_responsemapping.gif follows
    Description of the illustration getperson_responsemapping.gif

    Once you complete this step, the mapped source value and the corresponding target element are connected by a green line.

    Click Validate and save your work.

  4. Click Exit Mapper.

The mappings for the request and response are all created successfully.

Click Save to save your work.