I think Aditya Deshpande wrote:
> Hi People,
>     Can anybody tell what it means to call JessEvent.getObject().
> What does this return?

getObject() returns "any optional data associated with this event. The
type of this data depends on the type of the event object," according
to the Javadoc. It's up to the sender of the event to set this to
something useful when appropriate. By way of example, JessEvents
created by the Rete class of type JessEvent.DEFRULE will return the
Defrule object from getObject; DEFGLOBAL events return the Defglobal
object, etc.


 Is there anyway to control the Objects 
> returned from Rete. For example if a rule is fired I assume that
> all adapter registered to listen for JessEvent would be notified.

If the JessEvent.DEFRULE bit is set in the event mask, yes.

> So is there a way in which data can be passed from Rule
> Engine to the JessAdapter. Or am I being vague.
> 

No, I think I understand. The answer is no, you can't control what
object gets sent there. It's always going to be the Defrule object
that was added.

> Regards
> Aditya
> 



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

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