I think chinnaswamy gounder wrote:
> Hi all,
>        I am new to JESS and I am working in the
> development of Rule engine.  As I have undertood ( if
> I am wrong please correct me ), the rules could be put
> in a seperate file and in the java code using JESS api
> (rete object).excute can take the rule file name as
> arguement. Then rete object handles the trigguring of
> rules dynamically. 

Given an instance of the Rete class in a variable "rete," you can say
rete.executeCommand("(batch " + filename + ")"); .  No rules will fire
unless the file contains some facts for the rules to act on, and the
(reset) and (run) commands, also -- or you issue these commands ibn
another way, perhaps by calling rete.reset() and rete.run().

> 
>       Suppose, if I deal with some of the variables or
> objects in the java code, is there a way to refer
> those variables or objects to rules written in the
> seperate file.  Please help me out to get cleared from
> this confusion.

See manual section 4.4.4., "Transferring values between Jess and Java
code" 

> 
>          I would highly appreciate if you give a
> sample coding for rules ( rule file )and java code
> that refers the rule file.

The manual is full of code examples.

> 
>        Thanks and regards
> 
>        chinnaswamy_g
>        Software architect
>        elipva ltd
>        Singapore
>         
> 
> 
> __________________________________________________
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.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]
> ---------------------------------------------------------------------
> 



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