<%@page import="org.activiti.engine.history.HistoricProcessInstance"%> <%@page import="com.blueland.bpm.common.page.*,com.blueland.bpm.identity.model.User,org.activiti.engine.history.HistoricProcessInstance,org.activiti.engine.history.HistoricTaskInstance,org.activiti.engine.task.Comment,com.blueland.bpm.engine.util.WorkFlowContants"%> <%@page import="com.blueland.bpm.common.util.*,com.blueland.bpm.engine.core.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"%> <%@ include file="/commons/trace-meta.jsp"%> 流程日志
流程定义名称:自动流程
流程文本列表
<% Map hisTaskLog = (Map) request .getAttribute("hisTaskLog"); HistoricProcessInstance historicProcessInstance = (HistoricProcessInstance) hisTaskLog .get("curProcessInstance"); String finishStr = "未结束"; if (historicProcessInstance != null && historicProcessInstance.getEndTime() != null) { finishStr = "已结束"; } List processDetailLogs = (List) hisTaskLog .get("processDetailLogs"); int i=0; for (ProcessLogModel processDetailLog : processDetailLogs) { HistoricTaskInstance historicTaskInstance = processDetailLog .getHistoricTaskInstance(); Comment comment = processDetailLog.getComment(); %> <%if(StringUtils.isNotBlank(historicTaskInstance.getDescription())&&historicTaskInstance.getDescription().equals("multitask")){out.print("style='display:none'"); out.print("groupid="+historicTaskInstance.getTopExecutionId());} %>> <% String fullCommentMsg = (comment!=null&&comment.getMessage()!=null? comment.getMessage() : ""); if(!StringUtils.isEmpty(historicTaskInstance.getDeleteReason())&&"cancel_process".equals(historicTaskInstance.getActionType())){ String cancelCommentMsg="当前流程已作废"; fullCommentMsg=StringUtils.isEmpty(fullCommentMsg)?cancelCommentMsg:(cancelCommentMsg+",意见为:"+fullCommentMsg); } int length = fullCommentMsg.length(); String shortCommentMsg=fullCommentMsg; if(length>21){ shortCommentMsg=shortCommentMsg.substring(0,21); } %> <%i++;} %>
处理环节 处理人 处理时间 处理意见2222 接收环节 接收人
<%=StringUtils.replaceNull(historicTaskInstance.getPreTaskDefName())%> <%=processDetailLog.getSendUserName()!=null?processDetailLog.getSendUserName()+"("+StringUtils.replaceNull(processDetailLog.getSendOrgName())+")":""%> <%=DateUtil.convertDateToString("yyyy-MM-dd HH:mm:ss", historicTaskInstance.getStartTime())%> <%if(StringUtils.isNotBlank(processDetailLog.getMultiCommentMsg())){ %> <%} %> <%=shortCommentMsg%> <%if(StringUtils.isNotBlank(processDetailLog.getMultiCommentMsg())){ %> <%} %><%=fullCommentMsg%> <%=StringUtils.replaceNull(historicTaskInstance.getName())%> <%=processDetailLog.getReiceiveUserName()!=null?processDetailLog.getReiceiveUserName()+"("+StringUtils.replaceNull(processDetailLog.getReceiveOrgName())+")":""%> <%if(processDetailLog.getOwnerName()!=null&&!"".equals(processDetailLog.getOwnerName())){%> <%}%>