From 30851927922d32e502919f5843657967240a72ce Mon Sep 17 00:00:00 2001 From: Tony Germano Date: Fri, 7 Aug 2020 18:04:55 -0400 Subject: [PATCH] Fix AlertSender to include messageId --- server/src/com/mirth/connect/server/userutil/AlertSender.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/com/mirth/connect/server/userutil/AlertSender.java b/server/src/com/mirth/connect/server/userutil/AlertSender.java index d72fe0e69c..ad8c2b5812 100644 --- a/server/src/com/mirth/connect/server/userutil/AlertSender.java +++ b/server/src/com/mirth/connect/server/userutil/AlertSender.java @@ -22,6 +22,7 @@ public class AlertSender { private EventController eventController = ControllerFactory.getFactory().createEventController(); private String channelId; private Integer metaDataId; + private Long messageId; private String connectorName; /** @@ -43,6 +44,7 @@ public AlertSender(String channelId) { public AlertSender(ImmutableConnectorMessage connectorMessage) { channelId = connectorMessage.getChannelId(); metaDataId = connectorMessage.getMetaDataId(); + messageId = connectorMessage.getMessageId(); connectorName = connectorMessage.getConnectorName(); } @@ -53,6 +55,6 @@ public AlertSender(ImmutableConnectorMessage connectorMessage) { * A custom error message to include with the error event. */ public void sendAlert(String errorMessage) { - eventController.dispatchEvent(new ErrorEvent(channelId, metaDataId, null, ErrorEventType.USER_DEFINED_TRANSFORMER, connectorName, null, errorMessage, null)); + eventController.dispatchEvent(new ErrorEvent(channelId, metaDataId, messageId, ErrorEventType.USER_DEFINED_TRANSFORMER, connectorName, null, errorMessage, null)); } }