[jboss-dev-forums] [TODO - DEVELOPMENT] - drools - decision tables

kdalai do-not-reply at jboss.com
Wed May 30 09:13:52 EDT 2007


hi to all,
           we wrote some rules and they are working fine actually we need how those rules will be changed to decision tables, and that can be accessed by user(non-developer)

             One of the Rule is as follows


package com.leave

import com.leave.paternity;


rule "Paternity Approved"
salience 1000
	when
	    paternity : paternity(gender == 'male',status =='married',role =='permanent',fincount < 1,tenureCount <=2 ,noofDays==2);
	    // fincount -- within that financial year noof paternity leave count (Need to obtain by query)
	    // tenurecount -- For his/her employee  no of paternityleaves in tenure (Need to obtain by query)
	then 
	    paternity.available = 2; //return that 2 days avaliable
end


.......... We have to deliver this 31st may ......... please give us some suggestions..................... The HR people have to change the rules........  how they vill access these drl file ...........

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049710#4049710

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049710



More information about the jboss-dev-forums mailing list