Skip to content

Commit a400871

Browse files
committed
fiup constant and test data
Signed-off-by: Neil South <neil.south@answerdigital.com>
1 parent f9222e6 commit a400871

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/WorkflowManager/WorkflowExecuter/Services/WorkflowExecuterService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ public async Task<bool> ProcessExportComplete(ExportCompleteEvent message, strin
531531

532532
switch (task.TaskType)
533533
{
534-
case ValidationConstants.ExportTaskType:
535-
case ValidationConstants.HL7ExportTask:
534+
case TaskTypeConstants.DicomExportTask:
535+
case TaskTypeConstants.HL7ExportTask:
536536
return await HandleTaskDestinations(workflowInstance, workflow, task, correlationId);
537537
default:
538538
break;

tests/IntegrationTests/WorkflowExecutor.IntegrationTests/TestData/WorkflowInstanceTestData.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
using Monai.Deploy.Messaging.Events;
18+
using Monai.Deploy.WorkflowManager.Common.Contracts.Constants;
1819
using Monai.Deploy.WorkflowManager.Common.Contracts.Models;
1920
using Monai.Deploy.WorkflowManager.Common.IntegrationTests.POCO;
2021
#pragma warning disable CS8602 // Dereference of a possibly null reference.
@@ -209,7 +210,7 @@ public static WorkflowInstance CreateWorkflowInstance(string workflowName)
209210
ExecutionId = Guid.NewGuid().ToString(),
210211
TaskId = "7d7c8b83-6628-413c-9912-a89314e5e2d5",
211212
OutputDirectory = "payloadId/workflows/workflowInstanceId/executionId/",
212-
TaskType = "Export",
213+
TaskType = TaskTypeConstants.DicomExportTask,
213214
Status = TaskExecutionStatus.Dispatched
214215
}
215216
}

tests/IntegrationTests/WorkflowExecutor.IntegrationTests/TestData/WorkflowRevisionTestData.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
using Monai.Deploy.Messaging.Common;
18+
using Monai.Deploy.WorkflowManager.Common.Contracts.Constants;
1819
using Monai.Deploy.WorkflowManager.Common.Contracts.Models;
1920
using Artifact = Monai.Deploy.WorkflowManager.Common.Contracts.Models.Artifact;
2021
// ReSharper disable ArrangeObjectCreationWhenTypeEvident
@@ -2174,7 +2175,7 @@ public static class WorkflowRevisionsTestData
21742175
new TaskObject
21752176
{
21762177
Id = "export_task_1",
2177-
Type = "Export",
2178+
Type = TaskTypeConstants.DicomExportTask,
21782179
Description = "Export Workflow 1 Task 2",
21792180
ExportDestinations = new ExportDestination[]
21802181
{
@@ -2235,7 +2236,7 @@ public static class WorkflowRevisionsTestData
22352236
new TaskObject
22362237
{
22372238
Id = "export_task_1",
2238-
Type = "Export",
2239+
Type = TaskTypeConstants.DicomExportTask,
22392240
Description = "Export Workflow 1 Task 2",
22402241
ExportDestinations = new ExportDestination[]
22412242
{
@@ -2296,7 +2297,7 @@ public static class WorkflowRevisionsTestData
22962297
new TaskObject
22972298
{
22982299
Id = "export_task_1",
2299-
Type = "Export",
2300+
Type = TaskTypeConstants.DicomExportTask,
23002301
Description = "Export Workflow 1 Task 2",
23012302
ExportDestinations = new ExportDestination[]
23022303
{
@@ -2358,7 +2359,7 @@ public static class WorkflowRevisionsTestData
23582359
new TaskObject
23592360
{
23602361
Id = "export_task_1",
2361-
Type = "Export",
2362+
Type = TaskTypeConstants.DicomExportTask,
23622363
Description = "Export Workflow 1 Task 2",
23632364
ExportDestinations = new ExportDestination[]
23642365
{
@@ -2375,7 +2376,7 @@ public static class WorkflowRevisionsTestData
23752376
new TaskObject
23762377
{
23772378
Id = "export_task_2",
2378-
Type = "Export",
2379+
Type = TaskTypeConstants.DicomExportTask,
23792380
Description = "Export Workflow 1 Task 3",
23802381
ExportDestinations = new ExportDestination[]
23812382
{
@@ -2437,7 +2438,7 @@ public static class WorkflowRevisionsTestData
24372438
new TaskObject
24382439
{
24392440
Id = "export_task_1",
2440-
Type = "Export",
2441+
Type = TaskTypeConstants.DicomExportTask,
24412442
Description = "Export Workflow 1 Task 2",
24422443
ExportDestinations = new ExportDestination[]
24432444
{

0 commit comments

Comments
 (0)