WorkflowStarted
v4

Found on the "Serverlesspresso" Amazon EventBridge bus.

The workflow waits for your order to be submitted. It emits an event with a unique 'task token'. The token is stored in an Amazon DynamoDB table, along with your order ID.

No matched rules or targets found for event.

WorkflowStarted Schema (json)
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "OrderProcessor.WorkflowStarted",
    "definitions": {
        "OrderProcessor.WorkflowStarted": {
            "properties": {
                "Message": {
                    "type": "string"
                },
                "TaskToken": {
                    "type": "string"
                },
                "orderId": {
                    "type": "string"
                },
                "userId": {
                    "type": "string"
                }
            },
            "required": [
                "Message",
                "orderId",
                "TaskToken",
                "userId"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/OrderProcessor.WorkflowStarted"
        },
        "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.WorkflowStarted",
    "x-amazon-events-source": "awsserverlessda.serverlesspresso"
}

Examples

1{
2    "openapi": "3.0.0",
3    "info": {
4        "version": "1.0.0",
5        "title": "OrderProcessor.WorkflowStarted"
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.WorkflowStarted",
24                "x-amazon-events-source": "awsserverlessda.serverlesspresso",
25                "properties": {
26                    "detail": {
27                        "$ref": "#/components/schemas/OrderProcessor.WorkflowStarted"
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.WorkflowStarted": {
60                "type": "object",
61                "required": [
62                    "Message",
63                    "orderId",
64                    "TaskToken",
65                    "userId"
66                ],
67                "properties": {
68                    "Message": {
69                        "type": "string"
70                    },
71                    "TaskToken": {
72                        "type": "string"
73                    },
74                    "orderId": {
75                        "type": "string"
76                    },
77                    "userId": {
78                        "type": "string"
79                    }
80                }
81            }
82        }
83    }
84}
Edit this pageLast updated on 2023/1/31