if (host.isSystemHost()) {
host = APILocator.getHostAPI().findDefaultHost(APILocator.getUserAPI().getSystemUser(), false);
}
List<Layout>layouts = APILocator.getLayoutAPI().findAllLayouts();
Layout layout = new Layout();
for (Layout lout : layouts) {
if(lout.getPortletIds().contains("EXT_21")){
layout=lout;
break;
}
}
String link = Config.getStringProperty("WORKFLOW_OVERRIDE_LINK_URL");
if(!UtilMethods.isSet(link)){
String serverPort = Config.getStringProperty("WEB_SERVER_HTTP_PORT", "80");
String serverScheme = Config.getStringProperty("WEB_SERVER_SCHEME", "http");
link+=serverScheme +"://" + host.getHostname() +":"+serverPort;
}
link+= "/c/portal/layout?p_l_id=" + layout.getId() + "&p_p_id=EXT_21&p_p_action=1&p_p_state=maximized&p_p_mode=view&_EXT_21_struts_action=/ext/workflows/edit_workflow_task&_EXT_21_cmd=view&_EXT_21_taskId="
+ processor.getTask().getId();
InvocationHandler dotInvocationHandler = new DotInvocationHandler(new HashMap());