File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ public class MyWorkflow : IWorkflow
25
25
}
26
26
```
27
27
28
- ## JSON Workflow Definitions
28
+ ## JSON / YAML Workflow Definitions
29
29
30
- Define your workflows in JSON
30
+ Define your workflows in JSON or YAML
31
31
32
32
``` json
33
33
{
@@ -47,6 +47,17 @@ Define your workflows in JSON
47
47
}
48
48
```
49
49
50
+ ``` yaml
51
+ Id : HelloWorld
52
+ Version : 1
53
+ Steps :
54
+ - Id : Hello
55
+ StepType : MyApp.HelloWorld, MyApp
56
+ NextStepId : Bye
57
+ - Id : Bye
58
+ StepType : MyApp.GoodbyeWorld, MyApp
59
+ ` ` `
60
+
50
61
### Sample use cases
51
62
52
63
* New user workflow
Original file line number Diff line number Diff line change 1
1
# Workflow Core 2.0.0
2
2
3
+ ### Upgrade notes
4
+ Existing JSON definitions will be loaded as follows
5
+ ``` c#
6
+ using WorkflowCore .Services .DefinitionStorage ;
7
+ .. .
8
+ DefinitionLoader .LoadDefinition (json , Deserializers .Json );
9
+ ```
10
+
11
+
3
12
* Targets .NET Standard 2.0
4
13
5
14
The core library now targets .NET Standard 2.0, in order to leverage newer features.
You can’t perform that action at this time.
0 commit comments