Venkat,
As far as JESS's Java integration everything is handled by a Rete object. I recommend the book "Jess in Action" if you plan on utilizing that functionality of Jess.
John M. Lauck
Venkatesh Mahadevan wrote:
Hi
I am new to Jess. I am going thru the documents provided on the web. I have a simple question.
I created a deftemplate for automobile
(deftemplate automobile "A specific car." (slot make) (slot model) (slot year (type INTEGER)) (slot color (default white)))
A fact
(assert (automobile (make Chrysler) (model LeBaron) (year 1997)))
A Function
(deffunction match () ( printout t "Match occured..." crlf))
I want to write a defrule which says that
if automobile.make=chrysler then call match()
How does one write this rule and fire it (from commandline as well as from Java code)
Thanks Venkat
-------------------------------------------------------------------- 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] --------------------------------------------------------------------
-------------------------------------------------------------------- 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] --------------------------------------------------------------------
