[rules-users] Drools Syntax

Lindy hagan lindyhagan at gmail.com
Thu Sep 3 14:32:19 EDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090903/79fca8fa/attachment.html 


More information about the rules-users mailing list