[jboss-jira] [JBoss JIRA] Updated: (JBRULES-982) update() not working for "collect" rules
Dirk Bergstrom (JIRA)
jira-events at lists.jboss.org
Fri Jul 6 17:06:53 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-982?page=all ]
Dirk Bergstrom updated JBRULES-982:
-----------------------------------
Attachment: Tester.java
This gives me the following output using svn revision 13176.
fireAllRules()
single record 10: "tom"
Got 3 records from collect:
1:"tom" 6:"tom" 10:"tom"
single record 6: "tom"
single record 1: "tom"
Modifying with update
fireAllRules()
Got 3 records from collect:
1:"shouldn't match" 6:"tom" 10:"tom"
Modifying with modifyRetract/modifyInsert
fireAllRules()
Got 3 records from collect:
1:"shouldn't match" 6:"tom" 10:"tom"
single record 10: "tom"
single record 6: "tom"
Modifying with retract/insert
fireAllRules()
Got 2 records from collect:
6:"tom" 10:"tom"
single record 10: "tom"
single record 6: "tom"
> update() not working for "collect" rules
> ----------------------------------------
>
> Key: JBRULES-982
> URL: http://jira.jboss.com/jira/browse/JBRULES-982
> Project: JBoss Rules
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Reteoo
> Affects Versions: 4.0.0.MR4
> Reporter: Dirk Bergstrom
> Assigned To: Mark Proctor
> Attachments: Tester.java
>
>
> Rules using "collect" are collecting objects that no longer match after an update() is called.
> WorkingMemory.update() or WorkingMemory.modifyRetract()/modifyInsert() don't work, but doing retract() followed by insert() does.
> I'll attach a testcase momentarily.
--
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
More information about the jboss-jira
mailing list