Home › Forum › Nuclos Entwicklung › Makros und Regeln › Geschäftsregel/Bibliotheksregel: Wert hochzählen › Aw: Geschäftsregel/Bibliotheksregel: Wert hochzählen
Hallo Allerseits,
das ist natürlich ein Bug und wir werden ihn beseitigen. Allerdings ist es leider so, dass ich Problem (bisher) nicht nachgestellt bekomme. Daher wäre es wirklich nett, wenn jemand mit dem Problem es mal mit folgender Regel versucht und hier im Forum den entsprechenden Teil des Logs postet:
private static final org.apache.log4j.Logger LOGGER = org.apache.log4j.Logger.getLogger("MyRules");
private static int INC = 0;
public void rule(RuleInterface server) throws NuclosBusinessRuleException {
try {
// a simple way to get a stacktrace...
throw new RuntimeException();
}
catch (RuntimeException e) {
LOGGER.info("Execute " + getClass().getName() + " (" + this + "): INC is " + INC++, e);
}
}
Das ist noch einmal meine Version des Hochzählens, allerdings mit einem Stacktrace im Log.
Mit besten Gruß
aanno