执行

和SpringBoot的执行方式一样,没有任何区别

  1. @Component
  2. public class MainTest{
  3. @Resource
  4. private FlowExecutor flowExecutor;
  5. @Test
  6. public void testConfig(){
  7. LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain1", "arg");
  8. }
  9. }