Requirement of display of task inbox page after task submit

Hi
We are facing an issue wherein after user submits the task using submit button on task page task gets completed but display does not move to inbox.
We are using a async command button as a submit button which works fine and asynchronously completes the task but user display remains same and it confusing for the user.
This happens when we use below mentioned task URL
http://amswbm02:8585/meta/default/wm_xt_fabricfolder/0000008387?wmp8388.taskID=8835

But there is no issue when we use below mentioned URL
http://amswbm02:8585/1EDAA099-89AA-5A0A-0005-21FED3AC0C38.task.app.details.page?wmp_tc=8618&wmp_rt=render&cancelUrl=%2Fmeta%2Fdefault%2Fwm_xt_fabricfolder%2F0000004443%3Fwmp_tc%3D7411%26wmp_rt%3Drender%26wmp_tv%3D%252fTaskInboxSearchResults%252fview.view%26sh.wmp_ks%3Dtrue&finishUrl=%2Fmeta%2Fdefault%2Fwm_xt_fabricfolder%2F0000004443%3Fwmp_tc%3D7411%26wmp_rt%3Daction%26wmp_ta%3DrefreshTaskSearchProvider%26wmp_tv%3D%252fTaskInboxSearchResults%252fview.view%26sh.wmp_ks%3Dtrue&taskID=8835

Can someone explain how second URL is formed and provide documentation on wmp_t.Also how can we change it to display inbox portlet after task completion using first URL.

Regards
Anuj

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