I come back with another question:)
This question is how to return a fact from Jess to Java.
My rule's action is to create a new fact. This is a unordered fact defined
by deftemplate. It looks like
(deftemplate person (slot age))
(defrule test
=>
(assert (person (ago 30)))
)
I write a java code with main(). main() uses rete.executecommand("(run)") to
start rules. After that, main() wants to receive that new fact created in
rule's action and process it.
We can use "store" and "fetch". But, is "Fact" supported as a value?
thanks
Gang
>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: JESS: Sample Codes?
>Date: Fri, 17 May 2002 12:48:02 -0700 (PDT)
>
>I think Gang Liu wrote:
> > hi, Sir/Madam:
> >
> > I downloaded trial-version of Jess. There are a few Samples. Can anyone
> > provide more samples? Especially, samples uses JAVA API.
>
>This is why I'm writing a book!
>
>
> >
> > thanks
> >
> > Gang
> >
>
>---------------------------------------------------------
>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]
>--------------------------------------------------------------------
>
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------