fix: 修复第一个节点不自动跳转的Bug

This commit is contained in:
2023-10-12 14:55:29 +08:00
parent 9a9ac6dc3a
commit 928437412c
3 changed files with 1 additions and 4 deletions
@@ -57,6 +57,7 @@ public class ActFlowCommonService {
Map<String, Object> variables = customService.setVariables(businessId);
// 第一个节点默认通过
variables.put("pass", true);
variables.put("createUser", UserUtils.getUserId());
// 启动流程
ProcessInstance processInstance = runtimeService.startProcessInstanceById(latestProcessDefinition.getId(), variables);
// 流程实例ID
@@ -15,8 +15,6 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
/**
* 企标计划
* @TableName process_es_init_change
@@ -128,7 +126,6 @@ public class ProcessEsInitChange implements Serializable {
/**
* 企业标准代号
*/
@NotBlank
private String enStandardCode;
/**
@@ -54,7 +54,6 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
private Map<String, Object> setVariables(ProcessEsInitChange initChange) {
Map<String, Object> map = new HashMap<>();
// 设置流程中各个节点的人
map.put("createUser", initChange.getCreateBy());
map.put("contactUser", initChange.getContactUser());
map.put("standardExpertList", Optional.ofNullable(initChange.getStandardExpert()).map(s -> Arrays.asList(s.split(","))).orElse(Collections.emptyList()));
map.put("mainDraftUserLeader", initChange.getMainDraftUserLeader());