Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-510

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.GA
    • Fix Version/s: 7.2.0.GA
    • Component/s: Business Central
    • Labels:
      None
    • Environment:
      • Tomcat 8.5 / RHEL 7,
      • jboss-eap-7.1, chrome/firefox
    • Target Release:
    • 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.

      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.

      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:
                  jomarko Jozef Marko
                  Tester:
                  Jozef Marko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: