You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workflows/build/events-and-parameters.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ When a Workflow is triggered, it can receive an optional event. This event can i
10
10
11
11
Events are a powerful part of a Workflow, as you often want a Workflow to act on data. Because a given Workflow instance executes durably, events are a useful way to provide a Workflow with data that should be immutable (not changing) and/or represents data the Workflow needs to operate on at that point in time.
12
12
13
-
## Passing parameters
13
+
## Passing parameters to a Workflow
14
14
15
15
You can pass parameters to a Workflow in two ways:
🚀 Workflow instance "57c7913b-8e1d-4a78-a0dd-dce5a0b7aa30" has been queued successfully
56
56
```
57
57
58
-
## TypeScript and typing events
58
+
## TypeScript and type parameters
59
59
60
60
By default, the `WorkflowEvent` passed to the `run` method of your Workflow definition has a type that conforms to the following, with `payload` (your data) and `timestamp` properties:
Copy file name to clipboardExpand all lines: src/content/docs/workflows/get-started/cli-quick-start.mdx
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ You can build Workflows to post-process file uploads to [R2 object storage](/r2/
23
23
24
24
## Prerequisites
25
25
26
-
:::note
26
+
:::caution
27
27
28
28
This guide is for users who are already familiar with Cloudflare Workers and [durable execution](/workflows/reference/how-workflows-works/) programming models.
29
29
30
-
If you're new to either, we recommend the [introduction to Workflows](/workflows/get-started/guide/) guide, which steps through how a Workflow is defined, how to persist state, deploy and manage Workflows.
30
+
If you're new to either, we recommend the [introduction to Workflows](/workflows/get-started/guide/) guide, which steps through how a Workflow is defined, how to persist state, and how to deploy and run your first Workflow.
31
31
32
32
:::
33
33
@@ -44,7 +44,7 @@ Workflows are defined as part of a Worker script.
44
44
To create a Workflow, use the `create cloudflare` (C3) CLI tool, specifying the Workflows starter template:
0 commit comments