activiti - Check task assignee whether in candidate groups -
env: camunda 7.4
given: user tasks have candidate groups assigned @ modelling time. @ runtime user tasks can claimed using taskservice.claim().
expect: assignee in candidate groups. if not, throw authorization exception
attempt: add task listener event name 'assignment' every user task programmatically perform check using identity service
is practice? if not, suggestions? if alright, how achieve this? similar bpmn-parse-listener tasklistener? (specifically following example got problem upon using activityimpl in method parseusertask of abstractbpmnparselistener add listener: tasklistener vs. executionlistener)
thanks!
found solution @ add task listener user tasks. although not sure if way of checking assignment practice.
Comments
Post a Comment