[rules-users] About Decision table
kranthikumar dalai
nvkranthikumardalai at gmail.com
Wed May 30 01:14:23 EDT 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070530/09fbd625/attachment.html
More information about the rules-users
mailing list