I have a task in a process model that needs some user input. I also included cancel button as a way to "go back" and do the task later. I have mapped this cancel to a XOR and if cancel is true, the line loops back into the task:This produces two issues. The first one is I get notified again if I cancel because task is reassigned to me. The second issue is that for some time the task is not assigned to anyone. I have a list of tasks taken from a task report, where I have links to the tasks. When I click on the link this form opens and when I click the cancel button I get back to the list of tasks but the said task is not present anymore in the list. When I refresh the page however it appears again as it is assigned again.Is there a better solution?
Discussion posts and replies are publicly visible
The refresh issue can be resolved using the refresh variables. You don't see the task because it wasn't assigned by the time you landed back on the list view. And for the email, you could turn it off from the assignment tab but that would mean it is turned off even for the first time.
I was thinking about the second fix but I want the assignee to be notified for the first time. Could I disable emails, and manually send a single email before the task node? However this does not fix mobile notifications. Is there a way to do a mobile notification as well?
Yes, you do have a "Send push notification" smart service that can help you achieve it.
I would only advise going with manual emails and notifications when you have to do it for a single UIT. If you have multiple of these UIT (tasks), it won't be easy to manage.
Yeah it is luckily only a single task. Regarding the refresh variables, only timed refresh could solve the issue right? Because the link takes you to a new endpoint. And I assume the page refreshes when you return.
I think first, lets add activity chaining between the task and the XOR getaway and see if that solves the problem.
If I add activity chaining the cancel button does nothing since the task is instantly reassigned I suppose.EDIT: This is for when I added activity chaining between task and XOR gateway and also on the loopback. When I only add activity chaining to the line that goes into the XOR, the behaviour is the same as before.
Then you will either need to add a timed refresh or set the refreshAlways to true. Make sure you use refreshAlways after considering the data volume and the frequency.