Hi,
I'm working on aprocess model to update data form a record type. If after 5 min the user has not submitted the form an exception end the task. The problem with this option is that after the exception there is no way to close the dialog box. Is there any possible solution for that?
Discussion posts and replies are publicly visible
No, there is nothing you can do once an exception is triggered, if you try to submit/close the task it will show a message that "The task is already submitted". I think closing the browser tab is the only option user is left with.
In case you want to implement something complicated, you could use a local variable, refreshed frequently, which uses a process report to check whether the underlying process instance is still alive. And then alter the UI to show a message to the user.
But I would try to challenge the "requirement" leading to this situation.
There is one thing you try, you can pass the tp!starttime to the rule input in UIT and create a localVariable for endTime (ri!startTime + minute()*5 ) and another variable (local!disable) with refresh configuration as refreshInterval set to 0.5 which will have value: or(now()>local!endTime) and use this variable to disable the submit button or to show any message on the UI.