<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<table border=1>
 	<caption>任务列表</caption>
	<tr>
		<td>ID</td>
		<td>名称</td>
		<td>活动名称</td>
		<td>描述</td>
		<td>创建时间</td>
		<td>到期时间</td>
		<td>优先级</td>
		<td>分配人</td>
		<td>formResourceName</td>
		<td>executionId</td>
		<td>progress</td>
		<td>操作</td>
	</tr>
	<c:forEach var="task" items="${tasks}">
	<tr>
		<td>${task.id}</td>
		<td>${task.name}</td>
		<td>${task.activityName}</td>
		<td>${task.description}</td>
		<td>${task.createTime}</td>
		<td>${task.duedate}</td>
		<td>${task.priority}</td>
		<td>${task.assignee}</td>
		<!-- separator -->
		<td>${task.formResourceName}</td>
		<td>${task.executionId}</td>
		<td>${task.progress}</td>
		<td>
			<a href="bpm!viewApply.action?taskId=${task.id}&executionId=${task.executionId}">查看</a>
			<a href="bpm!traceInstance.action?instanceId=${task.executionId}">跟踪</a>
		</td>
	</tr>
	</c:forEach>
</table>
<br>

<ol>
<li><a href="index.jsp">首页</a></li>
</ol>
