WorkflowsModule
PackageFCQRS.Workflows
Registers workflows with an actor system.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| running | running api | The step attempts this process is running, oldest first: each activity call, command waiting for its reply, and child start, with its workflow, instance, step, attempt, and start time. |
| register | register api definition | Registers the workflow and returns its handle. |
| signal | signal handle id name payload | Stores the signal `name` with a typed payload for the instance `id`. |
The step attempts this process is running, oldest first: each activity call, command
waiting for its reply, and child start, with its workflow, instance, step, attempt, and
start time. An attempt stays listed until its call returns, also after its token was
cancelled, so a long-cancelled entry names a call that ignores its token. When the actor
system shuts down, it waits up to `akka.fcqrs.workflow-drain-timeout` (three seconds) for
these calls, and logs a warning for each one still running.
Parameters
| Name | Type | Description |
|---|---|---|
| api | IActor |
Returns
RunningAttempt list
Registers the workflow and returns its handle. Instances that were running when the
process last stopped resume as soon as this is called.
Parameters
| Name | Type | Description |
|---|---|---|
| api | IActor | |
| definition | WorkflowDefinition<'Input, 'Result> |
Returns
WorkflowHandle<'Input, 'Result>