Hi Jose,
I have not seen in any of your two URLs posted in the first comment the “showUnderAdmin” parameter.
Just to be clear about the steps you have done:
- you have created the finishURL instance
protected IPortletURL createFinishURL() throws Exception {
IPortletURL finishURL = createActionUrl();
finishURL.clearParameters();
finishURL.clearState();
// call action when navigation
finishURL.setTargetAction("#{activePageBean.refresh}");
finishURL.setBaseURL(...);
finishURL.setPortlet(...);
finishURL.setParameter(...);
finishURL.setParameter(...);
return finishURL;
}
- you have created a PortletURL instance on which you perform the actual redirect:
IPortletURL portletURL = createRenderUrl();
portletURL.clearParameters();
portletURL.clearState();
portletURL.setBaseURL(...);
portletURL.setPortlet(...);
portletURL.setParameter("cancelUrl", createCancelURL().toString());
//see finishURL initialization above
portletURL.setParameter("finishUrl", createFinishURL().toString());
portletURL.setParameter("currentTab", "TaskData");
getFacesContext().getExternalContext().redirect(portletURL.toString());
As you can see the finishUrl is sent as an actual parameter.
Also, please not that the “showUnderAdmin” parameter must be defined as a Portlet Preference on the target portlet.
br,
Vlad
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine