<%@ page errorPage="psv_error.jsp" %> <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %> <%@ page import="java.net.*" %> <%@ page import="java.util.*" %> <%@ page import="org.apache.commons.lang.*" %> <%@ page import="com.savvion.common.appinfo.AppInfoUtil" %> <%@ page import="com.savvion.sbm.bizmanage.api.*" %> <%@ page import="com.savvion.sbm.bpmportal.bizsite.util.*"%> <%@ page import="com.savvion.sbm.bpmportal.util.*"%> <%@ page import="com.savvion.sbm.bpmportal.service.IPSVService" %> <%@ page import="com.savvion.sbm.bpmportal.psv.PSVServiceImpl" %> <%@ taglib uri="/bpmportal/tld/bpmportal.tld" prefix="sbm" %> <%@ include file="../common/include_tag.jspf" %> <% String linkfrom = request.getParameter(PortalConstants.LINK) == null ? PortalConstants.REPORT : request.getParameter(PortalConstants.LINK); if(linkfrom.equals(PortalConstants.BEANALYSIS)){ linkfrom=linkfrom + PortalConstants.NOMENUS_NOBREADCRUM; } String menu1 = "1"; String submenu1 = "0"; if (PortalConstants.STATUS.equals(linkfrom)) { menu1 = "0"; submenu1 = "1"; } else if (PortalConstants.REPORT.equals(linkfrom)){ menu1 = "1"; submenu1 = "2"; } else { menu1 = "1"; submenu1 = "0"; } bizManage.setRequest(request); bizManage.setResponse(response); if(ServletUtil.hasSpecialCharsInRequest(request)) throw new Exception("Request contains special characters"); String ptid = request.getParameter(PortalConstants.PTID); String piid = request.getParameter(PortalConstants.PIID); String piName = request.getParameter(PortalConstants.PI_NAME); if (piName == null){ piName = bizManage.getProcessInstanceName(piid); }else{ piName = bizManage.hexDecode(piName); } String ptName = request.getParameter(PortalConstants.PT_NAME); if(ptName == null) { ptName = bizManage.getPTNameFromPTID(ptid); } else { ptName = bizManage.hexDecode(ptName); } StringBuffer psvURL = new StringBuffer(bizManage.encode("psv_table_view.jsp")); psvURL.append("?").append(PortalConstants.PI_NAME).append("=").append(bizManage.hexEncode(piName)); psvURL.append("&").append(PortalConstants.PTID).append("=").append(ptid); psvURL.append("&").append(PortalConstants.PIID).append("=").append(piid); StringBuffer dataslotsURL = new StringBuffer(bizManage.encode("dataslots.jsp")); dataslotsURL.append("?").append(PortalConstants.PI_NAME).append("=").append(bizManage.hexEncode(piName)); dataslotsURL.append("&").append(PortalConstants.PTID).append("=").append(ptid); dataslotsURL.append("&").append(PortalConstants.PIID).append("=").append(piid); StringBuffer auditURL = new StringBuffer(bizManage.encode("../myhome/audit_history.portal")); auditURL.append("?").append(PortalConstants.VIEW).append("=").append(PortalConstants.TASK); auditURL.append("&").append(PortalConstants.PINAME).append("=").append(bizManage.hexEncode(piName)); auditURL.append("&").append(PortalConstants.PIID).append("=").append(piid); auditURL.append("&").append(PortalConstants.PTID).append("=").append(ptid); IPSVService psvService = new PSVServiceImpl(bizManage); //String resourceBundleProps = psvService.getResourceBundleAsString(); StringBuilder sb = new StringBuilder(); ResourceBundle bundle = psvService.getPSVResourceBundle(); if(bundle != null) { Enumeration keys = bundle.getKeys(); while(keys.hasMoreElements()){ String key = keys.nextElement(); String value = bundle.getString(key); sb.append(key).append("=").append(StringEscapeUtils.unescapeHtml(value)); //add & always sb.append("&"); } } //first load the properties from the application properties file //here instead of iterating over the bundle everytime, we should cache this in AppInfoUtil itself. bundle = AppInfoUtil.getBizlogic().getBundle(ptName, bizManage.getLocale()); if(bundle != null) { Enumeration keys = bundle.getKeys(); while(keys.hasMoreElements()){ String key = keys.nextElement(); String value = bundle.getString(key); sb.append(key).append("=").append(StringEscapeUtils.unescapeHtml(value)); //add & always sb.append("&"); } } //sb.append(resourceBundleProps); //resourceBundleProps = sb.toString().replace("'", "\\'"); String propResourceBundle = URLEncoder.encode(sb.toString(), "UTF-8"); propResourceBundle = propResourceBundle.replace("'", "\\'"); %> <sbm:message key="processStatusViewerTitle" /> - <sbm:message key="SBM" /> <%@ include file="../common/include_css_static.jsp" %> <%@ include file="../common/include_top.jsp" %>
<%@ include file="../common/include_menu_static.jsp" %>
<% if(ServletUtil.isBreadcrumbEnabled(request)) {%> <% } %>
<% if(request.getParameter("requestFromPCTNotification") == null){ %>
"> ">
<% } %>
<%@ include file="../common/include_copyright_static.jsp" %>
<%@ include file="../common/include_bottom.jsp" %>