i write two rules "rule A" and "rule B"
"rule A" is basic permission check rules and "rule B" is an advanced rule for some special conditions.
i hope "rule B" is prior to "rule A", that is to say when rule B and rule A is satisfied the condition at the same time, "rule B" will be get carry out not "rule A"
but in fact no matter how i set the values of salience and activation-group, the "rule A" will be the final winner, he will get execution until i delete "rule A".
plz help me, thanks!!!!!!!
rule A
salience 0
activation-group "entity crud check"
no-loop
when
c : PermissionCheck(action in ("insert", "read", "update", "delete"), granted == false)
....
....
then
c.grant();
end
rule B
salience 100
activation-group "entity crud check"
no-loop
when
c : PermissionCheck(name == "Employee", action in ("insert", "read", "update", "delete"), granted == false)
....
....
then
c.grant();
end