Workflow ES 2.1
Workflow ES 2.1
-
Fixed typescript 2.4 issue
-
Delay step
Put the workflow to sleep for a specifed number of milliseconds.
build(builder) {
builder
.startWith(HelloWorld)
.delay(data => 2000)
.then(GoodbyeWorld);
}
- Schedule step
Schedule a sequence of steps to execution asynchronously in the future.
build(builder) {
builder
.startWith(HelloWorld)
.schedule((data) => 20000).do((sequence) => sequence
.startWith(DoSomething)
.then(DoSomethingElse))
.then(ContinueWithSomething);
}