Skip to content

Commit 45d7f1b

Browse files
committed
Handled Exception Metadata documentation
Signed-off-by: Lillie Dae <[email protected]>
1 parent 90fe42a commit 45d7f1b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/setup/mwm-workflow-spec.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,21 +800,24 @@ An example format of the metadata.json can be found below:
800800
execution stats are populated from the argo execution values returned automatically.
801801

802802
#### Handled Exception Metadata
803-
Application models can throw handled exceptions to do this application model should output to the `metadata.json` and include for example...
803+
Application models can throw handled exceptions, to do this your application model should output the properties "exception" and "exception_message" to the `metadata.json`
804+
805+
Example...
804806
```json
805807
{
806808
"exception": "NoDicomFilesException",
807809
"exception_message": "No dicom files found."
808810
}
809811
```
810812

811-
This can be used in the workflow task destinations queries for example like the following examples...
813+
We recommend your application exits execution once the metadata.json has been written.
814+
815+
This exception can be used in the workflow task destinations queries for example like the following examples...
812816

813817
```python
814818
{{ context.executions.task_id.result.exception }} == 'NoDicomFilesException' && {{ context.executions.task_id.result.exception_message }} == 'No dicom files found.'
815819
```
816820

817-
818821
```python
819822
{{ context.executions.task_id.result.exception_message }} CONTAINS 'No dicom files'
820823
```

0 commit comments

Comments
 (0)