Commit 1e7791f6 by huangfusuper

修正工作流的扩展配置承载实体

parent 1e0c2b41
...@@ -149,7 +149,7 @@ public class ApiFlowServiceImpl implements ApiFlowService { ...@@ -149,7 +149,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
private Flow saveFlow(PluginFlow pluginFlow, Integer workspaceId, boolean isInnner) throws Exception { private Flow saveFlow(PluginFlow pluginFlow, Integer workspaceId, boolean isInnner) throws Exception {
Flow flow = new Flow(); Flow flow = new Flow();
flow.setExtendedConfiguration(pluginFlow.getConfig().getExtendedConfiguration()); flow.setExtendedConfiguration(JSON.toJSONString(pluginFlow.getConfig().getExtendedConfiguration()));
flow.setFlowName(pluginFlow.getName()); flow.setFlowName(pluginFlow.getName());
flow.setIsInner(isInnner ? "0" : "1"); flow.setIsInner(isInnner ? "0" : "1");
flow.setFlowNodeCount(pluginFlow.getNodeList().size()); flow.setFlowNodeCount(pluginFlow.getNodeList().size());
......
package com.byit.dto.plugin;
import lombok.Data;
/**
* 扩展配置
*
* @author huangfu
* @date 2020年11月25日18:18:30
*/
@Data
public class FlowExtendedConfiguration {
private String rpcServerKey;
}
...@@ -67,6 +67,6 @@ public class PluginFlowConfig { ...@@ -67,6 +67,6 @@ public class PluginFlowConfig {
/** /**
* 扩展配置 * 扩展配置
*/ */
private String extendedConfiguration; private FlowExtendedConfiguration extendedConfiguration;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment