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

Complex enumerations are not selected when multivalue cell is edited

XMLWordPrintable

    • Hide
      1. Define Data object Person with field String:name
      2. Define enumeration
        1. fact: Person
          field: name
          context: ['John', '"John, senior"']
          
      3. Create new guided decision table
      4. Define new simple condition column
        1. Pattern: Person: [$p]
        2. Calculation type: Literal value
        3. Field: name
        4. Operator: is contained in comma separated list
        5. Header: name is
      5. Append row into table
      6. Double click the added cell of the new colum
      7. Multivalue select box with options John and "John, senior" will appear
      8. Select both, press enter
        1. Notice in table cell will be just John
        2. It should be John,"John, senior"
      9. Check generated rule
        1. Correctly contains: $p : Person( name in ( "John, senior", "John" ) )
      10. Again double click the same cell
        1. Just the value John will be selected
        2. Both John and "John, senior" should be selected
      Show
      Define Data object Person with field String:name Define enumeration fact: Person field: name context: [ 'John' , ' "John, senior" ' ] Create new guided decision table Define new simple condition column Pattern: Person: [$p] Calculation type: Literal value Field: name Operator: is contained in comma separated list Header: name is Append row into table Double click the added cell of the new colum Multivalue select box with options John and "John, senior" will appear Select both, press enter Notice in table cell will be just John It should be John,"John, senior" Check generated rule Correctly contains: $p : Person( name in ( "John, senior", "John" ) ) Again double click the same cell Just the value John will be selected Both John and "John, senior" should be selected

      The problem occurs if user edits guided decision table cell where:

      • Previously multiple values (coming form enumeration file) were selected
      • One of value from enumeration file has form "<a>, <b>, <c>, ....<d>"
      • This complex value was between selected values

      Afterwards, edit action of such cell will display multivalue select box, however the complex value will be not selected.

              manstis@redhat.com Michael Anstis
              rh-ee-jomarko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: