<%@page import="org.activiti.engine.repository.ProcessDefinition"%> <%@page import="org.activiti.bpmn.model.*"%> <%@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"%>
当前位置:流程管理 >> 表单设置
表单URL:
<% BpmnModel bpmnModel = (BpmnModel) request.getAttribute("bpmnModel"); if (bpmnModel != null) { List processes = bpmnModel .getProcesses(); for (int i = 0; i < processes.size(); i++) { org.activiti.bpmn.model.Process process = (org.activiti.bpmn.model.Process) processes .get(i); Collection flowElementList = process .getFlowElements(); for (FlowElement flowElement : flowElementList) { if (!UserTask.class.isInstance(flowElement)) { continue; } UserTask userTask = (UserTask) flowElement; %> "> <% } } } %>
节点名称 跳转类型 环节表单
<%=userTask.getName()+"("+userTask.getId()+")"%>   <% if(userTask.getAssignee()!=null){ userTask.getCandidateUsers().add(userTask.getAssignee()); } %> <%if(userTask.getCandidateUsers()!=null&&!userTask.getCandidateUsers().isEmpty()){ %> 用户列表:<%=userTask.getCandidateUsers()%>   <% }if(userTask.getCandidateOrgs()!=null&&!userTask.getCandidateOrgs().isEmpty()){ %> 组织:<%=userTask.getCandidateOrgs()%>   <% }if(userTask.getCandidateGroups()!=null&&!userTask.getCandidateGroups().isEmpty()){ %> 角色:<%=userTask.getCandidateGroups()%> <% } %>