feat(REQ-4196) - 调整表单发起页的模型逻辑
This commit is contained in:
parent
8050652e3e
commit
6d2de9e267
@ -94,8 +94,8 @@ public class FormCoreServiceImpl implements FormCoreService {
|
||||
public FormDefinitionVO getStartForm(StartFormSearchDTO dto) {
|
||||
FormInfo formModel;
|
||||
try {
|
||||
formModel = formRepositoryService.getFormModelByKey(dto.getKey(), dto.getTenantId(), true);
|
||||
BpmnProcessDefinitionVO definitionVO = bpmnProcessDefinitionService.getActiveProcessDefinitionByKey(dto.getKey(), dto.getTenantId());
|
||||
formModel = formRepositoryService.getFormModelByKey(dto.getKey(), definitionVO.getTenantId(), false);
|
||||
CommandExecutor commandExecutor = springProcessEngineConfiguration.getCommandExecutor();
|
||||
BpmnModel bpmnModel = commandExecutor.execute(new GetBpmnModelCmd(definitionVO.getId()));
|
||||
BpmnMetaParserHelper.getFormFieldPermissionConf(bpmnModel.getFlowElement(NODE_STARTER.getType()))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user