I think Myriam Abramson wrote:
> 
> Hi!
> 
> I have a JessListener where I detect when certain facts get asserted
> or modified. I would like to extract some slot values from those facts but
> how do I get the "context" necessary to resolve the values? 
> 
>    public class MyListener implements JessListener {
>       public void eventHappened (JessEvent je) {

If you don't already have a reference to the Rete object, you can use
(Rete) je.getSource(). Then use getGlobalContext() on that.


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to