I think Qazi Amin wrote:
>
> <rule name="Rule status">
> <parameter identifier="Employee">
> <java:class>com.arb.domain.Employee </java:class>
> </parameter>
> <java:condition>
> Employee.hoursWorked(40)
> </java:condition>
> <java:consequence>
> Employee.status("full Time");
> </java:consequence>
In Jess, this rule might look something like this:
(defrule rule-status
"Check the hours worked by an employee and assign them full-time status."
?e <- (Employee (hoursWorked 40) (status ~"full Time"))
=>
(?e setStatus "full Time"))
depending on what the Employee class actually looks like.
---------------------------------------------------------
Ernest Friedman-Hill
Science and Engineering PSEs Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
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]
--------------------------------------------------------------------