How to make the reject path move to a particular current_user not user role?

0
I need assistance with creating a XPath expression or microflow in Mendix. When a manager role rejects a request, it currently goes to the reject outcome, where I have set up a new user task. However, I want to write a Xpath or microflow to move the request back to the specific demo_user who initiated the request. But this rejection goes to every demo_users who are associated with user role. As everyone already knew that there may be multiple demo_users associated with one user role. How to achieve this? If anyone know any idea or logic, please share with me. Thanks.  
asked
1 answers
1

Hi Vijay,

You must be saving system member like system owner in your workflow request entity .

If yes then In the reject scenario , retrieve the system owner who has created the workflow request and send that task to him 

Use below xpath

 

image.png

 

Good luck!

answered