I think prasanna vasan wrote:
> 
> I have a deftemplate with slot
> 
> i.e (deftemplate Test(slot name))
> 
> and i have set the value as let me say jess..

I'm assuming you mean that you've asserted a fact (Test (name jess)). 

> 
> now how to check wheather the deftemplate Test with the value jess is 
> existing in the Rete Working memory...
> 

Use (facts) to find it by hand, or a rule or defquery to find it
programmatically, or even call Rete.listFacts() and iterate through
the fact-list. I'm afraid I probably don't understand the question.


> 
> Another Problem....
> 
> I have a Java Class which does the JDBC connection part ....
> 
> name of the file is DB.java
> 
> now i have defined the userfunction called DatabaseConnection which takes 2 
> args (uid,pwd)
> 
> now how to assert the value from the Java...
> 
> i.e rete.executeCommand("DatatbaseConnection ?uid ?pwd");
> 
> when i do this it takes userid as uid and password as pwd
> 
> but iam storing the correct userid in the uid var...so which means the 
> problem is passing the strings....can u give me asol with samples...
> 

You might consider reading the manual. Section 4.4.4 in the Jess 6.0a8
manual gives an example of exactly how to do what you want.

> Regards
> 
> Prasanna
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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