In the completeTask() code, you’ll see some code that reads like this:
// then redirect to finish url
String url = getDateRangeSampleTaskView().getFinishUrl();
if (url != null && url.length() > 0) {
getFacesContext().getExternalContext().redirect(url);
}
So what’s happening is that your TaskDetails Portlet doesn’t have a finishURL set on it’s properties so the redirect back to the inbox isn’t occurring. By default, when you select a task from the inbox portlet, that long URL is created which sets a ‘finishURL’ on the task details portlet.
You could modify that logic to just return to the alias of the inbox or any other URL that you desire. However, you might notice that in the finishURL there is an action specified to refresh the inbox. If the inbox isn’t refreshed, the user might see the same task they just completed.
These complex URLs are created using PortletURL and ExtendedPortletURL controls.
Regards,
–mark
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine