From 216f6a83073b9dfe2cad1c8a5df16b1926590019 Mon Sep 17 00:00:00 2001 From: zubaira Date: Thu, 16 Jan 2025 12:15:55 +0100 Subject: [PATCH] Fix:(2.39) Enrollment/Event notification in tracker app[DHIS2-18633] --- .../programrule/engine/RuleActionSendMessageImplementer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dhis-2/dhis-services/dhis-service-program-rule/src/main/java/org/hisp/dhis/programrule/engine/RuleActionSendMessageImplementer.java b/dhis-2/dhis-services/dhis-service-program-rule/src/main/java/org/hisp/dhis/programrule/engine/RuleActionSendMessageImplementer.java index f4aa4f588392..5453c0671a88 100644 --- a/dhis-2/dhis-services/dhis-service-program-rule/src/main/java/org/hisp/dhis/programrule/engine/RuleActionSendMessageImplementer.java +++ b/dhis-2/dhis-services/dhis-service-program-rule/src/main/java/org/hisp/dhis/programrule/engine/RuleActionSendMessageImplementer.java @@ -45,6 +45,7 @@ import org.hisp.dhis.rules.models.RuleEffect; import org.springframework.context.ApplicationEventPublisher; import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; /** * @@ -86,6 +87,7 @@ public boolean accept(RuleAction ruleAction) { } @Override + @Transactional public void implement(RuleEffect ruleEffect, ProgramInstance programInstance) { NotificationValidationResult result = validate(ruleEffect, programInstance); @@ -111,6 +113,7 @@ public void implement(RuleEffect ruleEffect, ProgramInstance programInstance) { } @Override + @Transactional public void implement(RuleEffect ruleEffect, ProgramStageInstance programStageInstance) { checkNotNull(programStageInstance, "ProgramStageInstance cannot be null");