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

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5
    • Fix Version/s: 1.9
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: