Good day,

The write query example at 
http://herzberg.ca.sandia.gov/jess/docs/70/queries.html#write_query
shows that it is able to get variables from single slots. Does it also work
with multislots? 'Cos I can't get mine to work.

I have this template & fact

      (deftemplate match-muscle-machine
              (slot body-part)
              (multislot station)       );;close

      (asserrt (match-muscle-machine    (body-part arms-upperfront)     (station
N5 N8 N10 C1))  ) 

I'm using this query

      defquery search-relevant-machines "Get the relevant machines"
      (declare (variables ?findx))
       (match-muscle-machine    
             (body-part ?findx)         (station ?station)) )   

In java I'm using

      QueryResult result =
                   r.runQueryStar("search-relevant-machines", new
ValueVector().add("arms-upperfront"));

             if (result.next()) {       

              System.out.println( "\n query run is successful \n "  );

It has no errors but the program doesn't get to "System.out.println( "\n
query run is successful \n "  );"

How can I use query result on facts with multislots?
 

thanks
rick
-- 
View this message in context: 
http://www.nabble.com/Can-QueryResult-result-work-with-multislots-facts--tf3461027.html#a9656580
Sent from the Jess mailing list archive at Nabble.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