Hi to all,
 
  we wrote some rules as follows
 

package com.leave

import com.leave.paternity;

 

rule "Paternity Approved"

salience 1000

when

paternity : paternity(gender == 'male',status =='married',role =='permanent',tenure <= 2,year == 1,applied ==2);

then

paternity.eligible = 2;

paternity.available = 2;

System.out.println("leave approved for :" + paternity.getname());

System.out.println("Total eligible leaves are :" + paternity.getEligible());

end

rule "Paternity Approved1"

salience 800

when

paternity : paternity(gender == 'male',status =='married', role =='permanent(Onsite)',tenure <= 2 , year ==1, applied ==2,withinmonth <= 30); //withinmonth means if applied with in a month after returning from Onsite

then

paternity.eligible = 2;

paternity.available = 2;

System.out.println("leave approved for :" + paternity.getname());

System.out.println("Total eligible leaves for employee Onsite are :" + paternity.getEligible());

end

 

And they are working fine in jboss 4.0

 

But we need help that in (from the above how can we write decision table for user (non developer that he wants to change the rulse)

Pls give us some useful suggestions

Regards:

Kranthi Dalai