Skip to content

Commit 47785d5

Browse files
committed
wip
1 parent a3a74b7 commit 47785d5

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public class MyWorkflow : IWorkflow
2525
}
2626
```
2727

28-
## JSON Workflow Definitions
28+
## JSON / YAML Workflow Definitions
2929

30-
Define your workflows in JSON
30+
Define your workflows in JSON or YAML
3131

3232
```json
3333
{
@@ -47,6 +47,17 @@ Define your workflows in JSON
4747
}
4848
```
4949

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+
5061
### Sample use cases
5162
5263
* New user workflow

ReleaseNotes/2.0.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Workflow Core 2.0.0
22

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+
312
* Targets .NET Standard 2.0
413

514
The core library now targets .NET Standard 2.0, in order to leverage newer features.

0 commit comments

Comments
 (0)