异常处理机制

LiteFlow中执行器FlowExecutor支持两种方式来执行一个流程,

  1. execute方法,返回Slot实现类对象,直接抛出异常信息,业务系统自行处理异常;
  1. public <T extends Slot> T execute(String chainId, Object param, Class<T> slotClazz,
  2. Integer slotIndex, boolean isInnerChain) throws Exception
  1. execute2Resp方法,返回LiteflowResponse类对象,异常信息包装在LiteflowResponse类中。
  1. public <T extends Slot> LiteflowResponse<T> execute2Resp(String chainId, Object param, Class<T> slotClazz, Integer slotIndex,
  2. boolean isInnerChain)