I am new to Jess. We have used other rule engines like Drools and YASU which let you write the rules in XML using java classes/syntax.  I was wondering if we can do the same in Jess.

 

For example this is the simple rule written in XML in Drools, which checks the hours worked by an employee and assign them full-time status.

 

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

 

</rule>

 

If someone can show me how to write the same rule in Jess or point me to some URL where I can find example of the kind, that would be big help.

 

Thanks

 

Amin

Reply via email to