mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
isAccess方法改为如果为false则跳过当前组件
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
||||
<artifactId>liteflow</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>1.2.7</version>
|
||||
<version>1.2.8</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
@@ -118,9 +118,6 @@ public class FlowExecutor {
|
||||
LOG.info("component[{}] lead the chain to end",component.getClass().getSimpleName());
|
||||
break;
|
||||
}
|
||||
}else{
|
||||
String errorMsg = MessageFormat.format("component[{0}] do not gain access", component.getClass().getSimpleName());
|
||||
throw new ComponentNotAccessException(errorMsg);
|
||||
}
|
||||
}catch(Throwable t){
|
||||
if(component.isContinueOnError()){
|
||||
|
||||
@@ -49,9 +49,9 @@ public class DataBus {
|
||||
if(slots[slotIndex] != null){
|
||||
slots[slotIndex] = null;
|
||||
OCCUPY_COUNT.decrementAndGet();
|
||||
LOG.info("the slot[{}] released",slotIndex);
|
||||
LOG.info("slot[{}] released",slotIndex);
|
||||
}else{
|
||||
LOG.warn("the slot[{}] has been released",slotIndex);
|
||||
LOG.warn("slot[{}] already has been released",slotIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user