一个工作流程,创建时会有一个节点,填写 姓名 手机号。创建成功后,由上级审批,填写审批意见同意。
想获取这两个节点中都有哪些参数的参数名,根据流程id,只能获取第一个节点的
ProcessDefinition processDefinition = this.processEngine
.getRepositoryService()
.createProcessDefinitionQuery()
.processDefinitionKey(processDefinitionKey)
.withoutTenantId()
.latestVersion()
.singleResult();
FormService formService = this.processEngine.getFormService();
StartFormData formData= formService.getStartFormData(processDefinition.getId());