@@ -244,7 +244,7 @@ public class DeclaredProjectManage { | |||||
// 获取发起单位、发起单位主管单位、发起单位上级主管条线单位信息 | // 获取发起单位、发起单位主管单位、发起单位上级主管条线单位信息 | ||||
Project project = new Project(); | Project project = new Project(); | ||||
BeanUtils.copyProperties(projectInfo,project); | |||||
BeanUtils.copyProperties(projectDto,project); | |||||
Map<String, OrgInfoDTO> orgModelMap = defaultDeclaredProjectManage.buildOrgModelMap(employeeCode,project); | Map<String, OrgInfoDTO> orgModelMap = defaultDeclaredProjectManage.buildOrgModelMap(employeeCode,project); | ||||
String instanceId = processService.newStartProcess(model.getProcessDefId(),model.getFormId(), params,orgModelMap); | String instanceId = processService.newStartProcess(model.getProcessDefId(),model.getFormId(), params,orgModelMap); | ||||
log.info("重新申报项目成功 【{}】", instanceId); | log.info("重新申报项目成功 【{}】", instanceId); | ||||
@@ -4,6 +4,7 @@ package com.ningdatech.pmapi.todocenter.controller; | |||||
import javax.servlet.http.HttpServletResponse; | import javax.servlet.http.HttpServletResponse; | ||||
import javax.validation.Valid; | import javax.validation.Valid; | ||||
import com.ningdatech.log.annotation.WebLog; | |||||
import com.ningdatech.pmapi.todocenter.model.vo.TodoNumVO; | import com.ningdatech.pmapi.todocenter.model.vo.TodoNumVO; | ||||
import org.springframework.validation.annotation.Validated; | import org.springframework.validation.annotation.Validated; | ||||
import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||
@@ -249,4 +249,25 @@ public class FlowableTest extends AppTests { | |||||
String ccNodeId = param.getCcNodeId(); | String ccNodeId = param.getCcNodeId(); | ||||
ccTasksMapper.delete(Wrappers.lambdaQuery(WflowCcTasks.class).eq(WflowCcTasks::getNodeId,ccNodeId)); | ccTasksMapper.delete(Wrappers.lambdaQuery(WflowCcTasks.class).eq(WflowCcTasks::getNodeId,ccNodeId)); | ||||
} | } | ||||
@Test | |||||
public void reject(){ | |||||
String instCode = "0e63faec-08ff-11ee-9663-00163e000353"; | |||||
String nodeId1 = "node_6486ddcbe4b0ab4a27ccfdbd"; | |||||
String nodeId2 = "node_6486ddcbe4b0ab4a27ccfdc1"; | |||||
String nodeId3 = "node_6486ddcbe4b0ab4a27ccfdc3"; | |||||
List<Execution> executions = runtimeService.createExecutionQuery() | |||||
.processInstanceId(instCode) | |||||
.onlyChildExecutions().list(); | |||||
//强制流程指向驳回 | |||||
runtimeService.createChangeActivityStateBuilder() | |||||
.processInstanceId(instCode) | |||||
.moveActivityIdsToSingleActivityId(Lists.newArrayList(nodeId1,nodeId2,nodeId3), "refuse-end") | |||||
.moveExecutionsToSingleActivityId(executions.stream().map(Execution::getId) | |||||
.collect(Collectors.toList()), "refuse-end") | |||||
.changeState(); | |||||
log.info("操作成功!"); | |||||
} | |||||
} | } |