fix(flowRecord) process variable

approve-sys
bob 2 years ago
parent 6ebb427edb
commit d07dc79e44

@ -45,7 +45,7 @@ public class SysProjectController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('system:project:list')") // @PreAuthorize("@ss.hasPermi('system:project:list')")
@GetMapping("/option") @GetMapping("/option")
public AjaxResult option() public AjaxResult option()
{ {

@ -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);
} }

Loading…
Cancel
Save