mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-21 11:18:08 +08:00
优化FlowExecutor中调用方法
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user