| | |
| | | import com.iailab.module.bpm.controller.admin.definition.vo.model.BpmModelMetaInfoVO; |
| | | import com.iailab.module.bpm.controller.admin.definition.vo.model.BpmModelRespVO; |
| | | import com.iailab.module.bpm.controller.admin.definition.vo.model.BpmModelSaveReqVO; |
| | | import com.iailab.module.bpm.controller.admin.definition.vo.model.simple.BpmSimpleModelNodeVO; |
| | | import com.iailab.module.bpm.controller.admin.definition.vo.process.BpmProcessDefinitionRespVO; |
| | | import com.iailab.module.bpm.dal.dataobject.definition.BpmCategoryDO; |
| | | import com.iailab.module.bpm.dal.dataobject.definition.BpmFormDO; |
| | |
| | | return result; |
| | | } |
| | | |
| | | default BpmModelRespVO buildModel(Model model, byte[] bpmnBytes) { |
| | | default BpmModelRespVO buildModel(Model model, byte[] bpmnBytes, BpmSimpleModelNodeVO simpleModel) { |
| | | BpmModelMetaInfoVO metaInfo = parseMetaInfo(model); |
| | | BpmModelRespVO modelVO = buildModel0(model, metaInfo, null, null, null, null, null); |
| | | if (ArrayUtil.isNotEmpty(bpmnBytes)) { |
| | | modelVO.setBpmnXml(BpmnModelUtils.getBpmnXml(bpmnBytes)); |
| | | } |
| | | modelVO.setSimpleModel(simpleModel); |
| | | return modelVO; |
| | | } |
| | | |