Hello,
I made this query in a batch file for JESS
and it gave me the answer in command line.
(defquery who-is-logged
"extract info on the users who have been too long"
(is-logged (user ?name)(since ?time))
(running (since ?time))
)
Now I'm trying to do it from java, but I am rather new with Jess
and I don't get why it doesn't work
...
ValueVector vv= new ValueVector();
vv.add(new Value("(is-logged (user ?name)(since ?time))",RU.FACT));
vv.add(new Value("(running (since ?time))"))",RU.FACT));
Iterator it= mainRete.runQuery("who-is-logged",vv);
...
does anybody have a little example done in this way?, because i 'd like to
do more queries from java code.
Thanks!
Diego.
--------------------------------------------------------------------
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]
--------------------------------------------------------------------