mirror of https://github.com/dapr/quickstarts.git
42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
# Workflow Basics
|
|
|
|
This tutorial covers the fundamentals of authoring Dapr Workflows. For more information about the fundamentals of Dapr Workflows, see the [Dapr docs](https://docs.dapr.io/developing-applications/building-blocks/workflow/workflow-features-concepts/).
|
|
|
|
## Inspect the code
|
|
|
|
Open the `BasicWorkflow.cs` file in the `tutorials/workflow/csharp/fundamentals/Basic` folder. This file contains the definition for the workflow.
|
|
|
|
The workflow consists of two activities: `Activity1` and `Activity2`, which are called in sequence. You can find the Activity definitions in the `Activities` folder.
|
|
|
|
```mermaid
|
|
graph LR
|
|
SW((Start
|
|
Workflow))
|
|
A1[Activity1]
|
|
A2[Activity2]
|
|
EW((End
|
|
Workflow))
|
|
SW --> A1
|
|
A1 --> A2
|
|
A2 --> EW
|
|
```
|
|
|
|
## Run the tutorial
|
|
|
|
1. Use a terminal to navigate to the `tutorials/workflow/csharp/fundamentals` folder.
|
|
2. Build the project using the .NET CLI.
|
|
|
|
```bash
|
|
dotnet build ./Basic/
|
|
```
|
|
|
|
3. Use the Dapr CLI to run the Dapr Multi-App run file
|
|
|
|
```bash
|
|
dapr run -f .
|
|
```
|
|
|
|
4. Use the POST request in the [`basics.http`](./basics.http) file to start the workflow.
|
|
5. Use the GET request in the [`basics.http`](./basics.http) file to get the status of the workflow.
|
|
6. Stop the Dapr Multi-App run process by pressing `Ctrl+C`.
|