Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Fixed issue with transaction after OpenMRS (2.4) upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
pwargulak authored and druchniewicz committed Mar 14, 2024
1 parent 36f9702 commit 69e08c2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import org.openmrs.module.callflows.api.domain.flow.UserNode;
import org.openmrs.module.callflows.api.evaluation.EvaluationCommand;
import org.openmrs.module.callflows.api.evaluation.EvaluationContext;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.io.StringWriter;
Expand Down Expand Up @@ -98,6 +100,7 @@ public DaemonToken getDaemonToken() {
* @return Returns string
*/
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public String execute(EvaluationContext evalContext) throws IOException {
Flow flow = evalContext.getFlow();
Node node = evalContext.getNode();
Expand Down

0 comments on commit 69e08c2

Please sign in to comment.