Skip to content

Commit 768ae3f

Browse files
committed
release notes
1 parent cafc452 commit 768ae3f

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

ReleaseNotes/1.3.2.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Workflow Core 1.3.2
2+
3+
* Added `WorkflowController` service
4+
5+
Use the `WorkflowController` service to control workflows without having to run an exection node.
6+
7+
```c#
8+
var controller = serviceProvider.GetService<IWorkflowController>();
9+
```
10+
11+
## Exposed methods
12+
* StartWorkflow
13+
* PublishEvent
14+
* RegisterWorkflow
15+
* SuspendWorkflow
16+
* ResumeWorkflow
17+
* TerminateWorkflow

src/samples/WorkflowCore.Sample13/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ public static void Main(string[] args)
1717

1818
//start the workflow host
1919
var host = serviceProvider.GetService<IWorkflowHost>();
20-
host.RegisterWorkflow<ParallelWorkflow, MyData>();
20+
var controller = serviceProvider.GetService<IWorkflowController>();
21+
controller.RegisterWorkflow<ParallelWorkflow, MyData>();
22+
2123
host.Start();
2224

2325
Console.WriteLine("Starting workflow...");
24-
host.StartWorkflow("parallel-sample");
26+
controller.StartWorkflow("parallel-sample");
2527

2628
Console.ReadLine();
2729
host.Stop();

0 commit comments

Comments
 (0)