[rules-users] Agenda events in a Stateless session

Mark Proctor mproctor at codehaus.org
Wed Mar 4 22:05:10 EST 2009


David Boaz wrote:
> Hi all,
>
> Im trying to listen to the events fired during the evaluation of a stateless
> session. I implemented org.drools.event.rule.AgendaEventListener. The events
> fire as expected. From the event I can extract the Activation, the Rule and
> the list of FactHandles. Now, from each FactHandle I want to retrieve the
> associated fact (Object). For that, I need a WorkingMemory. But the WM
> doesn't participate in the event signature. In addition, since Im using a
> stateless session, the working memory does not exist until I execute()
> method.
>
> Can you please help?
>   
The event listeners don't work in the last release, this is fixed in 
trunk, please give it a try in a snapshot:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
> Thanks, David
>   





More information about the rules-users mailing list