mirror of https://github.com/dapr/docs.git
updates per mark and marc
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
e7a16cb0a4
commit
b9a8038273
|
|
@ -766,8 +766,7 @@ public class DemoWorkflow extends Workflow {
|
||||||
[As in the following example](https://github.com/dapr/go-sdk/tree/main/examples/workflow/README.md), a hello-world application using the Go SDK and Dapr Workflow would include:
|
[As in the following example](https://github.com/dapr/go-sdk/tree/main/examples/workflow/README.md), a hello-world application using the Go SDK and Dapr Workflow would include:
|
||||||
|
|
||||||
- A Go package called `client` to receive the Go SDK client capabilities.
|
- A Go package called `client` to receive the Go SDK client capabilities.
|
||||||
- An import of `workflow`
|
- The `TestWorkflow` method
|
||||||
- The `DemoWorkflow` class which extends `Workflow`
|
|
||||||
- Creating the workflow with input and output.
|
- Creating the workflow with input and output.
|
||||||
- API calls. In the example below, these calls start and call the workflow activities.
|
- API calls. In the example below, these calls start and call the workflow activities.
|
||||||
|
|
||||||
|
|
@ -987,9 +986,6 @@ func main() {
|
||||||
|
|
||||||
fmt.Println("workflow purged")
|
fmt.Println("workflow purged")
|
||||||
|
|
||||||
// WFClient
|
|
||||||
// TODO: Expand client validation
|
|
||||||
|
|
||||||
stage = 0
|
stage = 0
|
||||||
fmt.Println("workflow client test")
|
fmt.Println("workflow client test")
|
||||||
|
|
||||||
|
|
@ -1018,9 +1014,6 @@ func main() {
|
||||||
|
|
||||||
fmt.Printf("[wfclient] stage: %d\n", stage)
|
fmt.Printf("[wfclient] stage: %d\n", stage)
|
||||||
|
|
||||||
// TODO: WaitForWorkflowStart
|
|
||||||
// TODO: WaitForWorkflowCompletion
|
|
||||||
|
|
||||||
// raise event
|
// raise event
|
||||||
|
|
||||||
if err := wfClient.RaiseEvent(ctx, id, "testEvent", workflow.WithEventPayload("testData")); err != nil {
|
if err := wfClient.RaiseEvent(ctx, id, "testEvent", workflow.WithEventPayload("testData")); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue