📄 viewworkitem-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.input.InputHelper" %><%@ page import="openwfe.org.engine.workitem.HistoryItem" %><%@ page import="openwfe.org.engine.workitem.LaunchItem" %><%@ page import="openwfe.org.engine.workitem.InFlowWorkItem" %><%@ page import="openwfe.org.engine.expressions.FlowExpressionId" %><%@ page import="openwfe.org.webclient.OwfeSession" %><% OwfeSession owfeSession = OwfeSession.getOwfeSession(request); InFlowWorkItem wi = (InFlowWorkItem)owfeSession.getWorkItem(); if (wi == null) { out.print("wi is null"); return; } FlowExpressionId id = wi.getLastExpressionId();%><table border=0 width=980><tr><td valign=top><table border=1 cellpadding=1 cellspacing=1 width=100%><!-- head--><tr bgcolor=#d3d3d3> <td width=150 align=right><i>field</i></td> <td><i>value</i></td></tr><!-- lastModified --><tr> <td align=right>last modified</td> <td><%= wi.getLastModified() %></td></tr><!-- dispatchTime--><tr> <td align=right>dispatch time</td> <td><%= wi.getDispatchTime() %></td></tr><!-- participant--><tr> <td align=right>participant</td> <td><%= wi.getParticipantName() %></td></tr><!-- flowExpressionId--><tr> <td align=right>engine</td> <td><%= id.getEngineId() %></td></tr><tr> <td align=right>wfdName</td> <td><%= id.getWorkflowDefinitionName() %></td></tr><tr> <td align=right>wfdRevision</td> <td><%= id.getWorkflowDefinitionRevision() %></td></tr><tr> <td align=right>wfInstanceId</td> <td><%= id.getWorkflowInstanceId() %></td></tr><tr> <td align=right>expressionName</td> <td><%= id.getExpressionName() %></td></tr><tr> <td align=right>expressionId</td> <td><%= id.getExpressionId() %></td></tr><tr> <!-- wfd url --> <td align=right>wfdUrl</td> <% String wfdUrl = id.getWorkflowDefinitionUrl(); if (wfdUrl == null) wfdUrl = ""; if (wfdUrl.startsWith("http://") && owfeSession.shouldDisplayHistory()) { %> <td><a href="<%= OwfeSession.getDrofloLink(request, response, wi) %>" title="Display flow and position of this workitem in it"><%= wfdUrl %></a></td> <% } else { %> <td><%= wfdUrl %></td> <% } %></tr><!-- ATTRIBUTES--><% java.util.Iterator it = wi.getAttributes().stringKeySet().iterator(); while (it.hasNext()) { String field = (String)it.next();%><tr bgcolor=#d3d3d3> <td align=right valign=top><%= field %></td> <td><% try { InputHelper.getInstance(application) .displayInputTag(true, request, response, out, wi, field); } catch (Exception e) { out.write("<pre>"); e.printStackTrace(new java.io.PrintWriter(out)); out.write("</pre>"); } %></td></tr><% }%></table></td><!-- H i s t o r y or D r o f l o--><td align=right valign=top><% if (owfeSession.shouldDisplayHistory()) { // // HISTORY%><table border=1 width=100%> <tr> <td colspan=3 bgcolor=#d3d3d3><i>History</i></td> </tr><% if (wi.getHistory() != null) { it = wi.getHistory().iterator(); while (it.hasNext()) { HistoryItem hi = (HistoryItem)it.next();%> <tr> <td bgcolor=#d3d3d3 rowspan=4> </td> <td align=right bgcolor=#d3d3d3><small><i>date</i></small></td> <td><small><%= hi.getDate() %></small></td> </tr> <tr> <td align=right bgcolor=#d3d3d3><small><i>author</i></small></td> <td><small><%= hi.getAuthor() %></small></td> </tr> <tr> <td align=right bgcolor=#d3d3d3><small><i>host</i></small></td> <td><small><%= hi.getHost() %></small></td> </tr> <tr> <td valign=top align=right bgcolor=#d3d3d3><font size=1><i>text</i></font></td> <td><small><%= hi.getText() %></small></td> </tr><% } }%></table><% } else {%><table border=0 width=100%> <tr> <td bgcolor=#d3d3d3><i>Flow Diagram</i></td> </tr> <tr> <td align=center><% // // DROFLO java.net.URL drofloUrl = new java.net.URL(OwfeSession.getDrofloLink(request, response, wi)); openwfe.org.misc.WebUtils .include(new java.io.PrintWriter(out), drofloUrl);%> </td> </tr></table><% }%><p align=right><% if (owfeSession.shouldDisplayHistory()) {%><a href=<%= response.encodeURL("/webclient/toggleHistoryView.action") %> title="Switch to graphical display of flow"><small>display flow diagram</small></a><% } else {%><a href=<%= response.encodeURL("/webclient/toggleHistoryView.action") %> title="Switch to the view of history events attached to the workitem"><small>display workitem history</small></a><% }%></p></td></tr><!-- item footer--><tr> <td colspan=2 align=right><a href=<%= response.encodeURL("/webclient/stores.action") %> title="Get back to 'stores' main view">stores</a></td></tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -