xiejun
2023-06-15 235560b9d7cff1d7dce1f90a08df56d6ef8dd682
Source/UBCS/ubcs-ops/ubcs-flow/src/main/java/com/vci/ubcs/flow/engine/controller/FlowProcessController.java
@@ -20,6 +20,12 @@
import com.vci.ubcs.flow.engine.service.FlowEngineService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.flowable.bpmn.model.FlowElement;
import org.flowable.bpmn.model.SubProcess;
import org.flowable.bpmn.model.UserTask;
import org.flowable.engine.*;
import org.springblade.core.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
@@ -28,7 +34,10 @@
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
 * 流程通用控制器
@@ -44,6 +53,12 @@
   private static final String IMAGE_NAME = "image";
   private final FlowEngineService flowEngineService;
   private final RepositoryService repositoryService;
   private final RuntimeService runtimeService;
   private final HistoryService historyService;
   private final TaskService taskService;
   private final ProcessEngine processEngine;
   /**
    * 获取流转历史列表
@@ -65,6 +80,7 @@
    */
   @GetMapping(value = "model-view")
   public R modelView(String processDefinitionId, String processInstanceId) {
      return R.data(flowEngineService.modelView(processDefinitionId, processInstanceId));
   }