Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-5512

Allow valueMapper to handle the defaultOutputValue when the transformation is based upon compound input values

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.9
    • 1.5
    • None

    Description

      When valueMapper is used to transform compound input values, "defaultOutputValue" is not properly handled.

      Example:

      var rules = {
          type: "fluid.transforms.valueMapper",
          inputPath: "",
          defaultOutputValue: false,
          options: [{
              inputValue: {
                  "isTooltipOpen": true,
                  "isDialogOpen": true
              },
              outputValue: true,
          }]
      };
      

      In cases that the input value is NOT

      {
          "isTooltipOpen": true,
          "isDialogOpen": true
      }
      

      We expect the output value is false.

      However, what happens is, the output value is always true regardless of value combinations of "isTooltipOpen" + "isDialogOpen".

      Attachments

        Activity

          People

            antranig Antranig Basman
            cli@ocad.ca Cindy Qi Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: