Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-18
-
Fix Version/s: 2.0-beta-19
-
Component/s: reteoo
-
Labels:None
-
Number of attachments :
Description
I would like to have a list or rule failures when the rules are not applied. I can accomplish this by implementing WorkingMemoryEventListener. When a rule is loaded, activationCreated(ActivationCreatedEvent ace) is called. When a consequence is successfully executed, then activationFired(ActivationFiredEvent ae) is called. I would like to add to a map by rule name when activationCreated is called, and remove it when activationFired is called. This will give me a map of the failed rules. However, no getRule() exists on the Events, just getTuple and getConsequence. I would add this feature myself, but I am unable to compile the source with the existing build file. I recieve javax.rule not found errors, but the jsr*.jar files are in the lib and the ant classpath.
getRule( ) is not appropriate for assert, retract and modify events - so cannot add to WorkingMemoryEvent. It already exists for ConditionTestedEvent. I have added it to ActivationCancelledEvent, ActivationCreatedEvent and ActivationFiredEvent.