Thanks alot for the reply Dr. Friedman-Hill,
it really helped. And sorry if my questions are too basic, with my little
knowledge of programming (1st~2nd year university) it takes me a while to
apply the functions in the manual.
For anyone facing the problem I raised in my example, the (batch "path to
your database") is the best, but you have to define facts in your database
properly (with templates and facts...).



On 7/2/08, Ernest Friedman-Hill <[EMAIL PROTECTED]> wrote:
>
> On Jul 2, 2008, at 12:52 PM, seyed hossein wrote:
>
> Hi,
>> How is the procedure of recalling facts from other Jess classes (possibly
>> from a Jess database) into a Jess class containing rules/functions? I tried
>> the load-facts function, as shown bellow, but it seems not working.
>>
>
> The documentation for load-facts (
> http://www.jessrules.com/jess/docs/71/functions.html#load-facts) is pretty
> clear, I think, that the file should contain the facts only; not "deffacts"
> or anything else. "batch" and "require" can load arbitrary Jess code,
> including deffacts.
>
> So have you read the manual? It's worth reading the whole thing through at
> least once.
>
>
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Informatics & Decision Sciences, Sandia National Laboratories
> PO Box 969, MS 9012, Livermore, CA 94550
> http://www.jessrules.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]
> --------------------------------------------------------------------
>
>

Reply via email to