| | |
| | | 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.exception.VciBaseException; |
| | | 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{ |
| | |
| | | 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("数据有误,没找到流程的节点"); |
| | | } |