aspose file tools
The moose likes JBoss/WildFly and the fly likes Do you know how to write this drools? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Do you know how to write this drools?" Watch "Do you know how to write this drools?" New topic
Author

Do you know how to write this drools?

ya ji
Ranch Hand

Joined: Jul 14, 2008
Posts: 40
rule ViewBookAction
no-loop
when
perm: PermissionCheck(target == 'book', action == 'view', granted == false)

How to write below rule?
[(A and (A1 or A2 or A3)) or (B and (B1 or B2 or B3)) or C or D]



then
perm.grant();
end
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Do you know how to write this drools?