|
@ -281,7 +281,8 @@ public class FlowService extends MybatisBaseService<FlowMapper, Flowable> { |
|
|
Map<String, Object> variablesSeconds = bv.getFormVariables(); |
|
|
Map<String, Object> variablesSeconds = bv.getFormVariables(); |
|
|
//根据流程定义id查询
|
|
|
//根据流程定义id查询
|
|
|
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(procDefId) |
|
|
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(procDefId) |
|
|
.latestVersion().singleResult(); |
|
|
// .latestVersion()
|
|
|
|
|
|
.singleResult(); |
|
|
if (Objects.nonNull(processDefinition) && processDefinition.isSuspended()) { |
|
|
if (Objects.nonNull(processDefinition) && processDefinition.isSuspended()) { |
|
|
return rb.setMsg("流程已被挂起,请先激活流程"); |
|
|
return rb.setMsg("流程已被挂起,请先激活流程"); |
|
|
} |
|
|
} |
|
|