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

Custom implementations of dynamic salience don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.CR1
    • None
    • None
    • None
    • Eclipse/Windows 7 - 64 bits

    • Hide

      Please see the attached a simple maven project that reproduce and explain this JIRA.

      This project perform a test with some of persons which should be fired according to their age.

      Show
      Please see the attached a simple maven project that reproduce and explain this JIRA. This project perform a test with some of persons which should be fired according to their age.

      I have implemented my own bean (Salience) that manage the dynamic salience for the rules.

      After building the drl file i overlaod the salience of the rules with my dynamic salience WodSalienceImpl(Attached file).

      However, the salience is not respected even if this bean was called (getValue) before the match creation.

      N.B: I used MVELSalience by writing the dynamic salience into the rules(MEVL expression). The result was the same.

        1. WodSalienceImpl.java
          3 kB
          Yacine Jaber
        2. SalienceProject.7z
          3 kB
          Yacine Jaber

              mfusco@redhat.com Mario Fusco
              jyacine Yacine Jaber (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: