Dynamic values for Candidate user in workflows
hi
i have created a custom workflow to create business and get approval from steward group. First task is to choose Domain and add asset. Second user taks is for steward approval. Based on the domain selection, second task has dynamic values for steward group as candidate user. After triggering workflow by non-steward user, they get blank screen with error " An unexpected error occurred while performing this action. com.collibra.common.exception.AuthorizationException: workflowTaskNoPermission" . this issue happens as non-steward user has no permission to access second task, whcih is for steward group. I assume the issue is due to the fact that second task has dynamic value for candidate user. is there a way to get rid of the workflow behavior?
Attaching sample bpmn file for the task
regards
AnieBusinessTermApprovalWorkflow2.txt (11.9 KB)
arthurburkhardt
·4 years ago · EditedIt seems you choose business stewards based on a domain, correct?
Then there is a much easier solution: instead of making the list, just use a user expression based on role and domain
So, defining the candidate user expression for your user task like this would remove the need for the script task entirely:
Try this if that solve your problem.