Merge branch 'feature/REQ-5965' into dev
This commit is contained in:
commit
8e4b009483
@ -22,7 +22,6 @@ import cn.axzo.workflow.core.service.ExtAxReModelService;
|
||||
import cn.axzo.workflow.server.common.util.RpcExternalUtil;
|
||||
import cn.axzo.workflow.server.common.util.WpsUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.ListUtils;
|
||||
import org.flowable.bpmn.model.Process;
|
||||
import org.flowable.common.engine.impl.interceptor.CommandExecutor;
|
||||
import org.flowable.engine.RuntimeService;
|
||||
@ -103,7 +102,9 @@ public class FirstCopyTemplateFileTaskEvent_105_Listener extends AbstractBpmnEve
|
||||
|
||||
// 业务自定义文档
|
||||
RuntimeService runtimeService = processEngineConfiguration.getRuntimeService();
|
||||
List<CustomDocDTO> customDocs = ListUtils.emptyIfNull(runtimeService.getVariable(processInstanceId, SIGN_BIZ_CUSTOM_DOCS, List.class));
|
||||
List<CustomDocDTO> customDocs = Optional.ofNullable(
|
||||
runtimeService.getVariable(processInstanceId, SIGN_BIZ_CUSTOM_DOCS, List.class))
|
||||
.orElse(Collections.emptyList());
|
||||
|
||||
if (CollectionUtils.isEmpty(docs)) {
|
||||
processSign.setDocTemplate(Collections.emptyList());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user