📄 stores-body.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=0 width=1010>
<%
java.util.Iterator it = headerMap.getStores().iterator();
while (it.hasNext())
{
String storeName = (String)it.next();
%>
<tr>
<td colspan=7 align=left><br>Store : <%= storeName %></td>
</tr>
<tr bgcolor=#d3d3d3>
<td> </td>
<td><i>workflow</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> </td>
</tr>
<%
java.util.List headers = headerMap.getHeaders((String)storeName);
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="/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 =
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='/webclient/viewWorkItem.action?id=<%= h.getStringId() %>' title="View workitem">view</a> <% if (headerMap.canWrite((String)storeName) && !h.isLocked()) { %><a href='/webclient/editWorkItem.action?id=<%= h.getStringId() %>' title="Edit workitem">edit</a><% } %></td>
</tr>
<%
}
}
//
// no rights on any store
java.util.Set 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=1010><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 + -