This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do you know how to write this drools?

 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic