Skip to content

Commit

Permalink
[KOGITO-9483] - fix wflow and few formating fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Your Name <[email protected]>
  • Loading branch information
spolti committed Jun 27, 2023
1 parent a4824b5 commit cf72263
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Should return something like this ("id" will change)
"id": "b1e8ce8d-2fc5-4d39-b3b3-6f7dddbb1515",
"workflowdata": {
"shouldCompensate": true,
"compensated": "true"
"compensated": true,
"compensating_more": "Real Betis Balompie"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
"version": "1.0",
"name": "Workflow Error example",
"description": "An example of how compensation works",
"specVersion": "0.8",
"start": "printStatus",
"functions": [
{
"name": "PrintOutput",
"type": "custom",
"operation": "sysout"
}
],
"states": [
{
"name": "printStatus",
Expand Down Expand Up @@ -32,7 +40,10 @@
"compensate": false
}
}
]
],
"defaultCondition": {
"end": true
}
},
{
"name": "compensating",
Expand All @@ -50,19 +61,39 @@
"data": {
"compensating_more": "Real Betis Balompie"
},
"end" : true
"end": true
},
{
"name": "finish_compensate",
"type": "operation",
"actions": [],
"actions": [
{
"name": "finish_compensate_sysout",
"functionRef": {
"refName": "PrintOutput",
"arguments": {
"message": "completed"
}
}
}
],
"end": true
},
{
"name": "finish_not_compensate",
"type": "operation",
"actions": [],
"actions": [
{
"name": "finish_not_compensate_sysout",
"functionRef": {
"refName": "PrintOutput",
"arguments": {
"message": "completed"
}
}
}
],
"end": true
}
]
}
}

0 comments on commit cf72263

Please sign in to comment.