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

Add options to specify the salience range of rules in a Decision Table Sheet

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.4.0.Final
    • Fix Version/s: 7.0.0.Final
    • Component/s: decision tables
    • Labels:
      None
    • Environment:

      any

    • Affects:
      Documentation (Ref Guide, User Guide, etc.)
    • Estimated Difficulty:
      Low
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When we set Sequential=true in RuleSet properties.
      The salience of the generated rules are started from 65518 and down one by one.

      When we mix several Decision Table Sheets and DRL rules in a Ruleflow-Group (Agenda-Group), We could not make these rules' salience order, because each Decision Table Sheet has fixed to start from 65518.

      A (limited) workaround is to have separated Ruleflow-Groups,
      But this way does not solve the situation to back to the higher priority rules as it's previous Ruleflow-Group.

      To solve The request is that add two options into RuleSet properties. like,
      SequentialMaxPriority 10000
      SequentialMinPriority 1000

      By this optional properties, we can control the range of the salience of rules in the Decision Table Sheet. and it is possible safely to mix multiple Decision Table Sheets in a Ruleflow-Group.

      The SequentialMaxPriority is used to set the start value of the salience instead of 65518.
      The SequentialMinPriority is used to check if this minimum salience value is not violated in the Decision Table Compiler. (if it's violated, compilation error occurs.)

      Best Regards,
      Osamu Kuniyasu

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                kuniyasu Osamu Kuniyasu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: