Re: JESS: [EXTERNAL] Creating an eLearning system following TekMart example

2013-06-26 Thread Rejaul Barbhuiya
Thanks Ernest. In my program, I was using runQuery(arg0, arg1) and storing the result in a Iterator as shown below. Then I am storing the result in token and from token to fact. Iterator sno = engine.runQuery(session-number,new ValueVector().add(sidValue)); if

RE: JESS: [EXTERNAL] Creating an eLearning system following TekMart example

2013-06-26 Thread Friedman-Hill, Ernest
Don't try to get the Token - hiding that sort of ugliness is the whole reason run-query* exists. Use a pattern binding instead: (defquery my-query (declare (variables ?n)) ?f - (room (number ?n))) (bind ?r (run-query* my-query 100)) (while (?r next) (bind ?fact (?r getObject f))