The code now uses IWorkflowSerializer instead of IActivitySerializer for deserialization in the Console application. This change also entailed updating imports, specifically replacing Elsa.Workflows.Activities with Elsa.Workflows.Management.Contracts. |
||
|---|---|---|
| .. | ||
| Elsa.Samples.ConsoleApp.JsonWorkflows.csproj | ||
| HelloWorld.json | ||
| Program.cs | ||
| Readme.md | ||
JSON workflows
This sample demonstrates how to load a JSON workflow from a file and then execute it.
There is another sample in the aspnet folder that demonstrates the use of the JsonWorkflowDefinitionProvider that provides workflows to the system loaded from JSON files.