Skip to content

Commit

Permalink
[Fix #3475] Adding end metadata usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Apr 30, 2024
1 parent 1d0004e commit 255eb3f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"id": "errorWithMetadata",
"version": "1.0",
"name": "Workflow Error example with metadata",
"description": "An example of how to abort a workflow with error given a condition",
"start": "checkEven",
"states": [
{
"name": "checkEven",
"type": "operation",
"actions": [],
"end" : true,
"metadata": {
"errorMessage": "if .number % 2 != 0 then \"Is Odd number!!!!\" else null end"
}
}
]
}

0 comments on commit 255eb3f

Please sign in to comment.