Task complete shows error screen, how to avoid that?

I am just completing task without any error or issue, but if i am on that task screen, it is showing some error message which is confusing actually. Is there any way to hide/supress the error message ?

Task task = taskService.createTaskQuery().processInstanceId(processid).singleResult();
 if (task != null) {
    taskService.complete(task.getId());
 }

when i complete the task, it is showing this error message on panel. Is there any way to hide/supress the error message ?

1 Like

You could poll and dismiss the form once polling finds that the task no longer exists: Dismissing task form for inexistent task

1 Like