WaitingCompletionv3
Found on the "Serverlesspresso" Amazon EventBridge bus.
You pressed 'submit order'. The workflow resumes using the stored 'task token', it generates your order number. It then pauses again, emitting an event with a new 'task token'.
WaitingCompletion Schema (json)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "OrderProcessor.WaitingCompletion",
"definitions": {
"OrderProcessor.WaitingCompletion": {
"properties": {
"Message": {
"type": "string"
},
"TaskToken": {
"type": "string"
},
"orderId": {
"type": "string"
},
"orderNumber": {
"type": "number"
},
"userId": {
"type": "string"
}
},
"required": [
"orderNumber",
"Message",
"orderId",
"TaskToken",
"userId"
],
"type": "object"
}
},
"properties": {
"account": {
"type": "string"
},
"detail": {
"$ref": "#/definitions/OrderProcessor.WaitingCompletion"
},
"detail-type": {
"type": "string"
},
"id": {
"type": "string"
},
"region": {
"type": "string"
},
"resources": {
"items": {
"type": "string"
},
"type": "array"
},
"source": {
"type": "string"
},
"time": {
"format": "date-time",
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"detail-type",
"resources",
"detail",
"id",
"source",
"time",
"region",
"version",
"account"
],
"type": "object",
"x-amazon-events-detail-type": "OrderProcessor.WaitingCompletion",
"x-amazon-events-source": "awsserverlessda.serverlesspresso"
}
Examples
1{
2 "openapi": "3.0.0",
3 "info": {
4 "version": "1.0.0",
5 "title": "OrderProcessor.WaitingCompletion"
6 },
7 "paths": {},
8 "components": {
9 "schemas": {
10 "AWSEvent": {
11 "type": "object",
12 "required": [
13 "detail-type",
14 "resources",
15 "detail",
16 "id",
17 "source",
18 "time",
19 "region",
20 "version",
21 "account"
22 ],
23 "x-amazon-events-detail-type": "OrderProcessor.WaitingCompletion",
24 "x-amazon-events-source": "awsserverlessda.serverlesspresso",
25 "properties": {
26 "detail": {
27 "$ref": "#/components/schemas/OrderProcessor.WaitingCompletion"
28 },
29 "account": {
30 "type": "string"
31 },
32 "detail-type": {
33 "type": "string"
34 },
35 "id": {
36 "type": "string"
37 },
38 "region": {
39 "type": "string"
40 },
41 "resources": {
42 "type": "array",
43 "items": {
44 "type": "string"
45 }
46 },
47 "source": {
48 "type": "string"
49 },
50 "time": {
51 "type": "string",
52 "format": "date-time"
53 },
54 "version": {
55 "type": "string"
56 }
57 }
58 },
59 "OrderProcessor.WaitingCompletion": {
60 "type": "object",
61 "required": [
62 "orderNumber",
63 "Message",
64 "orderId",
65 "TaskToken",
66 "userId"
67 ],
68 "properties": {
69 "Message": {
70 "type": "string"
71 },
72 "TaskToken": {
73 "type": "string"
74 },
75 "orderId": {
76 "type": "string"
77 },
78 "orderNumber": {
79 "type": "number"
80 },
81 "userId": {
82 "type": "string"
83 }
84 }
85 }
86 }
87 }
88}
Edit this pageLast updated on 2023/1/31