How to connect multiple usertaskpages (for multiple devices) to a usertask?

0
Hi all,   I want to have a different usertaskpage for phones then for web. I cannot figure out how to add different usertaskpages to a usertask in my workflow. I also tried a microflow between the taskinbox and the usertaskpage, but then I cannot find out how to get the workflowcontext from the workflowusertask. Can someone help me with this problem?   Greetings, Evangeline
asked
2 answers
1

To get the workflow context you need to retrieve the workflow via 'WorkflowUserTask_Workflow' and then use the 'Retrieve Workflow Context' actions to get the context. (There's also a more generic Java API).

image.png

You will still need to find the correct page then for display.

 

We've struggled with similar problems. Overall this part of the Workflow Engine is not flexible enough in my opinion.

 

As a workaround you could use a microflow timer on the target page, that redirects the user to the correct device page.

answered
8

Hello Evangeline,

 you can use $currentDeviceType  in your MF/NF decision and show page accordingly.

 

image.png

 

image.png

Mendix Marketplace - Mx Client Actions

answered