[Fix] Call triggerExecute() in Controller.execute() when needed

This commit is contained in:
Robert von Burg 2023-07-24 16:22:57 +02:00
parent 4913eb9737
commit cc8fcc688e
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 7 additions and 0 deletions

View File

@ -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();