Problem when adding dynamic rules to networks with shared AlphaNodes
--------------------------------------------------------------------
Key: JBRULES-1177
URL:
http://jira.jboss.com/jira/browse/JBRULES-1177
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Edson Tirelli
Assigned To: Mark Proctor
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira