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

Unable to set a column "ENABLED" in a spreadsheeet decision table

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 6.0.0.Final
    • 5.5.0.Final
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Low

    Description

      In a spreadsheet decision table, we can add a new column named "ENABLED", which can be used to disable a rule by inserting a value in that column on a specific row. We want to have the translation in the DRL language with the "enable true/false" statement.

      But it doesn't works : When a column ENABLED is added in a spreadsheet and a value is set in a row, it puts CALENDARS in the DRL translation because it is taking the "E" from ENABLED which is for the short code of CALENDARS. We expected to have "enable false/true" instead.
      With the 3 classes below, i have found that the ENABLED attribute is not supported in spreadsheet decision table :

      org.drools.decisiontable.parser.ActionType
      org.drools.decisiontable.parser.DefaultRuleSheetListener
      org.drools.template.model.AttributedDRLElement

      The ENABLED attribute needs to be managed and the associated documentation modified.

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            t.guerin@groupeonepoint.com Thierry Guerin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified