Skip to main content
June 13, 2023
Solved

close or change the interface in a dialog box after an exception

  • June 13, 2023
  • 3 replies
  • 0 views

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?

Best answer by sanchitg0002

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.

3 replies

June 13, 2023

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.

June 13, 2023

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.

stefanhelzle0001
Brainy
June 13, 2023

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.