@@ -84,3 +84,40 @@ Scenario Outline: Task with context.input.dicom is triggered when mandatory file
8484 | workflow | workflowInstance | taskUpdate |
8585 | TwoTask_Context .Dicom .Input_ArtifactMandatory =Null | TwoTask_Context .Dicom .Input_ArtifactMandatory =Null | TwoTask_Context .Dicom .Input_ArtifactMandatory =Null |
8686 | TwoTask_Context .Dicom .Input_ArtifactMandatory =True | TwoTask_Context .Dicom .Input_ArtifactMandatory =True | TwoTask_Context .Dicom .Input_ArtifactMandatory =True |
87+
88+ @TaskArtifacts_TaskUpdate
89+ Scenario : Task with context.executions.task_id.artifacts.artifact_name is triggered when mandatory files exist resulting in a Sucessful Task Dispatch
90+ Given I have a clinical workflow <testData>
91+ And I have a Workflow Instance <testData> with artifacts full_patient_metadata in minio
92+ When I publish a Task Update Message <testData> with artifacts output_metadata in minio
93+ Then I can see Workflow Instance is updated with Task Update Information
94+ And 1 Task Dispatch event is published
95+ And I can see Workflow Instance is updated with Task Dispatch Information
96+ Examples :
97+ | testData |
98+ | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =True |
99+ | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =False |
100+ | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =Null |
101+
102+ @TaskArtifacts_TaskUpdate
103+ Scenario : Task with context.executions.task_id.artifacts.artifact_name is not triggered when mandatory files are missing
104+ Given I have a clinical workflow <testData>
105+ And I have a Workflow Instance <testData> with artifacts full_patient_metadata in minio
106+ When I publish a Task Update Message <testData> with no artifacts
107+ Then A Task Dispatch event is not published
108+ Examples :
109+ | testData |
110+ | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =True |
111+ | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =Null |
112+
113+ @TaskArtifacts_TaskUpdate
114+ Scenario : Task with context.executions.task_id.artifacts.artifact_name is triggered when non mandatory files are missing
115+ Given I have a clinical workflow <testData>
116+ And I have a Workflow Instance <testData> with artifacts full_patient_metadata in minio
117+ When I publish a Task Update Message <taskUpdateMessage> with no artifacts
118+ Then I can see Workflow Instance is updated with Task Update Information
119+ And 1 Task Dispatch event is published
120+ And I can see Workflow Instance is updated with Task Dispatch Information
121+ Examples :
122+ | testData | taskUpdateMessage |
123+ | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =False | TwoTask_Context .Executions .Task_id .Artifact .Artifact_Name_Mandatory =False_No_Outputs |
0 commit comments