mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user