执行

然后你就可以在任意的类中拿到flowExecutor,进行执行链路

  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. }