<%@page import="org.activiti.engine.repository.ProcessDefinition"%> <%@page import="org.activiti.engine.impl.persistence.entity.*"%> <%@page import="org.activiti.engine.repository.Deployment"%> <%@page import="com.blueland.bpm.engine.config.model.*"%> <%@page import="com.blueland.bpm.common.page.*"%> <%@page import="com.blueland.bpm.common.util.*"%> <%@page import="java.util.*"%> <%@ page contentType="text/html;charset=UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%> <%@ include file="/commons/taglibs.jsp"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <%@ include file="/commons/meta.jsp"%> 待办列表 <%@ include file="/commons/messages.jsp"%>
流程历史管理
<% Page mypage = (Page) request.getAttribute("page"); List histProcInsts = mypage .getResult(); if (histProcInsts != null) { for (int i = 0; i < histProcInsts.size(); i++) { HistoricProcessInstanceEntity histProcInst = (HistoricProcessInstanceEntity) histProcInsts .get(i); %> "> <% } } %>
流程定义名称 流程标题 流程实例ID 创建人 发起时间 结束时间 持续时间 状态
<%=histProcInst.getProcessDefinitionName()%> <%=histProcInst.getProcTitle()%>  <%=histProcInst.getId()%> <%if(null != histProcInst.getStartUserName()){ %> <%=histProcInst.getStartUserName()%>(<%=histProcInst.getStartUserId()%>) <%}else{ %> <%=histProcInst.getStartUserId()%> <%} %> <%=DateUtil.convertDateToString(histProcInst.getStartTime())%> <%=DateUtil.convertDateToString(histProcInst.getEndTime())%> 耗时<%=com.blueland.bpm.manage.web.ProcessInstanceController.differByDay(histProcInst.getStartTime(),histProcInst.getEndTime())%>天 <% if (histProcInst.getProcState() == 5) { %>正常 <% } else if (histProcInst.getProcState() == 3) { %> 作废 <% } %>