mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-03-13 15:44:26 +08:00
fix: Excludes RBV triggers
This commit is contained in:
parent
659dbae0b9
commit
2a85d24e84
2 changed files with 6 additions and 1 deletions
src/main/java/com/rebuild/core
|
@ -69,7 +69,7 @@ public class Application implements ApplicationListener<ApplicationStartedEvent>
|
||||||
/**
|
/**
|
||||||
* Rebuild Build [MAJOR]{1}[MINOR]{2}[PATCH]{2}[BUILD]{2}
|
* Rebuild Build [MAJOR]{1}[MINOR]{2}[PATCH]{2}[BUILD]{2}
|
||||||
*/
|
*/
|
||||||
public static final int BUILD = 2090105;
|
public static final int BUILD = 2090106;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// Driver for DB
|
// Driver for DB
|
||||||
|
|
|
@ -70,6 +70,11 @@ public class RobotTriggerManager implements ConfigManager {
|
||||||
|
|
||||||
ActionContext ctx = new ActionContext(record, entity, cb.getJSON("actionContent"), cb.getID("id"));
|
ActionContext ctx = new ActionContext(record, entity, cb.getJSON("actionContent"), cb.getID("id"));
|
||||||
TriggerAction o = ActionFactory.createAction(cb.getString("actionType"), ctx);
|
TriggerAction o = ActionFactory.createAction(cb.getString("actionType"), ctx);
|
||||||
|
if (o.getClass().getName().contains("NoRbv")) {
|
||||||
|
log.warn("Trigger action {} is RBV", cb.getString("actionType"));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
actions.add(o);
|
actions.add(o);
|
||||||
|
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
|
|
Loading…
Reference in a new issue