| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.file.pagemodel.VciFileObjectVO; |
| | | import com.vci.dto.ProcessTemplateVO; |
| | | import com.vci.pagemodel.*; |
| | | import com.vci.pagemodel.KeyValue; |
| | | import com.vci.starter.web.annotation.bus.VciNoUseBaseResult; |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.annotation.log.VciBusinessLog; |
| | | import com.vci.starter.web.annotation.permission.VciReferPermission; |
| | | import com.vci.starter.web.pagemodel.*; |
| | | import com.vci.starter.web.util.ControllerUtil; |
| | | import com.vci.web.pageModel.*; |
| | | import com.vci.web.pageModel.KeyValue; |
| | | import com.vci.web.service.WebProcessDefineServiceI; |
| | | import com.vci.web.util.WebUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | public BaseResult getOutcomes(String taskOid){ |
| | | List<ProcessOutcomeVO> allOutcomes = proDefineService.getOutCome(taskOid, true); |
| | | BaseResult result = BaseResult.success(); |
| | | result.setObj(allOutcomes); |
| | | result.setData(allOutcomes); |
| | | if(allOutcomes !=null && allOutcomes.size()>0){ |
| | | result.setSuccess(true); |
| | | }else{ |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取某个分类下的userid可以使用的流程模板 |
| | | * @param type 流程分类 |
| | | * @param filterTemplate 指定模板 |
| | | * @return 可用的流程模版 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/getTemplateByType") |
| | | @VciBusinessLog(operateName="获取流程模板",notStore=true) |
| | |
| | | return BaseResult.fail("没有可用的版本"); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取流程中定义的所有任务节点 |
| | | * @param processOid 流程模版的主键 |
| | | * @param maxSecret 数据中的最大密级值 |
| | | * @return 该流程模版中所有的任务节点,其中包含所有可以选择的用户 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/getAllProcessNode") |
| | | @VciBusinessLog(operateName="获取流程的节点",notStore=true) |
| | |
| | | try{ |
| | | List<ProcessNodeVO> allNode = proDefineService.getAllProcessNode(processOid, true,maxSecret); |
| | | if(allNode!=null && allNode.size()>0){ |
| | | return BaseResult.success(allNode); |
| | | BaseResult baseResult = BaseResult.success(); |
| | | baseResult.setData(allNode); |
| | | return baseResult; |
| | | }else{ |
| | | return BaseResult.fail("数据有误,没找到流程的节点"); |
| | | } |