diff --git a/engine/src/main/java/com/didiglobal/turbo/engine/processor/DefinitionProcessor.java b/engine/src/main/java/com/didiglobal/turbo/engine/processor/DefinitionProcessor.java index 8bc46a74..12ad5ea5 100644 --- a/engine/src/main/java/com/didiglobal/turbo/engine/processor/DefinitionProcessor.java +++ b/engine/src/main/java/com/didiglobal/turbo/engine/processor/DefinitionProcessor.java @@ -48,6 +48,7 @@ public class DefinitionProcessor { public CreateFlowResult create(CreateFlowParam createFlowParam) { CreateFlowResult createFlowResult = new CreateFlowResult(); + List flowElementList = Lists.newArrayList(); try { ParamValidator.validate(createFlowParam); @@ -55,6 +56,7 @@ public CreateFlowResult create(CreateFlowParam createFlowParam) { BeanUtils.copyProperties(createFlowParam, flowDefinitionPO); String flowModuleId = idGenerator.getNextId(); flowDefinitionPO.setFlowModuleId(flowModuleId); + flowDefinitionPO.setFlowModel(JSON.toJSONString(flowElementList)); flowDefinitionPO.setStatus(FlowDefinitionStatus.INIT); Date date = new Date(); flowDefinitionPO.setCreateTime(date);