mirror of https://github.com/dapr/docs.git
parent
8f0a36ad25
commit
0209168e08
|
@ -3,17 +3,17 @@ type: docs
|
|||
title: "How to: Manage workflows"
|
||||
linkTitle: "How to: Manage workflows"
|
||||
weight: 6000
|
||||
description: Manage and expose workflows
|
||||
description: Manage and run workflows
|
||||
---
|
||||
|
||||
Now that you've [set up the workflow and its activities in your application]({{< ref howto-author-workflow.md >}}), you can start, terminate, and get information about the workflow using HTTP API calls. For more information, read the [workflow API reference]({{< ref workflow_api.md >}}).
|
||||
Now that you've [authored the workflow and its activities in your application]({{< ref howto-author-workflow.md >}}), you can start, terminate, and get information about the workflow using HTTP API calls. For more information, read the [workflow API reference]({{< ref workflow_api.md >}}).
|
||||
|
||||
{{< tabs ".NET SDK" HTTP >}}
|
||||
|
||||
<!--NET-->
|
||||
{{% codetab %}}
|
||||
|
||||
Manage your workflow within your code. In the `OrderProcessingWorkflow` example from the [Author a workflow]({{< ref "howto-author-workflow.md#write-the-workflow" >}}) guide, the workflow is registered in the code. You can then start, terminate, and get information about the workflow:
|
||||
Manage your workflow within your code. In the `OrderProcessingWorkflow` example from the [Author a workflow]({{< ref "howto-author-workflow.md#write-the-workflow" >}}) guide, the workflow is registered in the code. You can now start, terminate, and get information about a running workflow:
|
||||
|
||||
```csharp
|
||||
|
||||
|
@ -28,7 +28,7 @@ Manage your workflow using HTTP calls. The example below plugs in the properties
|
|||
|
||||
### Start workflow
|
||||
|
||||
To start your workflow, run:
|
||||
To start your workflow with an ID `12345678`, run:
|
||||
|
||||
```bash
|
||||
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/12345678/start
|
||||
|
@ -36,7 +36,7 @@ POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/12
|
|||
|
||||
### Terminate workflow
|
||||
|
||||
To terminate your workflow, run:
|
||||
To terminate your workflow with an ID `12345678`, run:
|
||||
|
||||
```bash
|
||||
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/12345678/terminate
|
||||
|
@ -44,7 +44,7 @@ POST http://localhost:3500/v1.0-alpha1/workflows/dapr/12345678/terminate
|
|||
|
||||
### Get information about a workflow
|
||||
|
||||
To fetch workflow outputs and inputs, run:
|
||||
To fetch workflow information (outputs and inputs) with an ID `12345678`, run:
|
||||
|
||||
```bash
|
||||
GET http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/12345678
|
||||
|
@ -61,4 +61,4 @@ Learn more about these HTTP calls in the [workflow API reference guide]({{< ref
|
|||
## Next steps
|
||||
- [Try out the Workflow quickstart]({{< ref workflow-quickstart.md >}})
|
||||
- [Try out the .NET example](https://github.com/dapr/dotnet-sdk/tree/master/examples/Workflow)
|
||||
- [Workflow API reference]({{< ref workflow_api.md >}})
|
||||
- [Workflow API reference]({{< ref workflow_api.md >}})
|
||||
|
|
Loading…
Reference in New Issue