Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3484

Redundancy check option not working in Drools Verifier

    Details

    • Steps to Reproduce:
      Hide

      1. Create a duplicate rule in your drl file.
      2. Add the package to Verifier.
      3. Fire all the rules in default configuration of verifier.
      4. You will not find the "Redundant" warning displayed.

      Show
      1. Create a duplicate rule in your drl file. 2. Add the package to Verifier. 3. Fire all the rules in default configuration of verifier. 4. You will not find the "Redundant" warning displayed.
    • Workaround Description:
      Hide

      I am not sure about workaround. But i feel these rules have to be loaded "Find Literal restriction" and "Find Variable restriction". Coz the rule which checks for redundancy in pattern matching is not being loaded into the Activation due to it.

      Show
      I am not sure about workaround. But i feel these rules have to be loaded "Find Literal restriction" and "Find Variable restriction". Coz the rule which checks for redundancy in pattern matching is not being loaded into the Activation due to it.

      Description

      I am using Drools-Verifier to validate the rules for any redundancy. I have explicitly given the redundant rule to test it. But I didn t get any warning stated that there are duplicate rules.

      I did some research and found that the dependent rules "Find Literal restriction" and "Find Variable restriction" are being removed (file org/drools/redundancy/restriction.drl).

      Kindly fix the issue so that we can continue with Drools-Verifier.

      Thanks,
      Prasanna.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Rikkola Toni Rikkola
                  Reporter:
                  worldofprasanna Prasanna Venkataraman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: