Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2373

BRL "is contained in the (comma separated) list" does not produce multiselect dropdown

    Details

    • Sprint:
      2018 Week 45-47, 2018 Week 48-50, 2019 Week 02-04, 2018 Week 51-01
    • Steps to Reproduce:
      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.

      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.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      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);
                  }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Rikkola Toni Rikkola
                  Reporter:
                  yannickg1 Yannick Geerts
                  Tester:
                  Jozef Marko
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: