From 11678f3db839430ba06e44292291bf8a92e62f46 Mon Sep 17 00:00:00 2001 From: Zubair Asghar Date: Sat, 18 Jan 2025 02:30:17 +0500 Subject: [PATCH] Fix:(2.39) Enrollment/Event notification in tracker app[DHIS2-18633] (#19688) --- .../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");