mirror of https://github.com/dapr/docs.git
updates
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
3a70766a0c
commit
303acb3dea
|
@ -1,45 +1,57 @@
|
||||||
---
|
---
|
||||||
type: docs
|
type: docs
|
||||||
title: "How to: Set up a workflow"
|
title: "How to: Set up a built-in workflow"
|
||||||
linkTitle: "How to: Set up workflows"
|
linkTitle: "How to: Set up workflows"
|
||||||
weight: 2000
|
weight: 2000
|
||||||
description: Integrate, manage, and expose workflows with the built-in workflow runtime component
|
description: Integrate, manage, and expose workflows with the built-in workflow runtime component
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- Introductory paragraph
|
Intro
|
||||||
Required. Light intro that briefly describes what the how-to will cover and any default Dapr characteristics. Link off to the appropriate concept or overview docs to provide context. -->
|
|
||||||
|
|
||||||
<!--
|
## Built-in workflow
|
||||||
Include a diagram or image, if possible.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
### Create the built-in workflow
|
||||||
If applicable, link to the related quickstart in a shortcode note or alert with text like:
|
|
||||||
If you haven't already, [try out the <topic> quickstart](link) for a quick walk-through on how to use <topic>.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
Write a block of code
|
||||||
Make sure the how-to includes examples for multiple programming languages, OS, or deployment targets, if applicable.
|
|
||||||
-->
|
|
||||||
|
|
||||||
## <Action or task>
|
```go
|
||||||
|
insert code snippet
|
||||||
|
```
|
||||||
|
|
||||||
<!--
|
### Start using the API
|
||||||
Unlike quickstarts, do not use "Step 1", "Step 2", etc.
|
|
||||||
-->
|
|
||||||
|
|
||||||
## <Action or task>
|
Link
|
||||||
|
|
||||||
<!--
|
## External workflow engine
|
||||||
Each H2 step should start with a verb/action word.
|
|
||||||
-->
|
### Create an external workflow engine
|
||||||
|
|
||||||
|
Write a block of code
|
||||||
|
|
||||||
|
```go
|
||||||
|
insert code snippet
|
||||||
|
```
|
||||||
|
|
||||||
|
### Register an external workflow engine
|
||||||
|
|
||||||
|
Register code
|
||||||
|
|
||||||
|
```bash
|
||||||
|
<command>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
For external workfow engines, there's an additional step to make sure workers for that engine are up and running
|
||||||
|
|
||||||
|
|
||||||
|
Currently two supported workflow engines are Temporal.io and Logic Apps, both of which follow the same set up steps outlined below
|
||||||
|
|
||||||
|
Two external workflows:
|
||||||
|
- Temporal.io
|
||||||
|
- Logic Apps
|
||||||
|
|
||||||
<!--
|
|
||||||
Include code snippets where possible.
|
|
||||||
-->
|
|
||||||
|
|
||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
<!--
|
- [Workflow API]()
|
||||||
Link to related pages and examples. For example, the building block overview, the related tutorial, API reference, etc.
|
- [Use the workflow via the workflow SDK]()
|
||||||
-->
|
|
|
@ -1,12 +1,62 @@
|
||||||
---
|
---
|
||||||
type: docs
|
type: docs
|
||||||
title: "Invoking workflows: HTTP vs gRPC"
|
title: "How to: Set up a workflow with an SDK"
|
||||||
linkTitle: "Invoke with HTTP vs gRPC"
|
linkTitle: "How to: Set up workflow with SDK"
|
||||||
weight: 3000
|
weight: 3000
|
||||||
description: Learn how to invoke the workflow API using either HTTP or gRPC
|
description: Learn how to set up the workflow API with an SDK
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Intro
|
||||||
|
|
||||||
|
## Built-in workflow
|
||||||
|
|
||||||
|
### Create the built-in workflow
|
||||||
|
|
||||||
|
Write a block of code
|
||||||
|
|
||||||
|
```go
|
||||||
|
insert code snippet
|
||||||
|
```
|
||||||
|
|
||||||
|
### Start using the API
|
||||||
|
|
||||||
|
Link
|
||||||
|
|
||||||
|
## External workflow engine
|
||||||
|
|
||||||
|
### Create an external workflow engine
|
||||||
|
|
||||||
|
Write a block of code
|
||||||
|
|
||||||
|
```go
|
||||||
|
insert code snippet
|
||||||
|
```
|
||||||
|
|
||||||
|
### Register an external workflow engine
|
||||||
|
|
||||||
|
Register code
|
||||||
|
|
||||||
|
```bash
|
||||||
|
<command>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
For external workfow engines, there's an additional step to make sure workers for that engine are up and running
|
||||||
|
|
||||||
|
|
||||||
|
Currently two supported workflow engines are Temporal.io and Logic Apps, both of which follow the same set up steps outlined below
|
||||||
|
|
||||||
|
Two external workflows:
|
||||||
|
- Temporal.io
|
||||||
|
- Logic Apps
|
||||||
|
|
||||||
|
|
||||||
|
## Next steps
|
||||||
|
|
||||||
|
- [Workflow API]()
|
||||||
|
- [Use the workflow via the workflow SDK]()
|
||||||
|
|
||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -169,6 +169,9 @@ This call results in workflow instance metadata, such as its:
|
||||||
- Completion time (if completed)
|
- Completion time (if completed)
|
||||||
- Custom or runtime-specific status
|
- Custom or runtime-specific status
|
||||||
|
|
||||||
|
Temporal.io also includes metadata for:
|
||||||
|
- Task queue
|
||||||
|
|
||||||
## Purge Workflow Metadata
|
## Purge Workflow Metadata
|
||||||
|
|
||||||
When using the embedded workflow component, this will delete all state stored by the workflow’s underlying actor(s).
|
When using the embedded workflow component, this will delete all state stored by the workflow’s underlying actor(s).
|
||||||
|
|
|
@ -13,11 +13,15 @@ To set up the built-in workflow engine, create a component of type `todo`. See [
|
||||||
apiVersion: dapr.io/v1alpha1
|
apiVersion: dapr.io/v1alpha1
|
||||||
kind: Component
|
kind: Component
|
||||||
metadata:
|
metadata:
|
||||||
name: <NAME>
|
name: temporal
|
||||||
spec:
|
spec:
|
||||||
type: todo
|
type: workflow.temporal
|
||||||
version: v1
|
version: v1
|
||||||
metadata:
|
metadata:
|
||||||
|
- name: hostport
|
||||||
|
value: localhost:7233
|
||||||
|
- name: identity
|
||||||
|
value: "WF Identity"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Spec metadata fields
|
## Spec metadata fields
|
||||||
|
|
|
@ -13,20 +13,23 @@ To set up the Temporal.io workflow, create a component of type `todo`. See [this
|
||||||
apiVersion: dapr.io/v1alpha1
|
apiVersion: dapr.io/v1alpha1
|
||||||
kind: Component
|
kind: Component
|
||||||
metadata:
|
metadata:
|
||||||
name: <NAME>
|
name: temporal
|
||||||
spec:
|
spec:
|
||||||
type: todo
|
type: workflow.temporal
|
||||||
version: v1
|
version: v1
|
||||||
metadata:
|
metadata:
|
||||||
|
- name: hostport
|
||||||
|
value: <HOST>
|
||||||
|
- name: identity
|
||||||
|
value: "WF Identity"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Spec metadata fields
|
## Spec metadata fields
|
||||||
|
|
||||||
| Field | Required | Details | Example |
|
| Field | Required | Details | Example |
|
||||||
|-------|:--------:|---------|---------|
|
|-------|:--------:|---------------------------------------------------|------------------|
|
||||||
| | | | |
|
| name | Y | Connection string for the Temporal.io host | `localhost:6379` |
|
||||||
| | | | |
|
| name | Y | Unique ID of the workflow | ` |
|
||||||
| | | | |
|
|
||||||
|
|
||||||
## Setup Temporal.io
|
## Setup Temporal.io
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue