Details
-
Bug
-
Resolution: Done
-
Critical
-
5.0.0.CR1
-
Workaround Exists
-
Description
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