优化FlowExecutor中调用方法

This commit is contained in:
zendwang
2021-04-12 18:18:55 +08:00
parent 31ddf33843
commit 9510caf1c3
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ public class Runner {
context.start();
log.info("启动成功");
FlowExecutor flowExecutor = context.getBean(FlowExecutor.class);
LiteflowResponse response = flowExecutor.execute("chain3", "it's a request");
LiteflowResponse response = flowExecutor.execute2Resp("chain3", "it's a request");
System.out.println(response);
while (true){

View File

@@ -15,7 +15,7 @@ public class TestFlow implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
LiteflowResponse response= flowExecutor.execute("chain4", "it's a request");
LiteflowResponse response= flowExecutor.execute2Resp("chain4", "it's a request");
System.out.println(response);
}
}