WorkflowHostType

PackageFCQRS.Workflows
Registers C# workflows.

Specification

Kind
Type
Members
3
Examples
0
DefineSignature
WorkflowHost.Define(workflow)
RegisterSignature
WorkflowHost.Register(actor, workflow)
RunningSignature
WorkflowHost.Running(actor)

Summary

NameSignatureSynopsis
DefineWorkflowHost.Define(workflow)The workflow as a definition F# code can register, start as a child, or put in a stream.
RegisterWorkflowHost.Register(actor, workflow)Registers the workflow with the actor system and returns its client.
RunningWorkflowHost.Running(actor)The step attempts this process is running, oldest first, as `Workflows.running` lists them.

Define

WorkflowHost.Define(workflow)
Member
The workflow as a definition F# code can register, start as a child, or put in a stream.

Parameters

NameTypeDescription
workflowWorkflow<'TInput, 'TResult>

Returns

WorkflowDefinition<'TInput, 'TResult>

Register

WorkflowHost.Register(actor, workflow)
Member
Registers the workflow with the actor system and returns its client. Instances that were running when the process last stopped resume as soon as this is called.

Parameters

NameTypeDescription
actorIActor
workflowWorkflow<'TInput, 'TResult>

Returns

IWorkflowClient<'TInput, 'TResult>

Running

WorkflowHost.Running(actor)
Member
The step attempts this process is running, oldest first, as `Workflows.running` lists them. An attempt stays listed until its call returns, also after its token was cancelled. 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
actorIActor

Returns

IReadOnlyList<RunningAttempt>