<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<table border=1>
	<caption>流程定义</caption>
	<tr>
		<td>ID</td>
		<td>Key</td>
		<td>名称</td>
		<td>版本</td>
		<td>描述</td>
		<td>操作</td>
	</tr>
	<c:forEach var="process" items="${process}">
		<tr>
			<td>${process.id}</td>
			<td>${process.key}</td>
			<td>${process.name}</td>
			<td>${process.version}</td>
			<td>${process.description}</td>
			<td>
			<a href="bpm!showProcessInstances.action?processId=${process.id}">查看实例</a> 
			<a href="${pageContext.request.contextPath}/pages/demo/jbpm/${process.key}/apply.jsp?processKey=${process.key}">申请实例</a>
			<a href="bpm!showProcessImage.action?processId=${process.id}">看流程图</a>
			<a href="bpm!undeployProcess.action?deploymentId=${process.deploymentId}">卸载</a>
			</td>
		</tr>
	</c:forEach>
</table>

<s:form action="bpm!deployProcess.action" enctype="multipart/form-data">
<s:file name="jpdlFile"/>
<s:submit value="部署流程"/>
</s:form>
<%--
<form action="processServlet?opt=deployProcess" method="POST" enctype="multipart/form-data">
<input type="file" name="jbplFile" />
<button type="submit">部署流程</button>
</form>
 --%>