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

enumeration values used in rules can be deleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • None
    • Enumerations Editor
    • None
    • Hide

      create a enumeration for a fact-field combination
      create a guided decision table using this fact-field in the condition side
      set the value of the field to any value in the enumeration
      delete the value from the enumeration

      no warning or error is given that the value is used in a rule

      when opening the guided decision table, the cell value has disappeared and the cell value is now empty.
      when looking at the generated decision table source code, the whole line that involved the cell (column) has disappeared from the rule when part thus altering the rules patern matching logic

      and all this without any warning!

      Show
      create a enumeration for a fact-field combination create a guided decision table using this fact-field in the condition side set the value of the field to any value in the enumeration delete the value from the enumeration no warning or error is given that the value is used in a rule when opening the guided decision table, the cell value has disappeared and the cell value is now empty. when looking at the generated decision table source code, the whole line that involved the cell (column) has disappeared from the rule when part thus altering the rules patern matching logic and all this without any warning!
    • NEW
    • NEW

    Description

      As a rule creator,
      whenever the value list of an enumeration gets modified, I want to make sure that no rules are broken because of it.

      NOW IT IS BROKEN:
      see steps to reproduce

      solution suggestion:
      prevent the deletion of an enumeration value when it is in use in a rule
      The user should be made aware what rule(s) is/are blocking the removal of a value!
      --> the user must first 'prepare' the rules and then come back to remove the value from the list

      ATTENTION:
      This logic only is valid for DELETION/RENAMING of enumeration values,
      Rearranging values and adding values can happen without any problem.

      Attachments

        Activity

          People

            trikkola Toni Rikkola
            werner.vanherrewegen Werner Van Herrewegen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: