[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2077) update(fact) doesn't work in ruleflow
Michal Bali (JIRA)
jira-events at lists.jboss.org
Thu Apr 23 18:56:41 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Bali updated JBRULES-2077:
---------------------------------
Attachment: RuleFlowTest.java
main class
> 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: Mark Proctor
> Priority: Critical
> Attachments: 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
> 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