From f9222e6a0c404a2d24581ac8f450993dab6c5a20 Mon Sep 17 00:00:00 2001 From: Neil South Date: Thu, 21 Dec 2023 15:57:24 +0000 Subject: [PATCH] fix for hl7Export complete Signed-off-by: Neil South --- .../WorkflowExecuter/Services/WorkflowExecuterService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/WorkflowManager/WorkflowExecuter/Services/WorkflowExecuterService.cs b/src/WorkflowManager/WorkflowExecuter/Services/WorkflowExecuterService.cs index 99d73aea5..9dada9849 100644 --- a/src/WorkflowManager/WorkflowExecuter/Services/WorkflowExecuterService.cs +++ b/src/WorkflowManager/WorkflowExecuter/Services/WorkflowExecuterService.cs @@ -529,9 +529,13 @@ public async Task ProcessExportComplete(ExportCompleteEvent message, strin return false; } - if (string.Compare(task.TaskType, ValidationConstants.ExportTaskType, true) == 0) + switch (task.TaskType) { - return await HandleTaskDestinations(workflowInstance, workflow, task, correlationId); + case ValidationConstants.ExportTaskType: + case ValidationConstants.HL7ExportTask: + return await HandleTaskDestinations(workflowInstance, workflow, task, correlationId); + default: + break; } }