In the Task application , in the Task Portlet for Taskview, change the command button for “Complete” to async command button.
and then remove the following line from from completeTask Action in the managedBean class.
getFacesContext().getExternalContext().redirect(url);
#webMethods#BPM#webMethods-BPMS