Well,  I recently described how to find facts and get fact slots on
this very list: see the archive:

        http://www.mail-archive.com/[email protected]/msg00396.html

As far as specifically what you're asking, jess.Context is an
execution context - basically it holds the active variables for a
block of code. It can't be used to refer to the facts that activated a
rule, although that's an interesting idea, and one that I might have
to look at in the future. The only reason you get one in a
Userfunction is so you have access to global variables and the Rete
object itself. Context also keeps track of the names of things that
are executing, so they can be displayed in error messages.

I can't think  of any way of doing this without making some mods to
the engine itself. 


I think Juan Luis Mulas Platero wrote:
> 
> Hi Jess users.
> 
> Perhaps it sounds absurd but I would like to know if there is any way of
> having access to a fact (and its members) of the LHS of a rule from a
> userfunction called from the RHS of the same rule BUT without passing
> any reference or fact id to the userfunction. I was thinking of the
> Context class, but I don't know exactly what Context is used for.
> 
> Thanks in advance.
> 
>                                     Juan Luis Mulas Platero.
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9214                  [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to