|
|
@ -1,17 +1,16 @@
|
|
|
|
package com.ruoyi.flowable.service.impl;
|
|
|
|
package com.ruoyi.flowable.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.ruoyi.common.constant.ProcessConstants;
|
|
|
|
import com.ruoyi.flowable.common.constant.ProcessConstants;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
import com.ruoyi.common.enums.FlowComment;
|
|
|
|
import com.ruoyi.flowable.common.enums.FlowComment;
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
import com.ruoyi.flowable.domain.dto.FlowProcDefDto;
|
|
|
|
import com.ruoyi.flowable.domain.dto.FlowProcDefDto;
|
|
|
|
import com.ruoyi.flowable.factory.FlowServiceFactory;
|
|
|
|
import com.ruoyi.flowable.factory.FlowServiceFactory;
|
|
|
|
import com.ruoyi.flowable.service.IFlowDefinitionService;
|
|
|
|
import com.ruoyi.flowable.service.IFlowDefinitionService;
|
|
|
|
import com.ruoyi.flowable.service.ISysDeployFormService;
|
|
|
|
import com.ruoyi.flowable.service.ISysDeployFormService;
|
|
|
|
import com.ruoyi.system.domain.SysForm;
|
|
|
|
import com.ruoyi.system.domain.SysForm;
|
|
|
|
import com.ruoyi.system.domain.SysPost;
|
|
|
|
|
|
|
|
import com.ruoyi.system.service.ISysDeptService;
|
|
|
|
import com.ruoyi.system.service.ISysDeptService;
|
|
|
|
import com.ruoyi.system.service.ISysPostService;
|
|
|
|
import com.ruoyi.system.service.ISysPostService;
|
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
@ -24,9 +23,7 @@ import org.flowable.engine.repository.ProcessDefinitionQuery;
|
|
|
|
import org.flowable.engine.runtime.ProcessInstance;
|
|
|
|
import org.flowable.engine.runtime.ProcessInstance;
|
|
|
|
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
|
|
|
|
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
|
|
|
|
import org.flowable.task.api.Task;
|
|
|
|
import org.flowable.task.api.Task;
|
|
|
|
import org.flowable.task.api.TaskQuery;
|
|
|
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
@ -34,7 +31,6 @@ import java.io.IOException;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 流程定义
|
|
|
|
* 流程定义
|
|
|
|