|
|
@ -748,12 +748,12 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 第一次申请获取初始化表单
|
|
|
|
// 第一次申请获取初始化表单
|
|
|
|
if (StringUtils.isNotBlank(deployId)) {
|
|
|
|
if (StringUtils.isNotBlank(procInsId)) {
|
|
|
|
SysForm sysForm = sysInstanceFormService.selectSysDeployFormByDeployId(deployId);
|
|
|
|
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery()
|
|
|
|
if (Objects.isNull(sysForm)) {
|
|
|
|
.processInstanceId(procInsId)
|
|
|
|
return AjaxResult.error("请先配置流程表单");
|
|
|
|
.includeProcessVariables()
|
|
|
|
}
|
|
|
|
.singleResult();
|
|
|
|
map.put("formData", JSONObject.parseObject(sysForm.getFormContent()));
|
|
|
|
map.put("form", processInstance.getProcessVariables());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return AjaxResult.success(map);
|
|
|
|
return AjaxResult.success(map);
|
|
|
|
}
|
|
|
|
}
|
|
|
|