"Matteo Melideo" <[EMAIL PROTECTED]> on 05/16/2000 09:06:12 AM

Please respond to "Matteo Melideo" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Ashraf Afifi/Bsg/MetLife/US)
Subject:  JESS: Help

(defrule compare
     (products (name ?x) (type RulesEngine) (name Jess))
     (users (name xyz) (product_purchased ?x))
     =>
     ......
)

if comparison is not for equality you may try

(defrule compare
     (products (name ?x) (type RulesEngine) (name Jess))
     (users (name xyz) (product_purchased ?y&....))
     =>
     ......
)

if you read the jess documents you will learn the syntax for the expression that
compares ?y and ?x

Ashraf Afifi

Hi All,
I am a new comer with the Rules Engine world and I'd like to make some
experimentation with Jess. In doing these experimentation I have met some
problems.
My question is:
Defining different Unordered fact and Ordered fact, how can I share the
information among them?
For instance if I have a situation like this:
(products (name software) (type RulesEngine) (name Jess))
(users (name ...) (product_purchased Jess))

these are two different deftemplates I have defined; now I need to define a rule
to compare the slot product_purchased with the slot name. How can I do this?

Thank you very much in advance and best regards.
--
Matteo Melideo
Direct Phone: +39 06 44741145 - Operator: +39 06 4474111
Engineering SpA - R&D Lab -, Fax: +39 06 4465981
Viale del Castro Pretorio, 116 E-mail: [EMAIL PROTECTED] or [EMAIL PROTECTED]
00184 Roma - Italy
--
Hi All,
I am a new comer with the Rules Engine world and I'd like to make some experimentation with Jess. In doing these experimentation I have met some problems.
My question is:
Defining different Unordered fact and Ordered fact, how can I share the information among them?
For instance if I have a situation like this:
(products (name software) (type RulesEngine) (name Jess))
(users (name ...) (product_purchased Jess))
 
these are two different deftemplates I have defined; now I need to define a rule to compare the slot product_purchased with the slot name. How can I do this?
 
Thank you very much in advance and best regards. 
--
Matteo Melideo  
Direct Phone: +39 06 44741145 - Operator: +39 06 4474111
Engineering SpA - R&D Lab -, Fax: +39 06 4465981
Viale del Castro Pretorio, 116 E-mail: [EMAIL PROTECTED] or [EMAIL PROTECTED]
00184 Roma - Italy
--

Reply via email to