Skip to content

Commit f542e91

Browse files
authored
Book Lending Example Fix (#663)
The Book Lending Example JSON/YAML Definitions differed from the Workflow Diagram shown above them. Here I just created the missing state so both are in sync. Signed-off-by: Wagner Scholl Lemos <[email protected]> Signed-off-by: Wagner Scholl Lemos <[email protected]>
1 parent 34c3203 commit f542e91

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

examples/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3935,6 +3935,22 @@ For the sake of the example we assume the functions and event definitions are de
39353935
],
39363936
"transition": "Sleep two weeks"
39373937
},
3938+
{
3939+
"name": "Cancel Request",
3940+
"type": "operation",
3941+
"actions": [
3942+
{
3943+
"functionRef": {
3944+
"refName": "Cancel hold request for lender",
3945+
"arguments": {
3946+
"bookid": "${ .book.id }",
3947+
"lender": "${ .lender }"
3948+
}
3949+
}
3950+
}
3951+
],
3952+
"transition": "Sleep two weeks"
3953+
},
39383954
{
39393955
"name": "Sleep two weeks",
39403956
"type": "sleep",
@@ -4035,6 +4051,15 @@ states:
40354051
bookid: "${ .book.id }"
40364052
lender: "${ .lender }"
40374053
transition: Sleep two weeks
4054+
- name: Cancel Request
4055+
type: operation
4056+
actions:
4057+
- functionRef:
4058+
refName: Cancel hold request for lender
4059+
arguments:
4060+
bookid: "${ .book.id }"
4061+
lender: "${ .lender }"
4062+
end: true
40384063
- name: Sleep two weeks
40394064
type: sleep
40404065
duration: PT2W

0 commit comments

Comments
 (0)