You sure can do it in Drools
rule "Rule1"
when
User( privilegeList contains "User Privilege", privilegeList contains
"Admin Privilege")
then
//Do stuff
end
rule "Rule2"
when
User( privilegeList contains "Admin Privilege")
then
//Do stuff
end
rule "Rule3"
when
User( privilegeList contains "User Privilege")
then
//Do stuff
end
Steve Ronderos
rules-users-bounces(a)lists.jboss.org wrote on 09/03/2009 01:32:19 PM:
[image removed]
[rules-users] Drools Syntax
Lindy hagan
to:
Rules Users List
09/03/2009 01:35 PM
Sent by:
rules-users-bounces(a)lists.jboss.org
Please respond to Rules Users List
Hi,
Could anyone tell me what will be the syntax to check for a list in
the drl file.
For ex:
If the user object contains userid (userId) and list of privileges
(privilegeList) values can be User Privilege or Admin Privilege.
I want to create 3 rules :
privilegeList.contains("User Privilege ") && privilegeList.contains
("Admin Privilege") first rule
privilegeList.contains("User Privilege ") second rule,
privilegeList.contains("Admin Privilege") third rule,
can this be done in Drools?
Thanks,
Lindy
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users