[rules-users] Drools with rules from database

debchamps majumdar.debarghya at gmail.com
Thu Aug 23 10:16:50 EDT 2012


So the thing is I will have rules like 

when
  EmployeeTypeSalary( $et : emplyeeType, $s : salary )
  $e : Employee( employeeType ==  $et )
then
  modify($e) {
    setSalary( $s );
  }
end


But by taking the value from db the rules will look like 
if(employesalary.color == "manager")
employesalary.salary = 100

if(employesalary.color == "director")
employesalary.salary = 300

There is only one template 

But I want to take this rules from db i.e
employee salary
-------------------
manager 100
director 300


For this I need some reference/example specially for connecting Drools with
db and how the things work.

Thanks,
Deb

 



--
View this message in context: http://drools.46999.n3.nabble.com/Drools-with-rules-from-database-tp4019357p4019361.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list