Hi
I have the following requirement
The rule is like if(employeeType == $1) set salary = $1
emloyeeType salary
--- ---
MANAGER 100
SR Manager
Hi, thanks so much for the reply. Can u give some reference/example where new
rules are getting in database.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-with-rules-from-database-tp4019357p4019359.html
Sent from the Drools: User forum mailing list archive at
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)
Thanks a lot :) It worked.
Another thing I was wondering whether we could do with decision table..
I have a list xlist ListX;
class X {
String a;
String b;
ListString cList;
}
Condition ActionActionAction
$1=$1
RuleTable X
Condition Action
x.a == $1 x.b = $param
1 2
RuleTable Y
ConditionAction
x.b == $param
Hi facing the same issue. Do someone have the solution...
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-check-a-list-contains-a-subList-in-decision-table-tp3806077p4018499.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Does *drools decision table* supports multiple number of arguments??
Like in the cell I will have some thing like
1,2,3,4 or it can be 1,2,4
and I will call a function which basicaly does addToList(int... values)
Or is there any alternative way to add multiple element in a list??
Thanks,
Deb
Hi,
I have an application where I will be requiring rule engine in two places.
Use case1
-
I have around 15 rules(It is likely to change very rarely) which are like
truth table
var1 var2 var3 var4 Action
true false false true add x,y,z to list
false false false