From 29ce06fc1d57c6c1a507857feec491b4cb50b07e Mon Sep 17 00:00:00 2001 From: Hannah Hunter Date: Mon, 8 May 2023 15:20:06 -0400 Subject: [PATCH] add python tab Signed-off-by: Hannah Hunter --- .../workflow/howto-author-workflow.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md b/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md index e30fec575..d9bbb6769 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md +++ b/daprdocs/content/en/developing-applications/building-blocks/workflow/howto-author-workflow.md @@ -30,7 +30,7 @@ The Dapr sidecar doesn’t load any workflow definitions. Rather, the sidecar si Define the workflow activities you'd like your workflow to perform. Activities are a class definition and can take inputs and outputs. Activities also participate in dependency injection, like binding to a Dapr client. -{{< tabs ".NET" >}} +{{< tabs ".NET" Python >}} {{% codetab %}} @@ -73,6 +73,24 @@ It also includes a `RunAsync` method that does the heavy lifting of the workflow } ``` +{{% /codetab %}} + +{{% codetab %}} + + + +[In the following example](todo), for a basic Python order processing application using the Python SDK, your project code would include: + +- A Python package called `DaprClient` to receive the Python SDK capabilities +- A builder with an extension method called `todo` + - This will allow you to register workflows and workflow activities (tasks that workflows can schedule) +- HTTP API calls to start, pause, resume, terminate, and purge the workflow. + +```python +todo +``` + + {{% /codetab %}} {{< /tabs >}}