quickstarts/tutorials/workflow/csharp/workflow-management
Marc Duiker 00a4e38743
Add workflow management
Signed-off-by: Marc Duiker <marcduiker@users.noreply.github.com>
2025-05-08 11:59:26 +02:00
..
WorkflowManagement Update Dapr.Workflow to 1.15.4 2025-04-30 13:53:13 +02:00
README.md Add workflow management 2025-05-08 11:59:26 +02:00
dapr.yaml Fix paths for multi-app run 2025-04-01 13:35:07 +01:00
makefile Add make files 2025-04-15 14:51:50 +02:00
workflowmanagement.http Update folder structure 2025-03-21 16:52:43 +01:00

README.md

Workflow Management

This tutorial demonstrates the various APIs to manage a workflow instance, these methods include:

  • Scheduling a workflow instance
  • Getting the workflow instance state
  • Suspending the workflow instance
  • Resuming the workflow instance
  • Terminating the workflow instance
  • Purging the workflow instance

For more information on workflow management, see the Dapr docs.

Inspect the code

Open the Program.cs file in the tutorials/workflow/csharp/workflow-management/WorkflowManagement folder. This file contains the endpoint definitions that use the workflow management API. The workflow that is being managed is named NeverEndingWorkflow and is a counter that will keep running once it's started.

Run the tutorial

  1. Use a terminal to navigate to the tutorials/workflow/csharp/workflow-management folder.

  2. Build the project using the .NET CLI.

    dotnet build ./WorkflowManagement/
    
  3. Use the Dapr CLI to run the Dapr Multi-App run file

    ```bash
    

    dapr run -f .

    <!-- END_STEP -->
    
    
  4. Use the first POST request in the workflowmanagement.http file to start the workflow.

  5. Use other requests in the workflowmanagement.http file to perform other actions on the workflow, such as:

    • Getting the workflow instance state.
    • Suspending & resuming the workflow instance.
    • Terminating the workflow instance.
    • Purging the workflow instance.
  6. Stop the Dapr Multi-App run process by pressing Ctrl+C.