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

Problem when adding dynamic rules to networks with shared AlphaNodes

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.2
    • Component/s: None
    • Labels:
      None

      Description

      The problem is easy to see in the StateExampleWithDynamicRules. After the addition of the dynamic rule, it is activated 4 times instead of a single time as it is supposed to be.

      The problem is in the AlphaNode.updateSink() method, that simply calls (when node memory is off):

      // get the objects from the parent
      this.objectSource.updateSink( sink,
      context,
      workingMemory );

      Passing "sink" as a parameter, what causes the propagation to skip the alpha constraints.

      I was able to isolate that in an unit test. Fixing now.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                tirelli Edson Tirelli
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: