Skip to content

Commit

Permalink
Merge pull request #99 from mozzy11/master
Browse files Browse the repository at this point in the history
save succes run only when HL7 is succesfuly parsed
  • Loading branch information
mozzy11 authored Nov 20, 2024
2 parents 765c356 + 0ff002c commit 8869769
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ public class PullNotificationsTask extends AbstractTask {
public void execute() {
LOGGER.info("Executing " + TASK_NAME);
HL7Service hl7Service = Context.getHL7Service();
boolean success = true;
boolean success = false;
for (Message msg : getNotificationsPullPointClient().getNewMessages()) {
try {
hl7Service.processHL7Message(msg);
success = true;
}
catch (Exception e) {
success = false;
Expand Down

0 comments on commit 8869769

Please sign in to comment.