How to avoid the Error Http Status Code 409409?
Scenario:
1. user1 authenticates and starts a task;
2. Then, user1 closes the browser window with the task open;
3. Finally, authenticates again and try to do the task.
Then, it throw the Error: "Error Http Status Code 409", ConflictRequestException: "You cannot work on the task '305 - User 1 - Task 1 - ' with the identifier '41' because the user 'user1' is currently working on it.".
The simulation doesn't start before the error, so I am wondering if it could be just a configuration on Axon Ivy. My Question is **How to avoid the Error Http Status Code 409?**
Any help is appreciated.
Notes:
- In my user application, the tasks are showing using the approach explained in [findWorkTasks() never returns tasks in TaskState.RESUMED state][1].
- I am trying to not do this, since state][1];
- Since it's not reliable in any browser: all browsers, I am avoiding to handle the window closing: [Detecting when the user closes the window or tab of the browser in a Html Dialog][2].Dialog][2];
- It seems that the Portal handles the action differently for RESUMED and SUSPENDED tasks.tasks, that's my plan B;
- Engine Version 6.0.5
6.0.5;
[1]: http://answers.axonivy.com/questions/2410/findworktasks-never-returns-tasks-in-taskstate-resumed-state
[2]: http://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialog