add a working memory event listener using the JSR-94 API
--------------------------------------------------------

         Key: DROOLS-426
         URL: http://jira.codehaus.org/browse/DROOLS-426
     Project: drools
        Type: Improvement
  Components: jsr94  
    Versions: future    
    Reporter: Adrian Bigland
    Priority: Minor
     Fix For: future


The JSR-94 API does not include a method for adding a debugger to the rule 
session.
This leaves debugging to the vedor-specific properties/metadata that the API 
exposes.
It would be useful to have a mechanism for adding a WorkingMemoryEventListener 
to working memory using the vendor-specific properties/metadata.

I've been doing this by modifying the AbstractRuleSessionImpl to add all 
WorkingMemoryEventListeners that it finds in the vendor-specific property map 
to the working memory as listeners. This works well for me. Another solution 
might be to create a property naming scheme, and use one of the names for a 
listener. Currently all the properties are added as application data, so any 
solution will clash to some extent with the current use of the property map.

Assuming that everyone agrees that this is a good idea, someone needs to decide 
on the best mechanism and implement it. Implementation should be relatively 
easy, I think figuring out the most practical mechanism is the difficult bit.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to