[Fix] Call triggerExecute() in Controller.execute() when needed
This commit is contained in:
parent
4913eb9737
commit
cc8fcc688e
|
@ -152,8 +152,15 @@ public class Controller {
|
|||
if (!refreshActivity(tx))
|
||||
return false;
|
||||
|
||||
// perform the first execution
|
||||
boolean trigger = internalExecute(tx);
|
||||
|
||||
// then we trigger execution for the same activity if the controller says it is needed
|
||||
if (trigger) {
|
||||
logger.info("Triggering additional execution of controller " + this + " after execution.");
|
||||
triggerExecute(tx);
|
||||
}
|
||||
|
||||
if (tx.needsCommit())
|
||||
tx.commitOnClose();
|
||||
|
||||
|
|
Loading…
Reference in New Issue