How to use Mendix 10 page url or microflow url feature to set a link to the task page to be opened by the task assignee

0
I have a workflow where a task is raised and assigned to a specific user.  I currently have an event on that task that sends the assignee an email notifying them that they have a new task.  I would however like to send them a link in the email so that they can click the link and be taken straight to that page.  The page has 2 object parameters  - the System.WorkflowUserTask and a custom object I created.   What will be the most efficient and safest way to implement this functionality?  I was hoping to use the new Page URL or Microflow URL features in Mendix 10.   Some considerations : The user should be signed in automatically when the link is clicked currently the only unique identifier I have for the 2 objects mentioned above is their UUID.  Is it advisable to use these in the URL?  Is there a java action that can retrieve this for me?  How could I mask these UUIDs in the link and the URL when loaded.     Any help would be much appreciated.
asked
1 answers
1

Hi Kath,

 

You can indeed use the URL functionality of the pages. If you add the 2 entities as page parameters, they will become available for you to configure in the deeplink URL.

 

When configuring the deeplink you have 2 options:

  1. Reference the entity itself. In this case the URL expects the database id of the entity, which can be retrieved using java action from community commons.
  2. Reference an attribute on the entity that you use as unique id to retrieve the object

So if you already have the UUID available now for both objects the first option is the best approach. Mendix will do the retrieve automatically for you and pass the retrieved objects into the page parameters.

 

For the SSO, you can pass a continuation URL to the login service as such: http://localhost:8080/SSO/login?cont=link/yourDeeplink

 

answered