How to dynamically assign an approver in a workflow using Mendix 10.18

0
I’m using Mendix 10.18 and would like to implement a workflow.I want users to be able to select an approver in Data Grid 2, and then pass that selected user into a User Task, so that the approver can be assigned dynamically instead of being fixed.How can I achieve this?
asked
2 answers
0

In Mendix 10.18 there is no off the shelf solution. Since Mendix 11.2, Workflow Groups was introduced https://docs.mendix.com/refguide/workflow-groups/ which can offer a solution for this use case

answered
0

First, you save an association from your context to the selected approver.

 

Second, assign the selected approver user in the On created event microflow call of the of the Approve task.

 

The assignment might need some Java magic to assign automatically (and not by the user herself) if it is not allowed by default. In this case call the assign microflow from the Community Commons / executeMicroflowAsUser_1 as the approver as the user and the usertask as parameter.

answered