This commit is contained in:
zendwang
2021-03-24 10:29:27 +08:00
parent 2af36b6a74
commit 299effdc67
2 changed files with 5 additions and 5 deletions

View File

@@ -149,12 +149,12 @@ public class FlowExecutor {
try {
//执行chain
chain.execute(slotIndex);
}catch(Exception e){
LOG.error("[{}]:chain[{}] execute error on slot[{}]",slot.getRequestId(),chain.getChainName(),slotIndex);
} catch (Exception e) {
LOG.error("[{}]:chain[{}] execute error on slot[{}]", slot.getRequestId(), chain.getChainName(), slotIndex);
slot.setSuccess(false);
slot.setErrorMsg(e.getMessage());
}finally{
if(!isInnerChain) {
} finally {
if (!isInnerChain) {
slot.printStep();
DataBus.releaseSlot(slotIndex);
}

View File

@@ -25,7 +25,7 @@ public class FlowBus {
}
public static Chain getChain(String id) throws Exception{
if(MapUtils.isEmpty(chainMap)){
if (MapUtils.isEmpty(chainMap)) {
throw new Exception("please config the rule first");
}
return chainMap.get(id);