<%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006, 2014 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><%@ include file="../common/simpleheader.jsp" %><% WfCanvas canvas = (WfCanvas) control; id = component.getId(); app.put("wfCanvasId", canvas.getId()); String nodeBeanId = control.getProperty("nodedatasrc", "nodes"); String actionBeanId = control.getProperty("actiondatasrc", "actions"); String datasrc = control.getProperty("datasrc"); if(component.needsRender()) { String messageGroup = "wfdesign"; String archive = control.getProperty("archive", servletBase+"/applets/wfapplet.jar"); String code = control.getProperty("code", "psdi.webclient.applet.wfcanvas.applet.WorkflowApplet"); String width = control.getProperty("width", "100%"); width = component.getWebClientSession().attachUOM(width); String nodedatasrc = control.getProperty("nodedatasrc", ""); String actiondatasrc = control.getProperty("actiondatasrc", ""); // Set right now to use any version of 1.6_12+ String classid = control.getProperty("classid", WebClientRuntime.getWebClientProperty("mxe.javaApplet.ClassidNoMinimum", WebClientConstants.JAVA_APPLET_OBJECT_CLASSID_GUID_NO_MINIMUM) ); String hostProtocol = WebClientRuntime.getWebClientProperty("maximo_extended_host_protocol"); if (hostProtocol == null) { hostProtocol = request.getScheme(); } String codebase = hostProtocol+"://"+control.getProperty("codebase", WebClientRuntime.getWebClientProperty("mxe.javaApplet.CodebaseNoProtocol", WebClientConstants.JAVA_APPLET_OBJECT_CODEBASE_NO_PROTOCOL) ); String type = control.getProperty("type", WebClientRuntime.getWebClientProperty("mxe.javaApplet.Type", WebClientConstants.JAVA_APPLET_OBJECT_TYPE) ); String automationIdBack = ""; if(automation) automationIdBack="automationid=\""+realId+"_filler\""; %> <% } else if (canvas.getRefreshVisibility()) { canvas.setRefreshVisibility(false); %> > wfCanvas = document.getElementById("<%=id%>"); ctrl = getControl(wfCanvas); makeCanvasVisible(<%=canvas.getAppletVisible()%>,"<%=id%>"); <% if(canvas.getAppletVisible()) { %> reload=true; <% } %> ]]> <% } // refresh applet data if ((component.needsRender() || canvas.hasChanged()) && (!designmode) && canvas.getAppletVisible()) { DataBean wfProcess = wcs.getDataBean(datasrc); psdi.webclient.beans.wfdesign.NodesBean wfNodes = (psdi.webclient.beans.wfdesign.NodesBean)wcs.getDataBean(nodeBeanId); DataBean wfActions = wcs.getDataBean(actionBeanId); String processid = wfProcess.getString("wfprocessid"); String zoomLevel = "100"; String processname = ""; boolean processEditable = false; if(processid!=null && !processid.equals("")) { zoomLevel = wfProcess.getString("wfzoom"); if(zoomLevel==null||zoomLevel.equals("")) zoomLevel="100"; wfProcess.getString("processname"); processEditable = (!wfProcess.getBoolean("enabled") && !wfProcess.getBoolean("active")); } Stack pageStack = app.getPageStack(); if(!component.needsRender()){%> > <% if(!component.needsRender()){%> ]]> <% } } // if pagestack } // if designmode if (!WebClientRuntime.isNull(canvas.getError())) { %> <%=finalScriptStart%>wfCanvas.showError('<%=canvas.getError()%>');<%=finalScriptEnd%> <% canvas.setError(null); } if (canvas.isSetCursor()) { %><%=finalScriptStart%>wfCanvas.setCursor(false);<%=finalScriptEnd%> <% canvas.setSetCursor(false); } %><%@ include file="../common/componentfooter.jsp" %>