Hi,
I am new to Drools and would just like to understand how to do what I am
trying to do. This syntax does not work, and I am not sure how to make it
work. I want permission granted if:
User is Librarian
OR user is Submitter OR user is Requester AND requestSubmitted is false
AND
requestCancelable is true
This syntax requires the user to be both librarian AND submitter or
requester.
when
$perm: PermissionCheck(target == "libraryRequest", action ==
"cancelRequest", granted == false)
RequestState($requestCancelable: requestCancelable, $requestSubmitted:
requestSubmitted)
Role(name == "APP_LIBRARY REQUESTS_LIBRARY STAFF")
eval($requestCancelable == true ||
($submitter.getBadgeNumber().equals($userBadge) ||
$requester.getBadgeNumber().equals($userBadge) && !requestSubmitted))
)
Any help would be greatly appreciated!!
Thanks,
Ginni
--
View this message in context:
http://drools.46999.n3.nabble.com/Complicated-Grant-Permissions-Logic-tp2...
Sent from the Drools: User forum mailing list archive at
Nabble.com.