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) {
            int type = je.getType();
            if (type == JessEvent.FACT || type == FACT_MODIFIED) {
                Fact fact = (Fact) je.getObject();
                if (fact.getName().equals("MAIN::alert-event")) {
                       ... extract slot values
                        }

TIA. 

                                              myriam

--------------------------------------------------------------------
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