[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-2077) update(fact) doesn't work in ruleflow
Kris Verlaenen (JIRA)
jira-events at lists.jboss.org
Thu May 14 08:38:47 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kris Verlaenen resolved JBRULES-2077.
-------------------------------------
Fix Version/s: 5.0.0.GA
Resolution: Done
Assignee: Kris Verlaenen (was: Mark Proctor)
This already seems to be fixed on trunk.
> update(fact) doesn't work in ruleflow
> -------------------------------------
>
> Key: JBRULES-2077
> URL: https://jira.jboss.org/jira/browse/JBRULES-2077
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-core (expert), drools-core (flow)
> Affects Versions: 5.0.0.CR1
> Reporter: Michal Bali
> Assignee: Kris Verlaenen
> Priority: Critical
> Fix For: 5.0.0.GA
>
> Attachments: exception.txt, ruleflow.rf, RuleFlowTest.java
>
>
> Hi,
> org.drools.base.DefaultKnowledgeHelper uses newly added identityMap to keep track of fact handles. It looks like this identityMap is updated before a rule's consequence is called. However it is not updated before a Drools Flow on-exit action. This means that calling update(someFact) in a on-exit ruleflow action causes exception ("org.drools.FactException: Update error: handle not found for object: XXXXX. Is it in the working memory?").
> this was tested on drools-core-5.0.0.20090417.044049-485.jar
> Thanking you in advance.
> Best Regards,
> Michal
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list