launch-body.jsp

来自「日常的办公系统 应用工作流框架等增加员工的基本信息、培训信息、奖罚信息、薪资信息」· JSP 代码 · 共 64 行

JSP
64
字号
<%@ 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.worklist.Launchable" %>
<%@ page import="openwfe.org.webclient.OwfeSession" %>

<table border=0 width=1010>

<tr bgcolor=#d3d3d3>
    <td><i>url</i></td>
    <td><i>engine</i></td>
    <td><i>description</i></td>
    <td>&nbsp;</td>
</tr>

<%
    OwfeSession owfeSession = OwfeSession.getOwfeSession(request);

    boolean highlight = false;

    java.util.Iterator it = owfeSession.getLaunchables().iterator();
    while (it.hasNext())
    {
	Launchable launchable = (Launchable)it.next();

	if (highlight)
	    out.print("<tr bgcolor=#d5d5d5>");
	else
	    out.print("<tr>");

	highlight = !highlight;

	String link = launchable.getUrl();
	if ( ! launchable.isLaunchItem())
	    link = "/droflo/servlet/droflo.action?action=load&edit=false&flowUrl="+link;
%>
    <td valign=top><small><a href="<%= link %>" title="View flow <%= launchable.getUrl() %> in Droflo display mode"><%= launchable.getUrl() %></a></small></td>
    <td valign=top><small><%= launchable.getEngineId() %></small></td>
    <td><%= launchable.getDefaultDescription() %></td>
    <td valign=top align=center><a href="/webclient/launch.action?url=<%= launchable.getUrl() %>@<%= launchable.getEngineId() %>" title="Launch flow <%= launchable.getUrl() %> on engine '<%= launchable.getEngineId() %>'">launch</a></td>
</tr>
<%
    }
%>
<tr>
    <td colspan=4 align=right><br>
    <a href="/webclient/stores.action">stores</a></td>
</tr>

</table>
</p>

<!-- demo text -->
<table border=0 width=1010><tr><td>
By clicking on the left column, you can have a look at the flows that you can launch.<br>
<br>
Some of the rows are for 'launchitems', these are pre-filled workitems for launching a particular flow.<br>
<br>
Upon clicking <i>launch</i>, you will be presented with a launchitem to edit.
</td></tr></table>
<!-- end demo text -->

⌨️ 快捷键说明

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