Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-483

[GSS] (7.2.z) BRL "is contained in the (comma separated) list" does not produce multiselect dropdown in Guided Decision Table and Guided Rule Template

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.2.1.GA
    • 7.0.0.GA
    • Decision Central
      • Tomcat 8.5 / RHEL 7,
      • jboss-eap-7.1, chrome/firefox
    • CR1
    • +
    • Hide

      1) Create a guided decision table
      2) Add a BRL condition on a fact-field that has an enum attached to it and where the condition is "is contained in the (comma separated) list = $templatekey"
      3) Look at the guided decision table, and verify that the $templatekey field is a singleselect dropdown while a multiselect dropdown is expected.

      Guided Rule Template has the same issue (= when we use "is contained in the (comma separated) list", "Data" cell will be single-select box for enumeration). So please test both Guided Decision Table and Guided Rule Template.

      Show
      1) Create a guided decision table 2) Add a BRL condition on a fact-field that has an enum attached to it and where the condition is "is contained in the (comma separated) list = $templatekey" 3) Look at the guided decision table, and verify that the $templatekey field is a singleselect dropdown while a multiselect dropdown is expected. Guided Rule Template has the same issue (= when we use "is contained in the (comma separated) list", "Data" cell will be single-select box for enumeration). So please test both Guided Decision Table and Guided Rule Template.
    • 2019 Week 02-04

    Description

      Google groups link: https://groups.google.com/forum/#!topic/drools-usage/VElZ3KAZMIs

      Edited
      The problem is that in the piece of code below the expression column.getOperator() returns null.
      BRLConditionVariableColumnConverter#convertColumn

      if (OperatorsOracle.operatorRequiresList(column.getOperator())) {
                      return newMultipleSelectEnumColumn(factType,
                                                         factField,
                                                         column,
                                                         access,
                                                         gridWidget);
                  } else {
                      return newSingleSelectionEnumColumn(factType,
                                                          factField,
                                                          dataType,
                                                          column,
                                                          access,
                                                          gridWidget);
                  }
      

      Attachments

        Issue Links

          Activity

            People

              trikkola Toni Rikkola
              rh-ee-jomarko Jozef Marko
              Jozef Marko Jozef Marko
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: