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

Bug with ReeteoRuleBase and merged package

    XMLWordPrintable

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Before add the package2 remove the rule with same name in package1

      Show
      Before add the package2 remove the rule with same name in package1
    • Estimated Difficulty:
      Low

      Description

      The two same rule (with identical name) appears two times in the ReteeoRuleBase (reteooBuilder)

      example :

      package1 (name = "globalPackage)

      • rule1 (name="rule1")
        when
        then
        System.out.println("rule1 for the package1")

      package2 (name = "globalPackage)

      • rule2 (name="rule1")
        when
        then
        System.out.println("rule2 for the package2")

      when I add this two packages in the same RuleBase and execute :

      RuleBase ruleBase = RuleBaseFactory.newRuleBase();
      ruleBase.add(package1);
      ruleBase.add(package2);

      the log out is :
      rule1 for the package1
      rule2 for the package2

      The error is not in the mergePackage method in the AbstractRuleBase but in the addPackage(final Package newPkg) line 425.

      thanks,

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                vdelbart Delbart Vincent
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: