⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stores-body.jsp

📁 OpenWFE是一个开放源码的Java工作流引擎。它是一个完整的业务处理管理套件:一个引擎
💻 JSP
字号:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %><%@ taglib uri="/tags/struts-html" prefix="html" %><%@ taglib uri="/tags/struts-logic" prefix="logic" %><%@ taglib uri="/tags/struts-tiles" prefix="tiles" %><%@ page import="openwfe.org.engine.workitem.LongAttribute" %><%@ page import="openwfe.org.engine.expressions.FlowExpressionId" %><%@ page import="openwfe.org.worklist.Header" %><%@ page import="openwfe.org.webclient.HeaderMap" %><%@ page import="openwfe.org.webclient.OwfeSession" %><%    OwfeSession owfeSession = OwfeSession.getOwfeSession(request);    HeaderMap headerMap = owfeSession.getHeaderMap();%><table border=1 width=980><%    java.util.List lStores =         new java.util.ArrayList(headerMap.getStores());    java.util.Collections.sort(lStores);    java.util.Iterator it = lStores.iterator();    while (it.hasNext())    {	String storeName = (String)it.next();	java.util.List headers = headerMap.getHeaders((String)storeName);        if (headers == null) continue;%><tr>    <td colspan=7 align=left><br>Store : <%= storeName %></td></tr><tr bgcolor=#d3d3d3>    <td>&nbsp;</td>    <td><i>workflow instance</i></td>    <td><i>subject</i></td>    <td><i>dispatch time</i></td>    <td><i>last modified</i></td>    <td><i>participant</i></td>    <td>&nbsp;</td></tr><%	boolean colored = false;	java.util.Iterator iit = headers.iterator();	while (iit.hasNext())	{	    openwfe.org.worklist.Header h = 		(openwfe.org.worklist.Header)iit.next(); 	    if (colored) { %><tr bgcolor=#d3d3d3><% } else { %><tr><% } 	    colored = ! colored;%>    <!--	locked ?    --><%            String lockerName = h.getAttributes().sget(Header.LOCKER_NAME);            String sViewHeader = "View header";            if (lockerName != null)                sViewHeader = sViewHeader + "  (locked by "+lockerName+")";%>    <td align=center><a href=<%= response.encodeURL("/webclient/viewHeader.action?id=" + h.getStringId()) %> title="<%= sViewHeader %>"><% if(h.isLocked()) { %><img border=0 src="/webclient/images/locked.png"><% } else { %><img border=0 src="/webclient/images/unlocked.png"><% } %></a></td>    <!--	workflow (name, revision, instance id)    -->    <% 	    String link = h.getAttributes().get("__wfd_url__").toString();	    boolean linkable = (link != null && link.startsWith("http://"));	    FlowExpressionId fei = h.getExpressionId();	    String drofloLink =                 response.encodeURL                    (OwfeSession.getDrofloPrefix(request)+                     "/servlet/droflo.action?action=load&flowUrl="+link+                     "&expName="+fei.getExpressionName()+                     "&expId="+fei.getExpressionId());    %>    <td><% if (linkable) { %><a href='<%= drofloLink %>' title="View position of this workitem in its flow"><% } %><font size=1><%= h.getAttributes().get("__wfd_name__") %> <%= h.getAttributes().get("__wfd_revision__") %><% if (linkable) { %></a><% } %> : <%= h.getAttributes().get("__wfi_id__") %></font></td>    <!--	subject    -->    <td><%= h.getAttributes().get("__subject__") %></td>    <!--	dispatch time    -->    <td><font size=1><%= h.getAttributes().get("__dispatch_time__") %></font></td>    <!--	last modified    -->    <td><font size=1><%= h.getLastModified() %></font></td>    <!--	participant    -->    <td><%= h.getAttributes().get("__participant__") %></td>    <!--	actions...    -->    <td align=center><a href=<%= response.encodeURL("/webclient/viewWorkItem.action?id="+h.getStringId()) %> title="View workitem">view</a> <% if (headerMap.canWrite((String)storeName) && !h.isLocked()) { %><a href=<%= response.encodeURL("/webclient/editWorkItem.action?id="+h.getStringId()) %> title="Edit workitem">edit</a><% } %></td></tr><%	}    }    //    // no rights on any store    java.util.List stores = headerMap.getStores();    if (stores == null || stores.size() < 1)    {%><tr><td align=center><small>User hasnt't any right on any store</small></td></tr><%    }%></table></p><!-- demo text --><table border=0 width=980><tr><td><br><br>Don't hesitate to click on <i>edit</i> and then <i>proceed</i> the workitem. It should follow the flow to the next participant.<br>You can then log out and log in back as the next user.<br><br>The classical example for you would be to log in as 'alice', launch the 'flow 1.0', fill in some fields (sometimes called 'attributes'), reedit the flow as 'alice' and then <i>proceed</i> it to 'bob'.<br><br>This demo organization is rather isometric : there three roles (participants : role-alpha, role-bravo and role-charly) and three users (alice, bob and charly).<br><br>'bob' has more launch permissions that 'alice' and 'charly'.<br><br>If you run into troubles, check out <a href="http://sourceforge.net/forum/forum.php?forum_id=181920">our help forum</a>.</td></tr></table><!-- end of demo text -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -