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 (sno.hasNext()) {
            Token token = (Token) sno.next();
            Fact fact = token.fact(1);

Now, I want to use runQueryStar(). But I don't know how to read the Query
Result.

QueryResult sno = engine.runQueryStar("session-number",new
ValueVector().add(sidValue));
if (sno.next()) {
Token token = (Token) sno.*????*;  *what function should I use here?*
Fact fact = token.fact(1);




On Mon, Jun 24, 2013 at 11:06 PM, Friedman-Hill, Ernest
<ejfr...@sandia.gov>wrote:

> You can use a query to easily find your facts; see
> http://www.jessrules.com/jess/docs/71/queries.html and in particular,
> http://www.jessrules.com/jess/docs/71/queries.html#in_java
>
>
>
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users y...@address.com'
> in the BODY of a message to majord...@sandia.gov, NOT to the list
> (use your own address!) List problems? Notify owner-jess-us...@sandia.gov.
> --------------------------------------------------------------------
>
>


-- 
*Rejaul Karim Barbhuiya*
Senior Research Fellow

Department of Computer Science
Jamia Millia Islamia
New Delhi, India
Phone: +91-9891430568

Reply via email to