XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: rel-4-1-0
    • Component/s: Engine
    • Security Level: Users (General product issues)
    • Labels:

      Description

      Create a set of functions that will help users of Field Mapping parameter editor to parse the serialized mapping value.

      Proposed functions:
      string[] getMappedSourceFields(string mapping, string targetField) - useful when mapping input fields to an interface defined by the subgraph.
      mapping - the serialized mapping
      targetField - a field name of the target metadata
      returns a list of field names from source metadata which are mapped to target field.

      eg. for mapping $firstName=$name;$country=$countryName;#$phone=$field1;$country=$field2; a call to getMappedSourceFields(mapping, "phone") will return [null, "field1"] and a call to getMappedSourceFields(mapping, "country") will return ["countryName", "field2"].

      Possibly also a function string getMappedSourceField(string mapping, string targetField) could be created. This function would be applicable only for mappings with one source metadata.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              korbelj Jan Korbel
              Reporter:
              krygielovam Magdalena Malysz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours, 15 minutes
                  6h 15m