Dr. Friedman-Hill,
Then, the defQuery Class is just meant for the parser and not for
programming?
May I see an enlightening example on a query where the ValueVector is
holding parameters?
how would i do it? for example with the "since" slot here
(is it posible to pass a bean as a parameter? )
Thank you
Diego.

> It doesn't work because that's not how to do it :)
>
> There's no public API for building rules or queries in Jess
> 6. Instead, you can just use executeCommand:
>
> mainRete.executeCommand("(defquery who-is-logged " +
>                         "(is-logged (user ?name)(since ?time))" +
>                         "(running (since ?time)))");
>
> Iterator it = mainRete.runQuery("who-is-logged", new ValueVector());
>
> The ValueVector would hold the parameters to the query -- i.e., the
> arguments that you would pass to run-query in Jess.

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