Creating and Running a Workflow Instance
The CreatingWorkflowInstances sample shows how to run a workflow instance. It shows how to execute it synchronously and asynchronously.
Demonstrates
WorkflowInvoker, WorkflowApplication.
Discussion
The first part of the sample uses Invoke. This is the most basic way to execute a workflow. Workflows executed with Invoke are executed synchronously.
The second part of the sample uses the WorkflowApplication class. WorkflowApplication enables you to have more control over each instance, including the ability to interact with the running workflow and to run the workflow asynchronously.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.