执行流程链
因为不依赖Spring,所以需要你手动的初始化FlowExecutor,建议放在启动时初始化,然后把FlowExecutor对象缓存起来。
FlowExecutor executor = new FlowExecutor();
LiteflowConfig liteflowConfig = new LiteflowConfig();
liteflowConfig.setRuleSource("config/flow.xml");
executor.setLiteflowConfig(liteflowConfig);
executor.init();
LiteflowResponse<DefaultSlot> response = executor.execute2Resp("chain1", "arg");