WorkflowsModule

PackageFCQRS.Workflows
Registers workflows with an actor system.

Summary

NameSignatureSynopsis
runningrunning apiThe 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.
registerregister api definitionRegisters the workflow and returns its handle.
signalsignal handle id name payloadStores the signal `name` with a typed payload for the instance `id`.

running

running api
Member
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

NameTypeDescription
apiIActor

Returns

RunningAttempt list

register

register api definition
Member
Registers the workflow and returns its handle. Instances that were running when the process last stopped resume as soon as this is called.

Parameters

NameTypeDescription
apiIActor
definitionWorkflowDefinition<'Input, 'Result>

Returns

WorkflowHandle<'Input, 'Result>

signal

signal handle id name payload
Member
Stores the signal `name` with a typed payload for the instance `id`.

Parameters

NameTypeDescription
handleWorkflowHandle<'Input, 'Result>
idstring
namestring
payload'Signal

Returns

Async<unit>