Task delegation functionality(User role based work delegation functionality)

0
Hi, we have to implement user role based work delegation functionality, like we are having multiple Role into our application so now based on that if user want to their work to another  user or role. so how we can achieve this into Mendix or Mendix provide this kind of functionality?  please suggest if some one have any idea about this. OR Hi, How can i allow users to delegate their tasks for certain Duration, For, A user went for Leave, He needs to Delegate his tasks to other user? How can Achive this in Mendix 6.7.1   thanks Mandeep
asked
2 answers
0

Same questions as: https://forum.mendix.com/link/questions/87860

answered
0

The problem is with task delegation that you can only delegate tasks to persons with the exact same user role set. Otherwise you might end up with all kinds of complications that the person where the task is delegated to suddenly can not see certain fields etc.

So create a microflow where you retrieve the user role set of the current user that wants to delegate a task. Then iterate over the user roles and retrieve all the users with that specific role but remove the current user from that list. Then use the intersect function to intersect on all those retrieved lists. Because only the user that is in all those list would be a person where he could delegate the work to.

Hope this helps,

Regards,

Ronald

answered