StellaOps.Workflow.Abstractions

Workflow abstractions: the declaration API that workflow definitions are written against and the extension points of the workflow engine.

library
Component
Workflow
Licence
BUSL-1.1 (Workflow licence)
Target framework
net10.0
Latest release
1.0.1-20261118T121708Z

Install

dotnet add package StellaOps.Workflow.Abstractions --version 1.0.1-20261118T121708Z

Namespaces

NamespaceTypes
StellaOps.Workflow.Abstractions284

namespace StellaOps.Workflow.Abstractions

TypeKindDescription
ActorContextWorkflowCallerIdentityAccessorclassDefault accessor: the caller the local HTTP endpoints put on the actor context; restore is a no-op.
DefaultWorkflowCancellationCleanupPolicyclassStarts the cleanup workflow whenever the cancel request names one.
EndpointAddressclassAddress of an HTTP endpoint of a named service ("$type": "endpoint"): the host resolves EndpointAddress.ServiceNameto a base address and calls EndpointAddress.Pathwith EndpointAddress.Method.
GraphqlAddressclassThe address of a GraphQL query ("$type": "graphql"): a named target and the query.
HttpAddressclassThe address of a call of a named HTTP target ("$type": "http").
IDeclarativeWorkflowinterfaceA workflow defined with the declarative builder.
IDeclarativeWorkflow<TStartRequest>interfaceA declarative workflow whose start request binds to TStartRequest.
INamedWorkflowRenderGraphLayoutEngineinterfaceA layout engine with a provider name, which WorkflowRendering:LayoutProvider selects.
IWorkflowinterfaceThe contract every registrable workflow implements: its identity, the roles allowed to act on it, and the tasks it declares.
IWorkflow<TStartRequest>interfaceA workflow whose start payload binds to TStartRequest.
IWorkflowActorRoleResolverinterfaceResolves the authenticated actor’s identity (ID + roles) from the server-side request context.
IWorkflowAssignmentPermissionEvaluatorinterfaceDecides whether an actor may take an action on a task.
IWorkflowBackendRegistrationMarkerinterfaceRegistered by a store library.
IWorkflowCallerIdentityAccessorinterfaceThe host’s view of who is calling.
IWorkflowCancellationCleanupPolicyinterfaceDecides whether cancelling an instance starts the cleanup workflow the cancel request names.
IWorkflowCanonicalDefinitionApiinterfaceCanonical workflow definition operations: retrieving the JSON schema and validating canonical definition payloads.
IWorkflowChildLinkStoreinterfaceDurable child-workflow links.
IWorkflowDefinitionCataloginterfaceThe definition descriptors of the registered workflows.
IWorkflowDefinitionDeploymentApiinterfaceWorkflow definition deployment operations: export, import, activate, version listing, single definition lookup, and rendering.
IWorkflowDefinitionGovernanceStoreinterfaceA definition store that governs activations: the expected active version and hash, and authorized rollbacks.
IWorkflowDefinitionQueryApiinterfaceWorkflow definition query operations: listing registered workflow definitions.
IWorkflowDefinitionStoreinterfacePersistent store for versioned canonical workflow definitions.
IWorkflowDiagramApiinterfaceWorkflow diagram operations: retrieving the visual graph representation of a workflow.
IWorkflowDurableMaintenanceStoreinterfaceIntegrity probes over the durable execution rows, for scheduled maintenance.
IWorkflowDurableStartStoreinterfaceDurable start coordination: start receipts, prestart terminal fences and the terminal inbox.
IWorkflowEndpointTransportinterfaceCalls an HTTP endpoint of a named service ("$type": "endpoint").
IWorkflowExecutionConsoleReadStoreinterfaceRead-only queries behind the execution console.
IWorkflowExecutionHandlerinterfaceRuns a workflow: starts instances and completes their tasks.
IWorkflowExecutionHandlerCataloginterfaceFinds the execution handler of a workflow version.
IWorkflowExternalActivityRegistryinterfaceThe external activities the host’s signed manifest registers.
IWorkflowExternalActivityStoreinterfaceDurable external activities: steps, attempts, the dispatch and cancel outboxes, the completion inbox, continuation lineages and scope reprocesses.
IWorkflowFirstSeenLedgerinterfaceThe insert-only record of every workflow an installation has registered in code or stored in the definition store: the engine’s technical counter of recorded workflow names.
IWorkflowFunctionCataloginterfaceThe expression functions the engine knows.
IWorkflowFunctionCatalogApiinterfaceWorkflow function catalog operations: retrieving the canonical function catalog and installed workflow modules.
IWorkflowFunctionProviderinterfaceProvides the functions of one module to the function catalog.
IWorkflowFunctionRuntimeinterfaceEvaluates expression function calls.
IWorkflowFunctionRuntimeProviderinterfaceEvaluates the functions of one module.
IWorkflowGraphqlTransportinterfaceRuns GraphQL queries against named targets: the transport of a graphql address.
IWorkflowHistoryStoreinterfaceDurable execution history.
IWorkflowHostedJobLockServiceinterfaceA lock that lets one service instance at a time run a hosted job.
IWorkflowHttpTransportinterfaceCalls named HTTP targets: the transport of an http address.
IWorkflowMapStoreinterfaceDurable maps: map executions and their items.
IWorkflowModuleCataloginterfaceThe installed modules: those registered with WorkflowModuleCatalogServiceCollectionExtensions.AddWorkflowModule(IServiceCollection, string, string)and those the function providers declare.
IWorkflowMutationCoordinatorinterfaceBegins the change scopes of the workflow store.
IWorkflowMutationScopeinterfaceA unit of workflow store changes that commit together.
IWorkflowMutationScopeAccessorinterfaceHolds the change scope of the running operation.
IWorkflowOutboxStoreinterfaceDelivery side of the durable outboxes: read what is ready, record each attempt, and compact what was delivered long ago.
IWorkflowPendingSignalDispatcherinterfaceDispatches a pending signal that is not a plain signal-bus publish, such as a durable map completion or an external activity dispatch.
IWorkflowProjectionRetentionStoreinterfaceApplies retention to the instance and task projections.
IWorkflowProjectionStoreinterfaceThe read model of instances and tasks, and the task operations that change it.
IWorkflowRabbitTransportinterfacePublishes to RabbitMQ: the transport of a rabbit address.
IWorkflowRegisteredSignalStoreinterfaceDurable registered signals: waits, their deadline timers and the signal inbox.
IWorkflowRegistrationCataloginterfaceThe workflows registered in code.
IWorkflowRenderGraphCompilerinterfaceBuilds the render graph of a workflow definition.
IWorkflowRenderGraphLayoutEngineinterfaceLays out a workflow render graph.
IWorkflowRenderLayoutEngineResolverinterfaceSelects the layout engine of a render request.
IWorkflowRenderSvgRendererinterfaceRenders a positioned workflow diagram as an SVG document.
IWorkflowRetentionApiinterfaceWorkflow retention operations: running cleanup and purge of stale workflow data.
IWorkflowRuntimeApiinterfaceCore workflow runtime operations: starting workflows, querying instances and tasks, completing/assigning/releasing tasks, and raising external signals.
IWorkflowRuntimeDefinitionStoreinterfaceThe workflows registered in code, as the engine runs them.
IWorkflowRuntimeExecutionHandlerFactoryinterfaceCreates the execution handler of a runtime definition.
IWorkflowRuntimeOrchestratorinterfaceRuns the instances of a runtime provider: start, task completion and signal resume.
IWorkflowRuntimeProviderinterfaceA runtime orchestrator with a provider name.
IWorkflowRuntimeStateStoreinterfaceStores the runtime state of instances.
IWorkflowScheduleBusinterfaceSchedules signals for later.
IWorkflowServiceMetadataApiinterfaceWorkflow service metadata operations: retrieving operational metadata about the running workflow service instance.
IWorkflowSignalBusinterfacePublishes and delivers the signals of workflow instances.
IWorkflowSignalClaimStoreinterfaceClaims stored signals for processing.
IWorkflowSignalDeadLetterApiinterfaceWorkflow signal dead-letter operations: listing and replaying dead-lettered signals.
IWorkflowSignalDeadLetterStoreinterfaceLists and replays the dead-lettered signals of a store.
IWorkflowSignalDriverinterfaceWakes the signal consumers when a signal is stored, and hands them signals to process.
IWorkflowSignalDriverRegistrationMarkerinterfaceRegistered by a signal driver library.
IWorkflowSignalLeaseinterfaceA claimed signal: complete it when it is processed, abandon it to let it be claimed again, or dead-letter it.
IWorkflowSignalProcessorinterfaceApplies a signal to its workflow instance.
IWorkflowSignalPumpTelemetryApiinterfaceWorkflow signal pump telemetry operations: retrieving in-process statistics for the workflow signal pump.
IWorkflowSignalResumableExecutionHandlerinterfaceAn execution handler that also resumes instances with signals.
IWorkflowSignalSchedulerinterfaceSchedules signals for later, such as the signal of a timer.
IWorkflowSignalStoreinterfaceStores signals and dead letters.
IWorkflowSourceFormatConverterinterfaceConverts workflow definitions between a source format and the canonical JSON shape used by the engine’s import / export pipeline.
IWorkflowSourceFormatRegistryinterfaceResolves converters by IWorkflowSourceFormatConverter.FormatId; used by the multi-format import / export endpoints to dispatch to the right converter.
IWorkflowSpecExecutionContextinterfaceThe execution context of a workflow, without its start request type.
IWorkflowStateJsonPolicyinterfaceChecks the workflow state JSON against the limits before it is stored.
IWorkflowWakeOutboxinterfaceThe outbox of wake notifications, for a driver whose dispatch mode is WorkflowSignalDriverDispatchMode.WakeOutbox.
IWorkflowWakeOutboxLeaseinterfaceA claimed wake notification of the outbox.
IWorkflowWakeOutboxReceiverinterfaceClaims the wake notifications of the outbox.
NoopWorkflowExecutionHandlerclassA placeholder handler for registrations whose steps the engine runs from their definition.
NullWorkflowActorRoleResolverclassDefault no-op resolver that passes through client-supplied values.
RabbitAddressclassThe address of a RabbitMQ call: the exchange and routing key the message is published to.
RequiredPayloadKeyCancellationCleanupPolicyclassStarts the cleanup workflow only when the cleanup payload carries a non-empty value under a required key: without it there is nothing to clean up.
WorkflowActivateTaskStepDefinition<TStartRequest>recordOpens a declared human task.
WorkflowActivityAttemptrecordOne semantic attempt of a step, with its frozen request and how it completed.
WorkflowActivityCancelEntryrecordAn activity cancel request waiting in, or delivered from, the cancel outbox.
WorkflowActivityCompletionEntryrecordA received activity completion and the disposition it was recorded with.
WorkflowActivityDispatchEntryrecordAn activity dispatch request waiting in, or delivered from, the dispatch outbox.
WorkflowActivityEventAppendrecordAn execution-history event to append.
WorkflowActivityMapItemStaterecordThe status fields of a map item that a stop may skip.
WorkflowActivityMapItemStatusChangerecordA map item moved to a terminal status; applied only at WorkflowActivityMapItemStatusChange.ExpectedVersionNo.
WorkflowActivityMapStaterecordThe status fields of a map execution that a stop may fence.
WorkflowActivityMapStatusChangerecordA map execution moved to a terminal status; applied only at WorkflowActivityMapStatusChange.ExpectedVersionNo.
WorkflowActivityRuntimeChangerecordA runtime-state version bump, applied only when the stored version still equals WorkflowActivityRuntimeChange.ExpectedVersion.
WorkflowActivityRuntimeStaterecordThe runtime-state fields the activity services read: the execution version and its snapshot.
WorkflowActivitySteprecordOne logical external-activity step: its binding, current attempt, retry and cancel fences.
WorkflowActivityStepChangerecordA changed step, written only when its stored version still equals WorkflowActivityStepChange.ExpectedVersionNo.
WorkflowActivityStopTargetKindenumWhat a stop request targets.
WorkflowAssignmentPermissionContextrecordWhat a permission check knows about a task action.
WorkflowAssignmentPermissionDecisionrecordThe outcome of a permission check.
WorkflowBackendConfigurationExtensionsclassReads the configured workflow backend.
WorkflowBackendNamesclassThe names of the durable stores, for WorkflowBackend:Provider.
WorkflowBackendOptionsclassThe workflow store the host uses (WorkflowBackend).
WorkflowBackendRegistrationMarkerrecordThe registration marker of a store library.
WorkflowBusinessIdAttributeclassMarks the property of a start request whose value is the business reference key of the instance.
WorkflowBusinessReferenceAssignmentStepDefinition<TStartRequest>recordSets the business reference of the instance.
WorkflowBusinessReferenceExtensionsclassBuilds, normalizes and compares business references.
WorkflowBusinessReferencePartAttributeclassMarks a property of a start request as a part of the business reference of the instance.
WorkflowCallerrecordA workflow’s caller: the user its service calls go as, with the roles the caller’s token carried.
WorkflowCallerSnapshotclassReads and writes the caller kept in an engine runtime snapshot and carried in signal payloads.
WorkflowCancellationCleanupPolicyServiceCollectionExtensionsclassRegisters the rule that decides whether cancelling an instance starts its cleanup workflow.
WorkflowCanonicalCompilationResultrecordThe outcome of compiling a C# workflow to a canonical definition.
WorkflowCanonicalDefinitionCompilerclassCompiles C# workflows to canonical definitions at runtime.
WorkflowCanonicalDefinitionValidatorclassValidates canonical definitions and their parts (WFVAL codes).
WorkflowCanonicalEvaluationContextrecordWhat a canonical expression reads: the roots of its paths, and the function runtime.
WorkflowCanonicalExpressionRuntimeclassEvaluates canonical expressions.
WorkflowCanonicalImportValidationResultrecordThe outcome of validating a canonical definition for import.
WorkflowCanonicalImportValidatorclassValidates canonical definitions before an import.
WorkflowCanonicalResultReferencesclassFinds the step results a canonical definition reads through result.<key> paths.
WorkflowCanonicalTemplateBindingsclassThe token values of a canonical definition template.
WorkflowCanonicalTemplateLoaderclassLoads canonical definitions from embedded JSON templates whose {{token}} placeholders take bound JSON values.
WorkflowCanonicalValidationErrorrecordA finding of the canonical definition validation.
WorkflowCanonicalValidationResultrecordThe outcome of a canonical definition validation.
WorkflowCanonicalizationDiagnosticrecordWhy a part of a C# workflow has no canonical form.
WorkflowChildFamilyRetentionclassThe retention rule for executions joined by child links.
WorkflowChildLinkrecordThe durable link between a parent step and the child workflow execution it started.
WorkflowChildLinkRetentionRowrecordOne parent-to-child execution link, as the retention pass reads it.
WorkflowCompleteStepDefinition<TStartRequest>recordCompletes the instance.
WorkflowConditionDefinition<TStartRequest>classA condition of a decision.
WorkflowConditionalStepDefinition<TStartRequest>recordBranches on a condition.
WorkflowConsoleAttemptRecordrecordAn attempt of an external activity step, as the console returns it.
WorkflowConsoleDeliveryRecordrecordOne activity delivery: a dispatch (DISPATCH, its delivery state, created and published times) or a completion (COMPLETION, its disposition, received and applied times).
WorkflowConsoleExecutionRecordrecordAn execution as the console reads it: the instance projection’s identity, status, state and history position.
WorkflowConsoleMapItemRecordrecordA map item row, as the console returns it.
WorkflowConsoleMapRecordrecordA map execution row.
WorkflowConsoleScopeRecordrecordA scope execution row.
WorkflowConsoleStepRecordrecordAn external activity step row, as the console returns it.
WorkflowContentHasherclassComputes a deterministic content hash for canonical workflow definitions.
WorkflowContinuationLineagerecordA provider continuation an attempt left behind, consumed by the next attempt or revoked by a cancel.
WorkflowContinuationLineageChangerecordA changed lineage, written only when its stored version still equals WorkflowContinuationLineageChange.ExpectedVersionNo.
WorkflowContinuationPlanrecordA workflow a plan starts next, at once or at a due time.
WorkflowContinueWithStepDefinition<TStartRequest>recordStarts another workflow as an independent instance and continues at once.
WorkflowCoreFunctionProviderclassProvides the core expression functions (module workflow.functions.core).
WorkflowDecisionStepDefinition<TStartRequest>recordBranches on a value condition.
WorkflowDefinitionActivationRecordrecordA governed activation.
WorkflowDefinitionRecordrecordA versioned, persisted canonical workflow definition record.
WorkflowEndpointCallStepDefinition<TStartRequest>recordDefines a transport call of an HTTP endpoint of a named service.
WorkflowExecutionActorContextclassPropagates the authenticated actor ID through async workflow execution chains (e.g., OnComplete -> Call -> transport) where the original request context is not available.
WorkflowExecutionTaskPlanrecordA human task a plan opens.
WorkflowExprclassBuilds the expressions of canonical workflow definitions.
WorkflowExpressionConditionDefinition<TStartRequest>classA condition evaluated by a delegate, with its expression when it has one.
WorkflowExternalActivityRegistrationrecordAn external activity of the signed registry manifest.
WorkflowExternalActivityStepDefinition<TStartRequest>recordRuns an external activity of the host’s signed registry.
WorkflowExternalActivityWriterecordThe changes one external-activity decision makes, written atomically.
WorkflowExternalSignalStepDefinition<TStartRequest>recordPauses the instance until a caller raises the signal for it.
WorkflowFailureHandlers<TStartRequest>recordThe failure and timeout branches of a step.
WorkflowFirstSeenIdentityclassThe identity of a workflow in the first-seen ledger.
WorkflowFirstSeenRecordrecordA workflow in the first-seen ledger, as first seen.
WorkflowFirstSeenSourcesclassWhere the ledger first saw a workflow.
WorkflowFlowBuilder<TStartRequest>classAdds the steps of a flow: the first steps of a workflow (StartWith), the completion steps of a task (OnComplete) and the branches of decisions, calls, loops and forks.
WorkflowForkStepDefinition<TStartRequest>recordRuns its branches concurrently.
WorkflowFunctionArgumentsclassArgument access for workflow function providers: an exact arity check, then the argument by position.
WorkflowFunctionCatalogclassThe function catalog: the functions of every provider, ordered by module and name.
WorkflowFunctionCatalogServiceCollectionExtensionsclassRegisters the function catalog and the function providers that workflow expressions call.
WorkflowFunctionDescriptorsclassBuilds the catalog descriptor of a deterministic workflow function with one example.
WorkflowGraphqlCallStepDefinition<TStartRequest>recordDefines a transport call to a GraphQL endpoint.
WorkflowHandledBranchActionenumWhat a call does on a failure or a timeout when no branch is given.
WorkflowHistoryCompactionResultrecordThe outcome of a history compaction.
WorkflowHistoryCursorrecordThe history position of an execution: the first sequence still stored, the next one to allocate, and the retention flags that decide whether its prefix may be compacted.
WorkflowHistoryEventrecordOne durable execution-history event, as the history store returns it.
WorkflowHttpCallStepDefinition<TStartRequest>recordDefines a transport call to an HTTP endpoint.
WorkflowHumanTaskclassStarts the definition of a human task.
WorkflowHumanTaskBuilder<TStartRequest>classBuilds a human task: its payload, roles, route, timeout and completion steps.
WorkflowHumanTaskDefinition<TStartRequest>classDefines a human task (user task) within a workflow.
WorkflowInlineStepDefinition<TStartRequest>recordRuns C# code with the inline step services.
WorkflowInlineStepServicesclassThe transports an inline step (Run) can call.
WorkflowInstalledModulerecordA function module installed in the engine.
WorkflowJsonExtensionsclassReads, converts and writes the JSON values of workflow state, payloads and results.
WorkflowMapExecutionChangerecordA changed map execution, written only when its stored version still equals WorkflowMapExecutionChange.ExpectedVersionNo.
WorkflowMapExecutionRecordrecordOne durable map execution: its frozen plan, bounds, fan-in and failure policies and status.
WorkflowMapItemChangerecordA changed map item, written only when its stored version still equals WorkflowMapItemChange.ExpectedVersionNo.
WorkflowMapItemRecordrecordOne item of a map: its descriptor, claim lease and fence, progress state and terminal outcome.
WorkflowMapStepDefinition<TStartRequest>recordRuns its body once per item of a collection.
WorkflowMapWriterecordThe changes one map decision makes, written atomically.
WorkflowModuleCatalogServiceCollectionExtensionsclassRegisters the module catalog and installed modules.
WorkflowModuleRequirementValidationErrorrecordA finding of a module requirement check.
WorkflowModuleVersionExpressionclassParses module version expressions such as >=1.0.0 <2.0.0.
WorkflowModuleVersionOperatorenumThe comparison of a module version clause.
WorkflowModuleVersionRequirementrecordA module version requirement: every clause must hold.
WorkflowModuleVersionRequirementClauserecordOne clause of a module version requirement.
WorkflowModuleVersioningclassChecks module requirements against the installed modules.
WorkflowOutboxEntryrecordOne outbox message waiting for delivery.
WorkflowOutboxKindenumThe durable outboxes an integration publisher drains.
WorkflowOutboxMessagerecordA message appended to the durable outbox in the same write as the state change it announces.
WorkflowPendingSignalPlanrecordA signal a plan waits for or sends.
WorkflowPrestartTerminalFencerecordA terminal command that arrived before its start request: the start is fenced and never creates a root.
WorkflowProjectionRetentionBatchrecordThe outcome of one retention pass over the projections.
WorkflowRabbitCallStepDefinition<TStartRequest>recordDefines a RabbitMQ call: a message published to an exchange with a routing key and, for a command-style peer, a command that may wait for a correlated reply.
WorkflowReferenceclassRefers to the workflow a sub-workflow or continue-with step runs.
WorkflowRegisteredSignalInboxEntryrecordA received external signal, kept for exact replay and for a wait registered after it arrived.
WorkflowRegisteredSignalWaitrecordA registered wait for one external signal, raced by its deadline timer.
WorkflowRegisteredSignalWriterecordThe changes one registered-signal operation makes, written atomically.
WorkflowRegistrationrecordA registered workflow: its definition, its start request type and its execution handler.
WorkflowRegistrationServiceCollectionExtensionsclassRegisters workflow definitions: each registration records the definition, its start request type and, when given, its execution handler.
WorkflowRenderEdgerecordAn edge of a render graph, before layout.
WorkflowRenderEdgeSectionrecordA routed section of an edge.
WorkflowRenderGraphrecordThe nodes and edges of a workflow diagram, before layout.
WorkflowRenderLayoutDirectionenumThe direction of the flow in a diagram.
WorkflowRenderLayoutEffortenumHow hard the layout works on node order and placement.
WorkflowRenderLayoutProviderNamesclassThe layout provider names.
WorkflowRenderLayoutRequestrecordThe settings of a layout.
WorkflowRenderLayoutResultrecordA laid-out diagram: positioned nodes and routed edges.
WorkflowRenderNoderecordA node of a render graph, before layout.
WorkflowRenderPointrecordA point of a laid-out diagram.
WorkflowRenderPortrecordA port of a render node.
WorkflowRenderPositionedNoderecordA positioned node.
WorkflowRenderPositionedPortrecordA positioned port.
WorkflowRenderRoutedEdgerecordA routed edge.
WorkflowRenderingOptionsclassThe layout engine of rendered workflow diagrams (WorkflowRendering).
WorkflowRepeatStepDefinition<TStartRequest>recordRuns its body while a condition holds, at most a number of times.
WorkflowRetentionOverriderecordOptional override passed from the admin UI to bypass the projection’s pre-computed StaleAfterUtc / PurgeAfterUtc values and force retention based on the instance’s age directly.
WorkflowRootExecutionStartrecordThe rows a committed start creates for its root execution: the instance, its runtime state, the root scope, the open association and the first history event (sequence 1).
WorkflowRuntimeDefinitionrecordA workflow the engine can run: its registration, descriptor and, for a declarative workflow, its canonical definition.
WorkflowRuntimeExecutionKindenumHow the engine runs a registered workflow.
WorkflowRuntimeExecutionResultrecordThe outcome of a runtime step of an instance.
WorkflowRuntimePayloadKeysclassThe payload keys the engine reserves.
WorkflowRuntimeProviderNamesclassThe names of the runtime providers.
WorkflowRuntimeStateConcurrencyExceptionclassRaised when a runtime state write loses its version check: another write changed the instance first.
WorkflowRuntimeStateRecordrecordThe runtime state of an instance, versioned for optimistic concurrency.
WorkflowScopeReprocessrecordAn operator request to run a scope again as a tagged successor occurrence.
WorkflowSignalDeadlineTimerrecordThe deadline timer of a registered wait.
WorkflowSignalDriverConfigurationExtensionsclassReads the configured signal driver.
WorkflowSignalDriverDispatchModeenumWhen the engine tells the signal driver that a signal is available.
WorkflowSignalDriverNamesclassThe names of the signal drivers, for WorkflowSignalDriver:Provider.
WorkflowSignalDriverOptionsclassThe signal driver the host uses (WorkflowSignalDriver).
WorkflowSignalDriverRegistrationMarkerrecordThe registration marker of a signal driver.
WorkflowSignalEnveloperecordA signal for a workflow instance, as the signal store keeps it.
WorkflowSignalExecutionContextrecordWhat the runtime gets to resume an instance with a signal.
WorkflowSignalPayloadKeysclassThe payload keys of the engine’s own signals.
WorkflowSignalResumeContextrecordWhat an execution handler gets to resume an instance with a signal.
WorkflowSignalTypesclassThe types of the engine’s signals.
WorkflowSignalWakeNotificationrecordTells signal consumers that a signal is available.
WorkflowSourceExportResultrecordA definition converted to a source format.
WorkflowSourceFormatDiagnosticrecordA finding of a source format conversion.
WorkflowSourceFormatDiagnosticSeverityenumThe severity of a conversion finding.
WorkflowSourceImportResultrecordResult of converting external content into canonical form.
WorkflowSpecclassStarts a declarative workflow definition.
WorkflowSpec<TStartRequest>classA declarative workflow definition: the initial state, the tasks and the first steps.
WorkflowSpecBuilder<TStartRequest>classBuilds a declarative workflow definition: the initial state, the tasks and the first steps.
WorkflowSpecExecutionContext<TStartRequest>classWhat the delegates of a workflow see: the start request, state, payload, kept results and business reference of the instance.
WorkflowStartExecutionContextrecordWhat an execution handler gets to start an instance.
WorkflowStartExecutionPlanrecordWhat starting an instance does: its status, state, tasks, signals and continuations.
WorkflowStartReceiptrecordThe durable decision taken for one start request, with the canonical result once there is one.
WorkflowStateAssignmentStepDefinition<TStartRequest>recordSets a state value.
WorkflowStateJsonPolicyclassThe state limits of WorkflowRuntime:StateJson.
WorkflowStateJsonPolicyOptionsclassLimits of the workflow state JSON (WorkflowRuntime:StateJson).
WorkflowStepDefinition<TStartRequest>recordA step of a workflow, as the builder produces it.
WorkflowStepSequence<TStartRequest>classA sequence of steps.
WorkflowStoreConcurrencyExceptionclassA durable store refused a write because the row changed since it was read (version or fence mismatch).
WorkflowStoreDuplicateExceptionclassA durable store refused a write because a row with the same key already exists.
WorkflowSubWorkflowStepDefinition<TStartRequest>recordRuns another workflow as a child and waits for it.
WorkflowTaskActionenumAn action on a human task that needs permission.
WorkflowTaskCompletionPlanrecordWhat completing a task or resuming an instance does.
WorkflowTaskExecutionContextrecordWhat an execution handler gets to complete a task.
WorkflowTerminalInboxEntryrecordA received prestart terminal command and the acknowledgement it was answered with, for exact replay.
WorkflowTerminateForkStepDefinition<TStartRequest>recordEnds the fork whose branch reaches it.
WorkflowTimeoutDefaultsclassDefault timeout values used across the workflow engine when no explicit timeout is specified.
WorkflowTimerDelayclassThe delay of a timer step (Wait(stepName, delayExpression)), from the value its delay expression evaluates to; both runtime providers read a delay this way.
WorkflowTimerStepDefinition<TStartRequest>recordPauses the instance for a delay.
WorkflowTrustedAssemblyAttributeclassMarks an assembly as a trusted workflow-authoring assembly for the workflow canonicality analyzer (WF001-WF010).
WorkflowValuestructOne workflow value; converting it to a type it cannot take raises the missing-value error.
WorkflowValueConditionDefinition<TStartRequest>classA condition that a payload or state value equals a value.
WorkflowValueDictionarystructWorkflow values by key; a missing key raises an error that names the key and the workflow.
WorkflowValueEqualsConditionDefinitionrecordA condition that a payload or state value equals a value.
WorkflowValueNotFoundExceptionclassRaised when a workflow value is missing or cannot take the requested type.
WorkflowValueSourceenumWhere a value condition reads its value.
WorkflowVersioningclassParses and compares semantic workflow versions (major.minor.patch).
WorkflowWebserviceServiceCollectionExtensionsclassExtension methods for registering workflow webservice API implementations in DI.

class ActorContextWorkflowCallerIdentityAccessor

public sealed class ActorContextWorkflowCallerIdentityAccessor : IWorkflowCallerIdentityAccessor

Default accessor: the caller the local HTTP endpoints put on the actor context; restore is a no-op.

Members

MemberKindSummary
ActorContextWorkflowCallerIdentityAccessor(WorkflowExecutionActorContext)constructorDefault accessor: the caller the local HTTP endpoints put on the actor context; restore is a no-op.
Current()methodThe caller of the request being handled, or null outside a request.
Restore(WorkflowCaller)methodMakes the stored caller the ambient caller when no request is being handled.

constructor ActorContextWorkflowCallerIdentityAccessor(WorkflowExecutionActorContext) #

public ActorContextWorkflowCallerIdentityAccessor(WorkflowExecutionActorContext executionActorContext)

Default accessor: the caller the local HTTP endpoints put on the actor context; restore is a no-op.

method Current() #

public WorkflowCaller? Current()

The caller of the request being handled, or null outside a request.

method Restore(WorkflowCaller) #

public void Restore(WorkflowCaller? caller)

Makes the stored caller the ambient caller when no request is being handled.

class DefaultWorkflowCancellationCleanupPolicy

public sealed class DefaultWorkflowCancellationCleanupPolicy : IWorkflowCancellationCleanupPolicy

Starts the cleanup workflow whenever the cancel request names one.

Members

MemberKindSummary
DefaultWorkflowCancellationCleanupPolicy()constructorCreates an instance of DefaultWorkflowCancellationCleanupPolicy.
ShouldStartCleanup(WorkflowCancelRequest)methodWhether cancelling starts the cleanup workflow of the request.

constructor DefaultWorkflowCancellationCleanupPolicy() #

public DefaultWorkflowCancellationCleanupPolicy()

Creates an instance of DefaultWorkflowCancellationCleanupPolicy.

method ShouldStartCleanup(WorkflowCancelRequest) #

public bool ShouldStartCleanup(WorkflowCancelRequest request)

Whether cancelling starts the cleanup workflow of the request.

Parameters

  • request: The cancel request.

Returns

Whether to start it.

class EndpointAddress

public sealed class EndpointAddress

Address of an HTTP endpoint of a named service ("$type": "endpoint"): the host resolves EndpointAddress.ServiceNameto a base address and calls EndpointAddress.Pathwith EndpointAddress.Method.

Members

MemberKindSummary
EndpointAddress(string, string, string)constructorCreates the address.
MethodpropertyThe HTTP method.
PathpropertyThe path.
ServiceNamepropertyThe service.

constructor EndpointAddress(string, string, string) #

public EndpointAddress(string serviceName, string path, string method = "POST")

Creates the address.

Parameters

  • serviceName: The service.
  • path: The path.
  • method: The HTTP method, upper-cased; POST by default.

Exceptions

  • ArgumentException: A required value is empty or white space.

property Method #

public string Method { get; }

The HTTP method.

property Path #

public string Path { get; }

The path.

property ServiceName #

public string ServiceName { get; }

The service.

class GraphqlAddress

public sealed class GraphqlAddress

The address of a GraphQL query ("$type": "graphql"): a named target and the query.

Members

MemberKindSummary
GraphqlAddress(string, string, string)constructorCreates the address.
OperationNamepropertyThe operation to run.
QuerypropertyThe GraphQL query.
TargetpropertyThe GraphQL target.

constructor GraphqlAddress(string, string, string) #

public GraphqlAddress(string target, string query, string? operationName = null)

Creates the address.

Parameters

  • target: The GraphQL target, as the transport configuration names it.
  • query: The GraphQL query.
  • operationName: The operation to run, for a query document with several.

Exceptions

  • ArgumentException: A required value is empty or white space.

property OperationName #

public string? OperationName { get; }

The operation to run.

property Query #

public string Query { get; }

The GraphQL query.

property Target #

public string Target { get; }

The GraphQL target.

class HttpAddress

public sealed class HttpAddress

The address of a call of a named HTTP target ("$type": "http").

Members

MemberKindSummary
HttpAddress(string, string, string)constructorCreates the address.
MethodpropertyThe HTTP method.
PathpropertyThe path.
TargetpropertyThe HTTP target.

constructor HttpAddress(string, string, string) #

public HttpAddress(string target, string path, string method = "POST")

Creates the address.

Parameters

  • target: The HTTP target, as the transport configuration names it.
  • path: The path.
  • method: The HTTP method, upper-cased; POST by default.

Exceptions

  • ArgumentException: A required value is empty or white space.

property Method #

public string Method { get; }

The HTTP method.

property Path #

public string Path { get; }

The path.

property Target #

public string Target { get; }

The HTTP target.

interface IDeclarativeWorkflow

public interface IDeclarativeWorkflow : IWorkflow

A workflow defined with the declarative builder.

interface IDeclarativeWorkflow<TStartRequest>

public interface IDeclarativeWorkflow<TStartRequest> : IDeclarativeWorkflow, IWorkflow<TStartRequest> where TStartRequest : class

A declarative workflow whose start request binds to TStartRequest. The analyzer checks that its IDeclarativeWorkflow<TStartRequest>.Speccan be written as a canonical definition.

Type parameters

  • TStartRequest: The start request type.

Members

MemberKindSummary
SpecpropertyThe definition: the initial state, the tasks and the first steps.

property Spec #

WorkflowSpec<TStartRequest> Spec { get; }

The definition: the initial state, the tasks and the first steps. Write every value as a WorkflowExpr expression, so that the definition has a canonical form.

interface INamedWorkflowRenderGraphLayoutEngine

public interface INamedWorkflowRenderGraphLayoutEngine : IWorkflowRenderGraphLayoutEngine

A layout engine with a provider name, which WorkflowRendering:LayoutProvider selects.

Members

MemberKindSummary
ProviderNamepropertyThe provider name that selects the engine, compared ignoring case.

property ProviderName #

string ProviderName { get; }

The provider name that selects the engine, compared ignoring case.

interface IWorkflow

public interface IWorkflow

The contract every registrable workflow implements: its identity, the roles allowed to act on it, and the tasks it declares. WorkflowRegistrationServiceCollectionExtensionsreads these members to build the WorkflowDefinitionDescriptorfor the catalog.

Members

MemberKindSummary
DisplayNamepropertyThe title in lists and diagrams.
TaskspropertyThe task descriptors of the workflow.
WorkflowNamepropertyThe name that identifies the workflow; clients start it by this name.
WorkflowRolespropertyThe roles that may work the workflow’s tasks, unless a task names its own roles.
WorkflowVersionpropertyThe version of the definition.

property DisplayName #

string DisplayName { get; }

The title in lists and diagrams.

property Tasks #

IReadOnlyCollection<WorkflowTaskDescriptor> Tasks { get; }

The task descriptors of the workflow.

property WorkflowName #

string WorkflowName { get; }

The name that identifies the workflow; clients start it by this name.

property WorkflowRoles #

IReadOnlyCollection<string> WorkflowRoles { get; }

The roles that may work the workflow’s tasks, unless a task names its own roles.

property WorkflowVersion #

string WorkflowVersion { get; }

The version of the definition.

interface IWorkflow<TStartRequest>

public interface IWorkflow<TStartRequest> : IWorkflow where TStartRequest : class

A workflow whose start payload binds to TStartRequest. Declares no members of its own; registration resolves the start-request type from this interface.

interface IWorkflowActorRoleResolver

public interface IWorkflowActorRoleResolver

Resolves the authenticated actor’s identity (ID + roles) from the server-side request context. Implementations may query a database, read JWT claims, or fall back to client-supplied values.

Members

MemberKindSummary
ResolveActorId(string)methodReturns the actor ID for the current request.
ResolveActorRolesAsync(string, IReadOnlyCollection<string>, CancellationToken)methodResolves user roles from a trusted source (database, identity provider).

method ResolveActorId(string) #

string ResolveActorId(string? clientActorId)

Returns the actor ID for the current request. Implementations should prefer server-side identity over client-supplied values.

method ResolveActorRolesAsync(string, IReadOnlyCollection<string>, CancellationToken) #

Task<IReadOnlyCollection<string>> ResolveActorRolesAsync(string actorId, IReadOnlyCollection<string>? clientRoles, CancellationToken cancellationToken = default)

Resolves user roles from a trusted source (database, identity provider). Falls back to clientRoles when no server-side context is available (e.g., during signal pump processing).

interface IWorkflowAssignmentPermissionEvaluator

public interface IWorkflowAssignmentPermissionEvaluator

Decides whether an actor may take an action on a task. The default lets an actor in the task’s effective roles take the task and complete it, lets the assignee release and complete it, and refuses assignment to another user.

Members

MemberKindSummary
Evaluate(WorkflowAssignmentPermissionContext)methodDecides on an action.

method Evaluate(WorkflowAssignmentPermissionContext) #

WorkflowAssignmentPermissionDecision Evaluate(WorkflowAssignmentPermissionContext context)

Decides on an action.

Parameters

  • context: The action and the task.

Returns

The decision.

interface IWorkflowBackendRegistrationMarker

public interface IWorkflowBackendRegistrationMarker

Registered by a store library. ValidateWorkflowProviderRegistrations refuses a configured backend that no library registered.

Members

MemberKindSummary
BackendNamepropertyThe backend name, compared ignoring case with WorkflowBackend:Provider.

property BackendName #

string BackendName { get; }

The backend name, compared ignoring case with WorkflowBackend:Provider.

interface IWorkflowCallerIdentityAccessor

public interface IWorkflowCallerIdentityAccessor

The host’s view of who is calling. The engine keeps the caller with the instance (the user who started it, replaced by whoever completes one of its tasks) and, when it continues the instance without a request (timer, retry, signal, sub-workflow completion), restores that caller so transports call services as the same user.

Members

MemberKindSummary
Current()methodThe caller of the request being handled, or null outside a request.
Restore(WorkflowCaller)methodMakes the stored caller the ambient caller when no request is being handled.

method Current() #

WorkflowCaller? Current()

The caller of the request being handled, or null outside a request.

method Restore(WorkflowCaller) #

void Restore(WorkflowCaller? caller)

Makes the stored caller the ambient caller when no request is being handled.

interface IWorkflowCancellationCleanupPolicy

public interface IWorkflowCancellationCleanupPolicy

Decides whether cancelling an instance starts the cleanup workflow the cancel request names. The default starts it whenever one is named; a product registers its own rule (for example, only when the payload identifies the record to clean up) with WorkflowCancellationCleanupPolicyServiceCollectionExtensions.

Members

MemberKindSummary
ShouldStartCleanup(WorkflowCancelRequest)methodWhether cancelling starts the cleanup workflow of the request.

method ShouldStartCleanup(WorkflowCancelRequest) #

bool ShouldStartCleanup(WorkflowCancelRequest request)

Whether cancelling starts the cleanup workflow of the request.

Parameters

  • request: The cancel request.

Returns

Whether to start it.

interface IWorkflowCanonicalDefinitionApi

public interface IWorkflowCanonicalDefinitionApi

Canonical workflow definition operations: retrieving the JSON schema and validating canonical definition payloads.

Members

MemberKindSummary
GetSchemaAsync(CancellationToken)methodReturns the JSON schema of canonical definitions.
ValidateAsync(WorkflowCanonicalValidateRequest, CancellationToken)methodValidates a canonical definition without importing it.

method GetSchemaAsync(CancellationToken) #

Task<WorkflowCanonicalSchemaGetResponse> GetSchemaAsync(CancellationToken cancellationToken = default)

Returns the JSON schema of canonical definitions.

Parameters

  • cancellationToken: Cancels the operation.

Returns

The schema.

method ValidateAsync(WorkflowCanonicalValidateRequest, CancellationToken) #

Task<WorkflowCanonicalValidateResponse> ValidateAsync(WorkflowCanonicalValidateRequest request, CancellationToken cancellationToken = default)

Validates a canonical definition without importing it.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The findings.

interface IWorkflowChildLinkStore

public interface IWorkflowChildLinkStore

Durable child-workflow links. Every write is atomic with its outbox message.

Members

MemberKindSummary
GetAsync(string, CancellationToken)methodReads a child link.
InsertAsync(WorkflowChildLink, WorkflowOutboxMessage, CancellationToken)methodInserts the link and appends the message; throws WorkflowStoreDuplicateExceptionwhen the link exists.
UpdateAsync(WorkflowChildLink, long, WorkflowOutboxMessage, CancellationToken)methodReplaces the link when its stored version is expectedVersion and appends the message, if any; throws WorkflowStoreConcurrencyExceptionon a version mismatch.

method GetAsync(string, CancellationToken) #

Task<WorkflowChildLink?> GetAsync(string linkId, CancellationToken cancellationToken = default)

Reads a child link.

Parameters

  • linkId: The link.
  • cancellationToken: Cancels the operation.

Returns

The link, or null.

method InsertAsync(WorkflowChildLink, WorkflowOutboxMessage, CancellationToken) #

Task InsertAsync(WorkflowChildLink link, WorkflowOutboxMessage message, CancellationToken cancellationToken = default)

Inserts the link and appends the message; throws WorkflowStoreDuplicateExceptionwhen the link exists.

method UpdateAsync(WorkflowChildLink, long, WorkflowOutboxMessage, CancellationToken) #

Task UpdateAsync(WorkflowChildLink link, long expectedVersion, WorkflowOutboxMessage? message, CancellationToken cancellationToken = default)

Replaces the link when its stored version is expectedVersion and appends the message, if any; throws WorkflowStoreConcurrencyExceptionon a version mismatch.

interface IWorkflowDefinitionCatalog

public interface IWorkflowDefinitionCatalog

The definition descriptors of the registered workflows.

Members

MemberKindSummary
GetDefinition(string, string)methodFinds a descriptor.
GetDefinitions()methodReturns every descriptor.

method GetDefinition(string, string) #

WorkflowDefinitionDescriptor? GetDefinition(string workflowName, string? workflowVersion = null)

Finds a descriptor.

Parameters

  • workflowName: The workflow name.
  • workflowVersion: The version; the latest when not set.

Returns

The descriptor, or null.

method GetDefinitions() #

IReadOnlyCollection<WorkflowDefinitionDescriptor> GetDefinitions()

Returns every descriptor.

Returns

The descriptors.

interface IWorkflowDefinitionDeploymentApi

public interface IWorkflowDefinitionDeploymentApi

Workflow definition deployment operations: export, import, activate, version listing, single definition lookup, and rendering.

Members

MemberKindSummary
ActivateAsync(WorkflowDefinitionActivateRequest, CancellationToken)methodMakes a stored version the active version of its workflow.
ExportAsync(WorkflowDefinitionExportRequest, CancellationToken)methodExports a stored definition.
GetDefinitionByIdAsync(WorkflowDefinitionByIdRequest, CancellationToken)methodReads one definition: a code-registered workflow first, the store otherwise.
GetVersionsAsync(WorkflowDefinitionVersionsGetRequest, CancellationToken)methodLists the stored versions of a workflow.
ImportAsync(WorkflowDefinitionImportRequest, CancellationToken)methodImports a canonical definition as a new, inactive version.
RenderAsync(WorkflowRenderingRequest, CancellationToken)methodReads the stored rendering of a definition in one format.

method ActivateAsync(WorkflowDefinitionActivateRequest, CancellationToken) #

Task<WorkflowDefinitionActivateResponse> ActivateAsync(WorkflowDefinitionActivateRequest request, CancellationToken cancellationToken = default)

Makes a stored version the active version of its workflow.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The outcome of the activation.

method ExportAsync(WorkflowDefinitionExportRequest, CancellationToken) #

Task<WorkflowDefinitionExportResponse> ExportAsync(WorkflowDefinitionExportRequest request, CancellationToken cancellationToken = default)

Exports a stored definition.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The definition.

method GetDefinitionByIdAsync(WorkflowDefinitionByIdRequest, CancellationToken) #

Task<WorkflowDefinitionByIdResponse> GetDefinitionByIdAsync(WorkflowDefinitionByIdRequest request, CancellationToken cancellationToken = default)

Reads one definition: a code-registered workflow first, the store otherwise.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The definition.

method GetVersionsAsync(WorkflowDefinitionVersionsGetRequest, CancellationToken) #

Task<WorkflowDefinitionVersionsGetResponse> GetVersionsAsync(WorkflowDefinitionVersionsGetRequest request, CancellationToken cancellationToken = default)

Lists the stored versions of a workflow.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The versions.

method ImportAsync(WorkflowDefinitionImportRequest, CancellationToken) #

Task<WorkflowDefinitionImportResponse> ImportAsync(WorkflowDefinitionImportRequest request, CancellationToken cancellationToken = default)

Imports a canonical definition as a new, inactive version.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The outcome of the import.

method RenderAsync(WorkflowRenderingRequest, CancellationToken) #

Task<WorkflowRenderingResponse> RenderAsync(WorkflowRenderingRequest request, CancellationToken cancellationToken = default)

Reads the stored rendering of a definition in one format.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The rendering.

interface IWorkflowDefinitionGovernanceStore

public interface IWorkflowDefinitionGovernanceStore

A definition store that governs activations: the expected active version and hash, and authorized rollbacks.

Members

MemberKindSummary
ActivateGovernedAsync(WorkflowDefinitionActivationRecord, CancellationToken)methodActivates a version under the activation fence and the rollback rule, and records the activation for the audit.

method ActivateGovernedAsync(WorkflowDefinitionActivationRecord, CancellationToken) #

Task ActivateGovernedAsync(WorkflowDefinitionActivationRecord activation, CancellationToken cancellationToken = default)

Activates a version under the activation fence and the rollback rule, and records the activation for the audit.

Parameters

  • activation: The activation.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the version is active.

Exceptions

  • InvalidOperationException: The fence or the rollback rule refuses the activation; the message is the WORKFLOW_DEFINITION_* code.

interface IWorkflowDefinitionQueryApi

public interface IWorkflowDefinitionQueryApi

Workflow definition query operations: listing registered workflow definitions.

Members

MemberKindSummary
GetDefinitionsAsync(WorkflowDefinitionGetRequest, CancellationToken)methodLists workflow definitions.

method GetDefinitionsAsync(WorkflowDefinitionGetRequest, CancellationToken) #

Task<WorkflowDefinitionGetResponse> GetDefinitionsAsync(WorkflowDefinitionGetRequest request, CancellationToken cancellationToken = default)

Lists workflow definitions.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

A page of definitions.

interface IWorkflowDefinitionStore

public interface IWorkflowDefinitionStore

Persistent store for versioned canonical workflow definitions. The PostgreSQL backend (PostgresWorkflowDefinitionStore, registered by AddWorkflowPostgresDataStore) implements it, as does the MongoDB backend (MongoWorkflowDefinitionStore, registered by AddWorkflowMongoDataStore); the engine also offers InMemoryWorkflowDefinitionStore for a host or test that registers it. A host that registers no store keeps the engine’s NullWorkflowDefinitionStore, which stores nothing and refuses imports and activations; its workflows are the code-registered catalog only.

Members

MemberKindSummary
ActivateAsync(string, string, CancellationToken)methodSets a specific version as active for a workflow name.
FindByHashAsync(string, string, CancellationToken)methodFinds any definition record matching the given content hash, regardless of version.
GetActiveAsync(string, CancellationToken)methodGets the active definition for a workflow name.
GetAllActiveAsync(CancellationToken)methodGets all active definitions across all workflow names.
GetAsync(string, string, CancellationToken)methodGets a specific version of a workflow definition.
GetVersionsAsync(string, CancellationToken)methodGets all versions of a workflow definition, ordered by creation date descending.
UpsertAsync(WorkflowDefinitionRecord, CancellationToken)methodInserts or updates a definition record.

method ActivateAsync(string, string, CancellationToken) #

Task ActivateAsync(string workflowName, string version, CancellationToken cancellationToken = default)

Sets a specific version as active for a workflow name. Deactivates all other versions of the same workflow.

method FindByHashAsync(string, string, CancellationToken) #

Task<WorkflowDefinitionRecord?> FindByHashAsync(string workflowName, string contentHash, CancellationToken cancellationToken = default)

Finds any definition record matching the given content hash, regardless of version. Used to detect duplicate imports.

method GetActiveAsync(string, CancellationToken) #

Task<WorkflowDefinitionRecord?> GetActiveAsync(string workflowName, CancellationToken cancellationToken = default)

Gets the active definition for a workflow name. Returns null if no definition is stored for this workflow.

method GetAllActiveAsync(CancellationToken) #

Task<IReadOnlyCollection<WorkflowDefinitionRecord>> GetAllActiveAsync(CancellationToken cancellationToken = default)

Gets all active definitions across all workflow names.

method GetAsync(string, string, CancellationToken) #

Task<WorkflowDefinitionRecord?> GetAsync(string workflowName, string version, CancellationToken cancellationToken = default)

Gets a specific version of a workflow definition.

method GetVersionsAsync(string, CancellationToken) #

Task<IReadOnlyCollection<WorkflowDefinitionRecord>> GetVersionsAsync(string workflowName, CancellationToken cancellationToken = default)

Gets all versions of a workflow definition, ordered by creation date descending.

method UpsertAsync(WorkflowDefinitionRecord, CancellationToken) #

Task UpsertAsync(WorkflowDefinitionRecord record, CancellationToken cancellationToken = default)

Inserts or updates a definition record.

interface IWorkflowDiagramApi

public interface IWorkflowDiagramApi

Workflow diagram operations: retrieving the visual graph representation of a workflow.

Members

MemberKindSummary
GetDiagramAsync(WorkflowDiagramGetRequest, CancellationToken)methodLays out a workflow diagram.

method GetDiagramAsync(WorkflowDiagramGetRequest, CancellationToken) #

Task<WorkflowDiagramGetResponse> GetDiagramAsync(WorkflowDiagramGetRequest request, CancellationToken cancellationToken = default)

Lays out a workflow diagram.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The diagram.

interface IWorkflowDurableMaintenanceStore

public interface IWorkflowDurableMaintenanceStore

Integrity probes over the durable execution rows, for scheduled maintenance. Detect-only: no method writes.

Members

MemberKindSummary
HasOrphanedStepAttemptsAsync(CancellationToken)methodTrue when a step attempt exists whose step (same step, execution and scope ids) does not.

method HasOrphanedStepAttemptsAsync(CancellationToken) #

Task<bool> HasOrphanedStepAttemptsAsync(CancellationToken cancellationToken = default)

True when a step attempt exists whose step (same step, execution and scope ids) does not.

interface IWorkflowDurableStartStore

public interface IWorkflowDurableStartStore

Durable start coordination: start receipts, prestart terminal fences and the terminal inbox. Each write is atomic with its outbox messages; a write that loses a race on a key throws WorkflowStoreDuplicateException.

Members

MemberKindSummary
GetFenceAsync(string, CancellationToken)methodReads the prestart terminal fence of a start request.
GetReceiptAsync(string, CancellationToken)methodReads the receipt of a start request.
GetTerminalInboxAsync(string, CancellationToken)methodReads a terminal inbox entry.
HasOpenExecutionAsync(string, string, string, CancellationToken)methodTrue when an execution of the definition is open for the business reference.
RecordPrestartTerminalAsync(WorkflowPrestartTerminalFence, WorkflowStartReceipt, WorkflowTerminalInboxEntry, WorkflowOutboxMessage, CancellationToken)methodRecords a prestart terminal command: the fence, the fenced receipt when none exists, the inbox entry and the acknowledgement.
RecordStartDecisionAsync(WorkflowStartReceipt, WorkflowRootExecutionStart, IReadOnlyList<WorkflowOutboxMessage>, CancellationToken)methodRecords a start decision: the receipt, the root execution rows when the start created one (the store allocates the instance id), and the messages.
TryCompleteReceiptAsync(WorkflowStartReceipt, WorkflowOutboxMessage, CancellationToken)methodWrites the result into a receipt that has none yet, with its message.

method GetFenceAsync(string, CancellationToken) #

Task<WorkflowPrestartTerminalFence?> GetFenceAsync(string startRequestId, CancellationToken cancellationToken = default)

Reads the prestart terminal fence of a start request.

Parameters

  • startRequestId: The start request.
  • cancellationToken: Cancels the operation.

Returns

The fence, or null.

method GetReceiptAsync(string, CancellationToken) #

Task<WorkflowStartReceipt?> GetReceiptAsync(string startRequestId, CancellationToken cancellationToken = default)

Reads the receipt of a start request.

Parameters

  • startRequestId: The start request.
  • cancellationToken: Cancels the operation.

Returns

The receipt, or null.

method GetTerminalInboxAsync(string, CancellationToken) #

Task<WorkflowTerminalInboxEntry?> GetTerminalInboxAsync(string commandEventId, CancellationToken cancellationToken = default)

Reads a terminal inbox entry.

Parameters

  • commandEventId: The command.
  • cancellationToken: Cancels the operation.

Returns

The entry, or null.

method HasOpenExecutionAsync(string, string, string, CancellationToken) #

Task<bool> HasOpenExecutionAsync(string definitionCode, string businessReferenceSha256, string openStatus, CancellationToken cancellationToken = default)

True when an execution of the definition is open for the business reference.

method RecordPrestartTerminalAsync(WorkflowPrestartTerminalFence, WorkflowStartReceipt, WorkflowTerminalInboxEntry, WorkflowOutboxMessage, CancellationToken) #

Task RecordPrestartTerminalAsync(WorkflowPrestartTerminalFence fence, WorkflowStartReceipt? newReceipt, WorkflowTerminalInboxEntry inbox, WorkflowOutboxMessage message, CancellationToken cancellationToken = default)

Records a prestart terminal command: the fence, the fenced receipt when none exists, the inbox entry and the acknowledgement.

method RecordStartDecisionAsync(WorkflowStartReceipt, WorkflowRootExecutionStart, IReadOnlyList<WorkflowOutboxMessage>, CancellationToken) #

Task RecordStartDecisionAsync(WorkflowStartReceipt receipt, WorkflowRootExecutionStart? root, IReadOnlyList<WorkflowOutboxMessage> messages, CancellationToken cancellationToken = default)

Records a start decision: the receipt, the root execution rows when the start created one (the store allocates the instance id), and the messages.

method TryCompleteReceiptAsync(WorkflowStartReceipt, WorkflowOutboxMessage, CancellationToken) #

Task<bool> TryCompleteReceiptAsync(WorkflowStartReceipt receipt, WorkflowOutboxMessage message, CancellationToken cancellationToken = default)

Writes the result into a receipt that has none yet, with its message. Returns false, and writes nothing, when the stored receipt already carries a result.

interface IWorkflowEndpointTransport

public interface IWorkflowEndpointTransport

Calls an HTTP endpoint of a named service ("$type": "endpoint").

Members

MemberKindSummary
ExecuteAsync(WorkflowEndpointRequest, CancellationToken)methodSends the request and returns the response.

method ExecuteAsync(WorkflowEndpointRequest, CancellationToken) #

Task<WorkflowEndpointResponse> ExecuteAsync(WorkflowEndpointRequest request, CancellationToken cancellationToken = default)

Sends the request and returns the response. A failure, such as a non-success status or a target that is not configured, is a response that did not succeed; a call that does not answer in time raises a TimeoutException.

Parameters

  • request: The endpoint request.
  • cancellationToken: Cancels the operation.

Returns

The response.

interface IWorkflowExecutionConsoleReadStore

public interface IWorkflowExecutionConsoleReadStore

Read-only queries behind the execution console. The console service owns paging, clamping, profiles and redaction; a backend only returns the rows.

Members

MemberKindSummary
GetAttemptsAsync(string, int, CancellationToken)methodUp to maxCount step attempts of the execution, by creation time.
GetDeliveriesAsync(string, CancellationToken)methodAll activity dispatches of the execution, then all its completions, unsorted.
GetExecutionAsync(string, CancellationToken)methodReads one execution.
GetMapItemsAsync(string, int, CancellationToken)methodUp to maxCount items of the execution’s maps, by map execution id, then ordinal.
GetMapsAsync(string, int, CancellationToken)methodUp to maxCount map executions of the execution, in the backend’s natural order.
GetScopesAsync(string, int, bool, CancellationToken)methodUp to maxCount scopes of the execution; ordered by creation time when orderByCreation is set, otherwise in the backend’s natural order.
GetStepsAsync(string, int, CancellationToken)methodUp to maxCount steps of the execution, by creation time.
ListExecutionsAsync(DateTime?, string, int, CancellationToken)methodUp to take executions, newest first (created time, then execution id, both descending), strictly after the cursor position when createdBeforeUtc is set.

method GetAttemptsAsync(string, int, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleAttemptRecord>> GetAttemptsAsync(string workflowExecutionId, int maxCount, CancellationToken cancellationToken = default)

Up to maxCount step attempts of the execution, by creation time.

method GetDeliveriesAsync(string, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleDeliveryRecord>> GetDeliveriesAsync(string workflowExecutionId, CancellationToken cancellationToken = default)

All activity dispatches of the execution, then all its completions, unsorted.

method GetExecutionAsync(string, CancellationToken) #

Task<WorkflowConsoleExecutionRecord?> GetExecutionAsync(string workflowExecutionId, CancellationToken cancellationToken = default)

Reads one execution.

Parameters

  • workflowExecutionId: The execution.
  • cancellationToken: Cancels the operation.

Returns

The execution, or null.

method GetMapItemsAsync(string, int, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleMapItemRecord>> GetMapItemsAsync(string workflowExecutionId, int maxCount, CancellationToken cancellationToken = default)

Up to maxCount items of the execution’s maps, by map execution id, then ordinal.

method GetMapsAsync(string, int, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleMapRecord>> GetMapsAsync(string workflowExecutionId, int maxCount, CancellationToken cancellationToken = default)

Up to maxCount map executions of the execution, in the backend’s natural order.

method GetScopesAsync(string, int, bool, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleScopeRecord>> GetScopesAsync(string workflowExecutionId, int maxCount, bool orderByCreation, CancellationToken cancellationToken = default)

Up to maxCount scopes of the execution; ordered by creation time when orderByCreation is set, otherwise in the backend’s natural order.

method GetStepsAsync(string, int, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleStepRecord>> GetStepsAsync(string workflowExecutionId, int maxCount, CancellationToken cancellationToken = default)

Up to maxCount steps of the execution, by creation time.

method ListExecutionsAsync(DateTime?, string, int, CancellationToken) #

Task<IReadOnlyList<WorkflowConsoleExecutionRecord>> ListExecutionsAsync(DateTime? createdBeforeUtc, string? executionIdBefore, int take, CancellationToken cancellationToken = default)

Up to take executions, newest first (created time, then execution id, both descending), strictly after the cursor position when createdBeforeUtc is set.

interface IWorkflowExecutionHandler

public interface IWorkflowExecutionHandler

Runs a workflow: starts instances and completes their tasks.

Members

MemberKindSummary
CompleteTaskAsync(WorkflowTaskExecutionContext, CancellationToken)methodPlans the completion of a task.
StartAsync(WorkflowStartExecutionContext, CancellationToken)methodPlans the start of an instance.

method CompleteTaskAsync(WorkflowTaskExecutionContext, CancellationToken) #

Task<WorkflowTaskCompletionPlan> CompleteTaskAsync(WorkflowTaskExecutionContext context, CancellationToken cancellationToken = default)

Plans the completion of a task.

Parameters

  • context: The task context.
  • cancellationToken: Cancels the operation.

Returns

The plan.

method StartAsync(WorkflowStartExecutionContext, CancellationToken) #

Task<WorkflowStartExecutionPlan> StartAsync(WorkflowStartExecutionContext context, CancellationToken cancellationToken = default)

Plans the start of an instance.

Parameters

  • context: The start context.
  • cancellationToken: Cancels the operation.

Returns

The plan.

interface IWorkflowExecutionHandlerCatalog

public interface IWorkflowExecutionHandlerCatalog

Finds the execution handler of a workflow version.

Members

MemberKindSummary
GetHandler(string, string)methodFinds the handler of a workflow version.

method GetHandler(string, string) #

IWorkflowExecutionHandler? GetHandler(string workflowName, string workflowVersion)

Finds the handler of a workflow version.

Parameters

  • workflowName: The workflow name.
  • workflowVersion: The version.

Returns

The handler, or null.

interface IWorkflowExternalActivityRegistry

public interface IWorkflowExternalActivityRegistry

The external activities the host’s signed manifest registers. A host without a manifest has an empty, ready registry.

Members

MemberKindSummary
IsReadypropertyWhether the manifest loaded; a registry that is not ready resolves nothing.
ReadinessFailureCodepropertyWhy the manifest did not load.
IsExternalTransportAddress(WorkflowTransportAddressDeclaration)methodWhether a transport address targets a lane of the registry: a RabbitMQ routing key or an endpoint path that an activity uses.
TryResolve(string, string, string, out WorkflowExternalActivityRegistration)methodFinds an activity by destination, operation and contract version.

property IsReady #

bool IsReady { get; }

Whether the manifest loaded; a registry that is not ready resolves nothing.

property ReadinessFailureCode #

string? ReadinessFailureCode { get; }

Why the manifest did not load.

method IsExternalTransportAddress(WorkflowTransportAddressDeclaration) #

bool IsExternalTransportAddress(WorkflowTransportAddressDeclaration address)

Whether a transport address targets a lane of the registry: a RabbitMQ routing key or an endpoint path that an activity uses.

Parameters

  • address: The address.

Returns

Whether it does.

method TryResolve(string, string, string, out WorkflowExternalActivityRegistration) #

bool TryResolve(string destinationCode, string operationCode, string contractVersion, out WorkflowExternalActivityRegistration registration)

Finds an activity by destination, operation and contract version.

Parameters

  • destinationCode: The destination.
  • operationCode: The operation.
  • contractVersion: The contract version.
  • registration: The activity, when found.

Returns

Whether the registry is ready and has the activity.

interface IWorkflowExternalActivityStore

public interface IWorkflowExternalActivityStore

Durable external activities: steps, attempts, the dispatch and cancel outboxes, the completion inbox, continuation lineages and scope reprocesses. Reads return snapshots; every decision’s changes go through one atomic IWorkflowExternalActivityStore.WriteAsync(WorkflowExternalActivityWrite, CancellationToken).

Members

MemberKindSummary
GetAttemptAsync(string, CancellationToken)methodReads an attempt.
GetAttemptByNumberAsync(string, int, CancellationToken)methodReads an attempt of a step by number.
GetCompletionAsync(string, CancellationToken)methodReads a completion.
GetDispatchForAttemptAsync(string, CancellationToken)methodReads the dispatch of an attempt.
GetLastAttemptNumberAsync(string, CancellationToken)methodThe highest attempt number recorded for the step; 0 when it has none.
GetLastReprocessOccurrenceAsync(string, CancellationToken)methodThe highest reprocess occurrence of the scope; 0 when it has none.
GetLineageAsync(string, CancellationToken)methodReads a lineage.
GetLineagesAsync(string, string, string, CancellationToken)methodThe step’s lineages in status, highest generation first, optionally limited to one source attempt.
GetMapItemsAsync(string, string, CancellationToken)methodReads the items of a map in a status.
GetMapsForStopAsync(WorkflowActivityStopTargetKind, string, CancellationToken)methodThe map executions a stop targets, in any status.
GetReadyCancelsAsync(int, CancellationToken)methodReads up to maxCount READY cancels, oldest first.
GetReadyDispatchesAsync(int, CancellationToken)methodReads up to maxCount READY dispatches, oldest first.
GetRootScopeExecutionIdAsync(string, CancellationToken)methodReads the root scope of an execution.
GetRuntimeAsync(string, CancellationToken)methodReads the runtime state of an execution.
GetStepAsync(string, CancellationToken)methodReads a step.
GetStepsForStopAsync(WorkflowActivityStopTargetKind, string, CancellationToken)methodThe steps a stop targets, ordered by step execution id; for a map, the items’ active steps.
MarkCancelPublishedAsync(string, DateTime, CancellationToken)methodMarks a cancel PUBLISHED and counts the delivery attempt; does nothing when it is already PUBLISHED and throws when it does not exist.
MarkDispatchPublishedAsync(string, DateTime, CancellationToken)methodMarks a dispatch PUBLISHED and counts the delivery attempt; does nothing when it is already PUBLISHED and throws when it does not exist.
WriteAsync(WorkflowExternalActivityWrite, CancellationToken)methodWrites the changes atomically.

method GetAttemptAsync(string, CancellationToken) #

Task<WorkflowActivityAttempt?> GetAttemptAsync(string attemptId, CancellationToken cancellationToken = default)

Reads an attempt.

Parameters

  • attemptId: The attempt.
  • cancellationToken: Cancels the operation.

Returns

The attempt, or null.

method GetAttemptByNumberAsync(string, int, CancellationToken) #

Task<WorkflowActivityAttempt?> GetAttemptByNumberAsync(string stepExecutionId, int attemptNumber, CancellationToken cancellationToken = default)

Reads an attempt of a step by number.

Parameters

  • stepExecutionId: The step execution.
  • attemptNumber: The attempt number.
  • cancellationToken: Cancels the operation.

Returns

The attempt, or null.

method GetCompletionAsync(string, CancellationToken) #

Task<WorkflowActivityCompletionEntry?> GetCompletionAsync(string eventId, CancellationToken cancellationToken = default)

Reads a completion.

Parameters

  • eventId: The completion event.
  • cancellationToken: Cancels the operation.

Returns

The completion, or null.

method GetDispatchForAttemptAsync(string, CancellationToken) #

Task<WorkflowActivityDispatchEntry?> GetDispatchForAttemptAsync(string attemptId, CancellationToken cancellationToken = default)

Reads the dispatch of an attempt.

Parameters

  • attemptId: The attempt.
  • cancellationToken: Cancels the operation.

Returns

The dispatch, or null.

method GetLastAttemptNumberAsync(string, CancellationToken) #

Task<int> GetLastAttemptNumberAsync(string stepExecutionId, CancellationToken cancellationToken = default)

The highest attempt number recorded for the step; 0 when it has none.

method GetLastReprocessOccurrenceAsync(string, CancellationToken) #

Task<int> GetLastReprocessOccurrenceAsync(string sourceScopeExecutionId, CancellationToken cancellationToken = default)

The highest reprocess occurrence of the scope; 0 when it has none.

method GetLineageAsync(string, CancellationToken) #

Task<WorkflowContinuationLineage?> GetLineageAsync(string lineageId, CancellationToken cancellationToken = default)

Reads a lineage.

Parameters

  • lineageId: The lineage.
  • cancellationToken: Cancels the operation.

Returns

The lineage, or null.

method GetLineagesAsync(string, string, string, CancellationToken) #

Task<IReadOnlyList<WorkflowContinuationLineage>> GetLineagesAsync(string stepExecutionId, string? sourceAttemptId, string status, CancellationToken cancellationToken = default)

The step’s lineages in status, highest generation first, optionally limited to one source attempt.

method GetMapItemsAsync(string, string, CancellationToken) #

Task<IReadOnlyList<WorkflowActivityMapItemState>> GetMapItemsAsync(string mapExecutionId, string status, CancellationToken cancellationToken = default)

Reads the items of a map in a status.

Parameters

  • mapExecutionId: The map execution.
  • status: The status.
  • cancellationToken: Cancels the operation.

Returns

The items.

method GetMapsForStopAsync(WorkflowActivityStopTargetKind, string, CancellationToken) #

Task<IReadOnlyList<WorkflowActivityMapState>> GetMapsForStopAsync(WorkflowActivityStopTargetKind targetKind, string targetId, CancellationToken cancellationToken = default)

The map executions a stop targets, in any status.

method GetReadyCancelsAsync(int, CancellationToken) #

Task<IReadOnlyList<WorkflowActivityCancelEntry>> GetReadyCancelsAsync(int maxCount, CancellationToken cancellationToken = default)

Reads up to maxCount READY cancels, oldest first.

method GetReadyDispatchesAsync(int, CancellationToken) #

Task<IReadOnlyList<WorkflowActivityDispatchEntry>> GetReadyDispatchesAsync(int maxCount, CancellationToken cancellationToken = default)

Reads up to maxCount READY dispatches, oldest first.

method GetRootScopeExecutionIdAsync(string, CancellationToken) #

Task<string?> GetRootScopeExecutionIdAsync(string workflowExecutionId, CancellationToken cancellationToken = default)

Reads the root scope of an execution.

Parameters

  • workflowExecutionId: The execution.
  • cancellationToken: Cancels the operation.

Returns

The root scope, or null.

method GetRuntimeAsync(string, CancellationToken) #

Task<WorkflowActivityRuntimeState?> GetRuntimeAsync(string workflowExecutionId, CancellationToken cancellationToken = default)

Reads the runtime state of an execution.

Parameters

  • workflowExecutionId: The execution.
  • cancellationToken: Cancels the operation.

Returns

The runtime state, or null.

method GetStepAsync(string, CancellationToken) #

Task<WorkflowActivityStep?> GetStepAsync(string stepExecutionId, CancellationToken cancellationToken = default)

Reads a step.

Parameters

  • stepExecutionId: The step execution.
  • cancellationToken: Cancels the operation.

Returns

The step, or null.

method GetStepsForStopAsync(WorkflowActivityStopTargetKind, string, CancellationToken) #

Task<IReadOnlyList<WorkflowActivityStep>> GetStepsForStopAsync(WorkflowActivityStopTargetKind targetKind, string targetId, CancellationToken cancellationToken = default)

The steps a stop targets, ordered by step execution id; for a map, the items’ active steps.

method MarkCancelPublishedAsync(string, DateTime, CancellationToken) #

Task MarkCancelPublishedAsync(string cancelId, DateTime publishedAtUtc, CancellationToken cancellationToken = default)

Marks a cancel PUBLISHED and counts the delivery attempt; does nothing when it is already PUBLISHED and throws when it does not exist.

method MarkDispatchPublishedAsync(string, DateTime, CancellationToken) #

Task MarkDispatchPublishedAsync(string dispatchId, DateTime publishedAtUtc, CancellationToken cancellationToken = default)

Marks a dispatch PUBLISHED and counts the delivery attempt; does nothing when it is already PUBLISHED and throws when it does not exist.

method WriteAsync(WorkflowExternalActivityWrite, CancellationToken) #

Task WriteAsync(WorkflowExternalActivityWrite write, CancellationToken cancellationToken = default)

Writes the changes atomically. Throws WorkflowStoreConcurrencyExceptionwhen a changed row’s version moved and WorkflowStoreDuplicateExceptionwhen a new row’s key exists.

interface IWorkflowFirstSeenLedger

public interface IWorkflowFirstSeenLedger

The insert-only record of every workflow an installation has registered in code or stored in the definition store: the engine’s technical counter of recorded workflow names. A workflow is recorded the first time it is seen and is never updated or removed, so removing it from the code catalogue, replacing its versions or deactivating a version never lowers the count. Versions are not counted; names that differ only in letter case are one workflow, as the engine resolves them. Recording never refuses a workflow: the count drives licence status and warnings only.

Members

MemberKindSummary
IsDurablepropertytrue when the record survives a restart (the PostgreSQL and MongoDB ledgers); false for the process-memory ledger of a host without a workflow store, which counts only what this process has seen.
CountAsync(CancellationToken)methodThe number of distinct workflows ever recorded.
ListAsync(CancellationToken)methodEvery workflow ever recorded, one entry per workflow with its first sighting, ordered by WorkflowFirstSeenIdentity.Key(string)(ordinal).
RecordAsync(IReadOnlyCollection<string>, string, DateTimeOffset, CancellationToken)methodRecords the workflows in workflowNames that the ledger has not seen, with source (WorkflowFirstSeenSources) and seenOnUtc.
RecordStoredDefinitionsAsync(CancellationToken)methodRecords every workflow the definition store holds that the ledger has not seen, active or not, with the creation time of its first stored version.

property IsDurable #

bool IsDurable { get; }

true when the record survives a restart (the PostgreSQL and MongoDB ledgers); false for the process-memory ledger of a host without a workflow store, which counts only what this process has seen.

method CountAsync(CancellationToken) #

Task<int> CountAsync(CancellationToken cancellationToken = default)

The number of distinct workflows ever recorded.

method ListAsync(CancellationToken) #

Task<IReadOnlyList<WorkflowFirstSeenRecord>> ListAsync(CancellationToken cancellationToken = default)

Every workflow ever recorded, one entry per workflow with its first sighting, ordered by WorkflowFirstSeenIdentity.Key(string)(ordinal). The number of entries is the count IWorkflowFirstSeenLedger.CountAsync(CancellationToken)returns for the same ledger state. Reads only; records nothing.

method RecordAsync(IReadOnlyCollection<string>, string, DateTimeOffset, CancellationToken) #

Task RecordAsync(IReadOnlyCollection<string> workflowNames, string source, DateTimeOffset seenOnUtc, CancellationToken cancellationToken = default)

Records the workflows in workflowNames that the ledger has not seen, with source (WorkflowFirstSeenSources) and seenOnUtc. A workflow already recorded is left as it is. Every recording is serialised against every other recording of the same ledger, so engines that share it record each name once.

method RecordStoredDefinitionsAsync(CancellationToken) #

Task RecordStoredDefinitionsAsync(CancellationToken cancellationToken = default)

Records every workflow the definition store holds that the ledger has not seen, active or not, with the creation time of its first stored version. It reconciles imports whose ledger write was interrupted and definitions stored before the ledger existed. A ledger without a durable definition store records nothing here.

interface IWorkflowFunctionCatalog

public interface IWorkflowFunctionCatalog

The expression functions the engine knows.

Members

MemberKindSummary
GetFunctions()methodReturns the functions.
TryGetFunction(string, out WorkflowFunctionDescriptor)methodFinds a function by name or alias, ignoring case.

method GetFunctions() #

IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()

Returns the functions.

Returns

The functions.

method TryGetFunction(string, out WorkflowFunctionDescriptor) #

bool TryGetFunction(string functionName, out WorkflowFunctionDescriptor descriptor)

Finds a function by name or alias, ignoring case.

Parameters

  • functionName: The function name or alias.
  • descriptor: The function, when found.

Returns

Whether the function exists.

interface IWorkflowFunctionCatalogApi

public interface IWorkflowFunctionCatalogApi

Workflow function catalog operations: retrieving the canonical function catalog and installed workflow modules.

Members

MemberKindSummary
GetCatalogAsync(CancellationToken)methodReturns the expression functions and installed modules.

method GetCatalogAsync(CancellationToken) #

Task<WorkflowFunctionCatalogGetResponse> GetCatalogAsync(CancellationToken cancellationToken = default)

Returns the expression functions and installed modules.

Parameters

  • cancellationToken: Cancels the operation.

Returns

The catalog.

interface IWorkflowFunctionProvider

public interface IWorkflowFunctionProvider

Provides the functions of one module to the function catalog.

Members

MemberKindSummary
GetFunctions()methodReturns the functions.

method GetFunctions() #

IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()

Returns the functions.

Returns

The functions.

interface IWorkflowFunctionRuntime

public interface IWorkflowFunctionRuntime

Evaluates expression function calls.

Members

MemberKindSummary
TryEvaluate(string, IReadOnlyCollection<object>, WorkflowCanonicalEvaluationContext, out object)methodEvaluates a function call with the first provider that knows the function.

method TryEvaluate(string, IReadOnlyCollection<object>, WorkflowCanonicalEvaluationContext, out object) #

bool TryEvaluate(string functionName, IReadOnlyCollection<object?> arguments, WorkflowCanonicalEvaluationContext context, out object? result)

Evaluates a function call with the first provider that knows the function.

Parameters

  • functionName: The function name.
  • arguments: The evaluated arguments.
  • context: The evaluation context.
  • result: The result, when evaluated.

Returns

Whether the function was evaluated.

interface IWorkflowFunctionRuntimeProvider

public interface IWorkflowFunctionRuntimeProvider

Evaluates the functions of one module.

Members

MemberKindSummary
TryEvaluate(string, IReadOnlyCollection<object>, WorkflowCanonicalEvaluationContext, out object)methodEvaluates a function call.

method TryEvaluate(string, IReadOnlyCollection<object>, WorkflowCanonicalEvaluationContext, out object) #

bool TryEvaluate(string functionName, IReadOnlyCollection<object?> arguments, WorkflowCanonicalEvaluationContext context, out object? result)

Evaluates a function call.

Parameters

  • functionName: The function name.
  • arguments: The evaluated arguments.
  • context: The evaluation context.
  • result: The result, when evaluated.

Returns

Whether the function was evaluated.

interface IWorkflowGraphqlTransport

public interface IWorkflowGraphqlTransport

Runs GraphQL queries against named targets: the transport of a graphql address.

Members

MemberKindSummary
ExecuteAsync(WorkflowGraphqlRequest, CancellationToken)methodSends the query and returns the response.

method ExecuteAsync(WorkflowGraphqlRequest, CancellationToken) #

Task<WorkflowGraphqlResponse> ExecuteAsync(WorkflowGraphqlRequest request, CancellationToken cancellationToken = default)

Sends the query and returns the response. A failure, such as a non-success status or an errors array in the response, is a response that did not succeed; a call that does not answer in time raises a TimeoutException.

Parameters

  • request: The GraphQL request.
  • cancellationToken: Cancels the operation.

Returns

The response.

interface IWorkflowHistoryStore

public interface IWorkflowHistoryStore

Durable execution history. A backend implements reads and the atomic prefix compaction; the engine’s history service owns the cursor and retention rules.

Members

MemberKindSummary
CompactPrefixAsync(string, long, int, CancellationToken)methodDeletes, in one write, up to maxCount events from the history floor through throughSequence, stopping before the first retention-held event, and moves the floor to the first event kept.
GetCursorAsync(string, CancellationToken)methodReads the history cursor; throws when the execution does not exist.
GetEventsAsync(string, long, int, CancellationToken)methodReads up to maxCount events after afterSequence, in sequence order.

method CompactPrefixAsync(string, long, int, CancellationToken) #

Task<WorkflowHistoryCompactionResult> CompactPrefixAsync(string workflowExecutionId, long throughSequence, int maxCount, CancellationToken cancellationToken = default)

Deletes, in one write, up to maxCount events from the history floor through throughSequence, stopping before the first retention-held event, and moves the floor to the first event kept.

method GetCursorAsync(string, CancellationToken) #

Task<WorkflowHistoryCursor> GetCursorAsync(string workflowExecutionId, CancellationToken cancellationToken = default)

Reads the history cursor; throws when the execution does not exist.

method GetEventsAsync(string, long, int, CancellationToken) #

Task<IReadOnlyList<WorkflowHistoryEvent>> GetEventsAsync(string workflowExecutionId, long afterSequence, int maxCount, CancellationToken cancellationToken = default)

Reads up to maxCount events after afterSequence, in sequence order.

interface IWorkflowHostedJobLockService

public interface IWorkflowHostedJobLockService

A lock that lets one service instance at a time run a hosted job.

Members

MemberKindSummary
ReleaseAsync(string, string, CancellationToken)methodReleases a lock the owner holds.
TryAcquireAsync(string, string, DateTime, TimeSpan, CancellationToken)methodTakes a lock for an owner unless another owner holds an unexpired lease.

method ReleaseAsync(string, string, CancellationToken) #

Task ReleaseAsync(string lockName, string lockOwner, CancellationToken cancellationToken = default)

Releases a lock the owner holds.

Parameters

  • lockName: The lock.
  • lockOwner: The owner.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the lock is released.

method TryAcquireAsync(string, string, DateTime, TimeSpan, CancellationToken) #

Task<bool> TryAcquireAsync(string lockName, string lockOwner, DateTime acquiredOnUtc, TimeSpan lease, CancellationToken cancellationToken = default)

Takes a lock for an owner unless another owner holds an unexpired lease.

Parameters

  • lockName: The lock.
  • lockOwner: The owner.
  • acquiredOnUtc: The time, in UTC.
  • lease: How long the lock is held.
  • cancellationToken: Cancels the operation.

Returns

Whether the owner holds the lock.

interface IWorkflowHttpTransport

public interface IWorkflowHttpTransport

Calls named HTTP targets: the transport of an http address.

Members

MemberKindSummary
ExecuteAsync(WorkflowHttpRequest, CancellationToken)methodSends the request and returns the response.

method ExecuteAsync(WorkflowHttpRequest, CancellationToken) #

Task<WorkflowHttpResponse> ExecuteAsync(WorkflowHttpRequest request, CancellationToken cancellationToken = default)

Sends the request and returns the response. A failure, such as a non-success status or a target that is not configured, is a response that did not succeed; a call that does not answer in time raises a TimeoutException.

Parameters

  • request: The HTTP request.
  • cancellationToken: Cancels the operation.

Returns

The response.

interface IWorkflowMapStore

public interface IWorkflowMapStore

Durable maps: map executions and their items. Reads return snapshots; every decision’s changes go through one atomic IWorkflowMapStore.WriteAsync(WorkflowMapWrite, CancellationToken), whose item version checks make a lease claim race-safe (one winner).

Members

MemberKindSummary
CountActiveClaimsAsync(string, DateTime, CancellationToken)methodCounts the map’s CLAIMED items that hold capacity at nowUtc: an active step, or an unexpired lease.
CountGlobalActiveClaimsAsync(string, DateTime, CancellationToken)methodCounts the active claims (as above) across every map of the global activity class.
GetClaimableItemsAsync(string, DateTime, int, CancellationToken)methodUp to maxCount items that can be claimed at nowUtc, ordered by ordinal: READY items, and CLAIMED items with no active step whose lease has expired.
GetGlobalMaxConcurrencyAsync(string, CancellationToken)methodThe lowest declared max concurrency among the maps of the global activity class.
GetItemAsync(string, CancellationToken)methodReads a map item.
GetItemsAsync(string, CancellationToken)methodAll items of the map, ordered by ordinal.
GetItemsByActiveStepAsync(string, int, CancellationToken)methodUp to maxCount items whose active step is activeStepExecutionId.
GetMapAsync(string, CancellationToken)methodReads a map execution.
WriteAsync(WorkflowMapWrite, CancellationToken)methodWrites the changes atomically.

method CountActiveClaimsAsync(string, DateTime, CancellationToken) #

Task<int> CountActiveClaimsAsync(string mapExecutionId, DateTime nowUtc, CancellationToken cancellationToken = default)

Counts the map’s CLAIMED items that hold capacity at nowUtc: an active step, or an unexpired lease.

method CountGlobalActiveClaimsAsync(string, DateTime, CancellationToken) #

Task<int> CountGlobalActiveClaimsAsync(string globalActivityClass, DateTime nowUtc, CancellationToken cancellationToken = default)

Counts the active claims (as above) across every map of the global activity class.

method GetClaimableItemsAsync(string, DateTime, int, CancellationToken) #

Task<IReadOnlyList<WorkflowMapItemRecord>> GetClaimableItemsAsync(string mapExecutionId, DateTime nowUtc, int maxCount, CancellationToken cancellationToken = default)

Up to maxCount items that can be claimed at nowUtc, ordered by ordinal: READY items, and CLAIMED items with no active step whose lease has expired.

method GetGlobalMaxConcurrencyAsync(string, CancellationToken) #

Task<int> GetGlobalMaxConcurrencyAsync(string globalActivityClass, CancellationToken cancellationToken = default)

The lowest declared max concurrency among the maps of the global activity class.

method GetItemAsync(string, CancellationToken) #

Task<WorkflowMapItemRecord?> GetItemAsync(string mapItemId, CancellationToken cancellationToken = default)

Reads a map item.

Parameters

  • mapItemId: The map item.
  • cancellationToken: Cancels the operation.

Returns

The item, or null.

method GetItemsAsync(string, CancellationToken) #

Task<IReadOnlyList<WorkflowMapItemRecord>> GetItemsAsync(string mapExecutionId, CancellationToken cancellationToken = default)

All items of the map, ordered by ordinal.

method GetItemsByActiveStepAsync(string, int, CancellationToken) #

Task<IReadOnlyList<WorkflowMapItemRecord>> GetItemsByActiveStepAsync(string activeStepExecutionId, int maxCount, CancellationToken cancellationToken = default)

Up to maxCount items whose active step is activeStepExecutionId.

method GetMapAsync(string, CancellationToken) #

Task<WorkflowMapExecutionRecord?> GetMapAsync(string mapExecutionId, CancellationToken cancellationToken = default)

Reads a map execution.

Parameters

  • mapExecutionId: The map execution.
  • cancellationToken: Cancels the operation.

Returns

The map, or null.

method WriteAsync(WorkflowMapWrite, CancellationToken) #

Task WriteAsync(WorkflowMapWrite write, CancellationToken cancellationToken = default)

Writes the changes atomically. Throws WorkflowStoreConcurrencyExceptionwhen a changed row’s version moved and WorkflowStoreDuplicateExceptionwhen a new row’s key exists.

interface IWorkflowModuleCatalog

public interface IWorkflowModuleCatalog

The installed modules: those registered with WorkflowModuleCatalogServiceCollectionExtensions.AddWorkflowModule(IServiceCollection, string, string)and those the function providers declare.

Members

MemberKindSummary
GetInstalledModules()methodReturns each installed module and version once, ordered by module name and then version.

method GetInstalledModules() #

IReadOnlyCollection<WorkflowInstalledModule> GetInstalledModules()

Returns each installed module and version once, ordered by module name and then version.

interface IWorkflowMutationCoordinator

public interface IWorkflowMutationCoordinator

Begins the change scopes of the workflow store.

Members

MemberKindSummary
BeginAsync(CancellationToken)methodBegins a change scope.

method BeginAsync(CancellationToken) #

Task<IWorkflowMutationScope> BeginAsync(CancellationToken cancellationToken = default)

Begins a change scope.

Parameters

  • cancellationToken: Cancels the operation.

Returns

The scope.

interface IWorkflowMutationScope

public interface IWorkflowMutationScope : IAsyncDisposable

A unit of workflow store changes that commit together.

Members

MemberKindSummary
CommitAsync(CancellationToken)methodCommits the changes, then runs the post-commit actions.
RegisterPostCommitAction(Func<CancellationToken, Task>)methodRegisters an action to run after the commit.

method CommitAsync(CancellationToken) #

Task CommitAsync(CancellationToken cancellationToken = default)

Commits the changes, then runs the post-commit actions.

Parameters

  • cancellationToken: Cancels the operation.

Returns

A task that completes when the changes are committed.

method RegisterPostCommitAction(Func<CancellationToken, Task>) #

void RegisterPostCommitAction(Func<CancellationToken, Task> action)

Registers an action to run after the commit.

Parameters

  • action: The action.

interface IWorkflowMutationScopeAccessor

public interface IWorkflowMutationScopeAccessor

Holds the change scope of the running operation.

Members

MemberKindSummary
CurrentpropertyThe change scope of the running operation, when one is open.

property Current #

IWorkflowMutationScope? Current { get; set; }

The change scope of the running operation, when one is open.

interface IWorkflowOutboxStore

public interface IWorkflowOutboxStore

Delivery side of the durable outboxes: read what is ready, record each attempt, and compact what was delivered long ago.

Members

MemberKindSummary
CompactDeliveredAsync(DateTime, int, CancellationToken)methodDeletes up to batchSize rows per outbox published before cutoffUtc, and as many activity-completion inbox rows applied before it.
GetReadyAsync(WorkflowOutboxKind, IReadOnlyCollection<string>, int, CancellationToken)methodReads up to maxCount READY entries, oldest first, optionally limited to some channels.
RecordDeliveryAttemptAsync(WorkflowOutboxEntry, DateTime?, CancellationToken)methodCounts one delivery attempt; a non-null publishedAtUtc marks the entry PUBLISHED.
TryMarkPublishedAsync(WorkflowOutboxKind, string, DateTime, CancellationToken)methodMarks a READY entry PUBLISHED; false when it is not READY (already published or missing).

method CompactDeliveredAsync(DateTime, int, CancellationToken) #

Task CompactDeliveredAsync(DateTime cutoffUtc, int batchSize, CancellationToken cancellationToken = default)

Deletes up to batchSize rows per outbox published before cutoffUtc, and as many activity-completion inbox rows applied before it.

method GetReadyAsync(WorkflowOutboxKind, IReadOnlyCollection<string>, int, CancellationToken) #

Task<IReadOnlyList<WorkflowOutboxEntry>> GetReadyAsync(WorkflowOutboxKind kind, IReadOnlyCollection<string>? channels, int maxCount, CancellationToken cancellationToken = default)

Reads up to maxCount READY entries, oldest first, optionally limited to some channels.

method RecordDeliveryAttemptAsync(WorkflowOutboxEntry, DateTime?, CancellationToken) #

Task RecordDeliveryAttemptAsync(WorkflowOutboxEntry entry, DateTime? publishedAtUtc, CancellationToken cancellationToken = default)

Counts one delivery attempt; a non-null publishedAtUtc marks the entry PUBLISHED.

method TryMarkPublishedAsync(WorkflowOutboxKind, string, DateTime, CancellationToken) #

Task<bool> TryMarkPublishedAsync(WorkflowOutboxKind kind, string entryKey, DateTime publishedAtUtc, CancellationToken cancellationToken = default)

Marks a READY entry PUBLISHED; false when it is not READY (already published or missing).

interface IWorkflowPendingSignalDispatcher

public interface IWorkflowPendingSignalDispatcher

Dispatches a pending signal that is not a plain signal-bus publish, such as a durable map completion or an external activity dispatch. The runtime asks each registered dispatcher in turn; the first that claims a signal dispatches it. A backend that cannot run such steps registers no dispatcher for them, and the definition validator rejects definitions that need one.

Members

MemberKindSummary
CanDispatch(WorkflowPendingSignalPlan)methodWhether this dispatcher sends a pending signal.
DispatchAsync(string, WorkflowPendingSignalPlan, WorkflowRuntimeStateRecord, CancellationToken)methodDispatches the signal and returns the execution version the next signal must expect.

method CanDispatch(WorkflowPendingSignalPlan) #

bool CanDispatch(WorkflowPendingSignalPlan pendingSignal)

Whether this dispatcher sends a pending signal.

Parameters

  • pendingSignal: The signal.

Returns

Whether it does.

method DispatchAsync(string, WorkflowPendingSignalPlan, WorkflowRuntimeStateRecord, CancellationToken) #

Task<long> DispatchAsync(string workflowInstanceId, WorkflowPendingSignalPlan pendingSignal, WorkflowRuntimeStateRecord runtimeState, CancellationToken cancellationToken = default)

Dispatches the signal and returns the execution version the next signal must expect.

interface IWorkflowProjectionRetentionStore

public interface IWorkflowProjectionRetentionStore

Applies retention to the instance and task projections.

Members

MemberKindSummary
RunAsync(DateTime, WorkflowRetentionOverride, CancellationToken)methodMarks stale and purges the projections whose dates have passed.

method RunAsync(DateTime, WorkflowRetentionOverride, CancellationToken) #

Task<WorkflowProjectionRetentionBatch> RunAsync(DateTime nowUtc, WorkflowRetentionOverride? retentionOverride = null, CancellationToken cancellationToken = default)

Marks stale and purges the projections whose dates have passed.

Parameters

  • nowUtc: The time the dates are compared with, in UTC.
  • retentionOverride: Age thresholds that replace the stored dates; none when not set.
  • cancellationToken: Cancels the operation.

Returns

What was marked and purged.

interface IWorkflowProjectionStore

public interface IWorkflowProjectionStore

The read model of instances and tasks, and the task operations that change it.

Members

MemberKindSummary
ApplyRuntimeProgressAsync(string, WorkflowTaskCompletionPlan, WorkflowBusinessReference, CancellationToken)methodApplies the progress of an instance that moved without a task completion, such as after a signal.
ApplyTaskCompletionAsync(string, string, IDictionary<string, object>, WorkflowTaskCompletionPlan, WorkflowBusinessReference, CancellationToken)methodCompletes a task and applies the completion plan: new tasks, state and instance status.
AssignTaskAsync(string, string, string, CancellationToken)methodAssigns a task to a user.
AssignTaskRolesAsync(string, string, IReadOnlyCollection<string>, CancellationToken)methodAssigns a task to roles.
CreateWorkflowAsync(WorkflowDefinitionDescriptor, WorkflowBusinessReference, WorkflowStartExecutionPlan, CancellationToken)methodCreates the projection of a new instance with the tasks of its start plan.
GetExecutionSnapshotAsync(string, CancellationToken)methodReads a task with the state of its instance.
GetInstanceAsync(string, CancellationToken)methodReads an instance.
GetInstanceDetailsAsync(string, CancellationToken)methodReads an instance with its state, tasks and task events.
GetInstancesAsync(WorkflowInstancesGetRequest, CancellationToken)methodLists instances.
GetTaskAsync(string, CancellationToken)methodReads a task.
GetTasksAsync(WorkflowTasksGetRequest, CancellationToken)methodLists tasks.
ReleaseTaskAsync(string, string, CancellationToken)methodReleases an assigned task.

method ApplyRuntimeProgressAsync(string, WorkflowTaskCompletionPlan, WorkflowBusinessReference, CancellationToken) #

Task ApplyRuntimeProgressAsync(string workflowInstanceId, WorkflowTaskCompletionPlan progressPlan, WorkflowBusinessReference? businessReference, CancellationToken cancellationToken = default)

Applies the progress of an instance that moved without a task completion, such as after a signal.

Parameters

  • workflowInstanceId: The instance.
  • progressPlan: The plan.
  • businessReference: The business reference.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the progress is applied.

method ApplyTaskCompletionAsync(string, string, IDictionary<string, object>, WorkflowTaskCompletionPlan, WorkflowBusinessReference, CancellationToken) #

Task<WorkflowTaskSummary> ApplyTaskCompletionAsync(string workflowTaskId, string actorId, IDictionary<string, object?> payload, WorkflowTaskCompletionPlan completionPlan, WorkflowBusinessReference? businessReference, CancellationToken cancellationToken = default)

Completes a task and applies the completion plan: new tasks, state and instance status.

Parameters

  • workflowTaskId: The task.
  • actorId: Who acts.
  • payload: The completion payload.
  • completionPlan: The plan.
  • businessReference: The business reference after the completion.
  • cancellationToken: Cancels the operation.

Returns

The completed task.

method AssignTaskAsync(string, string, string, CancellationToken) #

Task<WorkflowTaskSummary> AssignTaskAsync(string workflowTaskId, string actorId, string assignee, CancellationToken cancellationToken = default)

Assigns a task to a user.

Parameters

  • workflowTaskId: The task.
  • actorId: Who acts.
  • assignee: The user.
  • cancellationToken: Cancels the operation.

Returns

The task.

method AssignTaskRolesAsync(string, string, IReadOnlyCollection<string>, CancellationToken) #

Task<WorkflowTaskSummary> AssignTaskRolesAsync(string workflowTaskId, string actorId, IReadOnlyCollection<string> targetRoles, CancellationToken cancellationToken = default)

Assigns a task to roles.

Parameters

  • workflowTaskId: The task.
  • actorId: Who acts.
  • targetRoles: The roles.
  • cancellationToken: Cancels the operation.

Returns

The task.

method CreateWorkflowAsync(WorkflowDefinitionDescriptor, WorkflowBusinessReference, WorkflowStartExecutionPlan, CancellationToken) #

Task<StartWorkflowResponse> CreateWorkflowAsync(WorkflowDefinitionDescriptor definition, WorkflowBusinessReference? businessReference, WorkflowStartExecutionPlan executionPlan, CancellationToken cancellationToken = default)

Creates the projection of a new instance with the tasks of its start plan.

Parameters

  • definition: The workflow definition.
  • businessReference: The business reference.
  • executionPlan: The start plan.
  • cancellationToken: Cancels the operation.

Returns

The new instance.

method GetExecutionSnapshotAsync(string, CancellationToken) #

Task<WorkflowExecutionSnapshot?> GetExecutionSnapshotAsync(string workflowTaskId, CancellationToken cancellationToken = default)

Reads a task with the state of its instance.

Parameters

  • workflowTaskId: The task.
  • cancellationToken: Cancels the operation.

Returns

The snapshot, or null.

method GetInstanceAsync(string, CancellationToken) #

Task<WorkflowInstanceSummary?> GetInstanceAsync(string workflowInstanceId, CancellationToken cancellationToken = default)

Reads an instance.

Parameters

  • workflowInstanceId: The instance.
  • cancellationToken: Cancels the operation.

Returns

The instance, or null.

method GetInstanceDetailsAsync(string, CancellationToken) #

Task<WorkflowInstanceProjectionDetails?> GetInstanceDetailsAsync(string workflowInstanceId, CancellationToken cancellationToken = default)

Reads an instance with its state, tasks and task events.

Parameters

  • workflowInstanceId: The instance.
  • cancellationToken: Cancels the operation.

Returns

The details, or null.

method GetInstancesAsync(WorkflowInstancesGetRequest, CancellationToken) #

Task<IReadOnlyCollection<WorkflowInstanceSummary>> GetInstancesAsync(WorkflowInstancesGetRequest request, CancellationToken cancellationToken = default)

Lists instances.

Parameters

  • request: The filter.
  • cancellationToken: Cancels the operation.

Returns

The instances.

method GetTaskAsync(string, CancellationToken) #

Task<WorkflowTaskSummary?> GetTaskAsync(string workflowTaskId, CancellationToken cancellationToken = default)

Reads a task.

Parameters

  • workflowTaskId: The task.
  • cancellationToken: Cancels the operation.

Returns

The task, or null.

method GetTasksAsync(WorkflowTasksGetRequest, CancellationToken) #

Task<IReadOnlyCollection<WorkflowTaskSummary>> GetTasksAsync(WorkflowTasksGetRequest request, CancellationToken cancellationToken = default)

Lists tasks.

Parameters

  • request: The filter.
  • cancellationToken: Cancels the operation.

Returns

The tasks.

method ReleaseTaskAsync(string, string, CancellationToken) #

Task<WorkflowTaskSummary> ReleaseTaskAsync(string workflowTaskId, string actorId, CancellationToken cancellationToken = default)

Releases an assigned task.

Parameters

  • workflowTaskId: The task.
  • actorId: Who acts.
  • cancellationToken: Cancels the operation.

Returns

The task.

interface IWorkflowRabbitTransport

public interface IWorkflowRabbitTransport

Publishes to RabbitMQ: the transport of a rabbit address.

Members

MemberKindSummary
ExecuteAsync(WorkflowRabbitRequest, CancellationToken)methodPublishes the request, and for a command that expects a reply, waits for the correlated reply.

method ExecuteAsync(WorkflowRabbitRequest, CancellationToken) #

Task<WorkflowRabbitResponse> ExecuteAsync(WorkflowRabbitRequest request, CancellationToken cancellationToken = default)

Publishes the request, and for a command that expects a reply, waits for the correlated reply. A failure is a response that did not succeed; a reply that does not arrive in time raises a TimeoutException.

Parameters

  • request: The RabbitMQ request.
  • cancellationToken: Cancels the operation.

Returns

The response.

interface IWorkflowRegisteredSignalStore

public interface IWorkflowRegisteredSignalStore

Durable registered signals: waits, their deadline timers and the signal inbox. Reads return snapshots; every operation’s changes go through one atomic IWorkflowRegisteredSignalStore.WriteAsync(WorkflowRegisteredSignalWrite, CancellationToken).

Members

MemberKindSummary
FindWaitAsync(string, string, string, string, string, CancellationToken)methodFinds the wait of an execution for a signal code and audience, by registration id when one is given and by signal key otherwise.
GetInboxAsync(string, CancellationToken)methodReads a signal inbox entry.
GetOldestUncorrelatedInboxAsync(string, string, string, string, string, CancellationToken)methodThe oldest signal received for this execution, key, code and audience that no wait has taken yet.
GetTimerAsync(string, CancellationToken)methodReads a deadline timer.
GetTimerForWaitAsync(string, CancellationToken)methodReads the deadline timer of a wait.
GetWaitAsync(string, CancellationToken)methodReads a registered wait.
WriteAsync(WorkflowRegisteredSignalWrite, CancellationToken)methodWrites the changes atomically.

method FindWaitAsync(string, string, string, string, string, CancellationToken) #

Task<WorkflowRegisteredSignalWait?> FindWaitAsync(string workflowExecutionId, string signalCode, string? serviceAudience, string? signalRegistrationId, string? signalKey, CancellationToken cancellationToken = default)

Finds the wait of an execution for a signal code and audience, by registration id when one is given and by signal key otherwise.

method GetInboxAsync(string, CancellationToken) #

Task<WorkflowRegisteredSignalInboxEntry?> GetInboxAsync(string signalEventId, CancellationToken cancellationToken = default)

Reads a signal inbox entry.

Parameters

  • signalEventId: The signal event.
  • cancellationToken: Cancels the operation.

Returns

The entry, or null.

method GetOldestUncorrelatedInboxAsync(string, string, string, string, string, CancellationToken) #

Task<WorkflowRegisteredSignalInboxEntry?> GetOldestUncorrelatedInboxAsync(string workflowExecutionId, string signalKey, string signalCode, string serviceAudience, string uncorrelatedDisposition, CancellationToken cancellationToken = default)

The oldest signal received for this execution, key, code and audience that no wait has taken yet.

method GetTimerAsync(string, CancellationToken) #

Task<WorkflowSignalDeadlineTimer?> GetTimerAsync(string timerId, CancellationToken cancellationToken = default)

Reads a deadline timer.

Parameters

  • timerId: The timer.
  • cancellationToken: Cancels the operation.

Returns

The timer, or null.

method GetTimerForWaitAsync(string, CancellationToken) #

Task<WorkflowSignalDeadlineTimer?> GetTimerForWaitAsync(string signalRegistrationId, CancellationToken cancellationToken = default)

Reads the deadline timer of a wait.

Parameters

  • signalRegistrationId: The wait.
  • cancellationToken: Cancels the operation.

Returns

The timer, or null.

method GetWaitAsync(string, CancellationToken) #

Task<WorkflowRegisteredSignalWait?> GetWaitAsync(string signalRegistrationId, CancellationToken cancellationToken = default)

Reads a registered wait.

Parameters

  • signalRegistrationId: The wait.
  • cancellationToken: Cancels the operation.

Returns

The wait, or null.

method WriteAsync(WorkflowRegisteredSignalWrite, CancellationToken) #

Task WriteAsync(WorkflowRegisteredSignalWrite write, CancellationToken cancellationToken = default)

Writes the changes atomically. Throws WorkflowStoreConcurrencyExceptionwhen the changed wait’s version moved and WorkflowStoreDuplicateExceptionwhen a new row’s key exists.

interface IWorkflowRegistrationCatalog

public interface IWorkflowRegistrationCatalog

The workflows registered in code.

Members

MemberKindSummary
GetRegistration(string, string)methodFinds a registered workflow.
GetRegistrations()methodReturns every registered workflow.

method GetRegistration(string, string) #

WorkflowRegistration? GetRegistration(string workflowName, string? workflowVersion = null)

Finds a registered workflow.

Parameters

  • workflowName: The workflow name.
  • workflowVersion: The version; the latest when not set.

Returns

The registration, or null.

method GetRegistrations() #

IReadOnlyCollection<WorkflowRegistration> GetRegistrations()

Returns every registered workflow.

Returns

The registrations.

interface IWorkflowRenderGraphCompiler

public interface IWorkflowRenderGraphCompiler

Builds the render graph of a workflow definition.

Members

MemberKindSummary
Compile(WorkflowRuntimeDefinition)methodBuilds the render graph of a workflow definition.

method Compile(WorkflowRuntimeDefinition) #

WorkflowRenderGraph Compile(WorkflowRuntimeDefinition definition)

Builds the render graph of a workflow definition.

Parameters

  • definition: The workflow definition.

Returns

The render graph.

interface IWorkflowRenderGraphLayoutEngine

public interface IWorkflowRenderGraphLayoutEngine

Lays out a workflow render graph.

Members

MemberKindSummary
LayoutAsync(WorkflowRenderGraph, WorkflowRenderLayoutRequest, CancellationToken)methodPositions the nodes and routes the edges of a render graph.

method LayoutAsync(WorkflowRenderGraph, WorkflowRenderLayoutRequest, CancellationToken) #

Task<WorkflowRenderLayoutResult> LayoutAsync(WorkflowRenderGraph graph, WorkflowRenderLayoutRequest? request = null, CancellationToken cancellationToken = default)

Positions the nodes and routes the edges of a render graph.

Parameters

  • graph: The render graph.
  • request: The layout settings; the defaults when not set.
  • cancellationToken: Cancels the operation.

Returns

The positioned nodes and routed edges.

interface IWorkflowRenderLayoutEngineResolver

public interface IWorkflowRenderLayoutEngineResolver

Selects the layout engine of a render request.

Members

MemberKindSummary
Resolve(string)methodReturns the registered layout engine of a provider: providerName, else WorkflowRendering:LayoutProvider, else ElkSharp.

method Resolve(string) #

INamedWorkflowRenderGraphLayoutEngine Resolve(string? providerName = null)

Returns the registered layout engine of a provider: providerName, else WorkflowRendering:LayoutProvider, else ElkSharp.

Parameters

  • providerName: The provider name; the configured provider when not set.

Returns

The layout engine.

Exceptions

  • InvalidOperationException: No engine of that provider is registered.

interface IWorkflowRenderSvgRenderer

public interface IWorkflowRenderSvgRenderer

Renders a positioned workflow diagram as an SVG document. Optional: a host that wants server-side SVG registers an implementation (AddWorkflowSvgRenderer of StellaOps.Workflow.Renderer.Svg), so the engine itself carries no rendering library.

Members

MemberKindSummary
RenderSvg(WorkflowRenderLayoutResult, string, string)methodRenders layout titled title.

method RenderSvg(WorkflowRenderLayoutResult, string, string) #

string RenderSvg(WorkflowRenderLayoutResult layout, string title, string? licenceNotice)

Renders layout titled title. Every diagram carries a licence notice: licenceNotice when the host has one, otherwise the renderer’s notice for a host without a loaded licence record.

interface IWorkflowRetentionApi

public interface IWorkflowRetentionApi

Workflow retention operations: running cleanup and purge of stale workflow data.

Members

MemberKindSummary
RunRetentionAsync(WorkflowRetentionRunRequest, CancellationToken)methodRuns the instance retention once.

method RunRetentionAsync(WorkflowRetentionRunRequest, CancellationToken) #

Task<WorkflowRetentionRunResponse> RunRetentionAsync(WorkflowRetentionRunRequest request, CancellationToken cancellationToken = default)

Runs the instance retention once.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The counts.

interface IWorkflowRuntimeApi

public interface IWorkflowRuntimeApi

Core workflow runtime operations: starting workflows, querying instances and tasks, completing/assigning/releasing tasks, and raising external signals.

Members

MemberKindSummary
AssignTaskAsync(WorkflowTaskAssignRequest, CancellationToken)methodAssigns a human task to a user or to roles.
CancelWorkflowAsync(WorkflowCancelRequest, CancellationToken)methodCancels an instance by queuing its cancel signal, and starts the cleanup workflow when the request names one.
CompleteTaskAsync(WorkflowTaskCompleteRequest, CancellationToken)methodCompletes a human task with a payload; the task’s completion steps run.
GetInstanceAsync(WorkflowInstanceGetRequest, CancellationToken)methodReads one workflow instance.
GetInstancesAsync(WorkflowInstancesGetRequest, CancellationToken)methodLists workflow instances.
GetTaskAsync(WorkflowTaskGetRequest, CancellationToken)methodReads one human task.
GetTasksAsync(WorkflowTasksGetRequest, CancellationToken)methodLists human tasks.
RaiseExternalSignalAsync(WorkflowSignalRaiseRequest, CancellationToken)methodQueues a signal for an instance that waits for it.
ReleaseTaskAsync(WorkflowTaskReleaseRequest, CancellationToken)methodReleases an assigned human task, so another user can take it.
StartWorkflowAsync(StartWorkflowRequest, CancellationToken)methodStarts a workflow instance.

method AssignTaskAsync(WorkflowTaskAssignRequest, CancellationToken) #

Task<WorkflowTaskAssignResponse> AssignTaskAsync(WorkflowTaskAssignRequest request, CancellationToken cancellationToken = default)

Assigns a human task to a user or to roles.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The assigned task.

method CancelWorkflowAsync(WorkflowCancelRequest, CancellationToken) #

Task<WorkflowCancelResponse> CancelWorkflowAsync(WorkflowCancelRequest request, CancellationToken cancellationToken = default)

Cancels an instance by queuing its cancel signal, and starts the cleanup workflow when the request names one.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

Whether the cancel signal was queued, and the cleanup instance.

method CompleteTaskAsync(WorkflowTaskCompleteRequest, CancellationToken) #

Task<WorkflowTaskCompleteResponse> CompleteTaskAsync(WorkflowTaskCompleteRequest request, CancellationToken cancellationToken = default)

Completes a human task with a payload; the task’s completion steps run.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The outcome of the completion.

method GetInstanceAsync(WorkflowInstanceGetRequest, CancellationToken) #

Task<WorkflowInstanceGetResponse> GetInstanceAsync(WorkflowInstanceGetRequest request, CancellationToken cancellationToken = default)

Reads one workflow instance.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The instance.

method GetInstancesAsync(WorkflowInstancesGetRequest, CancellationToken) #

Task<WorkflowInstancesGetResponse> GetInstancesAsync(WorkflowInstancesGetRequest request, CancellationToken cancellationToken = default)

Lists workflow instances.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

A page of instances.

method GetTaskAsync(WorkflowTaskGetRequest, CancellationToken) #

Task<WorkflowTaskGetResponse> GetTaskAsync(WorkflowTaskGetRequest request, CancellationToken cancellationToken = default)

Reads one human task.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The task.

method GetTasksAsync(WorkflowTasksGetRequest, CancellationToken) #

Task<WorkflowTasksGetResponse> GetTasksAsync(WorkflowTasksGetRequest request, CancellationToken cancellationToken = default)

Lists human tasks.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

A page of tasks.

method RaiseExternalSignalAsync(WorkflowSignalRaiseRequest, CancellationToken) #

Task<WorkflowSignalRaiseResponse> RaiseExternalSignalAsync(WorkflowSignalRaiseRequest request, CancellationToken cancellationToken = default)

Queues a signal for an instance that waits for it.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The queued signal.

method ReleaseTaskAsync(WorkflowTaskReleaseRequest, CancellationToken) #

Task<WorkflowTaskReleaseResponse> ReleaseTaskAsync(WorkflowTaskReleaseRequest request, CancellationToken cancellationToken = default)

Releases an assigned human task, so another user can take it.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The released task.

method StartWorkflowAsync(StartWorkflowRequest, CancellationToken) #

Task<StartWorkflowResponse> StartWorkflowAsync(StartWorkflowRequest request, CancellationToken cancellationToken = default)

Starts a workflow instance.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The new instance.

interface IWorkflowRuntimeDefinitionStore

public interface IWorkflowRuntimeDefinitionStore

The workflows registered in code, as the engine runs them.

Members

MemberKindSummary
GetDefinition(string, string)methodFinds a runtime definition.
GetDefinitions()methodReturns every runtime definition.
GetRequiredDefinition(string, string)methodFinds a runtime definition.

method GetDefinition(string, string) #

WorkflowRuntimeDefinition? GetDefinition(string workflowName, string? workflowVersion = null)

Finds a runtime definition.

Parameters

  • workflowName: The workflow name.
  • workflowVersion: The version; the latest when not set.

Returns

The definition, or null.

method GetDefinitions() #

IReadOnlyCollection<WorkflowRuntimeDefinition> GetDefinitions()

Returns every runtime definition.

Returns

The definitions.

method GetRequiredDefinition(string, string) #

WorkflowRuntimeDefinition GetRequiredDefinition(string workflowName, string? workflowVersion = null)

Finds a runtime definition.

Parameters

  • workflowName: The workflow name.
  • workflowVersion: The version; the latest when not set.

Returns

The definition.

Exceptions

  • InvalidOperationException: No such definition is registered.

interface IWorkflowRuntimeExecutionHandlerFactory

public interface IWorkflowRuntimeExecutionHandlerFactory

Creates the execution handler of a runtime definition.

Members

MemberKindSummary
TryCreateHandler(WorkflowRuntimeDefinition)methodCreates the handler: the custom handler of the registration, or the declarative handler; none for a definition-only workflow.

method TryCreateHandler(WorkflowRuntimeDefinition) #

IWorkflowExecutionHandler? TryCreateHandler(WorkflowRuntimeDefinition definition)

Creates the handler: the custom handler of the registration, or the declarative handler; none for a definition-only workflow.

Parameters

  • definition: The runtime definition.

Returns

The handler, or null.

interface IWorkflowRuntimeOrchestrator

public interface IWorkflowRuntimeOrchestrator

Runs the instances of a runtime provider: start, task completion and signal resume.

Members

MemberKindSummary
CompleteAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowTaskExecutionContext, CancellationToken)methodCompletes a task.
ResumeAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowSignalExecutionContext, CancellationToken)methodResumes an instance with a signal.
StartAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowBusinessReference, StartWorkflowRequest, object, CancellationToken)methodStarts an instance.

method CompleteAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowTaskExecutionContext, CancellationToken) #

Task<WorkflowRuntimeExecutionResult> CompleteAsync(WorkflowRegistration registration, WorkflowDefinitionDescriptor definition, WorkflowTaskExecutionContext context, CancellationToken cancellationToken = default)

Completes a task.

Parameters

  • registration: The workflow registration.
  • definition: The definition descriptor.
  • context: The task context.
  • cancellationToken: Cancels the operation.

Returns

The outcome.

method ResumeAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowSignalExecutionContext, CancellationToken) #

Task<WorkflowRuntimeExecutionResult> ResumeAsync(WorkflowRegistration registration, WorkflowDefinitionDescriptor definition, WorkflowSignalExecutionContext context, CancellationToken cancellationToken = default)

Resumes an instance with a signal.

Parameters

  • registration: The workflow registration.
  • definition: The definition descriptor.
  • context: The signal context.
  • cancellationToken: Cancels the operation.

Returns

The outcome.

method StartAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowBusinessReference, StartWorkflowRequest, object, CancellationToken) #

Task<WorkflowRuntimeExecutionResult> StartAsync(WorkflowRegistration registration, WorkflowDefinitionDescriptor definition, WorkflowBusinessReference? businessReference, StartWorkflowRequest request, object startRequest, CancellationToken cancellationToken = default)

Starts an instance.

Parameters

  • registration: The workflow registration.
  • definition: The definition descriptor.
  • businessReference: The business reference.
  • request: The start request.
  • startRequest: The typed start request.
  • cancellationToken: Cancels the operation.

Returns

The outcome.

interface IWorkflowRuntimeProvider

public interface IWorkflowRuntimeProvider : IWorkflowRuntimeOrchestrator

A runtime orchestrator with a provider name.

Members

MemberKindSummary
ProviderNamepropertyThe provider name.

property ProviderName #

string ProviderName { get; }

The provider name.

interface IWorkflowRuntimeStateStore

public interface IWorkflowRuntimeStateStore

Stores the runtime state of instances.

Members

MemberKindSummary
DeleteAsync(IReadOnlyCollection<string>, CancellationToken)methodDeletes the runtime states of instances.
GetAsync(string, CancellationToken)methodReads the runtime state of an instance.
GetManyAsync(IReadOnlyCollection<string>, CancellationToken)methodReads the runtime states of instances.
MarkStaleAsync(IReadOnlyCollection<string>, DateTime, CancellationToken)methodMarks instances stale.
UpsertAsync(WorkflowRuntimeStateRecord, CancellationToken)methodWrites a runtime state whose version is one above the stored one (or the first).

method DeleteAsync(IReadOnlyCollection<string>, CancellationToken) #

Task<int> DeleteAsync(IReadOnlyCollection<string> workflowInstanceIds, CancellationToken cancellationToken = default)

Deletes the runtime states of instances.

Parameters

  • workflowInstanceIds: The instances.
  • cancellationToken: Cancels the operation.

Returns

The states deleted.

method GetAsync(string, CancellationToken) #

Task<WorkflowRuntimeStateRecord?> GetAsync(string workflowInstanceId, CancellationToken cancellationToken = default)

Reads the runtime state of an instance.

Parameters

  • workflowInstanceId: The instance.
  • cancellationToken: Cancels the operation.

Returns

The state, or null.

method GetManyAsync(IReadOnlyCollection<string>, CancellationToken) #

Task<IReadOnlyCollection<WorkflowRuntimeStateRecord>> GetManyAsync(IReadOnlyCollection<string> workflowInstanceIds, CancellationToken cancellationToken = default)

Reads the runtime states of instances.

Parameters

  • workflowInstanceIds: The instances.
  • cancellationToken: Cancels the operation.

Returns

The states found.

method MarkStaleAsync(IReadOnlyCollection<string>, DateTime, CancellationToken) #

Task<int> MarkStaleAsync(IReadOnlyCollection<string> workflowInstanceIds, DateTime updatedOnUtc, CancellationToken cancellationToken = default)

Marks instances stale.

Parameters

  • workflowInstanceIds: The instances.
  • updatedOnUtc: The change time, in UTC.
  • cancellationToken: Cancels the operation.

Returns

The instances marked.

method UpsertAsync(WorkflowRuntimeStateRecord, CancellationToken) #

Task UpsertAsync(WorkflowRuntimeStateRecord state, CancellationToken cancellationToken = default)

Writes a runtime state whose version is one above the stored one (or the first).

Parameters

  • state: The state.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the state is written.

Exceptions

interface IWorkflowScheduleBus

public interface IWorkflowScheduleBus

Schedules signals for later.

Members

MemberKindSummary
ScheduleAsync(WorkflowSignalEnvelope, DateTime, CancellationToken)methodStores a signal that becomes available at dueAtUtc.

method ScheduleAsync(WorkflowSignalEnvelope, DateTime, CancellationToken) #

Task ScheduleAsync(WorkflowSignalEnvelope envelope, DateTime dueAtUtc, CancellationToken cancellationToken = default)

Stores a signal that becomes available at dueAtUtc.

Parameters

  • envelope: The signal.
  • dueAtUtc: When the signal is due, in UTC.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is stored.

interface IWorkflowServiceMetadataApi

public interface IWorkflowServiceMetadataApi

Workflow service metadata operations: retrieving operational metadata about the running workflow service instance.

Members

MemberKindSummary
GetMetadataAsync(CancellationToken)methodReturns the service metadata.

method GetMetadataAsync(CancellationToken) #

Task<WorkflowServiceMetadataGetResponse> GetMetadataAsync(CancellationToken cancellationToken = default)

Returns the service metadata.

Parameters

  • cancellationToken: Cancels the operation.

Returns

The metadata.

interface IWorkflowSignalBus

public interface IWorkflowSignalBus

Publishes and delivers the signals of workflow instances.

Members

MemberKindSummary
PublishAsync(WorkflowSignalEnvelope, CancellationToken)methodStores a signal for delivery.
PublishDeadLetterAsync(WorkflowSignalEnvelope, CancellationToken)methodStores a signal that could not be processed as a dead letter.
ReceiveAsync(string, CancellationToken)methodWaits for a signal to claim.

method PublishAsync(WorkflowSignalEnvelope, CancellationToken) #

Task PublishAsync(WorkflowSignalEnvelope envelope, CancellationToken cancellationToken = default)

Stores a signal for delivery.

Parameters

  • envelope: The signal.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is stored.

method PublishDeadLetterAsync(WorkflowSignalEnvelope, CancellationToken) #

Task PublishDeadLetterAsync(WorkflowSignalEnvelope envelope, CancellationToken cancellationToken = default)

Stores a signal that could not be processed as a dead letter.

Parameters

  • envelope: The signal.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is stored.

method ReceiveAsync(string, CancellationToken) #

Task<IWorkflowSignalLease?> ReceiveAsync(string consumerName, CancellationToken cancellationToken = default)

Waits for a signal to claim.

Parameters

  • consumerName: The consumer.
  • cancellationToken: Cancels the operation.

Returns

The lease of the claimed signal, or null when none arrives in time.

interface IWorkflowSignalClaimStore

public interface IWorkflowSignalClaimStore

Claims stored signals for processing.

Members

MemberKindSummary
TryClaimAsync(string, CancellationToken)methodClaims one available signal for a consumer.

method TryClaimAsync(string, CancellationToken) #

Task<IWorkflowSignalLease?> TryClaimAsync(string consumerName, CancellationToken cancellationToken = default)

Claims one available signal for a consumer.

Parameters

  • consumerName: The consumer.
  • cancellationToken: Cancels the operation.

Returns

The lease of the claimed signal, or null when none is available.

interface IWorkflowSignalDeadLetterApi

public interface IWorkflowSignalDeadLetterApi

Workflow signal dead-letter operations: listing and replaying dead-lettered signals.

Members

MemberKindSummary
GetMessagesAsync(WorkflowSignalDeadLettersGetRequest, CancellationToken)methodLists the dead-lettered signals.
ReplayAsync(WorkflowSignalDeadLetterReplayRequest, CancellationToken)methodPuts a dead letter back on the signal queue.

method GetMessagesAsync(WorkflowSignalDeadLettersGetRequest, CancellationToken) #

Task<WorkflowSignalDeadLettersGetResponse> GetMessagesAsync(WorkflowSignalDeadLettersGetRequest request, CancellationToken cancellationToken = default)

Lists the dead-lettered signals.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

A page of dead letters.

method ReplayAsync(WorkflowSignalDeadLetterReplayRequest, CancellationToken) #

Task<WorkflowSignalDeadLetterReplayResponse> ReplayAsync(WorkflowSignalDeadLetterReplayRequest request, CancellationToken cancellationToken = default)

Puts a dead letter back on the signal queue.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The outcome.

interface IWorkflowSignalDeadLetterStore

public interface IWorkflowSignalDeadLetterStore

Lists and replays the dead-lettered signals of a store.

Members

MemberKindSummary
GetMessagesAsync(WorkflowSignalDeadLettersGetRequest, CancellationToken)methodLists the dead-lettered signals.
ReplayAsync(WorkflowSignalDeadLetterReplayRequest, CancellationToken)methodPuts a dead letter back on the signal queue.

method GetMessagesAsync(WorkflowSignalDeadLettersGetRequest, CancellationToken) #

Task<WorkflowSignalDeadLettersGetResponse> GetMessagesAsync(WorkflowSignalDeadLettersGetRequest request, CancellationToken cancellationToken = default)

Lists the dead-lettered signals.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

A page of dead letters.

method ReplayAsync(WorkflowSignalDeadLetterReplayRequest, CancellationToken) #

Task<WorkflowSignalDeadLetterReplayResponse> ReplayAsync(WorkflowSignalDeadLetterReplayRequest request, CancellationToken cancellationToken = default)

Puts a dead letter back on the signal queue.

Parameters

  • request: The request.
  • cancellationToken: Cancels the operation.

Returns

The outcome.

interface IWorkflowSignalDriver

public interface IWorkflowSignalDriver

Wakes the signal consumers when a signal is stored, and hands them signals to process.

Members

MemberKindSummary
DispatchModepropertyWhen the engine tells the driver that a signal is available.
DriverNamepropertyThe driver name, as WorkflowSignalDriver:Provider selects it.
NotifySignalAvailableAsync(WorkflowSignalWakeNotification, CancellationToken)methodTells the consumers that a signal is available.
ReceiveAsync(string, CancellationToken)methodWaits up to the driver’s blocking wait for a signal to claim.

property DispatchMode #

WorkflowSignalDriverDispatchMode DispatchMode { get; }

When the engine tells the driver that a signal is available.

property DriverName #

string DriverName { get; }

The driver name, as WorkflowSignalDriver:Provider selects it.

method NotifySignalAvailableAsync(WorkflowSignalWakeNotification, CancellationToken) #

Task NotifySignalAvailableAsync(WorkflowSignalWakeNotification notification, CancellationToken cancellationToken = default)

Tells the consumers that a signal is available.

Parameters

  • notification: The available signal.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the notification is sent.

method ReceiveAsync(string, CancellationToken) #

Task<IWorkflowSignalLease?> ReceiveAsync(string consumerName, CancellationToken cancellationToken = default)

Waits up to the driver’s blocking wait for a signal to claim.

Parameters

  • consumerName: The consumer.
  • cancellationToken: Cancels the operation.

Returns

The lease of the claimed signal, or null when none arrives in time.

interface IWorkflowSignalDriverRegistrationMarker

public interface IWorkflowSignalDriverRegistrationMarker

Registered by a signal driver library. ValidateWorkflowProviderRegistrations refuses a configured driver that no library registered.

Members

MemberKindSummary
DriverNamepropertyThe driver name, compared ignoring case with WorkflowSignalDriver:Provider.

property DriverName #

string DriverName { get; }

The driver name, compared ignoring case with WorkflowSignalDriver:Provider.

interface IWorkflowSignalLease

public interface IWorkflowSignalLease : IAsyncDisposable

A claimed signal: complete it when it is processed, abandon it to let it be claimed again, or dead-letter it.

Members

MemberKindSummary
DeliveryCountpropertyHow many times the signal has been delivered, this delivery included.
EnvelopepropertyThe claimed signal.
AbandonAsync(CancellationToken)methodReleases the signal, so it can be claimed again.
CompleteAsync(CancellationToken)methodRemoves the processed signal.
DeadLetterAsync(CancellationToken)methodMoves the signal to the dead letters.

property DeliveryCount #

int DeliveryCount { get; }

How many times the signal has been delivered, this delivery included.

property Envelope #

WorkflowSignalEnvelope Envelope { get; }

The claimed signal.

method AbandonAsync(CancellationToken) #

Task AbandonAsync(CancellationToken cancellationToken = default)

Releases the signal, so it can be claimed again.

Parameters

  • cancellationToken: Cancels the operation.

Returns

A task that completes when it is released.

method CompleteAsync(CancellationToken) #

Task CompleteAsync(CancellationToken cancellationToken = default)

Removes the processed signal.

Parameters

  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is removed.

method DeadLetterAsync(CancellationToken) #

Task DeadLetterAsync(CancellationToken cancellationToken = default)

Moves the signal to the dead letters.

Parameters

  • cancellationToken: Cancels the operation.

Returns

A task that completes when it is moved.

interface IWorkflowSignalProcessor

public interface IWorkflowSignalProcessor

Applies a signal to its workflow instance.

Members

MemberKindSummary
ProcessAsync(WorkflowSignalEnvelope, CancellationToken)methodApplies a signal to its instance.

method ProcessAsync(WorkflowSignalEnvelope, CancellationToken) #

Task ProcessAsync(WorkflowSignalEnvelope envelope, CancellationToken cancellationToken = default)

Applies a signal to its instance.

Parameters

  • envelope: The signal.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is applied.

interface IWorkflowSignalPumpTelemetryApi

public interface IWorkflowSignalPumpTelemetryApi

Workflow signal pump telemetry operations: retrieving in-process statistics for the workflow signal pump.

Members

MemberKindSummary
GetStatsAsync(CancellationToken)methodReturns the signal pump counts of this process.

method GetStatsAsync(CancellationToken) #

Task<WorkflowSignalPumpStatsGetResponse> GetStatsAsync(CancellationToken cancellationToken = default)

Returns the signal pump counts of this process.

Parameters

  • cancellationToken: Cancels the operation.

Returns

The statistics.

interface IWorkflowSignalResumableExecutionHandler

public interface IWorkflowSignalResumableExecutionHandler

An execution handler that also resumes instances with signals.

Members

MemberKindSummary
ResumeSignalAsync(WorkflowSignalResumeContext, CancellationToken)methodPlans the resume of an instance with a signal.

method ResumeSignalAsync(WorkflowSignalResumeContext, CancellationToken) #

Task<WorkflowTaskCompletionPlan> ResumeSignalAsync(WorkflowSignalResumeContext context, CancellationToken cancellationToken = default)

Plans the resume of an instance with a signal.

Parameters

  • context: The resume context.
  • cancellationToken: Cancels the operation.

Returns

The plan.

interface IWorkflowSignalScheduler

public interface IWorkflowSignalScheduler

Schedules signals for later, such as the signal of a timer.

Members

MemberKindSummary
ScheduleAsync(WorkflowSignalEnvelope, DateTime, CancellationToken)methodStores a signal that becomes available at dueAtUtc.

method ScheduleAsync(WorkflowSignalEnvelope, DateTime, CancellationToken) #

Task ScheduleAsync(WorkflowSignalEnvelope envelope, DateTime dueAtUtc, CancellationToken cancellationToken = default)

Stores a signal that becomes available at dueAtUtc.

Parameters

  • envelope: The signal.
  • dueAtUtc: When the signal is due, in UTC.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is stored.

interface IWorkflowSignalStore

public interface IWorkflowSignalStore

Stores signals and dead letters.

Members

MemberKindSummary
PublishAsync(WorkflowSignalEnvelope, CancellationToken)methodStores a signal for delivery.
PublishDeadLetterAsync(WorkflowSignalEnvelope, CancellationToken)methodStores a signal that could not be processed as a dead letter.

method PublishAsync(WorkflowSignalEnvelope, CancellationToken) #

Task PublishAsync(WorkflowSignalEnvelope envelope, CancellationToken cancellationToken = default)

Stores a signal for delivery.

Parameters

  • envelope: The signal.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is stored.

method PublishDeadLetterAsync(WorkflowSignalEnvelope, CancellationToken) #

Task PublishDeadLetterAsync(WorkflowSignalEnvelope envelope, CancellationToken cancellationToken = default)

Stores a signal that could not be processed as a dead letter.

Parameters

  • envelope: The signal.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the signal is stored.

interface IWorkflowSourceFormatConverter

public interface IWorkflowSourceFormatConverter

Converts workflow definitions between a source format and the canonical JSON shape used by the engine’s import / export pipeline. The engine registers converters for canonical JSON, canonical YAML and the canonical bundle ZIP; a host can register its own. All concrete converters should produce / consume canonical JSON; every other pipeline concern (schema validation, hashing, upsert, activation) stays on the existing import path.

Members

MemberKindSummary
ContentTypepropertyMIME type of the content this converter produces / consumes.
DisplayNamepropertyHuman-friendly name, for example for a format picker.
FileExtensionpropertyCanonical file extension including the leading dot (e.g., “.json”, “.yaml”, “.zip”).
FormatIdpropertyStable, machine-readable identifier (e.g., “canonical-json”, “canonical-yaml”, “canonical-bundle”).
IsBinarypropertyTrue when the format is not safely paste-able as text (e.g., binary ZIP).
SupportsExportpropertyTrue when the converter supports encoding a stored definition into its format.
SupportsImportpropertyTrue when the converter supports decoding its format into canonical JSON.
ExportAsync(WorkflowDefinitionRecord, CancellationToken)methodConverts a stored definition to the format.
ImportAsync(byte[], CancellationToken)methodConverts content of the format to a canonical definition.

property ContentType #

string ContentType { get; }

MIME type of the content this converter produces / consumes.

property DisplayName #

string DisplayName { get; }

Human-friendly name, for example for a format picker.

property FileExtension #

string FileExtension { get; }

Canonical file extension including the leading dot (e.g., “.json”, “.yaml”, “.zip”).

property FormatId #

string FormatId { get; }

Stable, machine-readable identifier (e.g., “canonical-json”, “canonical-yaml”, “canonical-bundle”).

property IsBinary #

bool IsBinary { get; }

True when the format is not safely paste-able as text (e.g., binary ZIP). UI uses this to disable the textarea mode and force file upload.

property SupportsExport #

bool SupportsExport { get; }

True when the converter supports encoding a stored definition into its format.

property SupportsImport #

bool SupportsImport { get; }

True when the converter supports decoding its format into canonical JSON.

method ExportAsync(WorkflowDefinitionRecord, CancellationToken) #

Task<WorkflowSourceExportResult> ExportAsync(WorkflowDefinitionRecord record, CancellationToken cancellationToken = default)

Converts a stored definition to the format.

Parameters

  • record: The stored definition.
  • cancellationToken: Cancels the operation.

Returns

The content, its media type and a file name.

method ImportAsync(byte[], CancellationToken) #

Task<WorkflowSourceImportResult> ImportAsync(byte[] content, CancellationToken cancellationToken = default)

Converts content of the format to a canonical definition.

Parameters

  • content: The content.
  • cancellationToken: Cancels the operation.

Returns

The canonical definition, or the diagnostics of a failed conversion.

interface IWorkflowSourceFormatRegistry

public interface IWorkflowSourceFormatRegistry

Resolves converters by IWorkflowSourceFormatConverter.FormatId; used by the multi-format import / export endpoints to dispatch to the right converter.

Members

MemberKindSummary
GetAll()methodReturns the converters, ordered by display name.
GetRequired(string)methodFinds a converter by format id, ignoring case.
TryGet(string)methodFinds a converter by format id, ignoring case.

method GetAll() #

IReadOnlyCollection<IWorkflowSourceFormatConverter> GetAll()

Returns the converters, ordered by display name.

Returns

The converters.

method GetRequired(string) #

IWorkflowSourceFormatConverter GetRequired(string formatId)

Finds a converter by format id, ignoring case.

Parameters

  • formatId: The format id.

Returns

The converter.

Exceptions

  • InvalidOperationException: No converter has the format id.

method TryGet(string) #

IWorkflowSourceFormatConverter? TryGet(string formatId)

Finds a converter by format id, ignoring case.

Parameters

  • formatId: The format id.

Returns

The converter, or null.

interface IWorkflowSpecExecutionContext

public interface IWorkflowSpecExecutionContext

The execution context of a workflow, without its start request type.

Members

MemberKindSummary
PayloadpropertyThe payload being handled, such as a task completion.
PayloadValuespropertyThe payload as a value dictionary; a missing key raises an error.
ResultValuespropertyThe kept step results, by key; keys compare ignoring case.
StateValuespropertyThe workflow state as a value dictionary; a missing key raises an error.
WorkflowNamepropertyThe workflow name.
WorkflowStatepropertyThe workflow state, which steps change.
CompareValue(WorkflowValueSource, string, object)methodWhether a payload or state value equals a value.
GetOptionalResult<TResponse>(string)methodReturns a kept result, or the default when none is kept under the key.
GetRequiredResult<TResponse>(string)methodReturns a kept result.

property Payload #

IReadOnlyDictionary<string, JsonElement> Payload { get; }

The payload being handled, such as a task completion.

property PayloadValues #

WorkflowValueDictionary PayloadValues { get; }

The payload as a value dictionary; a missing key raises an error.

property ResultValues #

IReadOnlyDictionary<string, JsonElement> ResultValues { get; }

The kept step results, by key; keys compare ignoring case.

property StateValues #

WorkflowValueDictionary StateValues { get; }

The workflow state as a value dictionary; a missing key raises an error.

property WorkflowName #

string WorkflowName { get; }

The workflow name.

property WorkflowState #

Dictionary<string, JsonElement> WorkflowState { get; }

The workflow state, which steps change.

method CompareValue(WorkflowValueSource, string, object) #

bool CompareValue(WorkflowValueSource source, string key, object? expectedValue)

Whether a payload or state value equals a value.

Parameters

  • source: Where the value is read.
  • key: The key.
  • expectedValue: The value to compare with.

Returns

Whether the values are equal.

method GetOptionalResult<TResponse>(string) #

TResponse? GetOptionalResult<TResponse>(string resultKey)

Returns a kept result, or the default when none is kept under the key.

Type parameters

  • TResponse: The result type.

Parameters

  • resultKey: The result key.

Returns

The result, or the default.

method GetRequiredResult<TResponse>(string) #

TResponse GetRequiredResult<TResponse>(string resultKey)

Returns a kept result.

Type parameters

  • TResponse: The result type.

Parameters

  • resultKey: The result key.

Returns

The result.

interface IWorkflowStateJsonPolicy

public interface IWorkflowStateJsonPolicy

Checks the workflow state JSON against the limits before it is stored.

Members

MemberKindSummary
Validate(string)methodChecks a state against the limits.

method Validate(string) #

void Validate(string stateJson)

Checks a state against the limits.

Parameters

  • stateJson: The state, as JSON.

Exceptions

  • InvalidOperationException: The state breaks a limit; the message is the WORKFLOW_STATE_JSON_* code.

interface IWorkflowWakeOutbox

public interface IWorkflowWakeOutbox

The outbox of wake notifications, for a driver whose dispatch mode is WorkflowSignalDriverDispatchMode.WakeOutbox.

Members

MemberKindSummary
EnqueueAsync(WorkflowSignalWakeNotification, CancellationToken)methodWrites a wake notification to the outbox.

method EnqueueAsync(WorkflowSignalWakeNotification, CancellationToken) #

Task EnqueueAsync(WorkflowSignalWakeNotification notification, CancellationToken cancellationToken = default)

Writes a wake notification to the outbox.

Parameters

  • notification: The notification.
  • cancellationToken: Cancels the operation.

Returns

A task that completes when the notification is written.

interface IWorkflowWakeOutboxLease

public interface IWorkflowWakeOutboxLease : IAsyncDisposable

A claimed wake notification of the outbox.

Members

MemberKindSummary
ConsumerNamepropertyThe consumer that claimed it.
NotificationpropertyThe claimed notification.
AbandonAsync(CancellationToken)methodReleases the notification, so it can be claimed again.
CompleteAsync(CancellationToken)methodRemoves the notification from the outbox.

property ConsumerName #

string ConsumerName { get; }

The consumer that claimed it.

property Notification #

WorkflowSignalWakeNotification Notification { get; }

The claimed notification.

method AbandonAsync(CancellationToken) #

Task AbandonAsync(CancellationToken cancellationToken = default)

Releases the notification, so it can be claimed again.

Parameters

  • cancellationToken: Cancels the operation.

Returns

A task that completes when it is released.

method CompleteAsync(CancellationToken) #

Task CompleteAsync(CancellationToken cancellationToken = default)

Removes the notification from the outbox.

Parameters

  • cancellationToken: Cancels the operation.

Returns

A task that completes when it is removed.

interface IWorkflowWakeOutboxReceiver

public interface IWorkflowWakeOutboxReceiver

Claims the wake notifications of the outbox.

Members

MemberKindSummary
ReceiveAsync(string, CancellationToken)methodClaims one wake notification of the outbox for a consumer.

method ReceiveAsync(string, CancellationToken) #

Task<IWorkflowWakeOutboxLease?> ReceiveAsync(string consumerName, CancellationToken cancellationToken = default)

Claims one wake notification of the outbox for a consumer.

Parameters

  • consumerName: The consumer.
  • cancellationToken: Cancels the operation.

Returns

The lease of the notification, or null when there is none.

class NoopWorkflowExecutionHandler

public sealed class NoopWorkflowExecutionHandler : IWorkflowExecutionHandler

A placeholder handler for registrations whose steps the engine runs from their definition.

Members

MemberKindSummary
NoopWorkflowExecutionHandler()constructorCreates an instance of NoopWorkflowExecutionHandler.
CompleteTaskAsync(WorkflowTaskExecutionContext, CancellationToken)methodNever runs.
StartAsync(WorkflowStartExecutionContext, CancellationToken)methodNever runs.

constructor NoopWorkflowExecutionHandler() #

public NoopWorkflowExecutionHandler()

Creates an instance of NoopWorkflowExecutionHandler.

method CompleteTaskAsync(WorkflowTaskExecutionContext, CancellationToken) #

public Task<WorkflowTaskCompletionPlan> CompleteTaskAsync(WorkflowTaskExecutionContext context, CancellationToken cancellationToken = default)

Never runs.

Parameters

  • context: The task context.
  • cancellationToken: Cancels the operation.

Returns

Never returns.

Exceptions

  • NotSupportedException: Always.

method StartAsync(WorkflowStartExecutionContext, CancellationToken) #

public Task<WorkflowStartExecutionPlan> StartAsync(WorkflowStartExecutionContext context, CancellationToken cancellationToken = default)

Never runs.

Parameters

  • context: The start context.
  • cancellationToken: Cancels the operation.

Returns

Never returns.

Exceptions

  • NotSupportedException: Always.

class NullWorkflowActorRoleResolver

public sealed class NullWorkflowActorRoleResolver : IWorkflowActorRoleResolver

Default no-op resolver that passes through client-supplied values. Used when no database-backed role resolution is configured.

Members

MemberKindSummary
NullWorkflowActorRoleResolver()constructorCreates an instance of NullWorkflowActorRoleResolver.
ResolveActorId(string)methodReturns the client’s actor id, or empty.
ResolveActorRolesAsync(string, IReadOnlyCollection<string>, CancellationToken)methodResolves user roles from a trusted source (database, identity provider).

constructor NullWorkflowActorRoleResolver() #

public NullWorkflowActorRoleResolver()

Creates an instance of NullWorkflowActorRoleResolver.

method ResolveActorId(string) #

public string ResolveActorId(string? clientActorId)

Returns the client’s actor id, or empty.

Parameters

  • clientActorId: The client’s actor id.

Returns

The actor id.

method ResolveActorRolesAsync(string, IReadOnlyCollection<string>, CancellationToken) #

public Task<IReadOnlyCollection<string>> ResolveActorRolesAsync(string actorId, IReadOnlyCollection<string>? clientRoles, CancellationToken cancellationToken = default)

Resolves user roles from a trusted source (database, identity provider). Falls back to clientRoles when no server-side context is available (e.g., during signal pump processing).

class RabbitAddress

public sealed class RabbitAddress

The address of a RabbitMQ call: the exchange and routing key the message is published to. A command-style peer also gets the command name it dispatches on, how the message frames it, and whether the call waits for a correlated reply; the reply queue and the reply timeout are transport configuration.

Members

MemberKindSummary
RabbitAddress(string, string, string, WorkflowRabbitCommandFraming, bool)constructorCreates the address.
CommandpropertyThe command-style semantics, or null for a plain publish.
ExchangepropertyThe exchange.
RoutingKeypropertyThe routing key.

constructor RabbitAddress(string, string, string, WorkflowRabbitCommandFraming, bool) #

public RabbitAddress(string exchange, string routingKey, string? command = null, WorkflowRabbitCommandFraming framing = Envelope, bool expectReply = true)

Creates the address. Without a command it is a publish with publisher confirms; with one, the call waits for the correlated reply unless expectReply is false.

Parameters

  • exchange: The exchange.
  • routingKey: The routing key.
  • command: The command name the peer dispatches on; a plain publish when not set.
  • framing: How the message carries the command name.
  • expectReply: Whether a command waits for the correlated reply.

Exceptions

  • ArgumentException: A required value is empty or white space.

property Command #

public WorkflowRabbitCommandDeclaration? Command { get; }

The command-style semantics, or null for a plain publish.

property Exchange #

public string Exchange { get; }

The exchange.

property RoutingKey #

public string RoutingKey { get; }

The routing key.

class RequiredPayloadKeyCancellationCleanupPolicy

public class RequiredPayloadKeyCancellationCleanupPolicy : IWorkflowCancellationCleanupPolicy

Starts the cleanup workflow only when the cleanup payload carries a non-empty value under a required key: without it there is nothing to clean up.

Members

MemberKindSummary
RequiredPayloadKeyCancellationCleanupPolicy(string)constructorStarts the cleanup workflow only when the cleanup payload carries a non-empty value under a required key: without it there is nothing to clean up.
PayloadKeypropertyThe key the cleanup payload must carry a value under.
ShouldStartCleanup(WorkflowCancelRequest)methodWhether cancelling starts the cleanup workflow of the request.

constructor RequiredPayloadKeyCancellationCleanupPolicy(string) #

public RequiredPayloadKeyCancellationCleanupPolicy(string payloadKey)

Starts the cleanup workflow only when the cleanup payload carries a non-empty value under a required key: without it there is nothing to clean up.

property PayloadKey #

public string PayloadKey { get; }

The key the cleanup payload must carry a value under.

method ShouldStartCleanup(WorkflowCancelRequest) #

public bool ShouldStartCleanup(WorkflowCancelRequest request)

Whether cancelling starts the cleanup workflow of the request.

Parameters

  • request: The cancel request.

Returns

Whether to start it.

record WorkflowActivateTaskStepDefinition<TStartRequest>

public sealed record WorkflowActivateTaskStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Opens a declared human task.

Parameters

  • TaskName: The declared task to open.
  • RuntimeRolesFactory: Computes the roles that replace the task roles; when it yields no role, the task roles apply.

Members

MemberKindSummary
WorkflowActivateTaskStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>)constructorOpens a declared human task.
RuntimeRolesExpressionpropertyThe roles as an expression, for the canonical definition.
RuntimeRolesFactorypropertyComputes the roles that replace the task roles; when it yields no role, the task roles apply.
TaskNamepropertyThe declared task to open.

constructor WorkflowActivateTaskStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>) #

public WorkflowActivateTaskStepDefinition(string TaskName, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>> RuntimeRolesFactory)

Opens a declared human task.

Parameters

  • TaskName: The declared task to open.
  • RuntimeRolesFactory: Computes the roles that replace the task roles; when it yields no role, the task roles apply.

property RuntimeRolesExpression #

public WorkflowExpressionDefinition? RuntimeRolesExpression { get; init; }

The roles as an expression, for the canonical definition.

property RuntimeRolesFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>> RuntimeRolesFactory { get; init; }

Computes the roles that replace the task roles; when it yields no role, the task roles apply.

property TaskName #

public string TaskName { get; init; }

The declared task to open.

record WorkflowActivityAttempt

public sealed record WorkflowActivityAttempt

One semantic attempt of a step, with its frozen request and how it completed.

Members

MemberKindSummary
WorkflowActivityAttempt()constructorCreates an instance of WorkflowActivityAttempt.
AttemptIdpropertyThe attempt.
AttemptNumberpropertyThe attempt number, from 1.
CanonicalRequestJsonpropertyThe canonical request, as JSON.
CompletedAtUtcpropertyWhen it completed, in UTC.
CompletionDispositionpropertyHow the completion was applied.
CompletionEventIdpropertyThe completion event, once it arrived.
CompletionSha256propertyThe SHA-256 of the completion.
ContractKindpropertyThe contract kind of the activity.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DeadlineAtUtcpropertyThe deadline of the attempt, in UTC.
DispatchIdpropertyThe dispatch.
ExpectedExecutionVersionpropertyThe execution version the step or attempt was created at.
HandlerBuildSha256propertyThe SHA-256 of the handler build.
PriorAttemptIdpropertyThe attempt this one follows.
PriorCompletionEventIdpropertyThe completion of the prior attempt.
ProviderGenerationpropertyThe provider generation that answered.
ProviderReferencepropertyThe provider’s reference of the attempt.
RequestSha256propertyThe SHA-256 of the request.
ScopeExecutionIdpropertyThe scope of the step.
StatuspropertyThe status.
StepExecutionIdpropertyThe step execution.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityAttempt() #

public WorkflowActivityAttempt()

Creates an instance of WorkflowActivityAttempt.

property AttemptId #

public required string AttemptId { get; init; }

The attempt.

property AttemptNumber #

public int AttemptNumber { get; init; }

The attempt number, from 1.

property CanonicalRequestJson #

public required string CanonicalRequestJson { get; init; }

The canonical request, as JSON.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property CompletionDisposition #

public string? CompletionDisposition { get; init; }

How the completion was applied.

property CompletionEventId #

public string? CompletionEventId { get; init; }

The completion event, once it arrived.

property CompletionSha256 #

public string? CompletionSha256 { get; init; }

The SHA-256 of the completion.

property ContractKind #

public required string ContractKind { get; init; }

The contract kind of the activity.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DeadlineAtUtc #

public DateTime DeadlineAtUtc { get; init; }

The deadline of the attempt, in UTC.

property DispatchId #

public required string DispatchId { get; init; }

The dispatch.

property ExpectedExecutionVersion #

public long ExpectedExecutionVersion { get; init; }

The execution version the step or attempt was created at.

property HandlerBuildSha256 #

public required string HandlerBuildSha256 { get; init; }

The SHA-256 of the handler build.

property PriorAttemptId #

public string? PriorAttemptId { get; init; }

The attempt this one follows.

property PriorCompletionEventId #

public string? PriorCompletionEventId { get; init; }

The completion of the prior attempt.

property ProviderGeneration #

public long? ProviderGeneration { get; init; }

The provider generation that answered.

property ProviderReference #

public string? ProviderReference { get; init; }

The provider’s reference of the attempt.

property RequestSha256 #

public required string RequestSha256 { get; init; }

The SHA-256 of the request.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the step.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The step execution.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityCancelEntry

public sealed record WorkflowActivityCancelEntry

An activity cancel request waiting in, or delivered from, the cancel outbox.

Members

MemberKindSummary
WorkflowActivityCancelEntry()constructorCreates an instance of WorkflowActivityCancelEntry.
AttemptIdpropertyThe attempt.
CancelFenceVersionpropertyThe cancel fence of the request.
CancelIdpropertyThe cancel request.
CancelLanepropertyThe lane the cancel goes to.
CanonicalPayloadJsonpropertyThe canonical payload, as JSON.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DeliveryAttemptspropertyThe delivery attempts so far.
DeliveryStatepropertyThe delivery state: READY or PUBLISHED.
EventIdpropertyThe cancel event.
PayloadSha256propertyThe SHA-256 of the payload.
PublishedAtUtcpropertyWhen it was published, in UTC.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityCancelEntry() #

public WorkflowActivityCancelEntry()

Creates an instance of WorkflowActivityCancelEntry.

property AttemptId #

public required string AttemptId { get; init; }

The attempt.

property CancelFenceVersion #

public long CancelFenceVersion { get; init; }

The cancel fence of the request.

property CancelId #

public required string CancelId { get; init; }

The cancel request.

property CancelLane #

public required string CancelLane { get; init; }

The lane the cancel goes to.

property CanonicalPayloadJson #

public required string CanonicalPayloadJson { get; init; }

The canonical payload, as JSON.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DeliveryAttempts #

public int DeliveryAttempts { get; init; }

The delivery attempts so far.

property DeliveryState #

public required string DeliveryState { get; init; }

The delivery state: READY or PUBLISHED.

property EventId #

public required string EventId { get; init; }

The cancel event.

property PayloadSha256 #

public required string PayloadSha256 { get; init; }

The SHA-256 of the payload.

property PublishedAtUtc #

public DateTime? PublishedAtUtc { get; init; }

When it was published, in UTC.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityCompletionEntry

public sealed record WorkflowActivityCompletionEntry

A received activity completion and the disposition it was recorded with.

Members

MemberKindSummary
WorkflowActivityCompletionEntry()constructorCreates an instance of WorkflowActivityCompletionEntry.
AppliedAtUtcpropertyWhen it was applied, in UTC.
AttemptIdpropertyThe attempt.
CanonicalCompletionJsonpropertyThe canonical completion, as JSON.
CompletionSha256propertyThe SHA-256 of the completion.
DispositionpropertyHow it was recorded.
EventIdpropertyThe completion event.
ReceivedAtUtcpropertyWhen it was received, in UTC.
SafeCodepropertyThe safe code of a refused completion.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityCompletionEntry() #

public WorkflowActivityCompletionEntry()

Creates an instance of WorkflowActivityCompletionEntry.

property AppliedAtUtc #

public DateTime? AppliedAtUtc { get; init; }

When it was applied, in UTC.

property AttemptId #

public required string AttemptId { get; init; }

The attempt.

property CanonicalCompletionJson #

public required string CanonicalCompletionJson { get; init; }

The canonical completion, as JSON.

property CompletionSha256 #

public required string CompletionSha256 { get; init; }

The SHA-256 of the completion.

property Disposition #

public required string Disposition { get; init; }

How it was recorded.

property EventId #

public required string EventId { get; init; }

The completion event.

property ReceivedAtUtc #

public DateTime ReceivedAtUtc { get; init; }

When it was received, in UTC.

property SafeCode #

public string? SafeCode { get; init; }

The safe code of a refused completion.

property WorkflowExecutionId #

public string? WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityDispatchEntry

public sealed record WorkflowActivityDispatchEntry

An activity dispatch request waiting in, or delivered from, the dispatch outbox.

Members

MemberKindSummary
WorkflowActivityDispatchEntry()constructorCreates an instance of WorkflowActivityDispatchEntry.
AttemptIdpropertyThe attempt.
CanonicalRequestJsonpropertyThe canonical request, as JSON.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DeliveryAttemptspropertyThe delivery attempts so far.
DeliveryStatepropertyThe delivery state: READY or PUBLISHED.
DispatchIdpropertyThe dispatch.
ExecuteLanepropertyThe lane the request goes to.
PublishedAtUtcpropertyWhen it was published, in UTC.
RequestSha256propertyThe SHA-256 of the request.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityDispatchEntry() #

public WorkflowActivityDispatchEntry()

Creates an instance of WorkflowActivityDispatchEntry.

property AttemptId #

public required string AttemptId { get; init; }

The attempt.

property CanonicalRequestJson #

public required string CanonicalRequestJson { get; init; }

The canonical request, as JSON.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DeliveryAttempts #

public int DeliveryAttempts { get; init; }

The delivery attempts so far.

property DeliveryState #

public required string DeliveryState { get; init; }

The delivery state: READY or PUBLISHED.

property DispatchId #

public required string DispatchId { get; init; }

The dispatch.

property ExecuteLane #

public required string ExecuteLane { get; init; }

The lane the request goes to.

property PublishedAtUtc #

public DateTime? PublishedAtUtc { get; init; }

When it was published, in UTC.

property RequestSha256 #

public required string RequestSha256 { get; init; }

The SHA-256 of the request.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityEventAppend

public sealed record WorkflowActivityEventAppend

An execution-history event to append. The store allocates its sequence from the execution’s next event sequence in the same write, in list order.

Members

MemberKindSummary
WorkflowActivityEventAppend()constructorCreates an instance of WorkflowActivityEventAppend.
CreatedAtUtcpropertyWhen the row was created, in UTC.
EventIdpropertyThe event.
EventSha256propertyThe SHA-256 of the event.
EventTypepropertyThe event type.
PayloadJsonpropertyThe event payload, as JSON.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityEventAppend() #

public WorkflowActivityEventAppend()

Creates an instance of WorkflowActivityEventAppend.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property EventId #

public required string EventId { get; init; }

The event.

property EventSha256 #

public required string EventSha256 { get; init; }

The SHA-256 of the event.

property EventType #

public required string EventType { get; init; }

The event type.

property PayloadJson #

public required string PayloadJson { get; init; }

The event payload, as JSON.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityMapItemState

public sealed record WorkflowActivityMapItemState

The status fields of a map item that a stop may skip.

Members

MemberKindSummary
WorkflowActivityMapItemState()constructorCreates an instance of WorkflowActivityMapItemState.
MapExecutionIdpropertyThe map execution.
MapItemIdpropertyThe map item.
StatuspropertyThe status.
VersionNopropertyThe row version, raised by each change.

constructor WorkflowActivityMapItemState() #

public WorkflowActivityMapItemState()

Creates an instance of WorkflowActivityMapItemState.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property MapItemId #

public required string MapItemId { get; init; }

The map item.

property Status #

public required string Status { get; init; }

The status.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

record WorkflowActivityMapItemStatusChange

public sealed record WorkflowActivityMapItemStatusChange

A map item moved to a terminal status; applied only at WorkflowActivityMapItemStatusChange.ExpectedVersionNo.

Members

MemberKindSummary
WorkflowActivityMapItemStatusChange()constructorCreates an instance of WorkflowActivityMapItemStatusChange.
ExpectedVersionNopropertyThe version the stored row must have.
MapItemIdpropertyThe map item.
StatuspropertyThe terminal status.
TerminalOutcomepropertyThe final outcome of the item.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.

constructor WorkflowActivityMapItemStatusChange() #

public WorkflowActivityMapItemStatusChange()

Creates an instance of WorkflowActivityMapItemStatusChange.

property ExpectedVersionNo #

public long ExpectedVersionNo { get; init; }

The version the stored row must have.

property MapItemId #

public required string MapItemId { get; init; }

The map item.

property Status #

public required string Status { get; init; }

The terminal status.

property TerminalOutcome #

public string? TerminalOutcome { get; init; }

The final outcome of the item.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

record WorkflowActivityMapState

public sealed record WorkflowActivityMapState

The status fields of a map execution that a stop may fence.

Members

MemberKindSummary
WorkflowActivityMapState()constructorCreates an instance of WorkflowActivityMapState.
MapExecutionIdpropertyThe map execution.
StatuspropertyThe status.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityMapState() #

public WorkflowActivityMapState()

Creates an instance of WorkflowActivityMapState.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property Status #

public required string Status { get; init; }

The status.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityMapStatusChange

public sealed record WorkflowActivityMapStatusChange

A map execution moved to a terminal status; applied only at WorkflowActivityMapStatusChange.ExpectedVersionNo.

Members

MemberKindSummary
WorkflowActivityMapStatusChange()constructorCreates an instance of WorkflowActivityMapStatusChange.
CompletedAtUtcpropertyWhen it completed, in UTC.
ExpectedVersionNopropertyThe version the stored row must have.
MapExecutionIdpropertyThe map execution.
StatuspropertyThe terminal status.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.

constructor WorkflowActivityMapStatusChange() #

public WorkflowActivityMapStatusChange()

Creates an instance of WorkflowActivityMapStatusChange.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property ExpectedVersionNo #

public long ExpectedVersionNo { get; init; }

The version the stored row must have.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property Status #

public required string Status { get; init; }

The terminal status.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

record WorkflowActivityRuntimeChange

public sealed record WorkflowActivityRuntimeChange

A runtime-state version bump, applied only when the stored version still equals WorkflowActivityRuntimeChange.ExpectedVersion.

Members

MemberKindSummary
WorkflowActivityRuntimeChange()constructorCreates an instance of WorkflowActivityRuntimeChange.
ExpectedVersionpropertyThe version the stored runtime state must have.
LastUpdatedOnUtcpropertyWhen it changed, in UTC.
RuntimeStatuspropertyThe runtime status.
StateJsonpropertyThe new snapshot; null keeps the stored one.
VersionpropertyThe new runtime-state version.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityRuntimeChange() #

public WorkflowActivityRuntimeChange()

Creates an instance of WorkflowActivityRuntimeChange.

property ExpectedVersion #

public long ExpectedVersion { get; init; }

The version the stored runtime state must have.

property LastUpdatedOnUtc #

public DateTime LastUpdatedOnUtc { get; init; }

When it changed, in UTC.

property RuntimeStatus #

public required string RuntimeStatus { get; init; }

The runtime status.

property StateJson #

public string? StateJson { get; init; }

The new snapshot; null keeps the stored one.

property Version #

public long Version { get; init; }

The new runtime-state version.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityRuntimeState

public sealed record WorkflowActivityRuntimeState

The runtime-state fields the activity services read: the execution version and its snapshot.

Members

MemberKindSummary
WorkflowActivityRuntimeState()constructorCreates an instance of WorkflowActivityRuntimeState.
RuntimeProviderpropertyThe runtime provider.
RuntimeStatuspropertyThe runtime status.
StateJsonpropertyThe state snapshot, as JSON.
VersionpropertyThe runtime-state version.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityRuntimeState() #

public WorkflowActivityRuntimeState()

Creates an instance of WorkflowActivityRuntimeState.

property RuntimeProvider #

public required string RuntimeProvider { get; init; }

The runtime provider.

property RuntimeStatus #

public required string RuntimeStatus { get; init; }

The runtime status.

property StateJson #

public required string StateJson { get; init; }

The state snapshot, as JSON.

property Version #

public long Version { get; init; }

The runtime-state version.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityStep

public sealed record WorkflowActivityStep

One logical external-activity step: its binding, current attempt, retry and cancel fences.

Members

MemberKindSummary
WorkflowActivityStep()constructorCreates an instance of WorkflowActivityStep.
AbsoluteDeadlineAtUtcpropertyThe deadline over all attempts, in UTC.
CancelFenceVersionpropertyThe cancel fence, raised by each cancel.
CompletedAtUtcpropertyWhen it completed, in UTC.
ContractVersionpropertyThe contract version of the activity.
CreatedAtUtcpropertyWhen the row was created, in UTC.
CurrentAttemptIdpropertyThe current attempt.
DeadlineAtUtcpropertyThe deadline of the current attempt, in UTC.
DestinationCodepropertyThe destination of the activity.
ExpectedExecutionVersionpropertyThe execution version the step or attempt was created at.
FailureCategorypropertyThe category of the last failure.
LogicalStepKeypropertyThe step in the definition.
MapItemIdpropertyThe map item the step runs for, when it runs in a map.
OperationCodepropertyThe operation of the activity.
ResultJsonpropertyThe result, as JSON.
ResultSha256propertyThe SHA-256 of the result.
RetryAuthorizedBypropertyWho authorized a manual retry.
RetryNotBeforeAtUtcpropertyThe earliest time of the next retry, in UTC.
RetryPolicyJsonpropertyThe retry policy, as JSON.
ScopeExecutionIdpropertyThe scope of the step.
StatuspropertyThe status.
StepExecutionIdpropertyThe step execution.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowActivityStep() #

public WorkflowActivityStep()

Creates an instance of WorkflowActivityStep.

property AbsoluteDeadlineAtUtc #

public DateTime? AbsoluteDeadlineAtUtc { get; init; }

The deadline over all attempts, in UTC.

property CancelFenceVersion #

public long CancelFenceVersion { get; init; }

The cancel fence, raised by each cancel.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property ContractVersion #

public required string ContractVersion { get; init; }

The contract version of the activity.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property CurrentAttemptId #

public required string CurrentAttemptId { get; init; }

The current attempt.

property DeadlineAtUtc #

public DateTime DeadlineAtUtc { get; init; }

The deadline of the current attempt, in UTC.

property DestinationCode #

public required string DestinationCode { get; init; }

The destination of the activity.

property ExpectedExecutionVersion #

public long ExpectedExecutionVersion { get; init; }

The execution version the step or attempt was created at.

property FailureCategory #

public string? FailureCategory { get; init; }

The category of the last failure.

property LogicalStepKey #

public required string LogicalStepKey { get; init; }

The step in the definition.

property MapItemId #

public string? MapItemId { get; init; }

The map item the step runs for, when it runs in a map.

property OperationCode #

public required string OperationCode { get; init; }

The operation of the activity.

property ResultJson #

public string? ResultJson { get; init; }

The result, as JSON.

property ResultSha256 #

public string? ResultSha256 { get; init; }

The SHA-256 of the result.

property RetryAuthorizedBy #

public string? RetryAuthorizedBy { get; init; }

Who authorized a manual retry.

property RetryNotBeforeAtUtc #

public DateTime? RetryNotBeforeAtUtc { get; init; }

The earliest time of the next retry, in UTC.

property RetryPolicyJson #

public string? RetryPolicyJson { get; init; }

The retry policy, as JSON.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the step.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The step execution.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowActivityStepChange

public sealed record WorkflowActivityStepChange

A changed step, written only when its stored version still equals WorkflowActivityStepChange.ExpectedVersionNo.

Members

MemberKindSummary
WorkflowActivityStepChange()constructorCreates an instance of WorkflowActivityStepChange.
ExpectedVersionNopropertyThe version the stored row must have.
SteppropertyThe new step row.

constructor WorkflowActivityStepChange() #

public WorkflowActivityStepChange()

Creates an instance of WorkflowActivityStepChange.

property ExpectedVersionNo #

public long ExpectedVersionNo { get; init; }

The version the stored row must have.

property Step #

public required WorkflowActivityStep Step { get; init; }

The new step row.

enum WorkflowActivityStopTargetKind

public enum WorkflowActivityStopTargetKind

What a stop request targets.

ValueDescription
Execution = 0A whole execution.
Scope = 1A scope.
Step = 2One step.
Map = 3A map execution.

record WorkflowAssignmentPermissionContext

public sealed record WorkflowAssignmentPermissionContext

What a permission check knows about a task action.

Members

MemberKindSummary
WorkflowAssignmentPermissionContext()constructorCreates an instance of WorkflowAssignmentPermissionContext.
ActionpropertyThe action.
ActorIdpropertyWho acts.
ActorRolespropertyThe roles of the actor.
CurrentAssigneepropertyThe current assignee of the task.
EffectiveRolespropertyThe roles that may work the task.
TargetRolespropertyThe roles the task is assigned to, for WorkflowTaskAction.AssignRoles.
TargetUserIdpropertyThe user the task is assigned to, for WorkflowTaskAction.AssignOther.

constructor WorkflowAssignmentPermissionContext() #

public WorkflowAssignmentPermissionContext()

Creates an instance of WorkflowAssignmentPermissionContext.

property Action #

public required WorkflowTaskAction Action { get; init; }

The action.

property ActorId #

public required string ActorId { get; init; }

Who acts.

property ActorRoles #

public IReadOnlyCollection<string> ActorRoles { get; init; }

The roles of the actor.

property CurrentAssignee #

public string? CurrentAssignee { get; init; }

The current assignee of the task.

property EffectiveRoles #

public IReadOnlyCollection<string> EffectiveRoles { get; init; }

The roles that may work the task.

property TargetRoles #

public IReadOnlyCollection<string> TargetRoles { get; init; }

The roles the task is assigned to, for WorkflowTaskAction.AssignRoles.

property TargetUserId #

public string? TargetUserId { get; init; }

The user the task is assigned to, for WorkflowTaskAction.AssignOther.

record WorkflowAssignmentPermissionDecision

public sealed record WorkflowAssignmentPermissionDecision

The outcome of a permission check.

Members

MemberKindSummary
WorkflowAssignmentPermissionDecision()constructorCreates an instance of WorkflowAssignmentPermissionDecision.
AllowedpropertyWhether the action is allowed.
ReasonpropertyWhy it is refused.

constructor WorkflowAssignmentPermissionDecision() #

public WorkflowAssignmentPermissionDecision()

Creates an instance of WorkflowAssignmentPermissionDecision.

property Allowed #

public required bool Allowed { get; init; }

Whether the action is allowed.

property Reason #

public string? Reason { get; init; }

Why it is refused.

class WorkflowBackendConfigurationExtensions

public static class WorkflowBackendConfigurationExtensions

Reads the configured workflow backend.

Members

MemberKindSummary
GetWorkflowBackendProvider(IConfiguration)extension methodReturns WorkflowBackend:Provider; Postgres when not set.

extension method GetWorkflowBackendProvider(IConfiguration) #

public static string GetWorkflowBackendProvider(this IConfiguration configuration)

Returns WorkflowBackend:Provider; Postgres when not set.

Parameters

  • configuration: The configuration.

Returns

The backend name.

class WorkflowBackendNames

public static class WorkflowBackendNames

The names of the durable stores, for WorkflowBackend:Provider.

Members

MemberKindSummary
MongoconstantThe MongoDB store.
OracleconstantThe name reserved for an Oracle store, which is not available in this release.
PostgresconstantThe PostgreSQL store.

constant Mongo #

public const string Mongo = "Mongo"

The MongoDB store.

constant Oracle #

public const string Oracle = "Oracle"

The name reserved for an Oracle store, which is not available in this release.

constant Postgres #

public const string Postgres = "Postgres"

The PostgreSQL store.

class WorkflowBackendOptions

public sealed class WorkflowBackendOptions

The workflow store the host uses (WorkflowBackend).

Members

MemberKindSummary
WorkflowBackendOptions()constructorCreates an instance of WorkflowBackendOptions.
SectionNameconstantThe configuration section the options bind from: WorkflowBackend.
ProviderpropertyThe store: Postgres (the default, also when unset) or Mongo.

constructor WorkflowBackendOptions() #

public WorkflowBackendOptions()

Creates an instance of WorkflowBackendOptions.

constant SectionName #

public const string SectionName = "WorkflowBackend"

The configuration section the options bind from: WorkflowBackend.

property Provider #

public string Provider { get; set; }

The store: Postgres (the default, also when unset) or Mongo. The store package registers itself only when it is the selected provider.

record WorkflowBackendRegistrationMarker

public sealed record WorkflowBackendRegistrationMarker : IWorkflowBackendRegistrationMarker

The registration marker of a store library.

Parameters

  • BackendName: The backend name.

Members

MemberKindSummary
WorkflowBackendRegistrationMarker(string)constructorThe registration marker of a store library.
BackendNamepropertyThe backend name.

constructor WorkflowBackendRegistrationMarker(string) #

public WorkflowBackendRegistrationMarker(string BackendName)

The registration marker of a store library.

Parameters

  • BackendName: The backend name.

property BackendName #

public string BackendName { get; init; }

The backend name.

class WorkflowBusinessIdAttribute

public sealed class WorkflowBusinessIdAttribute : Attribute

Marks the property of a start request whose value is the business reference key of the instance. At most one property of a start request carries it; registration fails when two do.

Applies to: Property. Allow multiple: no. Inherited: yes.

Members

MemberKindSummary
WorkflowBusinessIdAttribute()constructorCreates an instance of WorkflowBusinessIdAttribute.

constructor WorkflowBusinessIdAttribute() #

public WorkflowBusinessIdAttribute()

Creates an instance of WorkflowBusinessIdAttribute.

record WorkflowBusinessReferenceAssignmentStepDefinition<TStartRequest>

public sealed record WorkflowBusinessReferenceAssignmentStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Sets the business reference of the instance.

Parameters

  • BusinessReferenceFactory: Computes the business reference.

Members

MemberKindSummary
WorkflowBusinessReferenceAssignmentStepDefinition(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>)constructorSets the business reference of the instance.
BusinessReferenceDeclarationpropertyThe business reference as an expression, for the canonical definition.
BusinessReferenceFactorypropertyComputes the business reference.

constructor WorkflowBusinessReferenceAssignmentStepDefinition(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #

public WorkflowBusinessReferenceAssignmentStepDefinition(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?> BusinessReferenceFactory)

Sets the business reference of the instance.

Parameters

  • BusinessReferenceFactory: Computes the business reference.

property BusinessReferenceDeclaration #

public WorkflowBusinessReferenceDeclaration? BusinessReferenceDeclaration { get; init; }

The business reference as an expression, for the canonical definition.

property BusinessReferenceFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?> BusinessReferenceFactory { get; init; }

Computes the business reference.

class WorkflowBusinessReferenceExtensions

public static class WorkflowBusinessReferenceExtensions

Builds, normalizes and compares business references.

Members

MemberKindSummary
MaxBusinessReferenceKeyLengthconstantThe longest business reference key; a longer one is shortened with a hash.
BuildCanonicalBusinessReferenceKey(IDictionary<string, object>)methodBuilds a key from parts: name=value pairs ordered by name, URI-escaped and joined with |.
ConvertBusinessReferenceValueToString(object)methodWrites a part value as invariant text.
MatchesBusinessReferenceFilter(WorkflowBusinessReference, string, IDictionary<string, object>)extension methodWhether a reference matches a filter: the same key when one is given, and the same text value for every part given.
NormalizeBusinessReference(WorkflowBusinessReference)methodNormalizes a reference: drops parts without a name, builds the key from the parts when it is not set, and shortens a long key.
NormalizeBusinessReferenceKey(string)methodShortens a key longer than the maximum with a hash.
ToBusinessReference(IDictionary<string, object>)extension methodReads a reference from a dictionary with key and parts.
ToObjectDictionary(WorkflowBusinessReference)extension methodWrites a reference as a dictionary with key and parts.

constant MaxBusinessReferenceKeyLength #

public const int MaxBusinessReferenceKeyLength = 128

The longest business reference key; a longer one is shortened with a hash.

method BuildCanonicalBusinessReferenceKey(IDictionary<string, object>) #

public static string? BuildCanonicalBusinessReferenceKey(IDictionary<string, object?> parts)

Builds a key from parts: name=value pairs ordered by name, URI-escaped and joined with |.

Parameters

  • parts: The parts.

Returns

The key, or null when no part has a value.

method ConvertBusinessReferenceValueToString(object) #

public static string? ConvertBusinessReferenceValueToString(object? value)

Writes a part value as invariant text.

Parameters

  • value: The value.

Returns

The text, or null for null.

extension method MatchesBusinessReferenceFilter(WorkflowBusinessReference, string, IDictionary<string, object>) #

public static bool MatchesBusinessReferenceFilter(this WorkflowBusinessReference? businessReference, string? key, IDictionary<string, object?> parts)

Whether a reference matches a filter: the same key when one is given, and the same text value for every part given.

Parameters

  • businessReference: The reference.
  • key: The key filter.
  • parts: The part filters.

Returns

Whether it matches.

method NormalizeBusinessReference(WorkflowBusinessReference) #

public static WorkflowBusinessReference? NormalizeBusinessReference(WorkflowBusinessReference? businessReference)

Normalizes a reference: drops parts without a name, builds the key from the parts when it is not set, and shortens a long key.

Parameters

  • businessReference: The reference.

Returns

The normalized reference, or null when it has neither key nor part.

method NormalizeBusinessReferenceKey(string) #

public static string? NormalizeBusinessReferenceKey(string? key)

Shortens a key longer than the maximum with a hash.

Parameters

  • key: The key.

Returns

The key, or null when it is empty.

extension method ToBusinessReference(IDictionary<string, object>) #

public static WorkflowBusinessReference? ToBusinessReference(this IDictionary<string, object?> value)

Reads a reference from a dictionary with key and parts.

Parameters

  • value: The dictionary.

Returns

The normalized reference, or null.

extension method ToObjectDictionary(WorkflowBusinessReference) #

public static IDictionary<string, object?> ToObjectDictionary(this WorkflowBusinessReference? businessReference)

Writes a reference as a dictionary with key and parts.

Parameters

  • businessReference: The reference.

Returns

The dictionary; empty for none.

class WorkflowBusinessReferencePartAttribute

public sealed class WorkflowBusinessReferencePartAttribute : Attribute

Marks a property of a start request as a part of the business reference of the instance. Without a WorkflowBusinessIdAttributeproperty, the key is built from the parts. Part names must be unique, ignoring case.

Applies to: Property. Allow multiple: no. Inherited: yes.

Members

MemberKindSummary
WorkflowBusinessReferencePartAttribute(string)constructorMarks the property as a business reference part.
PartNamepropertyThe part name, or null to use the property name.

constructor WorkflowBusinessReferencePartAttribute(string) #

public WorkflowBusinessReferencePartAttribute(string? partName = null)

Marks the property as a business reference part.

Parameters

  • partName: The part name; the property name when it is not set.

property PartName #

public string? PartName { get; }

The part name, or null to use the property name.

record WorkflowCaller

public sealed record WorkflowCaller

A workflow’s caller: the user its service calls go as, with the roles the caller’s token carried.

Parameters

  • UserId: The user.
  • Roles: The roles of the caller’s token, when known.

Members

MemberKindSummary
WorkflowCaller(string, IReadOnlyList<string>)constructorA workflow’s caller: the user its service calls go as, with the roles the caller’s token carried.
RolespropertyThe roles of the caller’s token, when known.
UserIdpropertyThe user.

constructor WorkflowCaller(string, IReadOnlyList<string>) #

public WorkflowCaller(string UserId, IReadOnlyList<string>? Roles)

A workflow’s caller: the user its service calls go as, with the roles the caller’s token carried.

Parameters

  • UserId: The user.
  • Roles: The roles of the caller’s token, when known.

property Roles #

public IReadOnlyList<string>? Roles { get; init; }

The roles of the caller’s token, when known.

property UserId #

public string UserId { get; init; }

The user.

class WorkflowCallerSnapshot

public static class WorkflowCallerSnapshot

Reads and writes the caller kept in an engine runtime snapshot and carried in signal payloads.

Members

MemberKindSummary
SignalPayloadKeyconstantSignal payload key that carries the caller to a continuation.
Read(JsonElement)methodReads a caller from a signal payload entry.
Read(string)methodReads the caller kept in an engine runtime snapshot.
ToSignalPayload(WorkflowCaller)methodWrites a caller as a signal payload entry.
Write(string, WorkflowCaller)methodKeeps the caller in an engine runtime snapshot; a snapshot without a caller is returned unchanged.

constant SignalPayloadKey #

public const string SignalPayloadKey = "caller"

Signal payload key that carries the caller to a continuation.

method Read(JsonElement) #

public static WorkflowCaller? Read(JsonElement element)

Reads a caller from a signal payload entry.

method Read(string) #

public static WorkflowCaller? Read(string? runtimeStateJson)

Reads the caller kept in an engine runtime snapshot.

method ToSignalPayload(WorkflowCaller) #

public static JsonElement ToSignalPayload(WorkflowCaller caller)

Writes a caller as a signal payload entry.

Parameters

  • caller: The caller.

Returns

The payload entry.

method Write(string, WorkflowCaller) #

public static string Write(string runtimeStateJson, WorkflowCaller? caller)

Keeps the caller in an engine runtime snapshot; a snapshot without a caller is returned unchanged.

class WorkflowCancellationCleanupPolicyServiceCollectionExtensions

public static class WorkflowCancellationCleanupPolicyServiceCollectionExtensions

Registers the rule that decides whether cancelling an instance starts its cleanup workflow.

Members

MemberKindSummary
AddWorkflowCancellationCleanupPolicy<TPolicy>(IServiceCollection)extension methodReplaces the registered IWorkflowCancellationCleanupPolicywith TPolicy, a singleton.

extension method AddWorkflowCancellationCleanupPolicy<TPolicy>(IServiceCollection) #

public static IServiceCollection AddWorkflowCancellationCleanupPolicy<TPolicy>(this IServiceCollection services) where TPolicy : class, IWorkflowCancellationCleanupPolicy

Replaces the registered IWorkflowCancellationCleanupPolicywith TPolicy, a singleton.

Type parameters

  • TPolicy: The cleanup policy.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

record WorkflowCanonicalCompilationResult

public sealed record WorkflowCanonicalCompilationResult

The outcome of compiling a C# workflow to a canonical definition.

Members

MemberKindSummary
WorkflowCanonicalCompilationResult()constructorCreates an instance of WorkflowCanonicalCompilationResult.
DefinitionpropertyThe canonical definition, when the compilation succeeded.
DiagnosticspropertyWhy parts of the workflow have no canonical form.
SucceededpropertyWhether the compilation gave a definition without diagnostics.
WorkflowNamepropertyThe workflow name.
WorkflowVersionpropertyThe workflow version.

constructor WorkflowCanonicalCompilationResult() #

public WorkflowCanonicalCompilationResult()

Creates an instance of WorkflowCanonicalCompilationResult.

property Definition #

public WorkflowCanonicalDefinition? Definition { get; init; }

The canonical definition, when the compilation succeeded.

property Diagnostics #

public IReadOnlyCollection<WorkflowCanonicalizationDiagnostic> Diagnostics { get; init; }

Why parts of the workflow have no canonical form.

property Succeeded #

public bool Succeeded { get; }

Whether the compilation gave a definition without diagnostics.

property WorkflowName #

public required string WorkflowName { get; init; }

The workflow name.

property WorkflowVersion #

public required string WorkflowVersion { get; init; }

The workflow version.

class WorkflowCanonicalDefinitionCompiler

public static class WorkflowCanonicalDefinitionCompiler

Compiles C# workflows to canonical definitions at runtime.

Members

MemberKindSummary
Compile<TStartRequest>(IDeclarativeWorkflow<TStartRequest>, IWorkflowFunctionCatalog)methodCompiles a workflow.

method Compile<TStartRequest>(IDeclarativeWorkflow<TStartRequest>, IWorkflowFunctionCatalog) #

public static WorkflowCanonicalCompilationResult Compile<TStartRequest>(IDeclarativeWorkflow<TStartRequest> workflow, IWorkflowFunctionCatalog? functionCatalog = null) where TStartRequest : class

Compiles a workflow. A delegate step or condition has no canonical form and gives a diagnostic instead.

Type parameters

  • TStartRequest: The start request type.

Parameters

  • workflow: The workflow.
  • functionCatalog: The function catalog, for the function checks; none when not set.

Returns

The definition, or the diagnostics.

class WorkflowCanonicalDefinitionValidator

public static class WorkflowCanonicalDefinitionValidator

Validates canonical definitions and their parts (WFVAL codes).

Members

MemberKindSummary
Validate(WorkflowCanonicalDefinition, IWorkflowFunctionCatalog, IWorkflowExternalActivityRegistry)methodValidates a definition.
ValidateBusinessReference(WorkflowBusinessReferenceDeclaration, IWorkflowFunctionCatalog)methodValidates a business reference declaration.
ValidateExpression(WorkflowExpressionDefinition, IWorkflowFunctionCatalog)methodValidates an expression.
ValidateTask(WorkflowTaskDeclaration, IWorkflowFunctionCatalog)methodValidates a task declaration.

method Validate(WorkflowCanonicalDefinition, IWorkflowFunctionCatalog, IWorkflowExternalActivityRegistry) #

public static WorkflowCanonicalValidationResult Validate(WorkflowCanonicalDefinition definition, IWorkflowFunctionCatalog? functionCatalog = null, IWorkflowExternalActivityRegistry? externalActivityRegistry = null)

Validates a definition.

Parameters

  • definition: The definition.
  • functionCatalog: The function catalog, for the function checks; none when not set.
  • externalActivityRegistry: The external activity registry, for the activity checks; none when not set.

Returns

The findings.

method ValidateBusinessReference(WorkflowBusinessReferenceDeclaration, IWorkflowFunctionCatalog) #

public static WorkflowCanonicalValidationResult ValidateBusinessReference(WorkflowBusinessReferenceDeclaration businessReference, IWorkflowFunctionCatalog? functionCatalog = null)

Validates a business reference declaration.

Parameters

  • businessReference: The declaration.
  • functionCatalog: The function catalog, for the function checks; none when not set.

Returns

The findings.

method ValidateExpression(WorkflowExpressionDefinition, IWorkflowFunctionCatalog) #

public static WorkflowCanonicalValidationResult ValidateExpression(WorkflowExpressionDefinition expression, IWorkflowFunctionCatalog? functionCatalog = null)

Validates an expression.

Parameters

  • expression: The expression.
  • functionCatalog: The function catalog, for the function checks; none when not set.

Returns

The findings.

method ValidateTask(WorkflowTaskDeclaration, IWorkflowFunctionCatalog) #

public static WorkflowCanonicalValidationResult ValidateTask(WorkflowTaskDeclaration task, IWorkflowFunctionCatalog? functionCatalog = null)

Validates a task declaration.

Parameters

  • task: The task.
  • functionCatalog: The function catalog, for the function checks; none when not set.

Returns

The findings.

record WorkflowCanonicalEvaluationContext

public sealed record WorkflowCanonicalEvaluationContext

What a canonical expression reads: the roots of its paths, and the function runtime.

Members

MemberKindSummary
WorkflowCanonicalEvaluationContext()constructorCreates an instance of WorkflowCanonicalEvaluationContext.
BusinessReferencepropertyThe business reference (businessReference).
FunctionRuntimepropertyRuns the expression functions.
PayloadpropertyThe payload being handled (payload).
ResultpropertyThe kept step results (result).
StartpropertyThe start request (start).
StatepropertyThe workflow state (state).
ForResult(JsonElement, IWorkflowFunctionRuntime)methodA context with only a result.
ForStartRequest<TStartRequest>(TStartRequest, IWorkflowFunctionRuntime)methodA context with only the start request.
ForState(IReadOnlyDictionary<string, JsonElement>, IReadOnlyDictionary<string, JsonElement>, WorkflowBusinessReference, IWorkflowFunctionRuntime)methodA context with a state and, optionally, results and a business reference.
From<TStartRequest>(WorkflowSpecExecutionContext<TStartRequest>)methodThe context of an execution context: its start request, state, payload, results and business reference.

constructor WorkflowCanonicalEvaluationContext() #

public WorkflowCanonicalEvaluationContext()

Creates an instance of WorkflowCanonicalEvaluationContext.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference (businessReference).

property FunctionRuntime #

public IWorkflowFunctionRuntime? FunctionRuntime { get; init; }

Runs the expression functions.

property Payload #

public JsonElement? Payload { get; init; }

The payload being handled (payload).

property Result #

public JsonElement? Result { get; init; }

The kept step results (result).

property Start #

public JsonElement? Start { get; init; }

The start request (start).

property State #

public JsonElement? State { get; init; }

The workflow state (state).

method ForResult(JsonElement, IWorkflowFunctionRuntime) #

public static WorkflowCanonicalEvaluationContext ForResult(JsonElement result, IWorkflowFunctionRuntime? functionRuntime = null)

A context with only a result.

Parameters

  • result: The result.
  • functionRuntime: Runs the expression functions; none when not set.

Returns

The evaluation context.

method ForStartRequest<TStartRequest>(TStartRequest, IWorkflowFunctionRuntime) #

public static WorkflowCanonicalEvaluationContext ForStartRequest<TStartRequest>(TStartRequest startRequest, IWorkflowFunctionRuntime? functionRuntime = null)

A context with only the start request.

Type parameters

  • TStartRequest: The start request type.

Parameters

  • startRequest: The start request.
  • functionRuntime: Runs the expression functions; none when not set.

Returns

The evaluation context.

method ForState(IReadOnlyDictionary<string, JsonElement>, IReadOnlyDictionary<string, JsonElement>, WorkflowBusinessReference, IWorkflowFunctionRuntime) #

public static WorkflowCanonicalEvaluationContext ForState(IReadOnlyDictionary<string, JsonElement> state, IReadOnlyDictionary<string, JsonElement>? results = null, WorkflowBusinessReference? businessReference = null, IWorkflowFunctionRuntime? functionRuntime = null)

A context with a state and, optionally, results and a business reference.

Parameters

  • state: The state.
  • results: The kept results.
  • businessReference: The business reference.
  • functionRuntime: Runs the expression functions; none when not set.

Returns

The evaluation context.

method From<TStartRequest>(WorkflowSpecExecutionContext<TStartRequest>) #

public static WorkflowCanonicalEvaluationContext From<TStartRequest>(WorkflowSpecExecutionContext<TStartRequest> context) where TStartRequest : class

The context of an execution context: its start request, state, payload, results and business reference.

Type parameters

  • TStartRequest: The start request type.

Parameters

  • context: The execution context.

Returns

The evaluation context.

class WorkflowCanonicalExpressionRuntime

public static class WorkflowCanonicalExpressionRuntime

Evaluates canonical expressions.

Members

MemberKindSummary
Evaluate(WorkflowExpressionDefinition, WorkflowCanonicalEvaluationContext)methodEvaluates an expression.
Evaluate<TStartRequest>(WorkflowExpressionDefinition, WorkflowSpecExecutionContext<TStartRequest>)methodEvaluates an expression in an execution context.
EvaluateBusinessReference(WorkflowBusinessReferenceDeclaration, WorkflowCanonicalEvaluationContext)methodEvaluates a business reference declaration.
EvaluateBusinessReference<TStartRequest>(WorkflowBusinessReferenceDeclaration, WorkflowSpecExecutionContext<TStartRequest>)methodEvaluates a business reference declaration in an execution context.

method Evaluate(WorkflowExpressionDefinition, WorkflowCanonicalEvaluationContext) #

public static object? Evaluate(WorkflowExpressionDefinition expression, WorkflowCanonicalEvaluationContext context)

Evaluates an expression.

Parameters

  • expression: The expression.
  • context: The evaluation context.

Returns

The value.

method Evaluate<TStartRequest>(WorkflowExpressionDefinition, WorkflowSpecExecutionContext<TStartRequest>) #

public static object? Evaluate<TStartRequest>(WorkflowExpressionDefinition expression, WorkflowSpecExecutionContext<TStartRequest> context) where TStartRequest : class

Evaluates an expression in an execution context.

Type parameters

  • TStartRequest: The start request type.

Parameters

  • expression: The expression.
  • context: The execution context.

Returns

The value.

method EvaluateBusinessReference(WorkflowBusinessReferenceDeclaration, WorkflowCanonicalEvaluationContext) #

public static WorkflowBusinessReference EvaluateBusinessReference(WorkflowBusinessReferenceDeclaration declaration, WorkflowCanonicalEvaluationContext context)

Evaluates a business reference declaration.

Parameters

  • declaration: The declaration.
  • context: The evaluation context.

Returns

The business reference.

method EvaluateBusinessReference<TStartRequest>(WorkflowBusinessReferenceDeclaration, WorkflowSpecExecutionContext<TStartRequest>) #

public static WorkflowBusinessReference EvaluateBusinessReference<TStartRequest>(WorkflowBusinessReferenceDeclaration declaration, WorkflowSpecExecutionContext<TStartRequest> context) where TStartRequest : class

Evaluates a business reference declaration in an execution context.

Type parameters

  • TStartRequest: The start request type.

Parameters

  • declaration: The declaration.
  • context: The execution context.

Returns

The business reference.

record WorkflowCanonicalImportValidationResult

public sealed record WorkflowCanonicalImportValidationResult

The outcome of validating a canonical definition for import.

Members

MemberKindSummary
WorkflowCanonicalImportValidationResult()constructorCreates an instance of WorkflowCanonicalImportValidationResult.
DefinitionpropertyThe definition, when the JSON could be read.
ModuleErrorspropertyThe findings about required modules that are missing or too old.
SchemaErrorspropertyThe JSON and schema findings.
SemanticErrorspropertyThe semantic findings.
SucceededpropertyWhether the definition was read and has no finding.

constructor WorkflowCanonicalImportValidationResult() #

public WorkflowCanonicalImportValidationResult()

Creates an instance of WorkflowCanonicalImportValidationResult.

property Definition #

public WorkflowCanonicalDefinition? Definition { get; init; }

The definition, when the JSON could be read.

property ModuleErrors #

public IReadOnlyCollection<WorkflowCanonicalValidationError> ModuleErrors { get; init; }

The findings about required modules that are missing or too old.

property SchemaErrors #

public IReadOnlyCollection<WorkflowCanonicalValidationError> SchemaErrors { get; init; }

The JSON and schema findings.

property SemanticErrors #

public IReadOnlyCollection<WorkflowCanonicalValidationError> SemanticErrors { get; init; }

The semantic findings.

property Succeeded #

public bool Succeeded { get; }

Whether the definition was read and has no finding.

class WorkflowCanonicalImportValidator

public static class WorkflowCanonicalImportValidator

Validates canonical definitions before an import.

Members

MemberKindSummary
Validate(string, IReadOnlyCollection<WorkflowInstalledModule>, IWorkflowFunctionCatalog, IWorkflowExternalActivityRegistry)methodReads and validates a canonical definition: its JSON, its semantics and, when the installed modules are given, its module requirements.

method Validate(string, IReadOnlyCollection<WorkflowInstalledModule>, IWorkflowFunctionCatalog, IWorkflowExternalActivityRegistry) #

public static WorkflowCanonicalImportValidationResult Validate(string json, IReadOnlyCollection<WorkflowInstalledModule>? installedModules = null, IWorkflowFunctionCatalog? functionCatalog = null, IWorkflowExternalActivityRegistry? externalActivityRegistry = null)

Reads and validates a canonical definition: its JSON, its semantics and, when the installed modules are given, its module requirements.

Parameters

  • json: The canonical definition, as JSON.
  • installedModules: The installed modules; the module check is skipped when not set.
  • functionCatalog: The function catalog, for the function checks.
  • externalActivityRegistry: The external activity registry, for the activity checks.

Returns

The outcome.

Exceptions

  • ArgumentException: json is empty.

class WorkflowCanonicalResultReferences

public static class WorkflowCanonicalResultReferences

Finds the step results a canonical definition reads through result.<key> paths. The runtime keeps only those across waits, so large replies no later step reads do not grow the persisted state.

Members

MemberKindSummary
CollectReferencedKeys(WorkflowCanonicalDefinition)methodCollects the result keys the definition’s expressions read, ignoring case; null when an expression reads the whole result root.
GetReferencedKeys(WorkflowCanonicalDefinition)methodThe referenced result keys (case-insensitive), or null when an expression reads the whole result root, in which case every result must be kept.

method CollectReferencedKeys(WorkflowCanonicalDefinition) #

public static IReadOnlySet<string>? CollectReferencedKeys(WorkflowCanonicalDefinition definition)

Collects the result keys the definition’s expressions read, ignoring case; null when an expression reads the whole result root.

Parameters

  • definition: The definition.

Returns

The keys, or null.

method GetReferencedKeys(WorkflowCanonicalDefinition) #

public static IReadOnlySet<string>? GetReferencedKeys(WorkflowCanonicalDefinition definition)

The referenced result keys (case-insensitive), or null when an expression reads the whole result root, in which case every result must be kept. Cached per definition instance.

class WorkflowCanonicalTemplateBindings

public sealed class WorkflowCanonicalTemplateBindings

The token values of a canonical definition template.

Members

MemberKindSummary
WorkflowCanonicalTemplateBindings()constructorCreates an instance of WorkflowCanonicalTemplateBindings.
AddJson<TValue>(string, TValue)methodBinds a token to a value, written as canonical JSON.
AddString(string, string)methodBinds a token to a string, written as a JSON string.
Build()methodReturns the bindings.

constructor WorkflowCanonicalTemplateBindings() #

public WorkflowCanonicalTemplateBindings()

Creates an instance of WorkflowCanonicalTemplateBindings.

method AddJson<TValue>(string, TValue) #

public WorkflowCanonicalTemplateBindings AddJson<TValue>(string token, TValue value)

Binds a token to a value, written as canonical JSON.

Type parameters

  • TValue: The value type.

Parameters

  • token: The token name; the template writes it as {{token}}.
  • value: The value.

Returns

The same bindings.

method AddString(string, string) #

public WorkflowCanonicalTemplateBindings AddString(string token, string value)

Binds a token to a string, written as a JSON string.

Parameters

  • token: The token name; the template writes it as {{token}}.
  • value: The string.

Returns

The same bindings.

method Build() #

public IReadOnlyDictionary<string, string> Build()

Returns the bindings.

Returns

The token values, as JSON text.

class WorkflowCanonicalTemplateLoader

public static class WorkflowCanonicalTemplateLoader

Loads canonical definitions from embedded JSON templates whose {{token}} placeholders take bound JSON values.

Members

MemberKindSummary
LoadEmbeddedDefinition(Assembly, string, IReadOnlyDictionary<string, string>)methodLoads and renders a definition template.
LoadEmbeddedFragment<TValue>(Assembly, string, IReadOnlyDictionary<string, string>)methodLoads and renders a template of a part of a definition.
LoadEmbeddedText(Assembly, string)methodReads an embedded resource as text.
Render(string, IReadOnlyDictionary<string, string>)methodReplaces every {{token}} of a template with its bound value.

method LoadEmbeddedDefinition(Assembly, string, IReadOnlyDictionary<string, string>) #

public static WorkflowCanonicalDefinition LoadEmbeddedDefinition(Assembly assembly, string resourceName, IReadOnlyDictionary<string, string> bindings)

Loads and renders a definition template.

Parameters

  • assembly: The assembly that embeds the template.
  • resourceName: The resource name.
  • bindings: The token values, as JSON text.

Returns

The definition.

method LoadEmbeddedFragment<TValue>(Assembly, string, IReadOnlyDictionary<string, string>) #

public static TValue LoadEmbeddedFragment<TValue>(Assembly assembly, string resourceName, IReadOnlyDictionary<string, string> bindings)

Loads and renders a template of a part of a definition.

Type parameters

  • TValue: The part type.

Parameters

  • assembly: The assembly that embeds the template.
  • resourceName: The resource name.
  • bindings: The token values, as JSON text.

Returns

The part.

method LoadEmbeddedText(Assembly, string) #

public static string LoadEmbeddedText(Assembly assembly, string resourceName)

Reads an embedded resource as text.

Parameters

  • assembly: The assembly that embeds the template.
  • resourceName: The resource name.

Returns

The text.

Exceptions

  • InvalidOperationException: The resource does not exist.

method Render(string, IReadOnlyDictionary<string, string>) #

public static string Render(string template, IReadOnlyDictionary<string, string> bindings)

Replaces every {{token}} of a template with its bound value.

Parameters

  • template: The template.
  • bindings: The token values, as JSON text.

Returns

The rendered text.

record WorkflowCanonicalValidationError

public sealed record WorkflowCanonicalValidationError

A finding of the canonical definition validation.

Members

MemberKindSummary
WorkflowCanonicalValidationError()constructorCreates an instance of WorkflowCanonicalValidationError.
CodepropertyThe finding code.
MessagepropertyThe message.
PathpropertyThe JSON path of the element.

constructor WorkflowCanonicalValidationError() #

public WorkflowCanonicalValidationError()

Creates an instance of WorkflowCanonicalValidationError.

property Code #

public required string Code { get; init; }

The finding code.

property Message #

public required string Message { get; init; }

The message.

property Path #

public required string Path { get; init; }

The JSON path of the element.

record WorkflowCanonicalValidationResult

public sealed record WorkflowCanonicalValidationResult

The outcome of a canonical definition validation.

Members

MemberKindSummary
WorkflowCanonicalValidationResult()constructorCreates an instance of WorkflowCanonicalValidationResult.
ErrorspropertyThe findings.
SucceededpropertyWhether there is no finding.

constructor WorkflowCanonicalValidationResult() #

public WorkflowCanonicalValidationResult()

Creates an instance of WorkflowCanonicalValidationResult.

property Errors #

public IReadOnlyCollection<WorkflowCanonicalValidationError> Errors { get; init; }

The findings.

property Succeeded #

public bool Succeeded { get; }

Whether there is no finding.

record WorkflowCanonicalizationDiagnostic

public sealed record WorkflowCanonicalizationDiagnostic

Why a part of a C# workflow has no canonical form.

Members

MemberKindSummary
WorkflowCanonicalizationDiagnostic()constructorCreates an instance of WorkflowCanonicalizationDiagnostic.
CodepropertyThe diagnostic code.
MessagepropertyThe message.
PathpropertyThe path of the part.

constructor WorkflowCanonicalizationDiagnostic() #

public WorkflowCanonicalizationDiagnostic()

Creates an instance of WorkflowCanonicalizationDiagnostic.

property Code #

public required string Code { get; init; }

The diagnostic code.

property Message #

public required string Message { get; init; }

The message.

property Path #

public required string Path { get; init; }

The path of the part.

class WorkflowChildFamilyRetention

public static class WorkflowChildFamilyRetention

The retention rule for executions joined by child links. A child family is every execution reachable from another through links, parents and children at any depth. Retention reclaims a family as one unit: only when every execution in it that still has an instance is eligible on its own (past its purge time, not under legal hold or HOLD_ALL, no READY outbox row) and every link in it is finished (completed or canceled). One open, held or locked member, or one unfinished link, keeps the whole family, links included. A member without an instance (a child canceled before it started) does not hold its family back. The backends call this with the instances their eligibility query selected and delete the links of the families it keeps.

Members

MemberKindSummary
CanceledLinkStatusconstantThe child was canceled (ConstantsClass.ChildCanceled).
CompletedLinkStatusconstantThe child completed and its result reached the parent (ConstantsClass.ChildCompleted).
IsFinished(string)methodA finished link changes no more: its child completed or was canceled.
SelectReclaimableAsync(IReadOnlyCollection<string>, Func<IReadOnlyCollection<string>, CancellationToken, Task<IReadOnlyCollection<WorkflowChildLinkRetentionRow>>>, Func<IReadOnlyCollection<string>, CancellationToken, Task<IReadOnlyCollection<string>>>, CancellationToken)methodThe executions of eligibleExecutionIds that retention may reclaim, in their input order: those in no link, and those whose whole child family qualifies.

constant CanceledLinkStatus #

public const string CanceledLinkStatus = "CANCELED"

The child was canceled (ConstantsClass.ChildCanceled).

constant CompletedLinkStatus #

public const string CompletedLinkStatus = "COMPLETED"

The child completed and its result reached the parent (ConstantsClass.ChildCompleted).

method IsFinished(string) #

public static bool IsFinished(string? status)

A finished link changes no more: its child completed or was canceled.

method SelectReclaimableAsync(IReadOnlyCollection<string>, Func<IReadOnlyCollection<string>, CancellationToken, Task<IReadOnlyCollection<WorkflowChildLinkRetentionRow>>>, Func<IReadOnlyCollection<string>, CancellationToken, Task<IReadOnlyCollection<string>>>, CancellationToken) #

public static Task<IReadOnlyList<string>> SelectReclaimableAsync(IReadOnlyCollection<string> eligibleExecutionIds, Func<IReadOnlyCollection<string>, CancellationToken, Task<IReadOnlyCollection<WorkflowChildLinkRetentionRow>>> readLinks, Func<IReadOnlyCollection<string>, CancellationToken, Task<IReadOnlyCollection<string>>> readExistingInstanceIds, CancellationToken cancellationToken = default)

The executions of eligibleExecutionIds that retention may reclaim, in their input order: those in no link, and those whose whole child family qualifies. readLinks returns every link that names one of the given executions as parent or child; readExistingInstanceIds returns which of the given executions still have an instance.

public sealed record WorkflowChildLink

The durable link between a parent step and the child workflow execution it started.

Members

MemberKindSummary
WorkflowChildLink()constructorCreates an instance of WorkflowChildLink.
ChildDefinitionCodepropertyThe child workflow.
ChildDefinitionVersionpropertyThe child workflow version.
ChildWorkflowExecutionIdpropertyThe child execution.
CompletedAtUtcpropertyWhen the link completed, in UTC.
CreatedAtUtcpropertyWhen the link was created, in UTC.
LinkIdpropertyThe link identifier.
ParentScopeExecutionIdpropertyThe parent scope.
ParentStepExecutionIdpropertyThe parent step that runs the child.
ParentWorkflowExecutionIdpropertyThe parent execution.
ResultDescriptorJsonpropertyThe child result descriptor, as JSON, once it completed.
ResultSha256propertyThe SHA-256 of the child result.
StartRequestSha256propertyThe SHA-256 of the child start request.
StatuspropertyThe link status.
VersionNopropertyThe record version, raised by each change.
public WorkflowChildLink()

Creates an instance of WorkflowChildLink.

public required string ChildDefinitionCode { get; init; }

The child workflow.

public required string ChildDefinitionVersion { get; init; }

The child workflow version.

public required string ChildWorkflowExecutionId { get; init; }

The child execution.

public DateTime? CompletedAtUtc { get; init; }

When the link completed, in UTC.

public DateTime CreatedAtUtc { get; init; }

When the link was created, in UTC.

public required string LinkId { get; init; }

The link identifier.

public required string ParentScopeExecutionId { get; init; }

The parent scope.

public required string ParentStepExecutionId { get; init; }

The parent step that runs the child.

public required string ParentWorkflowExecutionId { get; init; }

The parent execution.

public string? ResultDescriptorJson { get; init; }

The child result descriptor, as JSON, once it completed.

public string? ResultSha256 { get; init; }

The SHA-256 of the child result.

public required string StartRequestSha256 { get; init; }

The SHA-256 of the child start request.

public required string Status { get; init; }

The link status.

public required long VersionNo { get; init; }

The record version, raised by each change.

record WorkflowChildLinkRetentionRow

public sealed record WorkflowChildLinkRetentionRow

One parent-to-child execution link, as the retention pass reads it.

Parameters

  • LinkId: The link.
  • ParentWorkflowExecutionId: The parent execution.
  • ChildWorkflowExecutionId: The child execution.
  • Status: The link status.

Members

MemberKindSummary
WorkflowChildLinkRetentionRow(string, string, string, string)constructorOne parent-to-child execution link, as the retention pass reads it.
ChildWorkflowExecutionIdpropertyThe child execution.
LinkIdpropertyThe link.
ParentWorkflowExecutionIdpropertyThe parent execution.
StatuspropertyThe link status.

constructor WorkflowChildLinkRetentionRow(string, string, string, string) #

public WorkflowChildLinkRetentionRow(string LinkId, string ParentWorkflowExecutionId, string ChildWorkflowExecutionId, string Status)

One parent-to-child execution link, as the retention pass reads it.

Parameters

  • LinkId: The link.
  • ParentWorkflowExecutionId: The parent execution.
  • ChildWorkflowExecutionId: The child execution.
  • Status: The link status.

property ChildWorkflowExecutionId #

public string ChildWorkflowExecutionId { get; init; }

The child execution.

property LinkId #

public string LinkId { get; init; }

The link.

property ParentWorkflowExecutionId #

public string ParentWorkflowExecutionId { get; init; }

The parent execution.

property Status #

public string Status { get; init; }

The link status.

record WorkflowCompleteStepDefinition<TStartRequest>

public sealed record WorkflowCompleteStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Completes the instance.

Members

MemberKindSummary
WorkflowCompleteStepDefinition()constructorCompletes the instance.

constructor WorkflowCompleteStepDefinition() #

public WorkflowCompleteStepDefinition()

Completes the instance.

class WorkflowConditionDefinition<TStartRequest>

public abstract class WorkflowConditionDefinition<TStartRequest> where TStartRequest : class

A condition of a decision.

Members

MemberKindSummary
WorkflowConditionDefinition(string)constructorCreates a condition.
CanonicalExpressionpropertyThe condition as an expression, for the canonical definition; none for a delegate.
DisplayNamepropertyThe label of the decision in diagrams.
Evaluate(WorkflowSpecExecutionContext<TStartRequest>)methodEvaluates the condition.

constructor WorkflowConditionDefinition(string) #

protected WorkflowConditionDefinition(string displayName)

Creates a condition.

Parameters

  • displayName: The label of the decision in diagrams.

property CanonicalExpression #

public virtual WorkflowExpressionDefinition? CanonicalExpression { get; }

The condition as an expression, for the canonical definition; none for a delegate.

property DisplayName #

public string DisplayName { get; }

The label of the decision in diagrams.

method Evaluate(WorkflowSpecExecutionContext<TStartRequest>) #

public abstract bool Evaluate(WorkflowSpecExecutionContext<TStartRequest> context)

Evaluates the condition.

Parameters

  • context: The execution context.

Returns

Whether it holds.

record WorkflowConditionalStepDefinition<TStartRequest>

public sealed record WorkflowConditionalStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Branches on a condition.

Parameters

  • Condition: The condition.
  • WhenTrue: The steps to run when the condition holds.
  • WhenElse: The steps to run otherwise.

Members

MemberKindSummary
WorkflowConditionalStepDefinition(WorkflowConditionDefinition<TStartRequest>, WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>)constructorBranches on a condition.
ConditionpropertyThe condition.
WhenElsepropertyThe steps to run otherwise.
WhenTruepropertyThe steps to run when the condition holds.

constructor WorkflowConditionalStepDefinition(WorkflowConditionDefinition<TStartRequest>, WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>) #

public WorkflowConditionalStepDefinition(WorkflowConditionDefinition<TStartRequest> Condition, WorkflowStepSequence<TStartRequest> WhenTrue, WorkflowStepSequence<TStartRequest> WhenElse)

Branches on a condition.

Parameters

  • Condition: The condition.
  • WhenTrue: The steps to run when the condition holds.
  • WhenElse: The steps to run otherwise.

property Condition #

public WorkflowConditionDefinition<TStartRequest> Condition { get; init; }

The condition.

property WhenElse #

public WorkflowStepSequence<TStartRequest> WhenElse { get; init; }

The steps to run otherwise.

property WhenTrue #

public WorkflowStepSequence<TStartRequest> WhenTrue { get; init; }

The steps to run when the condition holds.

record WorkflowConsoleAttemptRecord

public sealed record WorkflowConsoleAttemptRecord

An attempt of an external activity step, as the console returns it.

Members

MemberKindSummary
WorkflowConsoleAttemptRecord()constructorCreates an instance of WorkflowConsoleAttemptRecord.
AttemptIdpropertyThe attempt.
AttemptNumberpropertyThe attempt number, from 1.
CompletedAtUtcpropertyWhen it completed, in UTC.
CompletionDispositionpropertyHow the completion was applied.
CompletionEventIdpropertyThe completion event, once it arrived.
CompletionSha256propertyThe SHA-256 of the completion.
ContractKindpropertyThe contract kind of the activity.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DeadlineAtUtcpropertyThe deadline of the attempt, in UTC.
DispatchIdpropertyThe dispatch of the attempt.
HandlerBuildSha256propertyThe SHA-256 of the handler build.
PriorAttemptIdpropertyThe attempt this one follows.
PriorCompletionEventIdpropertyThe completion of the prior attempt.
ProviderGenerationpropertyThe provider generation that answered.
RequestSha256propertyThe SHA-256 of the request.
ScopeExecutionIdpropertyThe scope of the step.
StatuspropertyThe status.
StepExecutionIdpropertyThe step execution.

constructor WorkflowConsoleAttemptRecord() #

public WorkflowConsoleAttemptRecord()

Creates an instance of WorkflowConsoleAttemptRecord.

property AttemptId #

public required string AttemptId { get; init; }

The attempt.

property AttemptNumber #

public int AttemptNumber { get; init; }

The attempt number, from 1.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property CompletionDisposition #

public string? CompletionDisposition { get; init; }

How the completion was applied.

property CompletionEventId #

public string? CompletionEventId { get; init; }

The completion event, once it arrived.

property CompletionSha256 #

public string? CompletionSha256 { get; init; }

The SHA-256 of the completion.

property ContractKind #

public required string ContractKind { get; init; }

The contract kind of the activity.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DeadlineAtUtc #

public DateTime DeadlineAtUtc { get; init; }

The deadline of the attempt, in UTC.

property DispatchId #

public required string DispatchId { get; init; }

The dispatch of the attempt.

property HandlerBuildSha256 #

public required string HandlerBuildSha256 { get; init; }

The SHA-256 of the handler build.

property PriorAttemptId #

public string? PriorAttemptId { get; init; }

The attempt this one follows.

property PriorCompletionEventId #

public string? PriorCompletionEventId { get; init; }

The completion of the prior attempt.

property ProviderGeneration #

public long? ProviderGeneration { get; init; }

The provider generation that answered.

property RequestSha256 #

public required string RequestSha256 { get; init; }

The SHA-256 of the request.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the step.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The step execution.

record WorkflowConsoleDeliveryRecord

public sealed record WorkflowConsoleDeliveryRecord

One activity delivery: a dispatch (DISPATCH, its delivery state, created and published times) or a completion (COMPLETION, its disposition, received and applied times).

Members

MemberKindSummary
WorkflowConsoleDeliveryRecord()constructorCreates an instance of WorkflowConsoleDeliveryRecord.
AppliedAtUtcpropertyWhen the dispatch was published or the completion applied, in UTC.
DeliveryStatepropertyThe delivery state of a dispatch, or the disposition of a completion.
IdpropertyThe dispatch or completion identifier.
KindpropertyDISPATCH or COMPLETION.
OccurredAtUtcpropertyWhen the dispatch was created or the completion received, in UTC.

constructor WorkflowConsoleDeliveryRecord() #

public WorkflowConsoleDeliveryRecord()

Creates an instance of WorkflowConsoleDeliveryRecord.

property AppliedAtUtc #

public DateTime? AppliedAtUtc { get; init; }

When the dispatch was published or the completion applied, in UTC.

property DeliveryState #

public required string DeliveryState { get; init; }

The delivery state of a dispatch, or the disposition of a completion.

property Id #

public required string Id { get; init; }

The dispatch or completion identifier.

property Kind #

public required string Kind { get; init; }

DISPATCH or COMPLETION.

property OccurredAtUtc #

public DateTime OccurredAtUtc { get; init; }

When the dispatch was created or the completion received, in UTC.

record WorkflowConsoleExecutionRecord

public sealed record WorkflowConsoleExecutionRecord

An execution as the console reads it: the instance projection’s identity, status, state and history position.

Members

MemberKindSummary
WorkflowConsoleExecutionRecord()constructorCreates an instance of WorkflowConsoleExecutionRecord.
CompletedOnUtcpropertyWhen it completed, in UTC.
CreatedOnUtcpropertyWhen the execution started, in UTC.
HistoryFloorSequencepropertyThe first history sequence still kept.
NextEventSequencepropertyThe sequence of the next history event.
StateJsonpropertyThe workflow state, as JSON.
StatuspropertyThe status.
WorkflowInstanceIdpropertyThe execution (workflow instance).
WorkflowNamepropertyThe workflow name.
WorkflowVersionpropertyThe workflow version.

constructor WorkflowConsoleExecutionRecord() #

public WorkflowConsoleExecutionRecord()

Creates an instance of WorkflowConsoleExecutionRecord.

property CompletedOnUtc #

public DateTime? CompletedOnUtc { get; init; }

When it completed, in UTC.

property CreatedOnUtc #

public DateTime CreatedOnUtc { get; init; }

When the execution started, in UTC.

property HistoryFloorSequence #

public long HistoryFloorSequence { get; init; }

The first history sequence still kept.

property NextEventSequence #

public long NextEventSequence { get; init; }

The sequence of the next history event.

property StateJson #

public required string StateJson { get; init; }

The workflow state, as JSON.

property Status #

public required string Status { get; init; }

The status.

property WorkflowInstanceId #

public required string WorkflowInstanceId { get; init; }

The execution (workflow instance).

property WorkflowName #

public required string WorkflowName { get; init; }

The workflow name.

property WorkflowVersion #

public required string WorkflowVersion { get; init; }

The workflow version.

record WorkflowConsoleMapItemRecord

public sealed record WorkflowConsoleMapItemRecord

A map item row, as the console returns it.

Members

MemberKindSummary
WorkflowConsoleMapItemRecord()constructorCreates an instance of WorkflowConsoleMapItemRecord.
ItemKeypropertyThe item key.
MapExecutionIdpropertyThe map execution.
MapItemIdpropertyThe map item.
OrdinalpropertyThe position of the item in the collection.
StatuspropertyThe status.
TerminalOutcomepropertyThe final outcome, once the item finished.

constructor WorkflowConsoleMapItemRecord() #

public WorkflowConsoleMapItemRecord()

Creates an instance of WorkflowConsoleMapItemRecord.

property ItemKey #

public required string ItemKey { get; init; }

The item key.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property MapItemId #

public required string MapItemId { get; init; }

The map item.

property Ordinal #

public int Ordinal { get; init; }

The position of the item in the collection.

property Status #

public required string Status { get; init; }

The status.

property TerminalOutcome #

public string? TerminalOutcome { get; init; }

The final outcome, once the item finished.

record WorkflowConsoleMapRecord

public sealed record WorkflowConsoleMapRecord

A map execution row. The console returns it as is, so the property order is the response shape.

Members

MemberKindSummary
WorkflowConsoleMapRecord()constructorCreates an instance of WorkflowConsoleMapRecord.
AbsoluteDeadlineAtUtcpropertyThe deadline of the map, in UTC.
CompletedAtUtcpropertyWhen it completed, in UTC.
CreatedAtUtcpropertyWhen the row was created, in UTC.
ExecutionPlanJsonpropertyThe map plan, as JSON.
ExecutionPlanSha256propertyThe SHA-256 of the map plan.
FailurePolicypropertyThe failure policy.
FanInPolicypropertyThe fan-in policy.
GlobalActivityClasspropertyThe class of activities whose concurrency is limited across all maps.
MapExecutionIdpropertyThe map execution.
MaxAggregateStateBytespropertyThe size limit of the collected results, in bytes.
MaxConcurrencypropertyThe items in flight at once.
MaxItemspropertyThe items allowed.
MinimumSucceededpropertyThe items that must succeed under MIN_SUCCEEDED.
ScopeExecutionIdpropertyThe scope of the map.
StatuspropertyThe status.
StepExecutionIdpropertyThe map step.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution it belongs to.

constructor WorkflowConsoleMapRecord() #

public WorkflowConsoleMapRecord()

Creates an instance of WorkflowConsoleMapRecord.

property AbsoluteDeadlineAtUtc #

public DateTime? AbsoluteDeadlineAtUtc { get; init; }

The deadline of the map, in UTC.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property ExecutionPlanJson #

public required string ExecutionPlanJson { get; init; }

The map plan, as JSON.

property ExecutionPlanSha256 #

public required string ExecutionPlanSha256 { get; init; }

The SHA-256 of the map plan.

property FailurePolicy #

public required string FailurePolicy { get; init; }

The failure policy.

property FanInPolicy #

public required string FanInPolicy { get; init; }

The fan-in policy.

property GlobalActivityClass #

public string? GlobalActivityClass { get; init; }

The class of activities whose concurrency is limited across all maps.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property MaxAggregateStateBytes #

public int MaxAggregateStateBytes { get; init; }

The size limit of the collected results, in bytes.

property MaxConcurrency #

public int MaxConcurrency { get; init; }

The items in flight at once.

property MaxItems #

public int MaxItems { get; init; }

The items allowed.

property MinimumSucceeded #

public int? MinimumSucceeded { get; init; }

The items that must succeed under MIN_SUCCEEDED.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the map.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The map step.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution it belongs to.

record WorkflowConsoleScopeRecord

public sealed record WorkflowConsoleScopeRecord

A scope execution row. The console returns it as is, so the property order is the response shape.

Members

MemberKindSummary
WorkflowConsoleScopeRecord()constructorCreates an instance of WorkflowConsoleScopeRecord.
CompletedAtUtcpropertyWhen it completed, in UTC.
CreatedAtUtcpropertyWhen the row was created, in UTC.
ParentScopeExecutionIdpropertyThe scope that contains it.
ScopeCodepropertyThe scope code.
ScopeExecutionIdpropertyThe scope execution.
ScopeVersionpropertyThe scope version.
StatuspropertyThe status.
TagsJsonpropertyThe scope tags, as JSON.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution it belongs to.

constructor WorkflowConsoleScopeRecord() #

public WorkflowConsoleScopeRecord()

Creates an instance of WorkflowConsoleScopeRecord.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property ParentScopeExecutionId #

public string? ParentScopeExecutionId { get; init; }

The scope that contains it.

property ScopeCode #

public required string ScopeCode { get; init; }

The scope code.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope execution.

property ScopeVersion #

public required string ScopeVersion { get; init; }

The scope version.

property Status #

public required string Status { get; init; }

The status.

property TagsJson #

public required string TagsJson { get; init; }

The scope tags, as JSON.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution it belongs to.

record WorkflowConsoleStepRecord

public sealed record WorkflowConsoleStepRecord

An external activity step row, as the console returns it.

Members

MemberKindSummary
WorkflowConsoleStepRecord()constructorCreates an instance of WorkflowConsoleStepRecord.
AbsoluteDeadlineAtUtcpropertyThe deadline over all attempts, in UTC.
CompletedAtUtcpropertyWhen it completed, in UTC.
ContractVersionpropertyThe contract version of the activity.
CreatedAtUtcpropertyWhen the row was created, in UTC.
CurrentAttemptIdpropertyThe current attempt.
DeadlineAtUtcpropertyThe deadline of the current attempt, in UTC.
DestinationCodepropertyThe destination of the activity.
FailureCategorypropertyThe category of the last failure.
LogicalStepKeypropertyThe step in the definition.
OperationCodepropertyThe operation of the activity.
ResultSha256propertyThe SHA-256 of the result.
RetryNotBeforeAtUtcpropertyThe earliest time of the next retry, in UTC.
ScopeExecutionIdpropertyThe scope of the step.
StatuspropertyThe status.
StepExecutionIdpropertyThe step execution.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.

constructor WorkflowConsoleStepRecord() #

public WorkflowConsoleStepRecord()

Creates an instance of WorkflowConsoleStepRecord.

property AbsoluteDeadlineAtUtc #

public DateTime? AbsoluteDeadlineAtUtc { get; init; }

The deadline over all attempts, in UTC.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property ContractVersion #

public required string ContractVersion { get; init; }

The contract version of the activity.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property CurrentAttemptId #

public required string CurrentAttemptId { get; init; }

The current attempt.

property DeadlineAtUtc #

public DateTime DeadlineAtUtc { get; init; }

The deadline of the current attempt, in UTC.

property DestinationCode #

public required string DestinationCode { get; init; }

The destination of the activity.

property FailureCategory #

public string? FailureCategory { get; init; }

The category of the last failure.

property LogicalStepKey #

public required string LogicalStepKey { get; init; }

The step in the definition.

property OperationCode #

public required string OperationCode { get; init; }

The operation of the activity.

property ResultSha256 #

public string? ResultSha256 { get; init; }

The SHA-256 of the result.

property RetryNotBeforeAtUtc #

public DateTime? RetryNotBeforeAtUtc { get; init; }

The earliest time of the next retry, in UTC.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the step.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The step execution.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

class WorkflowContentHasher

public static class WorkflowContentHasher

Computes a deterministic content hash for canonical workflow definitions. Used to detect whether a definition has changed across imports.

Members

MemberKindSummary
ComputeHash(string)methodComputes a SHA-256 hash of the canonical definition JSON.

method ComputeHash(string) #

public static string ComputeHash(string canonicalDefinitionJson)

Computes a SHA-256 hash of the canonical definition JSON. The JSON is normalized to UTF-8 bytes before hashing. Returns a lowercase hex string (64 characters).

record WorkflowContinuationLineage

public sealed record WorkflowContinuationLineage

A provider continuation an attempt left behind, consumed by the next attempt or revoked by a cancel.

Members

MemberKindSummary
WorkflowContinuationLineage()constructorCreates an instance of WorkflowContinuationLineage.
ConsumedAtUtcpropertyWhen the next attempt consumed it, in UTC.
ContinuationRefpropertyThe provider’s continuation reference.
ContinuationSha256propertyThe SHA-256 of the continuation.
CreatedAtUtcpropertyWhen the row was created, in UTC.
GenerationpropertyThe continuation generation.
LineageIdpropertyThe lineage.
RevokedAtUtcpropertyWhen a cancel revoked it, in UTC.
RevokedByCancelFencepropertyThe cancel fence that revoked it.
ScopeExecutionIdpropertyThe scope of the step.
SourceAttemptIdpropertyThe attempt that left the continuation.
SourceCompletionEventIdpropertyThe completion that carried it.
StatuspropertyThe status.
StepExecutionIdpropertyThe step execution.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowContinuationLineage() #

public WorkflowContinuationLineage()

Creates an instance of WorkflowContinuationLineage.

property ConsumedAtUtc #

public DateTime? ConsumedAtUtc { get; init; }

When the next attempt consumed it, in UTC.

property ContinuationRef #

public required string ContinuationRef { get; init; }

The provider’s continuation reference.

property ContinuationSha256 #

public required string ContinuationSha256 { get; init; }

The SHA-256 of the continuation.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property Generation #

public long Generation { get; init; }

The continuation generation.

property LineageId #

public required string LineageId { get; init; }

The lineage.

property RevokedAtUtc #

public DateTime? RevokedAtUtc { get; init; }

When a cancel revoked it, in UTC.

property RevokedByCancelFence #

public long? RevokedByCancelFence { get; init; }

The cancel fence that revoked it.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the step.

property SourceAttemptId #

public required string SourceAttemptId { get; init; }

The attempt that left the continuation.

property SourceCompletionEventId #

public required string SourceCompletionEventId { get; init; }

The completion that carried it.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The step execution.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowContinuationLineageChange

public sealed record WorkflowContinuationLineageChange

A changed lineage, written only when its stored version still equals WorkflowContinuationLineageChange.ExpectedVersionNo.

Members

MemberKindSummary
WorkflowContinuationLineageChange()constructorCreates an instance of WorkflowContinuationLineageChange.
ExpectedVersionNopropertyThe version the stored row must have.
LineagepropertyThe new lineage row.

constructor WorkflowContinuationLineageChange() #

public WorkflowContinuationLineageChange()

Creates an instance of WorkflowContinuationLineageChange.

property ExpectedVersionNo #

public long ExpectedVersionNo { get; init; }

The version the stored row must have.

property Lineage #

public required WorkflowContinuationLineage Lineage { get; init; }

The new lineage row.

record WorkflowContinuationPlan

public sealed record WorkflowContinuationPlan

A workflow a plan starts next, at once or at a due time.

Members

MemberKindSummary
WorkflowContinuationPlan()constructorCreates an instance of WorkflowContinuationPlan.
DueAtUtcpropertyWhen to start, in UTC; at once when not set.
RequestpropertyThe start request.

constructor WorkflowContinuationPlan() #

public WorkflowContinuationPlan()

Creates an instance of WorkflowContinuationPlan.

property DueAtUtc #

public DateTime? DueAtUtc { get; init; }

When to start, in UTC; at once when not set.

property Request #

public required StartWorkflowRequest Request { get; init; }

The start request.

record WorkflowContinueWithStepDefinition<TStartRequest>

public sealed record WorkflowContinueWithStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Starts another workflow as an independent instance and continues at once.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • StartWorkflowRequestFactory: Builds the start request of the workflow to run.

Members

MemberKindSummary
WorkflowContinueWithStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest>)constructorStarts another workflow as an independent instance and continues at once.
InvocationDeclarationpropertyThe workflow to start, for the canonical definition.
StartWorkflowRequestFactorypropertyBuilds the start request of the workflow to run.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowContinueWithStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest>) #

public WorkflowContinueWithStepDefinition(string StepName, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest> StartWorkflowRequestFactory)

Starts another workflow as an independent instance and continues at once.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • StartWorkflowRequestFactory: Builds the start request of the workflow to run.

property InvocationDeclaration #

public WorkflowWorkflowInvocationDeclaration? InvocationDeclaration { get; init; }

The workflow to start, for the canonical definition.

property StartWorkflowRequestFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest> StartWorkflowRequestFactory { get; init; }

Builds the start request of the workflow to run.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

class WorkflowCoreFunctionProvider

public sealed class WorkflowCoreFunctionProvider : IWorkflowFunctionProvider

Provides the core expression functions (module workflow.functions.core).

Members

MemberKindSummary
WorkflowCoreFunctionProvider()constructorCreates an instance of WorkflowCoreFunctionProvider.
GetFunctions()methodReturns the functions.

constructor WorkflowCoreFunctionProvider() #

public WorkflowCoreFunctionProvider()

Creates an instance of WorkflowCoreFunctionProvider.

method GetFunctions() #

public IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()

Returns the functions.

Returns

The functions.

record WorkflowDecisionStepDefinition<TStartRequest>

public sealed record WorkflowDecisionStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Branches on a value condition.

Parameters

  • Condition: The condition.
  • WhenTrue: The steps to run when the condition holds.
  • WhenFalse: The steps to run otherwise.

Members

MemberKindSummary
WorkflowDecisionStepDefinition(WorkflowValueEqualsConditionDefinition, WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>)constructorBranches on a value condition.
ConditionpropertyThe condition.
WhenFalsepropertyThe steps to run otherwise.
WhenTruepropertyThe steps to run when the condition holds.

constructor WorkflowDecisionStepDefinition(WorkflowValueEqualsConditionDefinition, WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>) #

public WorkflowDecisionStepDefinition(WorkflowValueEqualsConditionDefinition Condition, WorkflowStepSequence<TStartRequest> WhenTrue, WorkflowStepSequence<TStartRequest> WhenFalse)

Branches on a value condition.

Parameters

  • Condition: The condition.
  • WhenTrue: The steps to run when the condition holds.
  • WhenFalse: The steps to run otherwise.

property Condition #

public WorkflowValueEqualsConditionDefinition Condition { get; init; }

The condition.

property WhenFalse #

public WorkflowStepSequence<TStartRequest> WhenFalse { get; init; }

The steps to run otherwise.

property WhenTrue #

public WorkflowStepSequence<TStartRequest> WhenTrue { get; init; }

The steps to run when the condition holds.

record WorkflowDefinitionActivationRecord

public sealed record WorkflowDefinitionActivationRecord

A governed activation.

Members

MemberKindSummary
WorkflowDefinitionActivationRecord()constructorCreates an instance of WorkflowDefinitionActivationRecord.
ActorIdpropertyWho activates.
AllowRollbackpropertyAllows activating a lower version than the active one; required for such a rollback, refused otherwise.
ExpectedActiveSha256propertyThe content hash the caller expects the active version to have.
ExpectedActiveVersionpropertyThe version the caller expects to be active; must match, or be unset when none is.
ReasonCodepropertyWhy.
RollbackOfAuditIdpropertyThe audit record of the activation the rollback reverts.
WorkflowNamepropertyThe workflow name.
WorkflowVersionpropertyThe version to activate.

constructor WorkflowDefinitionActivationRecord() #

public WorkflowDefinitionActivationRecord()

Creates an instance of WorkflowDefinitionActivationRecord.

property ActorId #

public required string ActorId { get; init; }

Who activates.

property AllowRollback #

public bool AllowRollback { get; init; }

Allows activating a lower version than the active one; required for such a rollback, refused otherwise.

property ExpectedActiveSha256 #

public string? ExpectedActiveSha256 { get; init; }

The content hash the caller expects the active version to have.

property ExpectedActiveVersion #

public string? ExpectedActiveVersion { get; init; }

The version the caller expects to be active; must match, or be unset when none is.

property ReasonCode #

public required string ReasonCode { get; init; }

Why.

property RollbackOfAuditId #

public string? RollbackOfAuditId { get; init; }

The audit record of the activation the rollback reverts.

property WorkflowName #

public required string WorkflowName { get; init; }

The workflow name.

property WorkflowVersion #

public required string WorkflowVersion { get; init; }

The version to activate.

record WorkflowDefinitionRecord

public sealed record WorkflowDefinitionRecord

A versioned, persisted canonical workflow definition record.

Members

MemberKindSummary
WorkflowDefinitionRecord()constructorCreates an instance of WorkflowDefinitionRecord.
ActivatedOnUtcpropertyWhen this version was last activated (set as active).
BaseVersionpropertyThe version the definition declares.
BuildIterationpropertyThe build iteration within the base version; 0 for a version imported as declared.
CanonicalDefinitionJsonpropertyThe full canonical definition as serialized JSON.
CompatibilitySha256propertyThe compatibility SHA-256; zeros when none was given.
ContentHashpropertySHA-256 hash of the canonical definition JSON (lowercase hex, 64 chars).
CreatedOnUtcpropertyWhen this record was created.
DisplayNamepropertyHuman-readable workflow name from the definition.
ImportedBypropertyUser or system identifier that performed the import.
IsActivepropertyWhether this version is the active version for the workflow name.
IsManagedpropertyWhether the definition is managed.
ManagedCodepropertyThe code of a managed definition.
OriginpropertyWhere the definition comes from: OPERATOR_IMPORTED or MANAGED_EMBEDDED.
RenderingJsonpropertyOptional render graph JSON (for UI rendering).
RenderingPngpropertyOptional PNG screenshot.
RenderingSvgpropertyOptional SVG diagram rendering.
ResolvedDependenciespropertyThe versions of the workflows this one refers to, by name, when a store recorded them; the stores keep the value, and the engine does not set it.
SourceBuildSha256propertyThe source build SHA-256; zeros when none was given.
VersionNopropertyThe record version, raised by each change of the record.
WorkflowNamepropertyWorkflow name (e.g., “ApproveApplication”).
WorkflowVersionpropertyThe version.

constructor WorkflowDefinitionRecord() #

public WorkflowDefinitionRecord()

Creates an instance of WorkflowDefinitionRecord.

property ActivatedOnUtc #

public DateTime? ActivatedOnUtc { get; init; }

When this version was last activated (set as active).

property BaseVersion #

public required string BaseVersion { get; init; }

The version the definition declares.

property BuildIteration #

public int BuildIteration { get; init; }

The build iteration within the base version; 0 for a version imported as declared.

property CanonicalDefinitionJson #

public required string CanonicalDefinitionJson { get; init; }

The full canonical definition as serialized JSON.

property CompatibilitySha256 #

public string CompatibilitySha256 { get; init; }

The compatibility SHA-256; zeros when none was given.

property ContentHash #

public required string ContentHash { get; init; }

SHA-256 hash of the canonical definition JSON (lowercase hex, 64 chars).

property CreatedOnUtc #

public DateTime CreatedOnUtc { get; init; }

When this record was created.

property DisplayName #

public string? DisplayName { get; init; }

Human-readable workflow name from the definition.

property ImportedBy #

public string? ImportedBy { get; init; }

User or system identifier that performed the import.

property IsActive #

public bool IsActive { get; init; }

Whether this version is the active version for the workflow name.

property IsManaged #

public bool IsManaged { get; init; }

Whether the definition is managed.

property ManagedCode #

public string? ManagedCode { get; init; }

The code of a managed definition.

property Origin #

public string Origin { get; init; }

Where the definition comes from: OPERATOR_IMPORTED or MANAGED_EMBEDDED.

property RenderingJson #

public byte[]? RenderingJson { get; init; }

Optional render graph JSON (for UI rendering).

property RenderingPng #

public byte[]? RenderingPng { get; init; }

Optional PNG screenshot.

property RenderingSvg #

public byte[]? RenderingSvg { get; init; }

Optional SVG diagram rendering.

property ResolvedDependencies #

public IReadOnlyDictionary<string, string>? ResolvedDependencies { get; init; }

The versions of the workflows this one refers to, by name, when a store recorded them; the stores keep the value, and the engine does not set it.

property SourceBuildSha256 #

public string SourceBuildSha256 { get; init; }

The source build SHA-256; zeros when none was given.

property VersionNo #

public long VersionNo { get; init; }

The record version, raised by each change of the record.

property WorkflowName #

public required string WorkflowName { get; init; }

Workflow name (e.g., “ApproveApplication”).

property WorkflowVersion #

public required string WorkflowVersion { get; init; }

The version. A version is an immutable identity: importing different content under a stored version is refused.

record WorkflowEndpointCallStepDefinition<TStartRequest>

public sealed record WorkflowEndpointCallStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Defines a transport call of an HTTP endpoint of a named service.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • ServiceName: The service.
  • Method: The HTTP method.
  • Path: The path.
  • PayloadFactory: Builds the payload from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Members

MemberKindSummary
WorkflowEndpointCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, WorkflowFailureHandlers<TStartRequest>, int?)constructorDefines a transport call of an HTTP endpoint of a named service.
FailureHandlerspropertyThe failure and timeout branches; none when not set.
MethodpropertyThe HTTP method.
PathpropertyThe path.
PayloadExpressionpropertyThe payload as an expression, for the canonical definition.
PayloadFactorypropertyBuilds the payload from the context.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
ServiceNamepropertyThe service.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.
TimeoutSecondspropertyThe step timeout in seconds, over all attempts; one hour when not set.

constructor WorkflowEndpointCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, WorkflowFailureHandlers<TStartRequest>, int?) #

public WorkflowEndpointCallStepDefinition(string StepName, string ServiceName, string Method, string Path, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory, string? ResultKey, WorkflowFailureHandlers<TStartRequest>? FailureHandlers = null, int? TimeoutSeconds = null)

Defines a transport call of an HTTP endpoint of a named service.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • ServiceName: The service.
  • Method: The HTTP method.
  • Path: The path.
  • PayloadFactory: Builds the payload from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

property FailureHandlers #

public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }

The failure and timeout branches; none when not set.

property Method #

public string Method { get; init; }

The HTTP method.

property Path #

public string Path { get; init; }

The path.

property PayloadExpression #

public WorkflowExpressionDefinition? PayloadExpression { get; init; }

The payload as an expression, for the canonical definition.

property PayloadFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory { get; init; }

Builds the payload from the context.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property ServiceName #

public string ServiceName { get; init; }

The service.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

property TimeoutSeconds #

public int? TimeoutSeconds { get; init; }

The step timeout in seconds, over all attempts; one hour when not set.

class WorkflowExecutionActorContext

public sealed class WorkflowExecutionActorContext

Propagates the authenticated actor ID through async workflow execution chains (e.g., OnComplete -> Call -> transport) where the original request context is not available. Implementations set ActorId and CallerUserId during task-complete/start-workflow processing.

Members

MemberKindSummary
WorkflowExecutionActorContext()constructorCreates an instance of WorkflowExecutionActorContext.
ActorIdpropertyThe actor ID from the task operation request (e.g., numeric user account ID).
CallerUserIdpropertyThe authenticated caller’s user ID extracted from the HTTP request context.

constructor WorkflowExecutionActorContext() #

public WorkflowExecutionActorContext()

Creates an instance of WorkflowExecutionActorContext.

property ActorId #

public string? ActorId { get; set; }

The actor ID from the task operation request (e.g., numeric user account ID). Used for role resolution and task assignment.

property CallerUserId #

public string? CallerUserId { get; set; }

The authenticated caller’s user ID extracted from the HTTP request context. Used by transport implementations for backend service calls.

record WorkflowExecutionTaskPlan

public sealed record WorkflowExecutionTaskPlan

A human task a plan opens.

Members

MemberKindSummary
WorkflowExecutionTaskPlan()constructorCreates an instance of WorkflowExecutionTaskPlan.
PayloadpropertyThe task payload.
RoutepropertyThe route of the task.
RuntimeRolespropertyThe roles computed at runtime, which replace the task roles.
SingleOpenSlotpropertyThe task’s single-open slot (WorkflowTaskDeclaration.SingleOpenSlot); the projection store keeps one open or assigned task per execution and slot.
TaskNamepropertyThe task name.
TaskRolespropertyThe roles the task declares.
TaskTypepropertyThe task type.
TimeoutSecondspropertyOptional timeout for the task in seconds.
WorkflowNamepropertyThe workflow name.
WorkflowRolespropertyThe workflow roles.
WorkflowVersionpropertyThe workflow version.

constructor WorkflowExecutionTaskPlan() #

public WorkflowExecutionTaskPlan()

Creates an instance of WorkflowExecutionTaskPlan.

property Payload #

public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }

The task payload.

property Route #

public required string Route { get; init; }

The route of the task.

property RuntimeRoles #

public IReadOnlyCollection<string> RuntimeRoles { get; init; }

The roles computed at runtime, which replace the task roles.

property SingleOpenSlot #

public string? SingleOpenSlot { get; init; }

The task’s single-open slot (WorkflowTaskDeclaration.SingleOpenSlot); the projection store keeps one open or assigned task per execution and slot.

property TaskName #

public required string TaskName { get; init; }

The task name.

property TaskRoles #

public IReadOnlyCollection<string> TaskRoles { get; init; }

The roles the task declares.

property TaskType #

public required string TaskType { get; init; }

The task type.

property TimeoutSeconds #

public int? TimeoutSeconds { get; init; }

Optional timeout for the task in seconds. Used to compute WorkflowTaskSummary.DeadlineUtc.

property WorkflowName #

public string? WorkflowName { get; init; }

The workflow name.

property WorkflowRoles #

public IReadOnlyCollection<string> WorkflowRoles { get; init; }

The workflow roles.

property WorkflowVersion #

public string? WorkflowVersion { get; init; }

The workflow version.

class WorkflowExpr

public static class WorkflowExpr

Builds the expressions of canonical workflow definitions. The build-time generator evaluates every method except WorkflowExpr.FromValue(object)and WorkflowExpr.Binary(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition), which leave the workflow to the runtime compiler (WF021).

Members

MemberKindSummary
And(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodBoth conditions hold: and.
Array(IEnumerable<WorkflowExpressionDefinition>)methodAn array of expressions.
Array(params WorkflowExpressionDefinition[])methodAn array of expressions.
Binary(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodA binary operation by operator name: eq, ne, and, or, gt, gte, lt, lte, add, subtract, multiply or divide, compared case-sensitively; another name fails validation.
Bool(bool)methodA Boolean literal.
Eq(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodCompares two values: eq, whether they are equal.
FromValue(object)methodAn expression of a constant value: null, a string, a Boolean, a number, an object or an array.
Func(string, params WorkflowExpressionDefinition[])methodA call of a function of the function catalog.
Group(WorkflowExpressionDefinition)methodA parenthesized expression.
Gt(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodCompares two values: gt, whether the left is greater.
Gte(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodCompares two values: gte, whether the left is greater or equal.
Lt(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodCompares two values: lt, whether the left is less.
Lte(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodCompares two values: lte, whether the left is less or equal.
Ne(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodCompares two values: ne, whether they differ.
Not(WorkflowExpressionDefinition)methodThe Boolean negation.
Null()methodThe null value.
Number(decimal)methodA decimal literal.
Number(long)methodAn integer literal.
Obj(IEnumerable<WorkflowNamedExpressionDefinition>)methodAn object of named expressions; a later property replaces an earlier one of the same name, ignoring case.
Obj(params WorkflowNamedExpressionDefinition[])methodAn object of named expressions; a later property replaces an earlier one of the same name, ignoring case.
Or(WorkflowExpressionDefinition, WorkflowExpressionDefinition)methodEither condition holds: or.
Path(string)methodReads a value by dotted path.
Prop(string, WorkflowExpressionDefinition)methodA named expression: a property of WorkflowExpr.Obj(params WorkflowNamedExpressionDefinition[]).
String(string)methodA string literal.

method And(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition And(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Both conditions hold: and.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The and expression.

method Array(IEnumerable<WorkflowExpressionDefinition>) #

public static WorkflowArrayExpressionDefinition Array(IEnumerable<WorkflowExpressionDefinition> items)

An array of expressions.

Parameters

  • items: The items.

Returns

The array expression.

method Array(params WorkflowExpressionDefinition[]) #

public static WorkflowArrayExpressionDefinition Array(params WorkflowExpressionDefinition[] items)

An array of expressions.

Parameters

  • items: The items.

Returns

The array expression.

method Binary(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Binary(string @operator, WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

A binary operation by operator name: eq, ne, and, or, gt, gte, lt, lte, add, subtract, multiply or divide, compared case-sensitively; another name fails validation. The build-time generator does not evaluate it (WF021); prefer the named methods, and WorkflowExpr.Func(string, params WorkflowExpressionDefinition[])for arithmetic.

Parameters

  • operator: The operator name.
  • left: The left operand.
  • right: The right operand.

Returns

The binary expression.

method Bool(bool) #

public static WorkflowBooleanExpressionDefinition Bool(bool value)

A Boolean literal.

Parameters

  • value: The value.

Returns

The Boolean expression.

method Eq(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Eq(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Compares two values: eq, whether they are equal.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The eq expression.

method FromValue(object) #

public static WorkflowExpressionDefinition FromValue(object? value)

An expression of a constant value: null, a string, a Boolean, a number, an object or an array. The build-time generator does not evaluate it (WF021), so the workflow is compiled at runtime.

Parameters

  • value: The value.

Returns

The expression.

method Func(string, params WorkflowExpressionDefinition[]) #

public static WorkflowFunctionExpressionDefinition Func(string functionName, params WorkflowExpressionDefinition[] arguments)

A call of a function of the function catalog. Use it for arithmetic, such as Func("add", a, b): the build-time generator evaluates it, where WorkflowExpr.Binary(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition)gives WF021.

Parameters

  • functionName: The function name.
  • arguments: The arguments.

Returns

The function expression.

method Group(WorkflowExpressionDefinition) #

public static WorkflowGroupExpressionDefinition Group(WorkflowExpressionDefinition expression)

A parenthesized expression.

Parameters

  • expression: The expression.

Returns

The group expression.

method Gt(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Gt(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Compares two values: gt, whether the left is greater.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The gt expression.

method Gte(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Gte(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Compares two values: gte, whether the left is greater or equal.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The gte expression.

method Lt(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Lt(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Compares two values: lt, whether the left is less.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The lt expression.

method Lte(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Lte(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Compares two values: lte, whether the left is less or equal.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The lte expression.

method Ne(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Ne(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Compares two values: ne, whether they differ.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The ne expression.

method Not(WorkflowExpressionDefinition) #

public static WorkflowUnaryExpressionDefinition Not(WorkflowExpressionDefinition operand)

The Boolean negation.

Parameters

  • operand: The operand.

Returns

The not expression.

method Null() #

public static WorkflowNullExpressionDefinition Null()

The null value.

Returns

The null expression.

method Number(decimal) #

public static WorkflowNumberExpressionDefinition Number(decimal value)

A decimal literal.

Parameters

  • value: The value.

Returns

The number expression.

method Number(long) #

public static WorkflowNumberExpressionDefinition Number(long value)

An integer literal.

Parameters

  • value: The value.

Returns

The number expression.

method Obj(IEnumerable<WorkflowNamedExpressionDefinition>) #

public static WorkflowObjectExpressionDefinition Obj(IEnumerable<WorkflowNamedExpressionDefinition> properties)

An object of named expressions; a later property replaces an earlier one of the same name, ignoring case.

Parameters

  • properties: The properties.

Returns

The object expression.

method Obj(params WorkflowNamedExpressionDefinition[]) #

public static WorkflowObjectExpressionDefinition Obj(params WorkflowNamedExpressionDefinition[] properties)

An object of named expressions; a later property replaces an earlier one of the same name, ignoring case.

Parameters

  • properties: The properties.

Returns

The object expression.

method Or(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #

public static WorkflowBinaryExpressionDefinition Or(WorkflowExpressionDefinition left, WorkflowExpressionDefinition right)

Either condition holds: or.

Parameters

  • left: The left operand.
  • right: The right operand.

Returns

The or expression.

method Path(string) #

public static WorkflowPathExpressionDefinition Path(string path)

Reads a value by dotted path. Its root is start (the start request), state, payload, result or businessReference.

Parameters

  • path: The path, such as state.customerId.

Returns

The path expression.

method Prop(string, WorkflowExpressionDefinition) #

public static WorkflowNamedExpressionDefinition Prop(string name, WorkflowExpressionDefinition expression)

A named expression: a property of WorkflowExpr.Obj(params WorkflowNamedExpressionDefinition[]).

Parameters

  • name: The property name.
  • expression: The value.

Returns

The named expression.

method String(string) #

public static WorkflowStringExpressionDefinition String(string value)

A string literal.

Parameters

  • value: The value.

Returns

The string expression.

class WorkflowExpressionConditionDefinition<TStartRequest>

public sealed class WorkflowExpressionConditionDefinition<TStartRequest> : WorkflowConditionDefinition<TStartRequest> where TStartRequest : class

A condition evaluated by a delegate, with its expression when it has one.

Members

MemberKindSummary
WorkflowExpressionConditionDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>, WorkflowExpressionDefinition)constructorCreates the condition.
CanonicalExpressionpropertyThe condition as an expression, for the canonical definition; none for a delegate.
Evaluate(WorkflowSpecExecutionContext<TStartRequest>)methodEvaluates the condition.

constructor WorkflowExpressionConditionDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>, WorkflowExpressionDefinition) #

public WorkflowExpressionConditionDefinition(string displayName, Func<WorkflowSpecExecutionContext<TStartRequest>, bool> evaluator, WorkflowExpressionDefinition? canonicalExpression = null)

Creates the condition.

Parameters

  • displayName: The label of the decision in diagrams.
  • evaluator: Evaluates the condition.
  • canonicalExpression: The condition as an expression; none for a delegate only.

property CanonicalExpression #

public override WorkflowExpressionDefinition? CanonicalExpression { get; }

The condition as an expression, for the canonical definition; none for a delegate.

method Evaluate(WorkflowSpecExecutionContext<TStartRequest>) #

public override bool Evaluate(WorkflowSpecExecutionContext<TStartRequest> context)

Evaluates the condition.

Parameters

  • context: The execution context.

Returns

Whether it holds.

record WorkflowExternalActivityRegistration

public sealed record WorkflowExternalActivityRegistration

An external activity of the signed registry manifest.

Members

MemberKindSummary
WorkflowExternalActivityRegistration()constructorCreates an instance of WorkflowExternalActivityRegistration.
CancelLanepropertyThe lane the cancel requests go to, when there is one.
CompletionLanepropertyThe lane the completions come back on, when it differs.
ContractKindpropertyThe contract kind.
ContractVersionpropertyThe contract version.
DestinationCodepropertyThe destination.
ExecuteLanepropertyThe lane the execute requests go to.
HandlerBuildSha256propertyThe SHA-256 of the handler build the manifest pins.
OperationCodepropertyThe operation.
RequestSchemaIdpropertyThe schema of the request.
RequestSchemaVersionpropertyThe version of the request schema.
ResultSchemaIdpropertyThe schema of the result, when there is one.
ResultSchemaVersionpropertyThe version of the result schema.

constructor WorkflowExternalActivityRegistration() #

public WorkflowExternalActivityRegistration()

Creates an instance of WorkflowExternalActivityRegistration.

property CancelLane #

public string? CancelLane { get; init; }

The lane the cancel requests go to, when there is one.

property CompletionLane #

public string? CompletionLane { get; init; }

The lane the completions come back on, when it differs.

property ContractKind #

public required string ContractKind { get; init; }

The contract kind.

property ContractVersion #

public required string ContractVersion { get; init; }

The contract version.

property DestinationCode #

public required string DestinationCode { get; init; }

The destination.

property ExecuteLane #

public required string ExecuteLane { get; init; }

The lane the execute requests go to.

property HandlerBuildSha256 #

public required string HandlerBuildSha256 { get; init; }

The SHA-256 of the handler build the manifest pins.

property OperationCode #

public required string OperationCode { get; init; }

The operation.

property RequestSchemaId #

public required string RequestSchemaId { get; init; }

The schema of the request.

property RequestSchemaVersion #

public required int RequestSchemaVersion { get; init; }

The version of the request schema.

property ResultSchemaId #

public string? ResultSchemaId { get; init; }

The schema of the result, when there is one.

property ResultSchemaVersion #

public int? ResultSchemaVersion { get; init; }

The version of the result schema.

record WorkflowExternalActivityStepDefinition<TStartRequest>

public sealed record WorkflowExternalActivityStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Runs an external activity of the host’s signed registry.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • DestinationCode: The destination of the activity in the registry.
  • OperationCode: The operation of the activity in the registry.
  • ContractVersion: The contract version of the activity in the registry.
  • RequestExpression: The request.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • DeadlineSeconds: The deadline in seconds.

Members

MemberKindSummary
WorkflowExternalActivityStepDefinition(string, string, string, string, WorkflowExpressionDefinition, string, int?)constructorRuns an external activity of the host’s signed registry.
ContractVersionpropertyThe contract version of the activity in the registry.
DeadlineSecondspropertyThe deadline in seconds.
DestinationCodepropertyThe destination of the activity in the registry.
OperationCodepropertyThe operation of the activity in the registry.
RequestExpressionpropertyThe request.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowExternalActivityStepDefinition(string, string, string, string, WorkflowExpressionDefinition, string, int?) #

public WorkflowExternalActivityStepDefinition(string StepName, string DestinationCode, string OperationCode, string ContractVersion, WorkflowExpressionDefinition RequestExpression, string? ResultKey, int? DeadlineSeconds)

Runs an external activity of the host’s signed registry.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • DestinationCode: The destination of the activity in the registry.
  • OperationCode: The operation of the activity in the registry.
  • ContractVersion: The contract version of the activity in the registry.
  • RequestExpression: The request.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • DeadlineSeconds: The deadline in seconds.

property ContractVersion #

public string ContractVersion { get; init; }

The contract version of the activity in the registry.

property DeadlineSeconds #

public int? DeadlineSeconds { get; init; }

The deadline in seconds.

property DestinationCode #

public string DestinationCode { get; init; }

The destination of the activity in the registry.

property OperationCode #

public string OperationCode { get; init; }

The operation of the activity in the registry.

property RequestExpression #

public WorkflowExpressionDefinition RequestExpression { get; init; }

The request.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

record WorkflowExternalActivityWrite

public sealed record WorkflowExternalActivityWrite

The changes one external-activity decision makes, written atomically.

Members

MemberKindSummary
WorkflowExternalActivityWrite()constructorCreates an instance of WorkflowExternalActivityWrite.
ChangedAttemptspropertyChanged attempts.
ChangedDispatchespropertyChanged dispatches.
ChangedLineagespropertyChanged lineages.
ChangedMapItemspropertyMap item status changes.
ChangedMapspropertyMap status changes.
ChangedStepspropertyChanged steps.
EventspropertyHistory events to append, in order.
NewAttemptpropertyA new attempt.
NewCancelspropertyNew cancel requests.
NewCompletionpropertyA new completion.
NewDispatchpropertyA new dispatch.
NewLineagespropertyNew lineages.
NewReprocesspropertyA new reprocess request.
NewSteppropertyA new step.
RuntimeChangespropertyRuntime-state changes.

constructor WorkflowExternalActivityWrite() #

public WorkflowExternalActivityWrite()

Creates an instance of WorkflowExternalActivityWrite.

property ChangedAttempts #

public IReadOnlyList<WorkflowActivityAttempt> ChangedAttempts { get; init; }

Changed attempts.

property ChangedDispatches #

public IReadOnlyList<WorkflowActivityDispatchEntry> ChangedDispatches { get; init; }

Changed dispatches.

property ChangedLineages #

public IReadOnlyList<WorkflowContinuationLineageChange> ChangedLineages { get; init; }

Changed lineages.

property ChangedMapItems #

public IReadOnlyList<WorkflowActivityMapItemStatusChange> ChangedMapItems { get; init; }

Map item status changes.

property ChangedMaps #

public IReadOnlyList<WorkflowActivityMapStatusChange> ChangedMaps { get; init; }

Map status changes.

property ChangedSteps #

public IReadOnlyList<WorkflowActivityStepChange> ChangedSteps { get; init; }

Changed steps.

property Events #

public IReadOnlyList<WorkflowActivityEventAppend> Events { get; init; }

History events to append, in order.

property NewAttempt #

public WorkflowActivityAttempt? NewAttempt { get; init; }

A new attempt.

property NewCancels #

public IReadOnlyList<WorkflowActivityCancelEntry> NewCancels { get; init; }

New cancel requests.

property NewCompletion #

public WorkflowActivityCompletionEntry? NewCompletion { get; init; }

A new completion.

property NewDispatch #

public WorkflowActivityDispatchEntry? NewDispatch { get; init; }

A new dispatch.

property NewLineages #

public IReadOnlyList<WorkflowContinuationLineage> NewLineages { get; init; }

New lineages.

property NewReprocess #

public WorkflowScopeReprocess? NewReprocess { get; init; }

A new reprocess request.

property NewStep #

public WorkflowActivityStep? NewStep { get; init; }

A new step.

property RuntimeChanges #

public IReadOnlyList<WorkflowActivityRuntimeChange> RuntimeChanges { get; init; }

Runtime-state changes.

record WorkflowExternalSignalStepDefinition<TStartRequest>

public sealed record WorkflowExternalSignalStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Pauses the instance until a caller raises the signal for it.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • SignalNameFactory: Computes the signal name.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.

Members

MemberKindSummary
WorkflowExternalSignalStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, string>, string)constructorPauses the instance until a caller raises the signal for it.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
SignalNameExpressionpropertyThe signal name as an expression, for the canonical definition.
SignalNameFactorypropertyComputes the signal name.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowExternalSignalStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, string>, string) #

public WorkflowExternalSignalStepDefinition(string StepName, Func<WorkflowSpecExecutionContext<TStartRequest>, string> SignalNameFactory, string? ResultKey)

Pauses the instance until a caller raises the signal for it.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • SignalNameFactory: Computes the signal name.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property SignalNameExpression #

public WorkflowExpressionDefinition? SignalNameExpression { get; init; }

The signal name as an expression, for the canonical definition.

property SignalNameFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, string> SignalNameFactory { get; init; }

Computes the signal name.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

record WorkflowFailureHandlers<TStartRequest>

public sealed record WorkflowFailureHandlers<TStartRequest> where TStartRequest : class

The failure and timeout branches of a step.

Parameters

  • WhenFailure: The steps to run when the step fails; empty to ignore the failure and continue.
  • WhenTimeout: The steps to run when the step times out.

Members

MemberKindSummary
WorkflowFailureHandlers(WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>)constructorThe failure and timeout branches of a step.
FailureConfiguredpropertyWhether the author gave a failure branch at all.
HasAnyBranchpropertyWhether either branch has steps.
HasFailureBranchpropertyWhether the failure branch has steps.
HasTimeoutBranchpropertyWhether the timeout branch has steps.
TimeoutConfiguredpropertyWhether the author gave a timeout branch at all.
WhenFailurepropertyThe steps to run when the step fails; empty to ignore the failure and continue.
WhenTimeoutpropertyThe steps to run when the step times out.

constructor WorkflowFailureHandlers(WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>) #

public WorkflowFailureHandlers(WorkflowStepSequence<TStartRequest> WhenFailure, WorkflowStepSequence<TStartRequest> WhenTimeout)

The failure and timeout branches of a step.

Parameters

  • WhenFailure: The steps to run when the step fails; empty to ignore the failure and continue.
  • WhenTimeout: The steps to run when the step times out.

property FailureConfigured #

public bool FailureConfigured { get; init; }

Whether the author gave a failure branch at all. A given empty branch means “ignore and continue”; one not given leaves the failure unhandled.

property HasAnyBranch #

public bool HasAnyBranch { get; }

Whether either branch has steps.

property HasFailureBranch #

public bool HasFailureBranch { get; }

Whether the failure branch has steps.

property HasTimeoutBranch #

public bool HasTimeoutBranch { get; }

Whether the timeout branch has steps.

property TimeoutConfigured #

public bool TimeoutConfigured { get; init; }

Whether the author gave a timeout branch at all. One not given sends a timeout to the failure branch.

property WhenFailure #

public WorkflowStepSequence<TStartRequest> WhenFailure { get; init; }

The steps to run when the step fails; empty to ignore the failure and continue.

property WhenTimeout #

public WorkflowStepSequence<TStartRequest> WhenTimeout { get; init; }

The steps to run when the step times out.

class WorkflowFirstSeenIdentity

public static class WorkflowFirstSeenIdentity

The identity of a workflow in the first-seen ledger.

Members

MemberKindSummary
Key(string)methodThe ledger key of workflowName: its invariant upper-case form, the same equality the code catalogue applies (StringComparer.OrdinalIgnoreCase).

method Key(string) #

public static string? Key(string? workflowName)

The ledger key of workflowName: its invariant upper-case form, the same equality the code catalogue applies (StringComparer.OrdinalIgnoreCase). null for a missing or blank name, which is never recorded.

record WorkflowFirstSeenRecord

public sealed record WorkflowFirstSeenRecord

A workflow in the first-seen ledger, as first seen.

Members

MemberKindSummary
WorkflowFirstSeenRecord()constructorCreates an instance of WorkflowFirstSeenRecord.
FirstSeenOnUtcpropertyWhen the workflow was first seen (UTC).
FirstSeenSourcepropertyWhere the workflow was first seen (WorkflowFirstSeenSources).
WorkflowNamepropertyThe spelling of the workflow name at its first sighting.

constructor WorkflowFirstSeenRecord() #

public WorkflowFirstSeenRecord()

Creates an instance of WorkflowFirstSeenRecord.

property FirstSeenOnUtc #

public required DateTimeOffset FirstSeenOnUtc { get; init; }

When the workflow was first seen (UTC).

property FirstSeenSource #

public required string FirstSeenSource { get; init; }

Where the workflow was first seen (WorkflowFirstSeenSources).

property WorkflowName #

public required string WorkflowName { get; init; }

The spelling of the workflow name at its first sighting.

class WorkflowFirstSeenSources

public static class WorkflowFirstSeenSources

Where the ledger first saw a workflow.

Members

MemberKindSummary
CatalogconstantRegistered in code (IWorkflowRegistrationCatalog).
ImportconstantStored by a definition import.
StoreconstantFound in the definition store by the reconciliation pass.
IsKnown(string)methodWhether a source is one of the known sources.

constant Catalog #

public const string Catalog = "catalog"

Registered in code (IWorkflowRegistrationCatalog).

constant Import #

public const string Import = "import"

Stored by a definition import.

constant Store #

public const string Store = "store"

Found in the definition store by the reconciliation pass.

method IsKnown(string) #

public static bool IsKnown(string? source)

Whether a source is one of the known sources.

Parameters

  • source: The source.

Returns

Whether it is.

class WorkflowFlowBuilder<TStartRequest>

public sealed class WorkflowFlowBuilder<TStartRequest> where TStartRequest : class

Adds the steps of a flow: the first steps of a workflow (StartWith), the completion steps of a task (OnComplete) and the branches of decisions, calls, loops and forks. Every method returns the same builder.

Members

MemberKindSummary
WorkflowFlowBuilder()constructorCreates an instance of WorkflowFlowBuilder<TStartRequest>.
ActivateTask(string, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>)methodAdds a step that opens the declared human task taskName; the instance waits until a user completes it and then runs the task’s completion steps.
ActivateTask(string, WorkflowExpressionDefinition)methodAdds a step that opens the declared human task taskName with roles computed from the state; the instance waits until a user completes it and then runs the task’s completion steps.
Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, EndpointAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, EndpointAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, EndpointAddress, WorkflowExpressionDefinition, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, EndpointAddress, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, HttpAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, HttpAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, HttpAddress, WorkflowExpressionDefinition, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, HttpAddress, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call(string, RabbitAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call(string, RabbitAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call(string, RabbitAddress, WorkflowExpressionDefinition, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call(string, RabbitAddress, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call(string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?)methodAdds a step that calls the HTTP endpoint path of the service serviceName (an endpoint address).
Call<TRequest, TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TRequest, TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TRequest, TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TRequest, TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TRequest, TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TRequest, TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TRequest>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TRequest>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TRequest>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TRequest>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TRequest>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TRequest>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, EndpointAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, EndpointAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, EndpointAddress, WorkflowExpressionDefinition, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, EndpointAddress, string, int?)methodAdds a step that calls an HTTP endpoint of a named service (an endpoint address).
Call<TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, HttpAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, HttpAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, HttpAddress, WorkflowExpressionDefinition, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, HttpAddress, string, int?)methodAdds a step that calls an HTTP target named in configuration (an http address).
Call<TResponse>(string, RabbitAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call<TResponse>(string, RabbitAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call<TResponse>(string, RabbitAddress, WorkflowExpressionDefinition, string, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call<TResponse>(string, RabbitAddress, string, int?)methodAdds a step that sends a request message over RabbitMQ (a rabbit address).
Call<TResponse>(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?)methodAdds a step that calls the HTTP endpoint path of the service serviceName (an endpoint address).
Complete()methodAdds a step that completes the instance.
ContinueWith(string, WorkflowReference)methodAdds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.
ContinueWith(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>)methodAdds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.
ContinueWith(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration)methodAdds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.
ContinueWith(string, WorkflowWorkflowInvocationDeclaration)methodAdds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.
ContinueWith<TPayload>(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>)methodAdds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.
ExternalActivity(string, string, string, string, WorkflowExpressionDefinition, string, int?)methodAdds a step that runs an external activity of the host’s signed external activity registry.
Fork(string, params Action<WorkflowFlowBuilder<TStartRequest>>[])methodAdds a step that runs the branches concurrently and continues when the last branch has finished.
Map(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition, WorkflowExpressionDefinition, string, int, int, int, Action<WorkflowFlowBuilder<TStartRequest>>, string, string, string, int?, string, WorkflowRetryPolicyDeclaration, int?)methodAdds a map step: the body runs once per item of a collection, with bounded concurrency and a deterministic fan-in.
QueryGraphql(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, GraphqlAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, GraphqlAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, GraphqlAddress, WorkflowExpressionDefinition, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, GraphqlAddress, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql(string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, int?)methodAdds a step that runs the GraphQL query against the target target.
QueryGraphql<TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, GraphqlAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, GraphqlAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, GraphqlAddress, WorkflowExpressionDefinition, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, GraphqlAddress, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TResponse>(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, int?)methodAdds a step that runs the GraphQL query against the target target.
QueryGraphql<TVariables, TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TVariables, TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TVariables, TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, string, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TVariables>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TVariables>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?)methodAdds a step that runs a GraphQL query (a graphql address).
QueryGraphql<TVariables>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, int?)methodAdds a step that runs a GraphQL query (a graphql address).
Repeat(string, WorkflowExpressionDefinition, string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a loop: the body runs while continueWhileExpression holds, evaluated before each iteration, at most the maximum number of iterations.
Repeat(string, int, string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a loop: the body runs while continueWhileExpression holds, evaluated before each iteration, at most the maximum number of iterations.
Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>)methodAdds a step that runs C# code with the inline step services.
Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a step that runs C# code with the inline step services.
Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, WorkflowHandledBranchAction, WorkflowHandledBranchAction)methodAdds a step that runs C# code with the inline step services.
Set(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>)methodAdds a step that sets the state value key.
Set(string, WorkflowExpressionDefinition)methodAdds a step that sets the state value key to the value of valueExpression.
Set(string, object)methodAdds a step that sets the state value key to a constant.
SetBusinessReference(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>)methodAdds a step that sets or changes the business reference of the instance.
SetBusinessReference(WorkflowBusinessReferenceDeclaration)methodAdds a step that sets or changes the business reference of the instance: a key expression and named part expressions.
SetIfHasValue(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>)methodAdds a step that sets the state value key only when the value is set: not null and not an empty or white-space string.
SetIfHasValue(string, WorkflowExpressionDefinition)methodAdds a step that sets the state value key only when the value is set: not null and not an empty or white-space string.
SubWorkflow(string, WorkflowReference, Action<WorkflowFlowBuilder<TStartRequest>>, string)methodAdds a step that runs another registered workflow as a child and waits for it.
SubWorkflow(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>, string)methodAdds a step that runs another registered workflow as a child and waits for it.
SubWorkflow(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration, Action<WorkflowFlowBuilder<TStartRequest>>, string)methodAdds a step that runs another registered workflow as a child and waits for it.
SubWorkflow(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration, string)methodAdds a step that runs another registered workflow as a child and waits for it.
SubWorkflow(string, WorkflowReference, string)methodAdds a step that runs another registered workflow as a child and waits for it.
SubWorkflow(string, WorkflowWorkflowInvocationDeclaration, Action<WorkflowFlowBuilder<TStartRequest>>, string)methodRuns the child workflow; when it fails or ends in a status other than completed, runs whenFailure, which reads the failure as result.lastFailure.
SubWorkflow(string, WorkflowWorkflowInvocationDeclaration, string)methodAdds a step that runs another registered workflow as a child and waits for it.
SubWorkflow<TPayload>(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>, string)methodAdds a step that runs another registered workflow as a child and waits for it.
TerminateFork()methodEnds the fork this branch belongs to, as a BPMN terminate end event inside a parallel subprocess does: tasks still open in the other branches are cancelled, their waits are dropped, and the flow continues after the fork.
Wait(string, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan>)methodAdds a timer step: the instance pauses for the delay and resumes when the timer is due; the host process can restart in between.
Wait(string, WorkflowExpressionDefinition)methodAdds a timer step: the instance pauses for the delay and resumes when the timer is due; the host process can restart in between.
WaitForSignal(string, Func<WorkflowSpecExecutionContext<TStartRequest>, string>, string)methodAdds a step that pauses the instance until a caller raises the signal for it.
WaitForSignal(string, WorkflowExpressionDefinition, string)methodAdds a step that pauses the instance until a caller raises the signal for it.
WaitForSignal(string, string, string)methodAdds a step that pauses the instance until a caller raises the signal for it.
WhenExpression(string, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a decision on a condition.
WhenExpression(string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a decision on a boolean expression.
WhenPayloadEquals<TValue>(string, TValue, string, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a decision that compares a field of the completion payload (payload.<key>) with expectedValue.
WhenStateEquals<TValue>(string, TValue, string, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a decision that compares a state value (state.<key>) with expectedValue.
WhenStateFlag(string, bool, string, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>)methodAdds a decision on a boolean state value (state.<key>).

constructor WorkflowFlowBuilder() #

public WorkflowFlowBuilder()

Creates an instance of WorkflowFlowBuilder<TStartRequest>.

method ActivateTask(string, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>) #

public WorkflowFlowBuilder<TStartRequest> ActivateTask(string taskName, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>? runtimeRolesFactory = null)

Adds a step that opens the declared human task taskName; the instance waits until a user completes it and then runs the task’s completion steps. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • taskName: The task name, as declared with AddTask.
  • runtimeRolesFactory: Computes the roles that replace the task roles; when not set, the task roles apply.

Returns

The same builder, for chaining.

method ActivateTask(string, WorkflowExpressionDefinition) #

public WorkflowFlowBuilder<TStartRequest> ActivateTask(string taskName, WorkflowExpressionDefinition runtimeRolesExpression)

Adds a step that opens the declared human task taskName with roles computed from the state; the instance waits until a user completes it and then runs the task’s completion steps.

Parameters

  • taskName: The task name, as declared with AddTask.
  • runtimeRolesExpression: The roles that replace the task roles; when it yields no role, the task roles apply, or the workflow roles when the task has none.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, WorkflowExpressionDefinition payloadExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is the value of payloadExpression. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, WorkflowExpressionDefinition payloadExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is the value of payloadExpression. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, WorkflowExpressionDefinition, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, WorkflowExpressionDefinition payloadExpression, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is the value of payloadExpression. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, EndpointAddress, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, EndpointAddress address, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The request has no payload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, WorkflowExpressionDefinition payloadExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is the value of payloadExpression. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, WorkflowExpressionDefinition payloadExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is the value of payloadExpression. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, WorkflowExpressionDefinition, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, WorkflowExpressionDefinition payloadExpression, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is the value of payloadExpression. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, HttpAddress, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, HttpAddress address, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The request has no payload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, RabbitAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, RabbitAddress address, WorkflowExpressionDefinition payloadExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The payload is the value of payloadExpression. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, RabbitAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, RabbitAddress address, WorkflowExpressionDefinition payloadExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The payload is the value of payloadExpression. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, RabbitAddress, WorkflowExpressionDefinition, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, RabbitAddress address, WorkflowExpressionDefinition payloadExpression, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The payload is the value of payloadExpression. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, RabbitAddress, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, RabbitAddress address, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The request has no payload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call(string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call(string stepName, string serviceName, string path, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, int? timeoutSeconds = null)

Adds a step that calls the HTTP endpoint path of the service serviceName (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • serviceName: The service name, resolved through the endpoint transport configuration.
  • path: The endpoint path.
  • payloadFactory: Builds the payload from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest, TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest, TResponse>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TRequest: The payload type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest, TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest, TResponse>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TRequest: The payload type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest, TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest, TResponse>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TRequest: The payload type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest, TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest, TResponse>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TRequest: The payload type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest, TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest, TResponse>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TRequest: The payload type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest, TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest, TResponse>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TRequest: The payload type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TRequest: The payload type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TRequest: The payload type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Type parameters

  • TRequest: The payload type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TRequest: The payload type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TRequest: The payload type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TRequest>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TRequest>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TRequest> payloadFactory, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Type parameters

  • TRequest: The payload type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, WorkflowExpressionDefinition payloadExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, WorkflowExpressionDefinition payloadExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, WorkflowExpressionDefinition, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, WorkflowExpressionDefinition payloadExpression, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, EndpointAddress, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, EndpointAddress address, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP endpoint of a named service (an endpoint address). The request has no payload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadFactory: Builds the payload from the execution context.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, WorkflowExpressionDefinition payloadExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, WorkflowExpressionDefinition payloadExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, WorkflowExpressionDefinition, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, WorkflowExpressionDefinition payloadExpression, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, HttpAddress, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, HttpAddress address, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that calls an HTTP target named in configuration (an http address). The request has no payload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, RabbitAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, RabbitAddress address, WorkflowExpressionDefinition payloadExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, RabbitAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, RabbitAddress address, WorkflowExpressionDefinition payloadExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, RabbitAddress, WorkflowExpressionDefinition, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, RabbitAddress address, WorkflowExpressionDefinition payloadExpression, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The payload is the value of payloadExpression. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • payloadExpression: The payload expression.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, RabbitAddress, string, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string stepName, RabbitAddress address, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that sends a request message over RabbitMQ (a rabbit address). The request has no payload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The address to call.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Call<TResponse>(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?) #

public WorkflowFlowBuilder<TStartRequest> Call<TResponse>(string resultKey, string stepName, string serviceName, string path, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, int? timeoutSeconds = null)

Adds a step that calls the HTTP endpoint path of the service serviceName (an endpoint address). The payload is built by payloadFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • resultKey: The key the response is kept under.
  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • serviceName: The service name, resolved through the endpoint transport configuration.
  • path: The endpoint path.
  • payloadFactory: Builds the payload from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Complete() #

public WorkflowFlowBuilder<TStartRequest> Complete()

Adds a step that completes the instance.

Returns

The same builder, for chaining.

method ContinueWith(string, WorkflowReference) #

public WorkflowFlowBuilder<TStartRequest> ContinueWith(string stepName, WorkflowReference workflowReference)

Adds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance. The new instance starts without a payload.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.

Returns

The same builder, for chaining.

method ContinueWith(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #

public WorkflowFlowBuilder<TStartRequest> ContinueWith(string stepName, WorkflowReference workflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?>? businessReferenceFactory = null)

Adds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadFactory: Builds the start payload.
  • businessReferenceFactory: Builds the business reference of the new instance; when not set, the new instance has none.

Returns

The same builder, for chaining.

method ContinueWith(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration) #

public WorkflowFlowBuilder<TStartRequest> ContinueWith(string stepName, WorkflowReference workflowReference, WorkflowExpressionDefinition payloadExpression, WorkflowBusinessReferenceDeclaration? businessReferenceDeclaration = null)

Adds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadExpression: The start payload expression.
  • businessReferenceDeclaration: The business reference of the new instance; when not set, the new instance has none.

Returns

The same builder, for chaining.

method ContinueWith(string, WorkflowWorkflowInvocationDeclaration) #

public WorkflowFlowBuilder<TStartRequest> ContinueWith(string stepName, WorkflowWorkflowInvocationDeclaration invocationDeclaration)

Adds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance.

Parameters

  • stepName: The step name, shown in diagrams.
  • invocationDeclaration: The workflow, payload and business reference of the new instance, as a canonical declaration.

Returns

The same builder, for chaining.

method ContinueWith<TPayload>(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #

public WorkflowFlowBuilder<TStartRequest> ContinueWith<TPayload>(string stepName, WorkflowReference workflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload> payloadFactory, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?>? businessReferenceFactory = null)

Adds a step that starts another workflow as an independent instance and continues at once; its result is not returned and its failure does not affect this instance. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Type parameters

  • TPayload: The start payload type.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadFactory: Builds the start payload.
  • businessReferenceFactory: Builds the business reference of the new instance; when not set, the new instance has none.

Returns

The same builder, for chaining.

method ExternalActivity(string, string, string, string, WorkflowExpressionDefinition, string, int?) #

public WorkflowFlowBuilder<TStartRequest> ExternalActivity(string stepName, string destinationCode, string operationCode, string contractVersion, WorkflowExpressionDefinition requestExpression, string? resultKey = null, int? deadlineSeconds = null)

Adds a step that runs an external activity of the host’s signed external activity registry. A host without a registry manifest runs no external activity.

Parameters

  • stepName: The step name, shown in diagrams.
  • destinationCode: The destination of the activity in the registry.
  • operationCode: The operation of the activity in the registry.
  • contractVersion: The contract version of the activity in the registry.
  • requestExpression: The request expression.
  • resultKey: The key the result is kept under (result.<resultKey>); not kept when not set.
  • deadlineSeconds: The deadline of the activity in seconds.

Returns

The same builder, for chaining.

method Fork(string, params Action<WorkflowFlowBuilder<TStartRequest>>[]) #

public WorkflowFlowBuilder<TStartRequest> Fork(string stepName, params Action<WorkflowFlowBuilder<TStartRequest>>[] branches)

Adds a step that runs the branches concurrently and continues when the last branch has finished. A WorkflowFlowBuilder<TStartRequest>.TerminateFork()step in a branch ends the fork early.

Parameters

  • stepName: The step name, shown in diagrams.
  • branches: The branches, one builder action each.

Returns

The same builder, for chaining.

method Map(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition, WorkflowExpressionDefinition, string, int, int, int, Action<WorkflowFlowBuilder<TStartRequest>>, string, string, string, int?, string, WorkflowRetryPolicyDeclaration, int?) #

public WorkflowFlowBuilder<TStartRequest> Map(string stepName, WorkflowExpressionDefinition collectionExpression, WorkflowExpressionDefinition itemKeyExpression, WorkflowExpressionDefinition itemResultExpression, string itemStateKey, int maxConcurrency, int maxItems, int maxAggregateStateBytes, Action<WorkflowFlowBuilder<TStartRequest>> configureBody, string fanInPolicy = "ALL_SUCCEEDED", string failurePolicy = "FAIL_FAST", string? resultKey = null, int? minimumSucceeded = null, string? globalActivityClass = null, WorkflowRetryPolicyDeclaration? retryPolicy = null, int? deadlineSeconds = null)

Adds a map step: the body runs once per item of a collection, with bounded concurrency and a deterministic fan-in. While its body runs, each item is in the state under itemStateKey. A map needs the durable stores and services; one whose bounds break the runtime limits fails with MAP_BOUND_INVALID.

Parameters

  • stepName: The step name, shown in diagrams.
  • collectionExpression: The collection to map over.
  • itemKeyExpression: The key of an item, evaluated with the item in the state.
  • itemResultExpression: The result of an item, evaluated after its body.
  • itemStateKey: The state key that holds the current item.
  • maxConcurrency: The items in flight at once; at most maxItems and WorkflowRuntime:MaxMapConcurrency (8 by default).
  • maxItems: The items allowed in the collection; at most WorkflowRuntime:MaxMapItems (512 by default). A longer collection fails with MAP_ITEM_LIMIT_EXCEEDED.
  • maxAggregateStateBytes: The size limit of the collected results, in bytes.
  • configureBody: The body that runs for each item.
  • fanInPolicy: ALL_SUCCEEDED (the default), COLLECT_ALL, or MIN_SUCCEEDED with minimumSucceeded.
  • failurePolicy: FAIL_FAST (the default), COLLECT_PARTIAL or ROUTE_MANUAL.
  • resultKey: The key the collected results are kept under.
  • minimumSucceeded: The items that must succeed under MIN_SUCCEEDED.
  • globalActivityClass: A class of activities whose concurrency is limited across all maps.
  • retryPolicy: The retry policy of an item.
  • deadlineSeconds: The deadline of the map in seconds.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> variablesFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> variablesFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> variablesFactory, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, WorkflowExpressionDefinition variablesExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are the value of variablesExpression. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesExpression: The variables expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, WorkflowExpressionDefinition variablesExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are the value of variablesExpression. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesExpression: The variables expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, WorkflowExpressionDefinition, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, WorkflowExpressionDefinition variablesExpression, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are the value of variablesExpression. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesExpression: The variables expression.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, GraphqlAddress, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, GraphqlAddress address, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The query has no variables. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql(string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql(string stepName, string target, string query, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object?>> variablesFactory, string? operationName = null, int? timeoutSeconds = null)

Adds a step that runs the GraphQL query against the target target. The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • target: The GraphQL target name, resolved through the GraphQL transport configuration.
  • query: The GraphQL query.
  • variablesFactory: Builds the variables from the execution context.
  • operationName: The operation name, when the query holds several operations.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> variablesFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> variablesFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> variablesFactory, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, WorkflowExpressionDefinition variablesExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are the value of variablesExpression. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesExpression: The variables expression.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, WorkflowExpressionDefinition, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, WorkflowExpressionDefinition variablesExpression, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are the value of variablesExpression. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesExpression: The variables expression.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, WorkflowExpressionDefinition, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, WorkflowExpressionDefinition variablesExpression, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are the value of variablesExpression. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesExpression: The variables expression.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, GraphqlAddress, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string stepName, GraphqlAddress address, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The query has no variables. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TResponse>(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TResponse>(string resultKey, string stepName, string target, string query, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object?>> variablesFactory, string? operationName = null, int? timeoutSeconds = null)

Adds a step that runs the GraphQL query against the target target. The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>. A failed or timed-out call fails the step.

Type parameters

  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • resultKey: The key the response is kept under.
  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • target: The GraphQL target name, resolved through the GraphQL transport configuration.
  • query: The GraphQL query.
  • variablesFactory: Builds the variables from the execution context.
  • operationName: The operation name, when the query holds several operations.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TVariables, TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TVariables, TResponse>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables> variablesFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TVariables: The variables type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TVariables, TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TVariables, TResponse>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables> variablesFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TVariables: The variables type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TVariables, TResponse>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, string, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TVariables, TResponse>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables> variablesFactory, string? resultKey = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is kept under result.<resultKey>, by default under the step name. A failed or timed-out call fails the step.

Type parameters

  • TVariables: The variables type.
  • TResponse: The expected response type; the response is kept as JSON.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • resultKey: The key the response is kept under.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TVariables>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TVariables>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables> variablesFactory, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed call runs whenFailure; a timed-out call runs whenTimeout when it is set and fails the step otherwise. result.lastFailure describes the failure.

Type parameters

  • TVariables: The variables type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • whenFailure: The steps to run when the call fails.
  • whenTimeout: The steps to run when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TVariables>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, WorkflowHandledBranchAction, WorkflowHandledBranchAction, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TVariables>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables> variablesFactory, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. onFailure and onTimeout handle a failed and a timed-out call: WorkflowHandledBranchAction.Completecompletes the instance, WorkflowHandledBranchAction.Nonefails the step.

Type parameters

  • TVariables: The variables type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • onFailure: What to do when the call fails.
  • onTimeout: What to do when the call times out.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method QueryGraphql<TVariables>(string, GraphqlAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables>, int?) #

public WorkflowFlowBuilder<TStartRequest> QueryGraphql<TVariables>(string stepName, GraphqlAddress address, Func<WorkflowSpecExecutionContext<TStartRequest>, TVariables> variablesFactory, int? timeoutSeconds = null)

Adds a step that runs a GraphQL query (a graphql address). The variables are built by variablesFactory. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload. The response is not kept. A failed or timed-out call fails the step.

Type parameters

  • TVariables: The variables type.

Parameters

  • stepName: The step name, shown in diagrams and in result.lastFailure.
  • address: The GraphQL target, query and operation name.
  • variablesFactory: Builds the variables from the execution context.
  • timeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Returns

The same builder, for chaining.

method Repeat(string, WorkflowExpressionDefinition, string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> Repeat(string stepName, WorkflowExpressionDefinition maxIterationsExpression, string? iterationStateKey, WorkflowExpressionDefinition continueWhileExpression, Action<WorkflowFlowBuilder<TStartRequest>> configureBody)

Adds a loop: the body runs while continueWhileExpression holds, evaluated before each iteration, at most the maximum number of iterations.

Parameters

  • stepName: The step name, shown in diagrams.
  • maxIterationsExpression: The maximum number of iterations, as an expression.
  • iterationStateKey: The state key that holds the iteration number; not kept when not set.
  • continueWhileExpression: The condition to run another iteration.
  • configureBody: The body of one iteration.

Returns

The same builder, for chaining.

method Repeat(string, int, string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> Repeat(string stepName, int maxIterations, string? iterationStateKey, WorkflowExpressionDefinition continueWhileExpression, Action<WorkflowFlowBuilder<TStartRequest>> configureBody)

Adds a loop: the body runs while continueWhileExpression holds, evaluated before each iteration, at most the maximum number of iterations.

Parameters

  • stepName: The step name, shown in diagrams.
  • maxIterations: The maximum number of iterations.
  • iterationStateKey: The state key that holds the iteration number; not kept when not set.
  • continueWhileExpression: The condition to run another iteration.
  • configureBody: The body of one iteration.

Returns

The same builder, for chaining.

method Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>) #

public WorkflowFlowBuilder<TStartRequest> Run(string stepName, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task> executeAsync)

Adds a step that runs C# code with the inline step services. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. An exception fails the step.

Parameters

  • stepName: The step name, shown in diagrams.
  • executeAsync: The code to run.

Returns

The same builder, for chaining.

method Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> Run(string stepName, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task> executeAsync, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, Action<WorkflowFlowBuilder<TStartRequest>>? whenTimeout = null)

Adds a step that runs C# code with the inline step services. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it.

Parameters

  • stepName: The step name, shown in diagrams.
  • executeAsync: The code to run.
  • whenFailure: The steps to run when the code fails.
  • whenTimeout: The steps to run when the code times out.

Returns

The same builder, for chaining.

method Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, WorkflowHandledBranchAction, WorkflowHandledBranchAction) #

public WorkflowFlowBuilder<TStartRequest> Run(string stepName, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task> executeAsync, WorkflowHandledBranchAction onFailure, WorkflowHandledBranchAction onTimeout = None)

Adds a step that runs C# code with the inline step services. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it.

Parameters

  • stepName: The step name, shown in diagrams.
  • executeAsync: The code to run.
  • onFailure: What to do when the code fails.
  • onTimeout: What to do when the code times out.

Returns

The same builder, for chaining.

method Set(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>) #

public WorkflowFlowBuilder<TStartRequest> Set(string key, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> valueFactory)

Adds a step that sets the state value key. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • key: The state key.
  • valueFactory: Computes the value.

Returns

The same builder, for chaining.

method Set(string, WorkflowExpressionDefinition) #

public WorkflowFlowBuilder<TStartRequest> Set(string key, WorkflowExpressionDefinition valueExpression)

Adds a step that sets the state value key to the value of valueExpression.

Parameters

  • key: The state key.
  • valueExpression: The value expression.

Returns

The same builder, for chaining.

method Set(string, object) #

public WorkflowFlowBuilder<TStartRequest> Set(string key, object? value)

Adds a step that sets the state value key to a constant.

Parameters

  • key: The state key.
  • value: The value.

Returns

The same builder, for chaining.

method SetBusinessReference(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #

public WorkflowFlowBuilder<TStartRequest> SetBusinessReference(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?> businessReferenceFactory)

Adds a step that sets or changes the business reference of the instance. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • businessReferenceFactory: Computes the business reference.

Returns

The same builder, for chaining.

method SetBusinessReference(WorkflowBusinessReferenceDeclaration) #

public WorkflowFlowBuilder<TStartRequest> SetBusinessReference(WorkflowBusinessReferenceDeclaration businessReferenceDeclaration)

Adds a step that sets or changes the business reference of the instance: a key expression and named part expressions.

Parameters

  • businessReferenceDeclaration: The key and part expressions.

Returns

The same builder, for chaining.

method SetIfHasValue(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>) #

public WorkflowFlowBuilder<TStartRequest> SetIfHasValue(string key, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> valueFactory)

Adds a step that sets the state value key only when the value is set: not null and not an empty or white-space string. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • key: The state key.
  • valueFactory: Computes the value.

Returns

The same builder, for chaining.

method SetIfHasValue(string, WorkflowExpressionDefinition) #

public WorkflowFlowBuilder<TStartRequest> SetIfHasValue(string key, WorkflowExpressionDefinition valueExpression)

Adds a step that sets the state value key only when the value is set: not null and not an empty or white-space string.

Parameters

  • key: The state key.
  • valueExpression: The value expression.

Returns

The same builder, for chaining.

method SubWorkflow(string, WorkflowReference, Action<WorkflowFlowBuilder<TStartRequest>>, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowReference workflowReference, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child starts without a payload. The child’s result is kept under result.<resultKey> when resultKey is set. A failure of the child runs whenFailure.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • whenFailure: The steps to run when the child fails.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method SubWorkflow(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowReference workflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> payloadFactory, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?>? businessReferenceFactory = null, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child’s result is kept under result.<resultKey>, by default under the step name. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadFactory: Builds the start payload.
  • businessReferenceFactory: Builds the business reference of the new instance; when not set, the new instance has none.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method SubWorkflow(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration, Action<WorkflowFlowBuilder<TStartRequest>>, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowReference workflowReference, WorkflowExpressionDefinition payloadExpression, WorkflowBusinessReferenceDeclaration? businessReferenceDeclaration, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child’s result is kept under result.<resultKey> when resultKey is set. A failure of the child runs whenFailure.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadExpression: The start payload expression.
  • businessReferenceDeclaration: The business reference of the new instance; when not set, the new instance has none.
  • whenFailure: The steps to run when the child fails.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method SubWorkflow(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowReference workflowReference, WorkflowExpressionDefinition payloadExpression, WorkflowBusinessReferenceDeclaration? businessReferenceDeclaration = null, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child’s result is kept under result.<resultKey> when resultKey is set.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadExpression: The start payload expression.
  • businessReferenceDeclaration: The business reference of the new instance; when not set, the new instance has none.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method SubWorkflow(string, WorkflowReference, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowReference workflowReference, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child starts without a payload. The child’s result is kept under result.<resultKey> when resultKey is set.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method SubWorkflow(string, WorkflowWorkflowInvocationDeclaration, Action<WorkflowFlowBuilder<TStartRequest>>, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowWorkflowInvocationDeclaration invocationDeclaration, Action<WorkflowFlowBuilder<TStartRequest>> whenFailure, string? resultKey = null)

Runs the child workflow; when it fails or ends in a status other than completed, runs whenFailure, which reads the failure as result.lastFailure.

method SubWorkflow(string, WorkflowWorkflowInvocationDeclaration, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow(string stepName, WorkflowWorkflowInvocationDeclaration invocationDeclaration, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child’s result is kept under result.<resultKey> when resultKey is set.

Parameters

  • stepName: The step name, shown in diagrams.
  • invocationDeclaration: The workflow, payload and business reference of the new instance, as a canonical declaration.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method SubWorkflow<TPayload>(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>, string) #

public WorkflowFlowBuilder<TStartRequest> SubWorkflow<TPayload>(string stepName, WorkflowReference workflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload> payloadFactory, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?>? businessReferenceFactory = null, string? resultKey = null)

Adds a step that runs another registered workflow as a child and waits for it. The child’s result is kept under result.<resultKey>, by default under the step name. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Type parameters

  • TPayload: The start payload type.

Parameters

  • stepName: The step name, shown in diagrams.
  • workflowReference: The workflow to run, by name and optionally version.
  • payloadFactory: Builds the start payload.
  • businessReferenceFactory: Builds the business reference of the new instance; when not set, the new instance has none.
  • resultKey: The key the child’s result is kept under.

Returns

The same builder, for chaining.

method TerminateFork() #

public WorkflowFlowBuilder<TStartRequest> TerminateFork()

Ends the fork this branch belongs to, as a BPMN terminate end event inside a parallel subprocess does: tasks still open in the other branches are cancelled, their waits are dropped, and the flow continues after the fork. Only valid in a fork branch (WFVAL028).

method Wait(string, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan>) #

public WorkflowFlowBuilder<TStartRequest> Wait(string stepName, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan> delayFactory)

Adds a timer step: the instance pauses for the delay and resumes when the timer is due; the host process can restart in between. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • stepName: The step name, shown in diagrams.
  • delayFactory: Computes the delay.

Returns

The same builder, for chaining.

method Wait(string, WorkflowExpressionDefinition) #

public WorkflowFlowBuilder<TStartRequest> Wait(string stepName, WorkflowExpressionDefinition delayExpression)

Adds a timer step: the instance pauses for the delay and resumes when the timer is due; the host process can restart in between.

Parameters

  • stepName: The step name, shown in diagrams.
  • delayExpression: The delay: a number of milliseconds, a string of digits (also milliseconds), or a time-span string in the invariant c format such as 00:01:00; a negative delay is zero.

Returns

The same builder, for chaining.

method WaitForSignal(string, Func<WorkflowSpecExecutionContext<TStartRequest>, string>, string) #

public WorkflowFlowBuilder<TStartRequest> WaitForSignal(string stepName, Func<WorkflowSpecExecutionContext<TStartRequest>, string> signalNameFactory, string? resultKey = null)

Adds a step that pauses the instance until a caller raises the signal for it. The signal’s payload is kept under result.<resultKey> when resultKey is set. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • stepName: The step name, shown in diagrams.
  • signalNameFactory: Computes the signal name.
  • resultKey: The key the signal’s payload is kept under.

Returns

The same builder, for chaining.

method WaitForSignal(string, WorkflowExpressionDefinition, string) #

public WorkflowFlowBuilder<TStartRequest> WaitForSignal(string stepName, WorkflowExpressionDefinition signalNameExpression, string? resultKey = null)

Adds a step that pauses the instance until a caller raises the signal for it. The signal’s payload is kept under result.<resultKey> when resultKey is set.

Parameters

  • stepName: The step name, shown in diagrams.
  • signalNameExpression: The signal name expression.
  • resultKey: The key the signal’s payload is kept under.

Returns

The same builder, for chaining.

method WaitForSignal(string, string, string) #

public WorkflowFlowBuilder<TStartRequest> WaitForSignal(string stepName, string signalName, string? resultKey = null)

Adds a step that pauses the instance until a caller raises the signal for it. The signal’s payload is kept under result.<resultKey> when resultKey is set.

Parameters

  • stepName: The step name, shown in diagrams.
  • signalName: The signal name; not empty.
  • resultKey: The key the signal’s payload is kept under.

Returns

The same builder, for chaining.

method WhenExpression(string, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> WhenExpression(string decisionName, Func<WorkflowSpecExecutionContext<TStartRequest>, bool> evaluator, Action<WorkflowFlowBuilder<TStartRequest>> whenTrue, Action<WorkflowFlowBuilder<TStartRequest>>? whenElse = null)

Adds a decision on a condition. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • decisionName: The label of the decision in diagrams.
  • evaluator: Computes the condition.
  • whenTrue: The steps to run when the condition holds.
  • whenElse: The steps to run otherwise; nothing when not set.

Returns

The same builder, for chaining.

method WhenExpression(string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> WhenExpression(string decisionName, WorkflowExpressionDefinition conditionExpression, Action<WorkflowFlowBuilder<TStartRequest>> whenTrue, Action<WorkflowFlowBuilder<TStartRequest>>? whenElse = null)

Adds a decision on a boolean expression.

Parameters

  • decisionName: The label of the decision in diagrams.
  • conditionExpression: The condition.
  • whenTrue: The steps to run when the condition holds.
  • whenElse: The steps to run otherwise; nothing when not set.

Returns

The same builder, for chaining.

method WhenPayloadEquals<TValue>(string, TValue, string, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> WhenPayloadEquals<TValue>(string key, TValue expectedValue, string decisionName, Action<WorkflowFlowBuilder<TStartRequest>> whenTrue, Action<WorkflowFlowBuilder<TStartRequest>>? whenElse = null)

Adds a decision that compares a field of the completion payload (payload.<key>) with expectedValue.

Type parameters

  • TValue: The type of the value.

Parameters

  • key: The key of the value.
  • expectedValue: The value to compare with.
  • decisionName: The label of the decision in diagrams.
  • whenTrue: The steps to run when the condition holds.
  • whenElse: The steps to run otherwise; nothing when not set.

Returns

The same builder, for chaining.

method WhenStateEquals<TValue>(string, TValue, string, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> WhenStateEquals<TValue>(string key, TValue expectedValue, string decisionName, Action<WorkflowFlowBuilder<TStartRequest>> whenTrue, Action<WorkflowFlowBuilder<TStartRequest>>? whenElse = null)

Adds a decision that compares a state value (state.<key>) with expectedValue.

Type parameters

  • TValue: The type of the value.

Parameters

  • key: The key of the value.
  • expectedValue: The value to compare with.
  • decisionName: The label of the decision in diagrams.
  • whenTrue: The steps to run when the condition holds.
  • whenElse: The steps to run otherwise; nothing when not set.

Returns

The same builder, for chaining.

method WhenStateFlag(string, bool, string, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowFlowBuilder<TStartRequest> WhenStateFlag(string key, bool expectedValue, string decisionName, Action<WorkflowFlowBuilder<TStartRequest>> whenTrue, Action<WorkflowFlowBuilder<TStartRequest>>? whenElse = null)

Adds a decision on a boolean state value (state.<key>).

Parameters

  • key: The key of the value.
  • expectedValue: The value the condition expects.
  • decisionName: The label of the decision in diagrams.
  • whenTrue: The steps to run when the condition holds.
  • whenElse: The steps to run otherwise; nothing when not set.

Returns

The same builder, for chaining.

record WorkflowForkStepDefinition<TStartRequest>

public sealed record WorkflowForkStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Runs its branches concurrently.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Branches: The branches.

Members

MemberKindSummary
WorkflowForkStepDefinition(string, IReadOnlyCollection<WorkflowStepSequence<TStartRequest>>)constructorRuns its branches concurrently.
BranchespropertyThe branches.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowForkStepDefinition(string, IReadOnlyCollection<WorkflowStepSequence<TStartRequest>>) #

public WorkflowForkStepDefinition(string StepName, IReadOnlyCollection<WorkflowStepSequence<TStartRequest>> Branches)

Runs its branches concurrently.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Branches: The branches.

property Branches #

public IReadOnlyCollection<WorkflowStepSequence<TStartRequest>> Branches { get; init; }

The branches.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

class WorkflowFunctionArguments

public static class WorkflowFunctionArguments

Argument access for workflow function providers: an exact arity check, then the argument by position.

Members

MemberKindSummary
GetRequiredElement(IReadOnlyCollection<object>, string, int, int)methodReturns argument argumentIndex as JSON (default for null) after checking that the function got exactly expectedArgumentCount arguments.
GetRequiredString(IReadOnlyCollection<object>, string, int, int)methodReturns argument argumentIndex as text (empty for null; a non-string JSON value as its raw text) after checking that the function got exactly expectedArgumentCount arguments.

method GetRequiredElement(IReadOnlyCollection<object>, string, int, int) #

public static JsonElement GetRequiredElement(IReadOnlyCollection<object?> arguments, string functionName, int expectedArgumentCount, int argumentIndex)

Returns argument argumentIndex as JSON (default for null) after checking that the function got exactly expectedArgumentCount arguments.

method GetRequiredString(IReadOnlyCollection<object>, string, int, int) #

public static string GetRequiredString(IReadOnlyCollection<object?> arguments, string functionName, int expectedArgumentCount, int argumentIndex)

Returns argument argumentIndex as text (empty for null; a non-string JSON value as its raw text) after checking that the function got exactly expectedArgumentCount arguments.

class WorkflowFunctionCatalog

public sealed class WorkflowFunctionCatalog : IWorkflowFunctionCatalog

The function catalog: the functions of every provider, ordered by module and name.

Members

MemberKindSummary
WorkflowFunctionCatalog(IEnumerable<IWorkflowFunctionProvider>)constructorCreates the catalog from the functions of every provider.
GetFunctions()methodReturns the functions.
TryGetFunction(string, out WorkflowFunctionDescriptor)methodFinds a function by name or alias, ignoring case.

constructor WorkflowFunctionCatalog(IEnumerable<IWorkflowFunctionProvider>) #

public WorkflowFunctionCatalog(IEnumerable<IWorkflowFunctionProvider> providers)

Creates the catalog from the functions of every provider.

Parameters

  • providers: The function providers.

Exceptions

  • InvalidOperationException: Two modules register the same name or alias, ignoring case.

method GetFunctions() #

public IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()

Returns the functions.

Returns

The functions.

method TryGetFunction(string, out WorkflowFunctionDescriptor) #

public bool TryGetFunction(string functionName, out WorkflowFunctionDescriptor descriptor)

Finds a function by name or alias, ignoring case.

Parameters

  • functionName: The function name or alias.
  • descriptor: The function, when found.

Returns

Whether the function exists.

class WorkflowFunctionCatalogServiceCollectionExtensions

public static class WorkflowFunctionCatalogServiceCollectionExtensions

Registers the function catalog and the function providers that workflow expressions call.

Members

MemberKindSummary
AddWorkflowFunctionCatalog(IServiceCollection)extension methodRegisters the function catalog and the function runtime, unless they are already registered.
AddWorkflowFunctionProvider<TProvider>(IServiceCollection)extension methodAdds TProvider as a function provider, and registers the function catalog.

extension method AddWorkflowFunctionCatalog(IServiceCollection) #

public static IServiceCollection AddWorkflowFunctionCatalog(this IServiceCollection services)

Registers the function catalog and the function runtime, unless they are already registered.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

extension method AddWorkflowFunctionProvider<TProvider>(IServiceCollection) #

public static IServiceCollection AddWorkflowFunctionProvider<TProvider>(this IServiceCollection services) where TProvider : class, IWorkflowFunctionProvider

Adds TProvider as a function provider, and registers the function catalog. A provider that also implements IWorkflowFunctionRuntimeProviderevaluates its functions at run time too. The modules a provider declares count as installed.

Type parameters

  • TProvider: The function provider.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

class WorkflowFunctionDescriptors

public static class WorkflowFunctionDescriptors

Builds the catalog descriptor of a deterministic workflow function with one example.

Members

MemberKindSummary
Create(string, string, string, string, WorkflowFunctionReturnDescriptor, WorkflowFunctionExample, params WorkflowFunctionArgumentDescriptor[])methodCreates a function descriptor.
Create(string, string, string, string, string, string, string, string, params WorkflowFunctionArgumentDescriptor[])methodCreates a function descriptor from text parts.

method Create(string, string, string, string, WorkflowFunctionReturnDescriptor, WorkflowFunctionExample, params WorkflowFunctionArgumentDescriptor[]) #

public static WorkflowFunctionDescriptor Create(string moduleName, string moduleVersion, string functionName, string summary, WorkflowFunctionReturnDescriptor returnDescriptor, WorkflowFunctionExample example, params WorkflowFunctionArgumentDescriptor[] arguments)

Creates a function descriptor.

Parameters

  • moduleName: The module.
  • moduleVersion: The module version.
  • functionName: The function name.
  • summary: What the function does.
  • returnDescriptor: The return value.
  • example: An example call.
  • arguments: The arguments.

Returns

The descriptor.

method Create(string, string, string, string, string, string, string, string, params WorkflowFunctionArgumentDescriptor[]) #

public static WorkflowFunctionDescriptor Create(string moduleName, string moduleVersion, string functionName, string summary, string returnType, string returnDescription, string exampleExpression, string exampleDescription, params WorkflowFunctionArgumentDescriptor[] arguments)

Creates a function descriptor from text parts.

Parameters

  • moduleName: The module.
  • moduleVersion: The module version.
  • functionName: The function name.
  • summary: What the function does.
  • returnType: The return type.
  • returnDescription: What the return value is.
  • exampleExpression: An example call.
  • exampleDescription: What the example returns.
  • arguments: The arguments.

Returns

The descriptor.

record WorkflowGraphqlCallStepDefinition<TStartRequest>

public sealed record WorkflowGraphqlCallStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Defines a transport call to a GraphQL endpoint.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Target: The target, as the transport configuration names it.
  • Query: The GraphQL query.
  • OperationName: The operation to run, for a query document with several.
  • VariablesFactory: Builds the query variables from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Members

MemberKindSummary
WorkflowGraphqlCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, WorkflowFailureHandlers<TStartRequest>, int?)constructorDefines a transport call to a GraphQL endpoint.
FailureHandlerspropertyThe failure and timeout branches; none when not set.
OperationNamepropertyThe operation to run, for a query document with several.
QuerypropertyThe GraphQL query.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.
TargetpropertyThe target, as the transport configuration names it.
TimeoutSecondspropertyThe step timeout in seconds, over all attempts; one hour when not set.
VariablesExpressionpropertyThe variables as an expression, for the canonical definition.
VariablesFactorypropertyBuilds the query variables from the context.

constructor WorkflowGraphqlCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, WorkflowFailureHandlers<TStartRequest>, int?) #

public WorkflowGraphqlCallStepDefinition(string StepName, string Target, string Query, string? OperationName, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object?>> VariablesFactory, string? ResultKey, WorkflowFailureHandlers<TStartRequest>? FailureHandlers = null, int? TimeoutSeconds = null)

Defines a transport call to a GraphQL endpoint.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Target: The target, as the transport configuration names it.
  • Query: The GraphQL query.
  • OperationName: The operation to run, for a query document with several.
  • VariablesFactory: Builds the query variables from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

property FailureHandlers #

public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }

The failure and timeout branches; none when not set.

property OperationName #

public string? OperationName { get; init; }

The operation to run, for a query document with several.

property Query #

public string Query { get; init; }

The GraphQL query.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

property Target #

public string Target { get; init; }

The target, as the transport configuration names it.

property TimeoutSeconds #

public int? TimeoutSeconds { get; init; }

The step timeout in seconds, over all attempts; one hour when not set.

property VariablesExpression #

public WorkflowExpressionDefinition? VariablesExpression { get; init; }

The variables as an expression, for the canonical definition.

property VariablesFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object?>> VariablesFactory { get; init; }

Builds the query variables from the context.

enum WorkflowHandledBranchAction

public enum WorkflowHandledBranchAction

What a call does on a failure or a timeout when no branch is given.

ValueDescription
None = 0No handling: the failure or the timeout fails the step.
Complete = 1Completes the instance.

record WorkflowHistoryCompactionResult

public sealed record WorkflowHistoryCompactionResult

The outcome of a history compaction.

Members

MemberKindSummary
WorkflowHistoryCompactionResult()constructorCreates an instance of WorkflowHistoryCompactionResult.
DeletedEventspropertyThe events deleted.
HistoryFloorSequencepropertyThe first sequence still kept.

constructor WorkflowHistoryCompactionResult() #

public WorkflowHistoryCompactionResult()

Creates an instance of WorkflowHistoryCompactionResult.

property DeletedEvents #

public required int DeletedEvents { get; init; }

The events deleted.

property HistoryFloorSequence #

public required long HistoryFloorSequence { get; init; }

The first sequence still kept.

record WorkflowHistoryCursor

public sealed record WorkflowHistoryCursor

The history position of an execution: the first sequence still stored, the next one to allocate, and the retention flags that decide whether its prefix may be compacted.

Members

MemberKindSummary
WorkflowHistoryCursor()constructorCreates an instance of WorkflowHistoryCursor.
HistoryFloorSequencepropertyThe first sequence still kept.
LegalHoldpropertyWhether the execution is under a legal hold, which keeps its history.
NextEventSequencepropertyThe sequence of the next event.
RetentionPolicypropertyThe retention policy: STANDARD or HOLD_ALL.

constructor WorkflowHistoryCursor() #

public WorkflowHistoryCursor()

Creates an instance of WorkflowHistoryCursor.

property HistoryFloorSequence #

public required long HistoryFloorSequence { get; init; }

The first sequence still kept.

property LegalHold #

public bool LegalHold { get; init; }

Whether the execution is under a legal hold, which keeps its history.

property NextEventSequence #

public required long NextEventSequence { get; init; }

The sequence of the next event.

property RetentionPolicy #

public string? RetentionPolicy { get; init; }

The retention policy: STANDARD or HOLD_ALL.

record WorkflowHistoryEvent

public sealed record WorkflowHistoryEvent

One durable execution-history event, as the history store returns it.

Members

MemberKindSummary
WorkflowHistoryEvent()constructorCreates an instance of WorkflowHistoryEvent.
CreatedAtUtcpropertyWhen the event was recorded, in UTC.
DetailCompactedpropertyWhether the event detail was compacted.
EventIdpropertyThe event identifier.
EventSequencepropertyThe sequence of the event.
EventSha256propertyThe SHA-256 of the event.
EventTypepropertyThe event type.
PayloadJsonpropertyThe event payload, as JSON.
RetentionHeldpropertyWhether retention holds the event.
WorkflowExecutionIdpropertyThe execution.

constructor WorkflowHistoryEvent() #

public WorkflowHistoryEvent()

Creates an instance of WorkflowHistoryEvent.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the event was recorded, in UTC.

property DetailCompacted #

public bool DetailCompacted { get; init; }

Whether the event detail was compacted.

property EventId #

public required string EventId { get; init; }

The event identifier.

property EventSequence #

public required long EventSequence { get; init; }

The sequence of the event.

property EventSha256 #

public required string EventSha256 { get; init; }

The SHA-256 of the event.

property EventType #

public required string EventType { get; init; }

The event type.

property PayloadJson #

public required string PayloadJson { get; init; }

The event payload, as JSON.

property RetentionHeld #

public bool RetentionHeld { get; init; }

Whether retention holds the event.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution.

record WorkflowHttpCallStepDefinition<TStartRequest>

public sealed record WorkflowHttpCallStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Defines a transport call to an HTTP endpoint.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Target: The target, as the transport configuration names it.
  • Method: The HTTP method.
  • Path: The path.
  • PayloadFactory: Builds the payload from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Members

MemberKindSummary
WorkflowHttpCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, WorkflowFailureHandlers<TStartRequest>, int?)constructorDefines a transport call to an HTTP endpoint.
FailureHandlerspropertyThe failure and timeout branches; none when not set.
MethodpropertyThe HTTP method.
PathpropertyThe path.
PayloadExpressionpropertyThe payload as an expression, for the canonical definition.
PayloadFactorypropertyBuilds the payload from the context.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.
TargetpropertyThe target, as the transport configuration names it.
TimeoutSecondspropertyThe step timeout in seconds, over all attempts; one hour when not set.

constructor WorkflowHttpCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, WorkflowFailureHandlers<TStartRequest>, int?) #

public WorkflowHttpCallStepDefinition(string StepName, string Target, string Method, string Path, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory, string? ResultKey, WorkflowFailureHandlers<TStartRequest>? FailureHandlers = null, int? TimeoutSeconds = null)

Defines a transport call to an HTTP endpoint.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Target: The target, as the transport configuration names it.
  • Method: The HTTP method.
  • Path: The path.
  • PayloadFactory: Builds the payload from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

property FailureHandlers #

public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }

The failure and timeout branches; none when not set.

property Method #

public string Method { get; init; }

The HTTP method.

property Path #

public string Path { get; init; }

The path.

property PayloadExpression #

public WorkflowExpressionDefinition? PayloadExpression { get; init; }

The payload as an expression, for the canonical definition.

property PayloadFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory { get; init; }

Builds the payload from the context.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

property Target #

public string Target { get; init; }

The target, as the transport configuration names it.

property TimeoutSeconds #

public int? TimeoutSeconds { get; init; }

The step timeout in seconds, over all attempts; one hour when not set.

class WorkflowHumanTask

public static class WorkflowHumanTask

Starts the definition of a human task.

Members

MemberKindSummary
For<TStartRequest>(string, string, string, IEnumerable<string>)methodStarts the definition of a human task.

method For<TStartRequest>(string, string, string, IEnumerable<string>) #

public static WorkflowHumanTaskBuilder<TStartRequest> For<TStartRequest>(string taskName, string taskType, string route, IEnumerable<string>? taskRoles = null) where TStartRequest : class

Starts the definition of a human task.

Type parameters

  • TStartRequest: The start request type of the workflow.

Parameters

  • taskName: The task name, unique in the workflow.
  • taskType: The task type: the form a client shows.
  • route: The route of the task.
  • taskRoles: The roles that may work the task, replacing the workflow roles; the workflow roles apply when not set.

Returns

A task builder.

class WorkflowHumanTaskBuilder<TStartRequest>

public sealed class WorkflowHumanTaskBuilder<TStartRequest> where TStartRequest : class

Builds a human task: its payload, roles, route, timeout and completion steps.

Type parameters

  • TStartRequest: The start request type of the workflow.

Members

MemberKindSummary
WorkflowHumanTaskBuilder(string, string, string)constructorStarts the definition of a human task.
Build()methodBuilds the task definition without completion steps.
OnComplete(Action<WorkflowFlowBuilder<TStartRequest>>)methodSets the steps that run after a user completes the task, and builds the task definition.
SingleOpen(string)methodKeeps at most one open or assigned task in slot per workflow execution: while one is open, the projection store refuses to open another task that declares the same slot (WorkflowTaskSingleOpenSlot.AlreadyOpenCode).
WithPayload(Func<WorkflowSpecExecutionContext<TStartRequest>, Dictionary<string, JsonElement>>)methodSets the data the task shows with a delegate.
WithPayload(WorkflowExpressionDefinition)methodSets the data the task shows to the value of an object expression.
WithPayload<TPayload>(Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>)methodSets the data the task shows to the serialized value a delegate builds.
WithRoles(IEnumerable<string>)methodSets the roles that may work the task, replacing the workflow roles.
WithRoles(params string[])methodSets the roles that may work the task, replacing the workflow roles.
WithRoute(Func<WorkflowSpecExecutionContext<TStartRequest>, string>)methodComputes the route of the task with a delegate.
WithRoute(WorkflowExpressionDefinition)methodComputes the route of the task from an expression.
WithTimeout(int)methodSets an optional timeout for the human task.
WithTimeout(int, Action<WorkflowFlowBuilder<TStartRequest>>)methodSets an interrupting timeout: when the task is still open after seconds, the engine closes it as expired and runs whenTimeout instead of the completion flow.

constructor WorkflowHumanTaskBuilder(string, string, string) #

public WorkflowHumanTaskBuilder(string taskName, string taskType, string route)

Starts the definition of a human task.

Parameters

  • taskName: The task name, unique in the workflow.
  • taskType: The task type: the form a client shows.
  • route: The route of the task.

Exceptions

  • ArgumentException: A name, type or route is empty.

method Build() #

public WorkflowHumanTaskDefinition<TStartRequest> Build()

Builds the task definition without completion steps.

Returns

The task definition.

Exceptions

  • InvalidOperationException: The task has no payload.

method OnComplete(Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowHumanTaskDefinition<TStartRequest> OnComplete(Action<WorkflowFlowBuilder<TStartRequest>> configure)

Sets the steps that run after a user completes the task, and builds the task definition. In these steps payload.* paths read the completion payload.

Parameters

  • configure: Adds the completion steps.

Returns

The task definition.

Exceptions

  • InvalidOperationException: The task has no payload.

method SingleOpen(string) #

public WorkflowHumanTaskBuilder<TStartRequest> SingleOpen(string slot)

Keeps at most one open or assigned task in slot per workflow execution: while one is open, the projection store refuses to open another task that declares the same slot (WorkflowTaskSingleOpenSlot.AlreadyOpenCode).

method WithPayload(Func<WorkflowSpecExecutionContext<TStartRequest>, Dictionary<string, JsonElement>>) #

public WorkflowHumanTaskBuilder<TStartRequest> WithPayload(Func<WorkflowSpecExecutionContext<TStartRequest>, Dictionary<string, JsonElement>> buildPayload)

Sets the data the task shows with a delegate. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • buildPayload: Builds the payload.

Returns

The same builder, for chaining.

method WithPayload(WorkflowExpressionDefinition) #

public WorkflowHumanTaskBuilder<TStartRequest> WithPayload(WorkflowExpressionDefinition buildPayloadExpression)

Sets the data the task shows to the value of an object expression.

Parameters

  • buildPayloadExpression: The payload expression.

Returns

The same builder, for chaining.

method WithPayload<TPayload>(Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>) #

public WorkflowHumanTaskBuilder<TStartRequest> WithPayload<TPayload>(Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload> buildPayload)

Sets the data the task shows to the serialized value a delegate builds. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Type parameters

  • TPayload: The payload type.

Parameters

  • buildPayload: Builds the payload.

Returns

The same builder, for chaining.

method WithRoles(IEnumerable<string>) #

public WorkflowHumanTaskBuilder<TStartRequest> WithRoles(IEnumerable<string>? taskRoles)

Sets the roles that may work the task, replacing the workflow roles. Empty and duplicate roles are dropped; roles compare ignoring case.

Parameters

  • taskRoles: The roles; none when not set.

Returns

The same builder, for chaining.

method WithRoles(params string[]) #

public WorkflowHumanTaskBuilder<TStartRequest> WithRoles(params string[] taskRoles)

Sets the roles that may work the task, replacing the workflow roles. Empty and duplicate roles are dropped; roles compare ignoring case.

Parameters

  • taskRoles: The roles.

Returns

The same builder, for chaining.

method WithRoute(Func<WorkflowSpecExecutionContext<TStartRequest>, string>) #

public WorkflowHumanTaskBuilder<TStartRequest> WithRoute(Func<WorkflowSpecExecutionContext<TStartRequest>, string> resolveRoute)

Computes the route of the task with a delegate. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • resolveRoute: Computes the route.

Returns

The same builder, for chaining.

method WithRoute(WorkflowExpressionDefinition) #

public WorkflowHumanTaskBuilder<TStartRequest> WithRoute(WorkflowExpressionDefinition resolveRouteExpression)

Computes the route of the task from an expression.

Parameters

  • resolveRouteExpression: The route expression.

Returns

The same builder, for chaining.

method WithTimeout(int) #

public WorkflowHumanTaskBuilder<TStartRequest> WithTimeout(int seconds)

Sets an optional timeout for the human task. When expired, the task’s DeadlineUtc is exceeded and it becomes stale. Default when not called: null (no deadline — task runs until completed or purged by retention).

method WithTimeout(int, Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowHumanTaskBuilder<TStartRequest> WithTimeout(int seconds, Action<WorkflowFlowBuilder<TStartRequest>> whenTimeout)

Sets an interrupting timeout: when the task is still open after seconds, the engine closes it as expired and runs whenTimeout instead of the completion flow.

class WorkflowHumanTaskDefinition<TStartRequest>

public sealed class WorkflowHumanTaskDefinition<TStartRequest> where TStartRequest : class

Defines a human task (user task) within a workflow. Human tasks pause workflow execution and wait for a user to complete them.

Members

MemberKindSummary
WorkflowHumanTaskDefinition()constructorCreates an instance of WorkflowHumanTaskDefinition<TStartRequest>.
BuildPayloadpropertyBuilds the payload of an opened task.
DescriptorpropertyThe task descriptor: name, type, route and roles.
OnCompletepropertyThe steps that run after a user completes the task.
OnTimeoutpropertyRuns when the task is still open at WorkflowHumanTaskDefinition<TStartRequest>.TimeoutSeconds: the engine closes the task as expired and continues here instead of WorkflowHumanTaskDefinition<TStartRequest>.OnComplete(a BPMN interrupting timer).
PayloadExpressionpropertyThe payload expression, when the payload is declared as an expression.
ResolveRoutepropertyComputes the route of an opened task.
RouteExpressionpropertyThe route expression, when the route is declared as an expression.
SingleOpenSlotpropertyOptional single-open slot: the projection store keeps at most one open or assigned task per execution in it.
TaskNamepropertyThe task name.
TimeoutSecondspropertyOptional timeout for the human task in seconds.

constructor WorkflowHumanTaskDefinition() #

public WorkflowHumanTaskDefinition()

Creates an instance of WorkflowHumanTaskDefinition<TStartRequest>.

property BuildPayload #

public required Func<WorkflowSpecExecutionContext<TStartRequest>, Dictionary<string, JsonElement>> BuildPayload { get; init; }

Builds the payload of an opened task.

property Descriptor #

public required WorkflowTaskDescriptor Descriptor { get; init; }

The task descriptor: name, type, route and roles.

property OnComplete #

public required WorkflowStepSequence<TStartRequest> OnComplete { get; init; }

The steps that run after a user completes the task.

property OnTimeout #

public WorkflowStepSequence<TStartRequest>? OnTimeout { get; init; }

Runs when the task is still open at WorkflowHumanTaskDefinition<TStartRequest>.TimeoutSeconds: the engine closes the task as expired and continues here instead of WorkflowHumanTaskDefinition<TStartRequest>.OnComplete(a BPMN interrupting timer).

property PayloadExpression #

public WorkflowExpressionDefinition? PayloadExpression { get; init; }

The payload expression, when the payload is declared as an expression.

property ResolveRoute #

public required Func<WorkflowSpecExecutionContext<TStartRequest>, string> ResolveRoute { get; init; }

Computes the route of an opened task.

property RouteExpression #

public WorkflowExpressionDefinition? RouteExpression { get; init; }

The route expression, when the route is declared as an expression.

property SingleOpenSlot #

public string? SingleOpenSlot { get; init; }

Optional single-open slot: the projection store keeps at most one open or assigned task per execution in it.

property TaskName #

public required string TaskName { get; init; }

The task name.

property TimeoutSeconds #

public int? TimeoutSeconds { get; init; }

Optional timeout for the human task in seconds. When null, no deadline is set — the task runs indefinitely until completed or purged by retention. When set, the task’s DeadlineUtc is computed as CreatedOnUtc + TimeoutSeconds.

record WorkflowInlineStepDefinition<TStartRequest>

public sealed record WorkflowInlineStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Runs C# code with the inline step services.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • ExecuteAsync: The code to run, with the context, the inline step services and a cancellation token.
  • FailureHandlers: The failure and timeout branches; none when not set.

Members

MemberKindSummary
WorkflowInlineStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, WorkflowFailureHandlers<TStartRequest>)constructorRuns C# code with the inline step services.
ExecuteAsyncpropertyThe code to run, with the context, the inline step services and a cancellation token.
FailureHandlerspropertyThe failure and timeout branches; none when not set.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowInlineStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, WorkflowFailureHandlers<TStartRequest>) #

public WorkflowInlineStepDefinition(string StepName, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task> ExecuteAsync, WorkflowFailureHandlers<TStartRequest>? FailureHandlers = null)

Runs C# code with the inline step services.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • ExecuteAsync: The code to run, with the context, the inline step services and a cancellation token.
  • FailureHandlers: The failure and timeout branches; none when not set.

property ExecuteAsync #

public Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task> ExecuteAsync { get; init; }

The code to run, with the context, the inline step services and a cancellation token.

property FailureHandlers #

public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }

The failure and timeout branches; none when not set.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

class WorkflowInlineStepServices

public sealed class WorkflowInlineStepServices

The transports an inline step (Run) can call.

Parameters

  • endpointTransport: The endpoint transport.
  • graphqlTransport: The GraphQL transport.
  • httpTransport: The HTTP transport.

Members

MemberKindSummary
WorkflowInlineStepServices(IWorkflowEndpointTransport, IWorkflowGraphqlTransport, IWorkflowHttpTransport)constructorThe transports an inline step (Run) can call.
EndpointTransportpropertyThe endpoint transport.
GraphqlTransportpropertyThe GraphQL transport.
HttpTransportpropertyThe HTTP transport.
CallAsync(EndpointAddress, object, CancellationToken)methodCalls an endpoint of a named service.
CallAsync(HttpAddress, object, CancellationToken)methodCalls a named HTTP target.
QueryAsync(GraphqlAddress, object, CancellationToken)methodRuns a GraphQL query.

constructor WorkflowInlineStepServices(IWorkflowEndpointTransport, IWorkflowGraphqlTransport, IWorkflowHttpTransport) #

public WorkflowInlineStepServices(IWorkflowEndpointTransport endpointTransport, IWorkflowGraphqlTransport graphqlTransport, IWorkflowHttpTransport httpTransport)

The transports an inline step (Run) can call.

Parameters

  • endpointTransport: The endpoint transport.
  • graphqlTransport: The GraphQL transport.
  • httpTransport: The HTTP transport.

property EndpointTransport #

public IWorkflowEndpointTransport EndpointTransport { get; }

The endpoint transport.

property GraphqlTransport #

public IWorkflowGraphqlTransport GraphqlTransport { get; }

The GraphQL transport.

property HttpTransport #

public IWorkflowHttpTransport HttpTransport { get; }

The HTTP transport.

method CallAsync(EndpointAddress, object, CancellationToken) #

public Task<WorkflowEndpointResponse> CallAsync(EndpointAddress address, object? payload, CancellationToken cancellationToken = default)

Calls an endpoint of a named service.

Parameters

  • address: The endpoint.
  • payload: The body.
  • cancellationToken: Cancels the call.

Returns

The response.

method CallAsync(HttpAddress, object, CancellationToken) #

public Task<WorkflowHttpResponse> CallAsync(HttpAddress address, object? payload, CancellationToken cancellationToken = default)

Calls a named HTTP target.

Parameters

  • address: The target and path.
  • payload: The body.
  • cancellationToken: Cancels the call.

Returns

The response.

method QueryAsync(GraphqlAddress, object, CancellationToken) #

public Task<WorkflowGraphqlResponse> QueryAsync(GraphqlAddress address, object? variables, CancellationToken cancellationToken = default)

Runs a GraphQL query.

Parameters

  • address: The target and query.
  • variables: The variables.
  • cancellationToken: Cancels the query.

Returns

The response.

record WorkflowInstalledModule

public sealed record WorkflowInstalledModule

A function module installed in the engine.

Parameters

  • ModuleName: The module name.
  • Version: The module version.

Members

MemberKindSummary
WorkflowInstalledModule(string, string)constructorA function module installed in the engine.
ModuleNamepropertyThe module name.
VersionpropertyThe module version.

constructor WorkflowInstalledModule(string, string) #

public WorkflowInstalledModule(string ModuleName, string Version)

A function module installed in the engine.

Parameters

  • ModuleName: The module name.
  • Version: The module version.

property ModuleName #

public string ModuleName { get; init; }

The module name.

property Version #

public string Version { get; init; }

The module version.

class WorkflowJsonExtensions

public static class WorkflowJsonExtensions

Reads, converts and writes the JSON values of workflow state, payloads and results. Keys and property names compare ignoring case.

Members

MemberKindSummary
AsJsonElement<T>(T)extension methodWrites a value as JSON, with the web defaults.
AsWorkflowJsonDictionary(object)extension methodConverts an object, or a dictionary of JSON values, to a dictionary of JSON values; null gives an empty one.
AsWorkflowObjectDictionary(object)extension methodConverts an object or a dictionary to a dictionary of objects whose keys compare ignoring case; null gives an empty one.
Assign<T>(Dictionary<string, JsonElement>, string, T)extension methodSets a value.
AssignIfHasValue(Dictionary<string, JsonElement>, string, string)extension methodSets a text value unless it is empty or white space.
CloneJson(IReadOnlyDictionary<string, JsonElement>)extension methodCopies values into a new dictionary whose keys compare ignoring case.
Get<T>(JsonElement)extension methodConverts a JSON value.
GetOptional<T>(IReadOnlyDictionary<string, JsonElement>, string)extension methodReads a value, or the default when it is missing or null.
GetOptionalProperty<T>(JsonElement, string)extension methodReads a property, or the default when it is missing or null.
GetRequiredProperty<T>(JsonElement, string)extension methodReads a property.
TryGet(JsonElement, Type, out object)methodConverts a JSON value to a type; null converts to null.
TryGet<T>(JsonElement, out T)methodConverts a JSON value; null converts to the default.
TryGetPropertyIgnoreCase(JsonElement, string, out JsonElement)extension methodFinds a property of a JSON object by name, ignoring case.
WorkflowDict(IReadOnlyDictionary<string, JsonElement>, string, string)extension methodWraps values in a value dictionary.

extension method AsJsonElement<T>(T) #

public static JsonElement AsJsonElement<T>(this T value)

Writes a value as JSON, with the web defaults.

Type parameters

  • T: The value type.

Parameters

  • value: The value.

Returns

The JSON value.

extension method AsWorkflowJsonDictionary(object) #

public static Dictionary<string, JsonElement> AsWorkflowJsonDictionary(this object? value)

Converts an object, or a dictionary of JSON values, to a dictionary of JSON values; null gives an empty one.

Parameters

  • value: The value.

Returns

The dictionary.

Exceptions

  • InvalidOperationException: The value does not serialize to a JSON object.

extension method AsWorkflowObjectDictionary(object) #

public static Dictionary<string, object?> AsWorkflowObjectDictionary(this object? value)

Converts an object or a dictionary to a dictionary of objects whose keys compare ignoring case; null gives an empty one.

Parameters

  • value: The value.

Returns

The dictionary.

extension method Assign<T>(Dictionary<string, JsonElement>, string, T) #

public static Dictionary<string, JsonElement> Assign<T>(this Dictionary<string, JsonElement> source, string key, T value)

Sets a value.

Type parameters

  • T: The value type.

Parameters

  • source: The values.
  • key: The key.
  • value: The value.

Returns

The same dictionary.

extension method AssignIfHasValue(Dictionary<string, JsonElement>, string, string) #

public static Dictionary<string, JsonElement> AssignIfHasValue(this Dictionary<string, JsonElement> source, string key, string? value)

Sets a text value unless it is empty or white space.

Parameters

  • source: The values.
  • key: The key.
  • value: The value.

Returns

The same dictionary.

extension method CloneJson(IReadOnlyDictionary<string, JsonElement>) #

public static Dictionary<string, JsonElement> CloneJson(this IReadOnlyDictionary<string, JsonElement> source)

Copies values into a new dictionary whose keys compare ignoring case.

Parameters

  • source: The values.

Returns

The copy.

extension method Get<T>(JsonElement) #

public static T Get<T>(this JsonElement value)

Converts a JSON value.

Type parameters

  • T: The target type.

Parameters

  • value: The value.

Returns

The converted value.

Exceptions

  • InvalidOperationException: The value cannot be converted.

extension method GetOptional<T>(IReadOnlyDictionary<string, JsonElement>, string) #

public static T? GetOptional<T>(this IReadOnlyDictionary<string, JsonElement> source, string key)

Reads a value, or the default when it is missing or null.

Type parameters

  • T: The target type.

Parameters

  • source: The values.
  • key: The key.

Returns

The value, or the default.

Exceptions

  • InvalidOperationException: The value cannot be converted.

extension method GetOptionalProperty<T>(JsonElement, string) #

public static T? GetOptionalProperty<T>(this JsonElement element, string propertyName)

Reads a property, or the default when it is missing or null.

Type parameters

  • T: The target type.

Parameters

  • element: The object.
  • propertyName: The name.

Returns

The value, or the default.

Exceptions

  • InvalidOperationException: The value cannot be converted.

extension method GetRequiredProperty<T>(JsonElement, string) #

public static T GetRequiredProperty<T>(this JsonElement element, string propertyName)

Reads a property.

Type parameters

  • T: The target type.

Parameters

  • element: The object.
  • propertyName: The name.

Returns

The value.

Exceptions

  • InvalidOperationException: The property is missing, null or cannot be converted.

method TryGet(JsonElement, Type, out object) #

public static bool TryGet(JsonElement value, Type targetType, out object? result)

Converts a JSON value to a type; null converts to null.

Parameters

  • value: The value.
  • targetType: The target type.
  • result: The converted value.

Returns

Whether the value could be converted.

method TryGet<T>(JsonElement, out T) #

public static bool TryGet<T>(JsonElement value, out T? result)

Converts a JSON value; null converts to the default.

Type parameters

  • T: The target type.

Parameters

  • value: The value.
  • result: The converted value.

Returns

Whether the value could be converted.

extension method TryGetPropertyIgnoreCase(JsonElement, string, out JsonElement) #

public static bool TryGetPropertyIgnoreCase(this JsonElement element, string propertyName, out JsonElement value)

Finds a property of a JSON object by name, ignoring case.

Parameters

  • element: The object.
  • propertyName: The name.
  • value: The property value, when found.

Returns

Whether the property exists.

extension method WorkflowDict(IReadOnlyDictionary<string, JsonElement>, string, string) #

public static WorkflowValueDictionary WorkflowDict(this IReadOnlyDictionary<string, JsonElement> source, string workflowName, string missingMessageKey)

Wraps values in a value dictionary.

Parameters

  • source: The values.
  • workflowName: The workflow, for errors.
  • missingMessageKey: The message id of a missing value.

Returns

The value dictionary.

record WorkflowMapExecutionChange

public sealed record WorkflowMapExecutionChange

A changed map execution, written only when its stored version still equals WorkflowMapExecutionChange.ExpectedVersionNo.

Members

MemberKindSummary
WorkflowMapExecutionChange()constructorCreates an instance of WorkflowMapExecutionChange.
ExpectedVersionNopropertyThe version the stored row must have.
MappropertyThe new map row.

constructor WorkflowMapExecutionChange() #

public WorkflowMapExecutionChange()

Creates an instance of WorkflowMapExecutionChange.

property ExpectedVersionNo #

public long ExpectedVersionNo { get; init; }

The version the stored row must have.

property Map #

public required WorkflowMapExecutionRecord Map { get; init; }

The new map row.

record WorkflowMapExecutionRecord

public sealed record WorkflowMapExecutionRecord

One durable map execution: its frozen plan, bounds, fan-in and failure policies and status.

Members

MemberKindSummary
WorkflowMapExecutionRecord()constructorCreates an instance of WorkflowMapExecutionRecord.
AbsoluteDeadlineAtUtcpropertyThe deadline of the map, in UTC.
CompletedAtUtcpropertyWhen it completed, in UTC.
CreatedAtUtcpropertyWhen the row was created, in UTC.
ExecutionPlanJsonpropertyThe map plan, as JSON.
ExecutionPlanSha256propertyThe SHA-256 of the map plan.
FailurePolicypropertyThe failure policy.
FanInPolicypropertyThe fan-in policy.
GlobalActivityClasspropertyThe class of activities whose concurrency is limited across all maps.
MapExecutionIdpropertyThe map execution.
MaxAggregateStateBytespropertyThe size limit of the collected results, in bytes.
MaxConcurrencypropertyThe items in flight at once.
MaxItemspropertyThe items allowed.
MinimumSucceededpropertyThe items that must succeed under MIN_SUCCEEDED.
ScopeExecutionIdpropertyThe scope of the map.
StatuspropertyThe status.
StepExecutionIdpropertyThe map step.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowMapExecutionRecord() #

public WorkflowMapExecutionRecord()

Creates an instance of WorkflowMapExecutionRecord.

property AbsoluteDeadlineAtUtc #

public DateTime? AbsoluteDeadlineAtUtc { get; init; }

The deadline of the map, in UTC.

property CompletedAtUtc #

public DateTime? CompletedAtUtc { get; init; }

When it completed, in UTC.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property ExecutionPlanJson #

public required string ExecutionPlanJson { get; init; }

The map plan, as JSON.

property ExecutionPlanSha256 #

public required string ExecutionPlanSha256 { get; init; }

The SHA-256 of the map plan.

property FailurePolicy #

public required string FailurePolicy { get; init; }

The failure policy.

property FanInPolicy #

public required string FanInPolicy { get; init; }

The fan-in policy.

property GlobalActivityClass #

public string? GlobalActivityClass { get; init; }

The class of activities whose concurrency is limited across all maps.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property MaxAggregateStateBytes #

public int MaxAggregateStateBytes { get; init; }

The size limit of the collected results, in bytes.

property MaxConcurrency #

public int MaxConcurrency { get; init; }

The items in flight at once.

property MaxItems #

public int MaxItems { get; init; }

The items allowed.

property MinimumSucceeded #

public int? MinimumSucceeded { get; init; }

The items that must succeed under MIN_SUCCEEDED.

property ScopeExecutionId #

public required string ScopeExecutionId { get; init; }

The scope of the map.

property Status #

public required string Status { get; init; }

The status.

property StepExecutionId #

public required string StepExecutionId { get; init; }

The map step.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowMapItemChange

public sealed record WorkflowMapItemChange

A changed map item, written only when its stored version still equals WorkflowMapItemChange.ExpectedVersionNo.

Members

MemberKindSummary
WorkflowMapItemChange()constructorCreates an instance of WorkflowMapItemChange.
ExpectedVersionNopropertyThe version the stored row must have.
ItempropertyThe new item row.

constructor WorkflowMapItemChange() #

public WorkflowMapItemChange()

Creates an instance of WorkflowMapItemChange.

property ExpectedVersionNo #

public long ExpectedVersionNo { get; init; }

The version the stored row must have.

property Item #

public required WorkflowMapItemRecord Item { get; init; }

The new item row.

record WorkflowMapItemRecord

public sealed record WorkflowMapItemRecord

One item of a map: its descriptor, claim lease and fence, progress state and terminal outcome.

Members

MemberKindSummary
WorkflowMapItemRecord()constructorCreates an instance of WorkflowMapItemRecord.
ActiveStepExecutionIdpropertyThe step the item runs now.
ClaimExpiresAtUtcpropertyWhen the claim lease expires, in UTC.
ClaimFencepropertyThe claim fence, raised by each claim.
ClaimOwnerpropertyThe worker that holds the claim.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DescriptorJsonpropertyThe item descriptor, as JSON.
DescriptorSha256propertyThe SHA-256 of the item descriptor.
ExecutionStateJsonpropertyThe progress of the item, as JSON.
ItemKeypropertyThe item key.
MapExecutionIdpropertyThe map execution.
MapItemIdpropertyThe map item.
OrdinalpropertyThe position of the item in the collection.
SafeResultDescriptorJsonpropertyThe safe result descriptor, as JSON.
StatuspropertyThe status.
TerminalOutcomepropertyThe final outcome, once the item finished.
UpdatedAtUtcpropertyWhen the row last changed, in UTC.
VersionNopropertyThe row version, raised by each change.

constructor WorkflowMapItemRecord() #

public WorkflowMapItemRecord()

Creates an instance of WorkflowMapItemRecord.

property ActiveStepExecutionId #

public string? ActiveStepExecutionId { get; init; }

The step the item runs now.

property ClaimExpiresAtUtc #

public DateTime? ClaimExpiresAtUtc { get; init; }

When the claim lease expires, in UTC.

property ClaimFence #

public long ClaimFence { get; init; }

The claim fence, raised by each claim.

property ClaimOwner #

public string? ClaimOwner { get; init; }

The worker that holds the claim.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DescriptorJson #

public required string DescriptorJson { get; init; }

The item descriptor, as JSON.

property DescriptorSha256 #

public required string DescriptorSha256 { get; init; }

The SHA-256 of the item descriptor.

property ExecutionStateJson #

public string? ExecutionStateJson { get; init; }

The progress of the item, as JSON.

property ItemKey #

public required string ItemKey { get; init; }

The item key.

property MapExecutionId #

public required string MapExecutionId { get; init; }

The map execution.

property MapItemId #

public required string MapItemId { get; init; }

The map item.

property Ordinal #

public int Ordinal { get; init; }

The position of the item in the collection.

property SafeResultDescriptorJson #

public string? SafeResultDescriptorJson { get; init; }

The safe result descriptor, as JSON.

property Status #

public required string Status { get; init; }

The status.

property TerminalOutcome #

public string? TerminalOutcome { get; init; }

The final outcome, once the item finished.

property UpdatedAtUtc #

public DateTime UpdatedAtUtc { get; init; }

When the row last changed, in UTC.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

record WorkflowMapStepDefinition<TStartRequest>

public sealed record WorkflowMapStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Runs its body once per item of a collection.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • CollectionExpression: The collection to map over.
  • ItemKeyExpression: The key of an item, evaluated with the item in the state.
  • ItemResultExpression: The result of an item, evaluated after its body.
  • ItemStateKey: The state key that holds the current item.
  • MaxConcurrency: The items in flight at once.
  • MaxItems: The items allowed in the collection.
  • MaxAggregateStateBytes: The size limit of the collected results, in bytes.
  • Body: The steps of the body.

Members

MemberKindSummary
WorkflowMapStepDefinition(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition, WorkflowExpressionDefinition, string, int, int, int, WorkflowStepSequence<TStartRequest>)constructorRuns its body once per item of a collection.
BodypropertyThe steps of the body.
CollectionExpressionpropertyThe collection to map over.
DeadlineSecondspropertyThe deadline of the map in seconds.
FailurePolicypropertyWhat a failed item does; FAIL_FAST by default.
FanInPolicypropertyWhen the map completes; ALL_SUCCEEDED by default.
GlobalActivityClasspropertyA class of activities whose concurrency is limited across all maps.
ItemKeyExpressionpropertyThe key of an item, evaluated with the item in the state.
ItemResultExpressionpropertyThe result of an item, evaluated after its body.
ItemStateKeypropertyThe state key that holds the current item.
MaxAggregateStateBytespropertyThe size limit of the collected results, in bytes.
MaxConcurrencypropertyThe items in flight at once.
MaxItemspropertyThe items allowed in the collection.
MinimumSucceededpropertyThe items that must succeed under MIN_SUCCEEDED.
ResultKeypropertyThe key the collected results are kept under.
RetryPolicypropertyThe retry policy of an item.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowMapStepDefinition(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition, WorkflowExpressionDefinition, string, int, int, int, WorkflowStepSequence<TStartRequest>) #

public WorkflowMapStepDefinition(string StepName, WorkflowExpressionDefinition CollectionExpression, WorkflowExpressionDefinition ItemKeyExpression, WorkflowExpressionDefinition ItemResultExpression, string ItemStateKey, int MaxConcurrency, int MaxItems, int MaxAggregateStateBytes, WorkflowStepSequence<TStartRequest> Body)

Runs its body once per item of a collection.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • CollectionExpression: The collection to map over.
  • ItemKeyExpression: The key of an item, evaluated with the item in the state.
  • ItemResultExpression: The result of an item, evaluated after its body.
  • ItemStateKey: The state key that holds the current item.
  • MaxConcurrency: The items in flight at once.
  • MaxItems: The items allowed in the collection.
  • MaxAggregateStateBytes: The size limit of the collected results, in bytes.
  • Body: The steps of the body.

property Body #

public WorkflowStepSequence<TStartRequest> Body { get; init; }

The steps of the body.

property CollectionExpression #

public WorkflowExpressionDefinition CollectionExpression { get; init; }

The collection to map over.

property DeadlineSeconds #

public int? DeadlineSeconds { get; init; }

The deadline of the map in seconds.

property FailurePolicy #

public string FailurePolicy { get; init; }

What a failed item does; FAIL_FAST by default.

property FanInPolicy #

public string FanInPolicy { get; init; }

When the map completes; ALL_SUCCEEDED by default.

property GlobalActivityClass #

public string? GlobalActivityClass { get; init; }

A class of activities whose concurrency is limited across all maps.

property ItemKeyExpression #

public WorkflowExpressionDefinition ItemKeyExpression { get; init; }

The key of an item, evaluated with the item in the state.

property ItemResultExpression #

public WorkflowExpressionDefinition ItemResultExpression { get; init; }

The result of an item, evaluated after its body.

property ItemStateKey #

public string ItemStateKey { get; init; }

The state key that holds the current item.

property MaxAggregateStateBytes #

public int MaxAggregateStateBytes { get; init; }

The size limit of the collected results, in bytes.

property MaxConcurrency #

public int MaxConcurrency { get; init; }

The items in flight at once.

property MaxItems #

public int MaxItems { get; init; }

The items allowed in the collection.

property MinimumSucceeded #

public int? MinimumSucceeded { get; init; }

The items that must succeed under MIN_SUCCEEDED.

property ResultKey #

public string? ResultKey { get; init; }

The key the collected results are kept under.

property RetryPolicy #

public WorkflowRetryPolicyDeclaration RetryPolicy { get; init; }

The retry policy of an item.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

record WorkflowMapWrite

public sealed record WorkflowMapWrite

The changes one map decision makes, written atomically.

Members

MemberKindSummary
WorkflowMapWrite()constructorCreates an instance of WorkflowMapWrite.
ChangedItemspropertyChanged items.
ChangedMapspropertyChanged maps.
NewItemspropertyNew items.
NewMappropertyA new map.

constructor WorkflowMapWrite() #

public WorkflowMapWrite()

Creates an instance of WorkflowMapWrite.

property ChangedItems #

public IReadOnlyList<WorkflowMapItemChange> ChangedItems { get; init; }

Changed items.

property ChangedMaps #

public IReadOnlyList<WorkflowMapExecutionChange> ChangedMaps { get; init; }

Changed maps.

property NewItems #

public IReadOnlyList<WorkflowMapItemRecord> NewItems { get; init; }

New items.

property NewMap #

public WorkflowMapExecutionRecord? NewMap { get; init; }

A new map.

class WorkflowModuleCatalogServiceCollectionExtensions

public static class WorkflowModuleCatalogServiceCollectionExtensions

Registers the module catalog and installed modules.

Members

MemberKindSummary
AddWorkflowModule(IServiceCollection, string, string)extension methodRecords moduleName at version as installed, and registers the module catalog.
AddWorkflowModuleCatalog(IServiceCollection)extension methodRegisters the module catalog, unless it is already registered.

extension method AddWorkflowModule(IServiceCollection, string, string) #

public static IServiceCollection AddWorkflowModule(this IServiceCollection services, string moduleName, string version)

Records moduleName at version as installed, and registers the module catalog.

Parameters

  • services: The service collection to add the services to.
  • moduleName: The module name; not empty.
  • version: The module version; not empty.

Returns

The same service collection, for chaining.

extension method AddWorkflowModuleCatalog(IServiceCollection) #

public static IServiceCollection AddWorkflowModuleCatalog(this IServiceCollection services)

Registers the module catalog, unless it is already registered.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

record WorkflowModuleRequirementValidationError

public sealed record WorkflowModuleRequirementValidationError

A finding of a module requirement check.

Parameters

  • Code: The finding code.
  • Path: The path of the requirement.
  • Message: The message.

Members

MemberKindSummary
WorkflowModuleRequirementValidationError(string, string, string)constructorA finding of a module requirement check.
CodepropertyThe finding code.
MessagepropertyThe message.
PathpropertyThe path of the requirement.

constructor WorkflowModuleRequirementValidationError(string, string, string) #

public WorkflowModuleRequirementValidationError(string Code, string Path, string Message)

A finding of a module requirement check.

Parameters

  • Code: The finding code.
  • Path: The path of the requirement.
  • Message: The message.

property Code #

public string Code { get; init; }

The finding code.

property Message #

public string Message { get; init; }

The message.

property Path #

public string Path { get; init; }

The path of the requirement.

class WorkflowModuleVersionExpression

public static class WorkflowModuleVersionExpression

Parses module version expressions such as >=1.0.0 <2.0.0.

Members

MemberKindSummary
TryParse(string, out WorkflowModuleVersionRequirement, out string)methodParses an expression of clauses separated by spaces or commas; each clause is an optional operator and a major.minor.patch version.

method TryParse(string, out WorkflowModuleVersionRequirement, out string) #

public static bool TryParse(string? expression, out WorkflowModuleVersionRequirement requirement, out string? error)

Parses an expression of clauses separated by spaces or commas; each clause is an optional operator and a major.minor.patch version.

Parameters

  • expression: The expression.
  • requirement: The requirement, when the expression is valid.
  • error: Why the expression is not valid.

Returns

Whether the expression is valid.

enum WorkflowModuleVersionOperator

public enum WorkflowModuleVersionOperator

The comparison of a module version clause.

ValueDescription
Equal = 0Exactly the version (= or no operator).
GreaterThan = 1Above the version (>).
GreaterThanOrEqual = 2The version or above (>=).
LessThan = 3Below the version (<).
LessThanOrEqual = 4The version or below (<=).

record WorkflowModuleVersionRequirement

public sealed record WorkflowModuleVersionRequirement

A module version requirement: every clause must hold.

Members

MemberKindSummary
WorkflowModuleVersionRequirement()constructorCreates an instance of WorkflowModuleVersionRequirement.
ClausespropertyThe clauses.
IsSatisfiedBy(string)methodWhether an installed version meets every clause.

constructor WorkflowModuleVersionRequirement() #

public WorkflowModuleVersionRequirement()

Creates an instance of WorkflowModuleVersionRequirement.

property Clauses #

public required IReadOnlyCollection<WorkflowModuleVersionRequirementClause> Clauses { get; init; }

The clauses.

method IsSatisfiedBy(string) #

public bool IsSatisfiedBy(string installedVersion)

Whether an installed version meets every clause.

Parameters

  • installedVersion: The installed version.

Returns

Whether it does; false for a version that is not semantic.

record WorkflowModuleVersionRequirementClause

public sealed record WorkflowModuleVersionRequirementClause

One clause of a module version requirement.

Parameters

  • Operator: The comparison.
  • Version: The version compared with.

Members

MemberKindSummary
WorkflowModuleVersionRequirementClause(WorkflowModuleVersionOperator, Version)constructorOne clause of a module version requirement.
OperatorpropertyThe comparison.
VersionpropertyThe version compared with.

constructor WorkflowModuleVersionRequirementClause(WorkflowModuleVersionOperator, Version) #

public WorkflowModuleVersionRequirementClause(WorkflowModuleVersionOperator Operator, Version Version)

One clause of a module version requirement.

Parameters

  • Operator: The comparison.
  • Version: The version compared with.

property Operator #

public WorkflowModuleVersionOperator Operator { get; init; }

The comparison.

property Version #

public Version Version { get; init; }

The version compared with.

class WorkflowModuleVersioning

public static class WorkflowModuleVersioning

Checks module requirements against the installed modules.

Members

MemberKindSummary
Satisfies(WorkflowInstalledModule, WorkflowRequiredModuleDeclaration)methodWhether an installed module meets a requirement: the same name, ignoring case, and a version that meets every clause.
ValidateRequirementSyntax(WorkflowRequiredModuleDeclaration, string)methodChecks a requirement’s syntax: a module name (WFVAL070) and a valid version expression (WFVAL071).

method Satisfies(WorkflowInstalledModule, WorkflowRequiredModuleDeclaration) #

public static bool Satisfies(WorkflowInstalledModule installedModule, WorkflowRequiredModuleDeclaration requirement)

Whether an installed module meets a requirement: the same name, ignoring case, and a version that meets every clause.

Parameters

  • installedModule: The installed module.
  • requirement: The requirement.

Returns

Whether it does.

method ValidateRequirementSyntax(WorkflowRequiredModuleDeclaration, string) #

public static IReadOnlyCollection<WorkflowModuleRequirementValidationError> ValidateRequirementSyntax(WorkflowRequiredModuleDeclaration requirement, string path)

Checks a requirement’s syntax: a module name (WFVAL070) and a valid version expression (WFVAL071).

Parameters

  • requirement: The requirement.
  • path: The path of the requirement, for the findings.

Returns

The findings; empty for a valid requirement.

record WorkflowOutboxEntry

public sealed record WorkflowOutboxEntry

One outbox message waiting for delivery. WorkflowOutboxEntry.Channelis the message type or lane it is published on; WorkflowOutboxEntry.MessageIdis the id the receiver de-duplicates on.

Members

MemberKindSummary
WorkflowOutboxEntry()constructorCreates an instance of WorkflowOutboxEntry.
AggregateIdpropertyThe aggregate the entry belongs to, when it has one.
ChannelpropertyThe message type or lane the entry is published on.
DeliveryAttemptspropertyThe delivery attempts so far.
EntryKeypropertyThe key of the entry in its outbox.
KindpropertyThe outbox.
MessageIdpropertyThe id the receiver de-duplicates on.
PayloadJsonpropertyThe payload, as JSON.
PayloadSha256propertyThe SHA-256 of the payload.

constructor WorkflowOutboxEntry() #

public WorkflowOutboxEntry()

Creates an instance of WorkflowOutboxEntry.

property AggregateId #

public string? AggregateId { get; init; }

The aggregate the entry belongs to, when it has one.

property Channel #

public required string Channel { get; init; }

The message type or lane the entry is published on.

property DeliveryAttempts #

public int DeliveryAttempts { get; init; }

The delivery attempts so far.

property EntryKey #

public required string EntryKey { get; init; }

The key of the entry in its outbox.

property Kind #

public required WorkflowOutboxKind Kind { get; init; }

The outbox.

property MessageId #

public required string MessageId { get; init; }

The id the receiver de-duplicates on.

property PayloadJson #

public required string PayloadJson { get; init; }

The payload, as JSON.

property PayloadSha256 #

public required string PayloadSha256 { get; init; }

The SHA-256 of the payload.

enum WorkflowOutboxKind

public enum WorkflowOutboxKind

The durable outboxes an integration publisher drains.

ValueDescription
Durable = 0Durable workflow messages (start results, root continuations, prestart acknowledgements, child links).
ActivityDispatch = 1External-activity dispatch requests.
ActivityCancel = 2External-activity cancel requests.

record WorkflowOutboxMessage

public sealed record WorkflowOutboxMessage

A message appended to the durable outbox in the same write as the state change it announces. The store appends it in the READY delivery state.

Members

MemberKindSummary
WorkflowOutboxMessage()constructorCreates an instance of WorkflowOutboxMessage.
AggregateIdpropertyThe aggregate the message belongs to.
CreatedAtUtcpropertyWhen the message was created, in UTC.
EventIdpropertyThe message identifier.
MessageTypepropertyThe message type.
PayloadJsonpropertyThe payload, as JSON.
PayloadSha256propertyThe SHA-256 of the payload.

constructor WorkflowOutboxMessage() #

public WorkflowOutboxMessage()

Creates an instance of WorkflowOutboxMessage.

property AggregateId #

public required string AggregateId { get; init; }

The aggregate the message belongs to.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the message was created, in UTC.

property EventId #

public required string EventId { get; init; }

The message identifier.

property MessageType #

public required string MessageType { get; init; }

The message type.

property PayloadJson #

public required string PayloadJson { get; init; }

The payload, as JSON.

property PayloadSha256 #

public required string PayloadSha256 { get; init; }

The SHA-256 of the payload.

record WorkflowPendingSignalPlan

public sealed record WorkflowPendingSignalPlan

A signal a plan waits for or sends.

Members

MemberKindSummary
WorkflowPendingSignalPlan()constructorCreates an instance of WorkflowPendingSignalPlan.
AutoDispatchpropertyWhether the engine sends the signal itself; true by default.
DueAtUtcpropertyWhen the signal is due, in UTC; at once when not set.
DurableDispatchpropertyWhether a durable dispatcher sends it, such as for an external activity step.
PayloadpropertyThe signal payload.
ResumeStatepropertyThe state the resume continues with.
SignalTypepropertyThe signal type.
WaitingTokenpropertyThe token of the wait the signal resumes.

constructor WorkflowPendingSignalPlan() #

public WorkflowPendingSignalPlan()

Creates an instance of WorkflowPendingSignalPlan.

property AutoDispatch #

public bool AutoDispatch { get; init; }

Whether the engine sends the signal itself; true by default. An external signal is waited for, not sent.

property DueAtUtc #

public DateTime? DueAtUtc { get; init; }

When the signal is due, in UTC; at once when not set.

property DurableDispatch #

public bool DurableDispatch { get; init; }

Whether a durable dispatcher sends it, such as for an external activity step.

property Payload #

public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }

The signal payload.

property ResumeState #

public IReadOnlyDictionary<string, JsonElement> ResumeState { get; init; }

The state the resume continues with.

property SignalType #

public required string SignalType { get; init; }

The signal type.

property WaitingToken #

public required string WaitingToken { get; init; }

The token of the wait the signal resumes.

record WorkflowPrestartTerminalFence

public sealed record WorkflowPrestartTerminalFence

A terminal command that arrived before its start request: the start is fenced and never creates a root.

Members

MemberKindSummary
WorkflowPrestartTerminalFence()constructorCreates an instance of WorkflowPrestartTerminalFence.
AssociationGenerationpropertyThe generation of the association.
AssociationIdpropertyThe association.
AssociationSha256propertyThe SHA-256 of the association.
CreatedAtUtcpropertyWhen the row was created, in UTC.
RootScopeExecutionIdpropertyThe root scope.
StartRequestIdpropertyThe start request.
StartRequestSha256propertyThe SHA-256 of the start request.
TerminalCommandEventIdpropertyThe terminal command.
TerminalCommandSha256propertyThe SHA-256 of the terminal command.
TerminalFenceIdpropertyThe fence.
TerminalFenceSha256propertyThe SHA-256 of the fence.
TerminalFenceVersionpropertyThe fence version.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowPrestartTerminalFence() #

public WorkflowPrestartTerminalFence()

Creates an instance of WorkflowPrestartTerminalFence.

property AssociationGeneration #

public long AssociationGeneration { get; init; }

The generation of the association.

property AssociationId #

public required string AssociationId { get; init; }

The association.

property AssociationSha256 #

public required string AssociationSha256 { get; init; }

The SHA-256 of the association.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property RootScopeExecutionId #

public required string RootScopeExecutionId { get; init; }

The root scope.

property StartRequestId #

public required string StartRequestId { get; init; }

The start request.

property StartRequestSha256 #

public required string StartRequestSha256 { get; init; }

The SHA-256 of the start request.

property TerminalCommandEventId #

public required string TerminalCommandEventId { get; init; }

The terminal command.

property TerminalCommandSha256 #

public required string TerminalCommandSha256 { get; init; }

The SHA-256 of the terminal command.

property TerminalFenceId #

public required string TerminalFenceId { get; init; }

The fence.

property TerminalFenceSha256 #

public required string TerminalFenceSha256 { get; init; }

The SHA-256 of the fence.

property TerminalFenceVersion #

public long TerminalFenceVersion { get; init; }

The fence version.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowProjectionRetentionBatch

public sealed record WorkflowProjectionRetentionBatch

The outcome of one retention pass over the projections.

Members

MemberKindSummary
WorkflowProjectionRetentionBatch()constructorCreates an instance of WorkflowProjectionRetentionBatch.
PurgedInstancespropertyThe instances purged.
PurgedTaskEventspropertyThe task events purged.
PurgedTaskspropertyThe tasks purged.
PurgedWorkflowInstanceIdspropertyThe instances purged.
StaleInstancesMarkedpropertyThe instances marked stale.
StaleTasksMarkedpropertyThe tasks marked stale.
StaleWorkflowInstanceIdspropertyThe instances marked stale.

constructor WorkflowProjectionRetentionBatch() #

public WorkflowProjectionRetentionBatch()

Creates an instance of WorkflowProjectionRetentionBatch.

property PurgedInstances #

public int PurgedInstances { get; init; }

The instances purged.

property PurgedTaskEvents #

public int PurgedTaskEvents { get; init; }

The task events purged.

property PurgedTasks #

public int PurgedTasks { get; init; }

The tasks purged.

property PurgedWorkflowInstanceIds #

public IReadOnlyCollection<string> PurgedWorkflowInstanceIds { get; init; }

The instances purged.

property StaleInstancesMarked #

public int StaleInstancesMarked { get; init; }

The instances marked stale.

property StaleTasksMarked #

public int StaleTasksMarked { get; init; }

The tasks marked stale.

property StaleWorkflowInstanceIds #

public IReadOnlyCollection<string> StaleWorkflowInstanceIds { get; init; }

The instances marked stale.

record WorkflowRabbitCallStepDefinition<TStartRequest>

public sealed record WorkflowRabbitCallStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Defines a RabbitMQ call: a message published to an exchange with a routing key and, for a command-style peer, a command that may wait for a correlated reply.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Exchange: The exchange.
  • RoutingKey: The routing key.
  • Command: The command-style semantics; none for a plain publish.
  • PayloadFactory: Builds the payload from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

Members

MemberKindSummary
WorkflowRabbitCallStepDefinition(string, string, string, WorkflowRabbitCommandDeclaration, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, WorkflowFailureHandlers<TStartRequest>, int?)constructorDefines a RabbitMQ call: a message published to an exchange with a routing key and, for a command-style peer, a command that may wait for a correlated reply.
CommandpropertyThe command-style semantics; none for a plain publish.
ExchangepropertyThe exchange.
FailureHandlerspropertyThe failure and timeout branches; none when not set.
PayloadExpressionpropertyThe payload as an expression, for the canonical definition.
PayloadFactorypropertyBuilds the payload from the context.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
RoutingKeypropertyThe routing key.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.
TimeoutSecondspropertyThe step timeout in seconds, over all attempts; one hour when not set.

constructor WorkflowRabbitCallStepDefinition(string, string, string, WorkflowRabbitCommandDeclaration, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, string, WorkflowFailureHandlers<TStartRequest>, int?) #

public WorkflowRabbitCallStepDefinition(string StepName, string Exchange, string RoutingKey, WorkflowRabbitCommandDeclaration? Command, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory, string? ResultKey, WorkflowFailureHandlers<TStartRequest>? FailureHandlers = null, int? TimeoutSeconds = null)

Defines a RabbitMQ call: a message published to an exchange with a routing key and, for a command-style peer, a command that may wait for a correlated reply.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • Exchange: The exchange.
  • RoutingKey: The routing key.
  • Command: The command-style semantics; none for a plain publish.
  • PayloadFactory: Builds the payload from the context.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.
  • FailureHandlers: The failure and timeout branches; none when not set.
  • TimeoutSeconds: The step timeout in seconds, over all attempts; one hour when not set.

property Command #

public WorkflowRabbitCommandDeclaration? Command { get; init; }

The command-style semantics; none for a plain publish.

property Exchange #

public string Exchange { get; init; }

The exchange.

property FailureHandlers #

public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }

The failure and timeout branches; none when not set.

property PayloadExpression #

public WorkflowExpressionDefinition? PayloadExpression { get; init; }

The payload as an expression, for the canonical definition.

property PayloadFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory { get; init; }

Builds the payload from the context.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property RoutingKey #

public string RoutingKey { get; init; }

The routing key.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

property TimeoutSeconds #

public int? TimeoutSeconds { get; init; }

The step timeout in seconds, over all attempts; one hour when not set.

class WorkflowReference

public sealed class WorkflowReference

Refers to the workflow a sub-workflow or continue-with step runs.

Members

MemberKindSummary
WorkflowReference(Func<IWorkflowSpecExecutionContext, string>, Func<IWorkflowSpecExecutionContext, string>)constructorRefers to a workflow computed from the context.
WorkflowReference(string, string)constructorRefers to a workflow by name and optionally version; it has a canonical form.
StaticWorkflowNamepropertyThe workflow name, when it was given as a value.
StaticWorkflowVersionpropertyThe version, when it was given as a value.
WorkflowNameFactorypropertyComputes the workflow name.
WorkflowVersionFactorypropertyComputes the version.
BuildStartWorkflowRequest(IWorkflowSpecExecutionContext, object, WorkflowBusinessReference)methodBuilds the start request of the referred workflow.
TryBuildCanonicalInvocationDeclaration(WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration)methodBuilds the canonical invocation, when the workflow was given as a value.

constructor WorkflowReference(Func<IWorkflowSpecExecutionContext, string>, Func<IWorkflowSpecExecutionContext, string>) #

public WorkflowReference(Func<IWorkflowSpecExecutionContext, string> workflowNameFactory, Func<IWorkflowSpecExecutionContext, string?>? workflowVersionFactory = null)

Refers to a workflow computed from the context. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it.

Parameters

  • workflowNameFactory: Computes the workflow name.
  • workflowVersionFactory: Computes the version; the latest when not set.

constructor WorkflowReference(string, string) #

public WorkflowReference(string workflowName, string? workflowVersion = null)

Refers to a workflow by name and optionally version; it has a canonical form.

Parameters

  • workflowName: The workflow name.
  • workflowVersion: The version; the latest when not set.

property StaticWorkflowName #

public string? StaticWorkflowName { get; }

The workflow name, when it was given as a value.

property StaticWorkflowVersion #

public string? StaticWorkflowVersion { get; }

The version, when it was given as a value.

property WorkflowNameFactory #

public Func<IWorkflowSpecExecutionContext, string> WorkflowNameFactory { get; }

Computes the workflow name.

property WorkflowVersionFactory #

public Func<IWorkflowSpecExecutionContext, string?>? WorkflowVersionFactory { get; }

Computes the version.

method BuildStartWorkflowRequest(IWorkflowSpecExecutionContext, object, WorkflowBusinessReference) #

public StartWorkflowRequest BuildStartWorkflowRequest(IWorkflowSpecExecutionContext context, object? payload, WorkflowBusinessReference? businessReference = null)

Builds the start request of the referred workflow.

Parameters

  • context: The execution context.
  • payload: The start payload.
  • businessReference: The business reference; normalized.

Returns

The start request.

method TryBuildCanonicalInvocationDeclaration(WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration) #

public WorkflowWorkflowInvocationDeclaration? TryBuildCanonicalInvocationDeclaration(WorkflowExpressionDefinition? payloadExpression = null, WorkflowBusinessReferenceDeclaration? businessReference = null)

Builds the canonical invocation, when the workflow was given as a value.

Parameters

  • payloadExpression: The start payload expression.
  • businessReference: The business reference declaration.

Returns

The invocation, or null for a computed workflow.

record WorkflowRegisteredSignalInboxEntry

public sealed record WorkflowRegisteredSignalInboxEntry

A received external signal, kept for exact replay and for a wait registered after it arrived.

Members

MemberKindSummary
WorkflowRegisteredSignalInboxEntry()constructorCreates an instance of WorkflowRegisteredSignalInboxEntry.
CanonicalRequestJsonpropertyThe canonical request, as JSON.
DispositionpropertyHow the signal was handled.
PayloadJsonpropertyThe payload, as JSON.
PayloadSha256propertyThe SHA-256 of the payload.
ReceivedAtUtcpropertyWhen it was received, in UTC.
RequestSha256propertyThe SHA-256 of the request.
ResolvedAtUtcpropertyWhen it was resolved, in UTC.
ServiceAudiencepropertyThe service audience allowed to raise it.
SignalCodepropertyThe signal code.
SignalEventIdpropertyThe signal event.
SignalKeypropertyThe signal key.
SignalRegistrationIdpropertyThe wait that took the signal, when one did.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowRegisteredSignalInboxEntry() #

public WorkflowRegisteredSignalInboxEntry()

Creates an instance of WorkflowRegisteredSignalInboxEntry.

property CanonicalRequestJson #

public required string CanonicalRequestJson { get; init; }

The canonical request, as JSON.

property Disposition #

public required string Disposition { get; init; }

How the signal was handled.

property PayloadJson #

public required string PayloadJson { get; init; }

The payload, as JSON.

property PayloadSha256 #

public required string PayloadSha256 { get; init; }

The SHA-256 of the payload.

property ReceivedAtUtc #

public DateTime ReceivedAtUtc { get; init; }

When it was received, in UTC.

property RequestSha256 #

public required string RequestSha256 { get; init; }

The SHA-256 of the request.

property ResolvedAtUtc #

public DateTime? ResolvedAtUtc { get; init; }

When it was resolved, in UTC.

property ServiceAudience #

public required string ServiceAudience { get; init; }

The service audience allowed to raise it.

property SignalCode #

public required string SignalCode { get; init; }

The signal code.

property SignalEventId #

public required string SignalEventId { get; init; }

The signal event.

property SignalKey #

public required string SignalKey { get; init; }

The signal key.

property SignalRegistrationId #

public string? SignalRegistrationId { get; init; }

The wait that took the signal, when one did.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowRegisteredSignalWait

public sealed record WorkflowRegisteredSignalWait

A registered wait for one external signal, raced by its deadline timer.

Members

MemberKindSummary
WorkflowRegisteredSignalWait()constructorCreates an instance of WorkflowRegisteredSignalWait.
ExpectedExecutionVersionpropertyThe execution version the wait was registered at.
PayloadJsonpropertyThe signal payload, as JSON.
PayloadSha256propertyThe SHA-256 of the signal payload.
RegisteredAtUtcpropertyWhen the wait was registered, in UTC.
ResolvedAtUtcpropertyWhen it was resolved, in UTC.
ResolvedByEventIdpropertyThe signal that resolved the wait.
ResolvedByTimerIdpropertyThe deadline timer that resolved the wait.
ServiceAudiencepropertyThe service audience allowed to raise it.
SignalCodepropertyThe signal code.
SignalKeypropertyThe signal key.
SignalRegistrationIdpropertyThe registered wait.
StatuspropertyThe status.
VersionNopropertyThe row version, raised by each change.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowRegisteredSignalWait() #

public WorkflowRegisteredSignalWait()

Creates an instance of WorkflowRegisteredSignalWait.

property ExpectedExecutionVersion #

public long ExpectedExecutionVersion { get; init; }

The execution version the wait was registered at.

property PayloadJson #

public string? PayloadJson { get; init; }

The signal payload, as JSON.

property PayloadSha256 #

public string? PayloadSha256 { get; init; }

The SHA-256 of the signal payload.

property RegisteredAtUtc #

public DateTime RegisteredAtUtc { get; init; }

When the wait was registered, in UTC.

property ResolvedAtUtc #

public DateTime? ResolvedAtUtc { get; init; }

When it was resolved, in UTC.

property ResolvedByEventId #

public string? ResolvedByEventId { get; init; }

The signal that resolved the wait.

property ResolvedByTimerId #

public string? ResolvedByTimerId { get; init; }

The deadline timer that resolved the wait.

property ServiceAudience #

public required string ServiceAudience { get; init; }

The service audience allowed to raise it.

property SignalCode #

public required string SignalCode { get; init; }

The signal code.

property SignalKey #

public required string SignalKey { get; init; }

The signal key.

property SignalRegistrationId #

public required string SignalRegistrationId { get; init; }

The registered wait.

property Status #

public required string Status { get; init; }

The status.

property VersionNo #

public long VersionNo { get; init; }

The row version, raised by each change.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowRegisteredSignalWrite

public sealed record WorkflowRegisteredSignalWrite

The changes one registered-signal operation makes, written atomically. A changed wait is written only when its stored version still equals WorkflowRegisteredSignalWrite.ChangedWaitExpectedVersion.

Members

MemberKindSummary
WorkflowRegisteredSignalWrite()constructorCreates an instance of WorkflowRegisteredSignalWrite.
ChangedInboxpropertyA changed inbox entry.
ChangedTimerpropertyA changed timer.
ChangedWaitpropertyA changed wait.
ChangedWaitExpectedVersionpropertyThe version the stored wait must have.
NewInboxpropertyA new inbox entry.
NewTimerpropertyA new timer.
NewWaitpropertyA new wait.

constructor WorkflowRegisteredSignalWrite() #

public WorkflowRegisteredSignalWrite()

Creates an instance of WorkflowRegisteredSignalWrite.

property ChangedInbox #

public WorkflowRegisteredSignalInboxEntry? ChangedInbox { get; init; }

A changed inbox entry.

property ChangedTimer #

public WorkflowSignalDeadlineTimer? ChangedTimer { get; init; }

A changed timer.

property ChangedWait #

public WorkflowRegisteredSignalWait? ChangedWait { get; init; }

A changed wait.

property ChangedWaitExpectedVersion #

public long ChangedWaitExpectedVersion { get; init; }

The version the stored wait must have.

property NewInbox #

public WorkflowRegisteredSignalInboxEntry? NewInbox { get; init; }

A new inbox entry.

property NewTimer #

public WorkflowSignalDeadlineTimer? NewTimer { get; init; }

A new timer.

property NewWait #

public WorkflowRegisteredSignalWait? NewWait { get; init; }

A new wait.

record WorkflowRegistration

public sealed record WorkflowRegistration

A registered workflow: its definition, its start request type and its execution handler.

Members

MemberKindSummary
WorkflowRegistration()constructorCreates an instance of WorkflowRegistration.
BindStartRequestpropertyBinds a start payload to the start request type.
BusinessReferenceKeyPropertyNamepropertyThe start request property marked with WorkflowBusinessIdAttribute, when one is.
DefinitionpropertyThe definition descriptor: name, version, display name, roles and tasks.
ExtractBusinessReferencepropertyReads the business reference of a start request: its key and its parts.
HandlerTypepropertyThe execution handler type, or null for a workflow without a handler.
StartRequestTypepropertyThe type the start payload binds to; a dictionary for a workflow without a start request type.
WorkflowTypepropertyThe workflow type.

constructor WorkflowRegistration() #

public WorkflowRegistration()

Creates an instance of WorkflowRegistration.

property BindStartRequest #

public required Func<IDictionary<string, object?>, object> BindStartRequest { get; init; }

Binds a start payload to the start request type.

property BusinessReferenceKeyPropertyName #

public string? BusinessReferenceKeyPropertyName { get; init; }

The start request property marked with WorkflowBusinessIdAttribute, when one is.

property Definition #

public required WorkflowDefinitionDescriptor Definition { get; init; }

The definition descriptor: name, version, display name, roles and tasks.

property ExtractBusinessReference #

public required Func<object, WorkflowBusinessReference?> ExtractBusinessReference { get; init; }

Reads the business reference of a start request: its key and its parts.

property HandlerType #

public Type? HandlerType { get; init; }

The execution handler type, or null for a workflow without a handler.

property StartRequestType #

public required Type StartRequestType { get; init; }

The type the start payload binds to; a dictionary for a workflow without a start request type.

property WorkflowType #

public required Type WorkflowType { get; init; }

The workflow type.

class WorkflowRegistrationServiceCollectionExtensions

public static class WorkflowRegistrationServiceCollectionExtensions

Registers workflow definitions: each registration records the definition, its start request type and, when given, its execution handler.

Members

MemberKindSummary
AddWorkflowRegistration<TWorkflow, TRegistrationArgument>(IServiceCollection)extension methodRegisters TWorkflow with an execution handler or a start request type.
AddWorkflowRegistration<TWorkflow, TStartRequest, THandler>(IServiceCollection)extension methodRegisters TWorkflow with its start request type and its execution handler, which is registered scoped.
AddWorkflowRegistration<TWorkflow>(IServiceCollection)extension methodRegisters TWorkflow.

extension method AddWorkflowRegistration<TWorkflow, TRegistrationArgument>(IServiceCollection) #

public static IServiceCollection AddWorkflowRegistration<TWorkflow, TRegistrationArgument>(this IServiceCollection services) where TWorkflow : class, IWorkflow, new() where TRegistrationArgument : class

Registers TWorkflow with an execution handler or a start request type. When TRegistrationArgument implements IWorkflowExecutionHandler, it is the handler (registered scoped); otherwise it is the start request type, and the workflow must implement IWorkflow<TStartRequest>for it.

Type parameters

  • TWorkflow: The workflow definition.
  • TRegistrationArgument: The execution handler or the start request type.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

extension method AddWorkflowRegistration<TWorkflow, TStartRequest, THandler>(IServiceCollection) #

public static IServiceCollection AddWorkflowRegistration<TWorkflow, TStartRequest, THandler>(this IServiceCollection services) where TWorkflow : class, IWorkflow<TStartRequest>, new() where TStartRequest : class where THandler : class, IWorkflowExecutionHandler

Registers TWorkflow with its start request type and its execution handler, which is registered scoped.

Type parameters

  • TWorkflow: The workflow definition.
  • TStartRequest: The start request type.
  • THandler: The execution handler.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

extension method AddWorkflowRegistration<TWorkflow>(IServiceCollection) #

public static IServiceCollection AddWorkflowRegistration<TWorkflow>(this IServiceCollection services) where TWorkflow : class, IWorkflow, new()

Registers TWorkflow. The start request type comes from the IWorkflow<TStartRequest>the workflow implements; without one, the start payload binds to a dictionary.

Type parameters

  • TWorkflow: The workflow definition.

Parameters

  • services: The service collection to add the services to.

Returns

The same service collection, for chaining.

record WorkflowRenderEdge

public sealed record WorkflowRenderEdge

An edge of a render graph, before layout.

Members

MemberKindSummary
WorkflowRenderEdge()constructorCreates an instance of WorkflowRenderEdge.
IdpropertyThe edge identifier.
KindpropertyThe edge kind.
LabelpropertyThe label.
SourceNodeIdpropertyThe source node.
SourcePortIdpropertyThe source port, when the edge leaves a port.
TargetNodeIdpropertyThe target node.
TargetPortIdpropertyThe target port, when the edge enters a port.

constructor WorkflowRenderEdge() #

public WorkflowRenderEdge()

Creates an instance of WorkflowRenderEdge.

property Id #

public required string Id { get; init; }

The edge identifier.

property Kind #

public string? Kind { get; init; }

The edge kind.

property Label #

public string? Label { get; init; }

The label.

property SourceNodeId #

public required string SourceNodeId { get; init; }

The source node.

property SourcePortId #

public string? SourcePortId { get; init; }

The source port, when the edge leaves a port.

property TargetNodeId #

public required string TargetNodeId { get; init; }

The target node.

property TargetPortId #

public string? TargetPortId { get; init; }

The target port, when the edge enters a port.

record WorkflowRenderEdgeSection

public sealed record WorkflowRenderEdgeSection

A routed section of an edge.

Members

MemberKindSummary
WorkflowRenderEdgeSection()constructorCreates an instance of WorkflowRenderEdgeSection.
BendPointspropertyThe bends between them.
EndPointpropertyWhere the section ends.
StartPointpropertyWhere the section starts.

constructor WorkflowRenderEdgeSection() #

public WorkflowRenderEdgeSection()

Creates an instance of WorkflowRenderEdgeSection.

property BendPoints #

public IReadOnlyCollection<WorkflowRenderPoint> BendPoints { get; init; }

The bends between them.

property EndPoint #

public required WorkflowRenderPoint EndPoint { get; init; }

Where the section ends.

property StartPoint #

public required WorkflowRenderPoint StartPoint { get; init; }

Where the section starts.

record WorkflowRenderGraph

public sealed record WorkflowRenderGraph

The nodes and edges of a workflow diagram, before layout.

Members

MemberKindSummary
WorkflowRenderGraph()constructorCreates an instance of WorkflowRenderGraph.
EdgespropertyThe edges.
IdpropertyThe graph identifier.
NodespropertyThe nodes.

constructor WorkflowRenderGraph() #

public WorkflowRenderGraph()

Creates an instance of WorkflowRenderGraph.

property Edges #

public required IReadOnlyCollection<WorkflowRenderEdge> Edges { get; init; }

The edges.

property Id #

public required string Id { get; init; }

The graph identifier.

property Nodes #

public required IReadOnlyCollection<WorkflowRenderNode> Nodes { get; init; }

The nodes.

enum WorkflowRenderLayoutDirection

public enum WorkflowRenderLayoutDirection

The direction of the flow in a diagram.

ValueDescription
TopToBottom = 0From top to bottom.
LeftToRight = 1From left to right.

enum WorkflowRenderLayoutEffort

public enum WorkflowRenderLayoutEffort

How hard the layout works on node order and placement.

ValueDescription
Draft = 0The fastest layout.
Balanced = 1A balance of speed and quality.
Best = 2The best layout, the slowest.

class WorkflowRenderLayoutProviderNames

public static class WorkflowRenderLayoutProviderNames

The layout provider names.

Members

MemberKindSummary
ElkJsconstantThe name reserved for an ElkJS layout provider.
ElkSharpconstantThe ElkSharp layered layout, the default.
MsaglconstantThe name reserved for an MSAGL layout provider.

constant ElkJs #

public const string ElkJs = "ElkJs"

The name reserved for an ElkJS layout provider. No released package provides one; a request that names it fails as not registered.

constant ElkSharp #

public const string ElkSharp = "ElkSharp"

The ElkSharp layered layout, the default.

constant Msagl #

public const string Msagl = "Msagl"

The name reserved for an MSAGL layout provider. No released package provides one; a request that names it fails as not registered.

record WorkflowRenderLayoutRequest

public sealed record WorkflowRenderLayoutRequest

The settings of a layout.

Members

MemberKindSummary
WorkflowRenderLayoutRequest()constructorCreates an instance of WorkflowRenderLayoutRequest.
DirectionpropertyThe flow direction; left to right by default.
EffortpropertyThe layout effort; WorkflowRenderLayoutEffort.Bestby default.
LayerSpacingpropertyThe space between layers; 60 by default.
NodeSpacingpropertyThe space between nodes of a layer; 40 by default.
OrderingIterationspropertyThe node ordering iterations; the engine’s choice when not set.
PlacementIterationspropertyThe node placement iterations; the engine’s choice when not set.

constructor WorkflowRenderLayoutRequest() #

public WorkflowRenderLayoutRequest()

Creates an instance of WorkflowRenderLayoutRequest.

property Direction #

public WorkflowRenderLayoutDirection Direction { get; init; }

The flow direction; left to right by default.

property Effort #

public WorkflowRenderLayoutEffort Effort { get; init; }

The layout effort; WorkflowRenderLayoutEffort.Bestby default.

property LayerSpacing #

public double LayerSpacing { get; init; }

The space between layers; 60 by default.

property NodeSpacing #

public double NodeSpacing { get; init; }

The space between nodes of a layer; 40 by default.

property OrderingIterations #

public int? OrderingIterations { get; init; }

The node ordering iterations; the engine’s choice when not set.

property PlacementIterations #

public int? PlacementIterations { get; init; }

The node placement iterations; the engine’s choice when not set.

record WorkflowRenderLayoutResult

public sealed record WorkflowRenderLayoutResult

A laid-out diagram: positioned nodes and routed edges.

Members

MemberKindSummary
WorkflowRenderLayoutResult()constructorCreates an instance of WorkflowRenderLayoutResult.
EdgespropertyThe routed edges.
GraphIdpropertyThe graph identifier.
NodespropertyThe positioned nodes.

constructor WorkflowRenderLayoutResult() #

public WorkflowRenderLayoutResult()

Creates an instance of WorkflowRenderLayoutResult.

property Edges #

public required IReadOnlyCollection<WorkflowRenderRoutedEdge> Edges { get; init; }

The routed edges.

property GraphId #

public required string GraphId { get; init; }

The graph identifier.

property Nodes #

public required IReadOnlyCollection<WorkflowRenderPositionedNode> Nodes { get; init; }

The positioned nodes.

record WorkflowRenderNode

public sealed record WorkflowRenderNode

A node of a render graph, before layout.

Members

MemberKindSummary
WorkflowRenderNode()constructorCreates an instance of WorkflowRenderNode.
HeightpropertyThe node height; 72 by default.
IconKeypropertyThe icon of the node.
IdpropertyThe node identifier.
KindpropertyThe node kind, such as Start, End, HumanTask, TransportCall or Decision.
LabelpropertyThe label.
ParentNodeIdpropertyThe node that contains this one, when it is nested.
PortspropertyThe ports of the node.
RoutepropertyThe route of a human task node.
SemanticKeypropertyThe name of what the node stands for, such as the task or step name.
SemanticTypepropertyWhat the node stands for, such as Task or Decision.
TaskTypepropertyThe task type of a human task node.
WidthpropertyThe node width; 160 by default.

constructor WorkflowRenderNode() #

public WorkflowRenderNode()

Creates an instance of WorkflowRenderNode.

property Height #

public double Height { get; init; }

The node height; 72 by default.

property IconKey #

public string? IconKey { get; init; }

The icon of the node.

property Id #

public required string Id { get; init; }

The node identifier.

property Kind #

public required string Kind { get; init; }

The node kind, such as Start, End, HumanTask, TransportCall or Decision.

property Label #

public required string Label { get; init; }

The label.

property ParentNodeId #

public string? ParentNodeId { get; init; }

The node that contains this one, when it is nested.

property Ports #

public IReadOnlyCollection<WorkflowRenderPort> Ports { get; init; }

The ports of the node.

property Route #

public string? Route { get; init; }

The route of a human task node.

property SemanticKey #

public string? SemanticKey { get; init; }

The name of what the node stands for, such as the task or step name.

property SemanticType #

public string? SemanticType { get; init; }

What the node stands for, such as Task or Decision.

property TaskType #

public string? TaskType { get; init; }

The task type of a human task node.

property Width #

public double Width { get; init; }

The node width; 160 by default.

record WorkflowRenderPoint

public sealed record WorkflowRenderPoint

A point of a laid-out diagram.

Members

MemberKindSummary
WorkflowRenderPoint()constructorCreates an instance of WorkflowRenderPoint.
XpropertyThe horizontal position.
YpropertyThe vertical position.

constructor WorkflowRenderPoint() #

public WorkflowRenderPoint()

Creates an instance of WorkflowRenderPoint.

property X #

public required double X { get; init; }

The horizontal position.

property Y #

public required double Y { get; init; }

The vertical position.

record WorkflowRenderPort

public sealed record WorkflowRenderPort

A port of a render node.

Members

MemberKindSummary
WorkflowRenderPort()constructorCreates an instance of WorkflowRenderPort.
HeightpropertyThe port height; 8 by default.
IdpropertyThe port identifier.
SidepropertyThe side of the node the port is on.
WidthpropertyThe port width; 8 by default.

constructor WorkflowRenderPort() #

public WorkflowRenderPort()

Creates an instance of WorkflowRenderPort.

property Height #

public double Height { get; init; }

The port height; 8 by default.

property Id #

public required string Id { get; init; }

The port identifier.

property Side #

public string? Side { get; init; }

The side of the node the port is on.

property Width #

public double Width { get; init; }

The port width; 8 by default.

record WorkflowRenderPositionedNode

public sealed record WorkflowRenderPositionedNode

A positioned node.

Members

MemberKindSummary
WorkflowRenderPositionedNode()constructorCreates an instance of WorkflowRenderPositionedNode.
HeightpropertyThe node height.
IconKeypropertyThe icon of the node.
IdpropertyThe node identifier.
KindpropertyThe node kind, such as Start, End, HumanTask, TransportCall or Decision.
LabelpropertyThe label.
ParentNodeIdpropertyThe node that contains this one, when it is nested.
PortspropertyThe positioned ports.
RoutepropertyThe route of a human task node.
SemanticKeypropertyThe name of what the node stands for, such as the task or step name.
SemanticTypepropertyWhat the node stands for, such as Task or Decision.
TaskTypepropertyThe task type of a human task node.
WidthpropertyThe node width.
XpropertyThe left edge of the node.
YpropertyThe top edge of the node.

constructor WorkflowRenderPositionedNode() #

public WorkflowRenderPositionedNode()

Creates an instance of WorkflowRenderPositionedNode.

property Height #

public double Height { get; init; }

The node height.

property IconKey #

public string? IconKey { get; init; }

The icon of the node.

property Id #

public required string Id { get; init; }

The node identifier.

property Kind #

public required string Kind { get; init; }

The node kind, such as Start, End, HumanTask, TransportCall or Decision.

property Label #

public required string Label { get; init; }

The label.

property ParentNodeId #

public string? ParentNodeId { get; init; }

The node that contains this one, when it is nested.

property Ports #

public IReadOnlyCollection<WorkflowRenderPositionedPort> Ports { get; init; }

The positioned ports.

property Route #

public string? Route { get; init; }

The route of a human task node.

property SemanticKey #

public string? SemanticKey { get; init; }

The name of what the node stands for, such as the task or step name.

property SemanticType #

public string? SemanticType { get; init; }

What the node stands for, such as Task or Decision.

property TaskType #

public string? TaskType { get; init; }

The task type of a human task node.

property Width #

public double Width { get; init; }

The node width.

property X #

public double X { get; init; }

The left edge of the node.

property Y #

public double Y { get; init; }

The top edge of the node.

record WorkflowRenderPositionedPort

public sealed record WorkflowRenderPositionedPort

A positioned port.

Members

MemberKindSummary
WorkflowRenderPositionedPort()constructorCreates an instance of WorkflowRenderPositionedPort.
HeightpropertyThe port height.
IdpropertyThe port identifier.
SidepropertyThe side of the node the port is on.
WidthpropertyThe port width.
XpropertyThe left edge of the port.
YpropertyThe top edge of the port.

constructor WorkflowRenderPositionedPort() #

public WorkflowRenderPositionedPort()

Creates an instance of WorkflowRenderPositionedPort.

property Height #

public double Height { get; init; }

The port height.

property Id #

public required string Id { get; init; }

The port identifier.

property Side #

public string? Side { get; init; }

The side of the node the port is on.

property Width #

public double Width { get; init; }

The port width.

property X #

public double X { get; init; }

The left edge of the port.

property Y #

public double Y { get; init; }

The top edge of the port.

record WorkflowRenderRoutedEdge

public sealed record WorkflowRenderRoutedEdge

A routed edge.

Members

MemberKindSummary
WorkflowRenderRoutedEdge()constructorCreates an instance of WorkflowRenderRoutedEdge.
IdpropertyThe edge identifier.
KindpropertyThe edge kind.
LabelpropertyThe label.
SectionspropertyThe routed sections.
SourceNodeIdpropertyThe source node.
SourcePortIdpropertyThe source port, when the edge leaves a port.
TargetNodeIdpropertyThe target node.
TargetPortIdpropertyThe target port, when the edge enters a port.

constructor WorkflowRenderRoutedEdge() #

public WorkflowRenderRoutedEdge()

Creates an instance of WorkflowRenderRoutedEdge.

property Id #

public required string Id { get; init; }

The edge identifier.

property Kind #

public string? Kind { get; init; }

The edge kind.

property Label #

public string? Label { get; init; }

The label.

property Sections #

public IReadOnlyCollection<WorkflowRenderEdgeSection> Sections { get; init; }

The routed sections.

property SourceNodeId #

public required string SourceNodeId { get; init; }

The source node.

property SourcePortId #

public string? SourcePortId { get; init; }

The source port, when the edge leaves a port.

property TargetNodeId #

public required string TargetNodeId { get; init; }

The target node.

property TargetPortId #

public string? TargetPortId { get; init; }

The target port, when the edge enters a port.

class WorkflowRenderingOptions

public sealed class WorkflowRenderingOptions

The layout engine of rendered workflow diagrams (WorkflowRendering).

Members

MemberKindSummary
WorkflowRenderingOptions()constructorCreates an instance of WorkflowRenderingOptions.
SectionNameconstantThe configuration section the options bind from: WorkflowRendering.
LayoutProviderpropertyThe diagram layout provider, for example ElkSharp; ElkSharp when not set.

constructor WorkflowRenderingOptions() #

public WorkflowRenderingOptions()

Creates an instance of WorkflowRenderingOptions.

constant SectionName #

public const string SectionName = "WorkflowRendering"

The configuration section the options bind from: WorkflowRendering.

property LayoutProvider #

public string? LayoutProvider { get; set; }

The diagram layout provider, for example ElkSharp; ElkSharp when not set. A render request can name its own provider.

record WorkflowRepeatStepDefinition<TStartRequest>

public sealed record WorkflowRepeatStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Runs its body while a condition holds, at most a number of times.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • MaxIterationsFactory: Computes the maximum number of iterations.
  • Body: The steps of the body.
  • ContinueWhileEvaluator: The condition to run another iteration; none when not set.

Members

MemberKindSummary
WorkflowRepeatStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, int>, WorkflowStepSequence<TStartRequest>, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>)constructorRuns its body while a condition holds, at most a number of times.
BodypropertyThe steps of the body.
ContinueWhileEvaluatorpropertyThe condition to run another iteration; none when not set.
ContinueWhileExpressionpropertyThe condition as an expression, for the canonical definition.
IterationStateKeypropertyThe state key that holds the iteration number; not kept when not set.
MaxIterationsExpressionpropertyThe maximum as an expression, for the canonical definition.
MaxIterationsFactorypropertyComputes the maximum number of iterations.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowRepeatStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, int>, WorkflowStepSequence<TStartRequest>, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>) #

public WorkflowRepeatStepDefinition(string StepName, Func<WorkflowSpecExecutionContext<TStartRequest>, int> MaxIterationsFactory, WorkflowStepSequence<TStartRequest> Body, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>? ContinueWhileEvaluator = null)

Runs its body while a condition holds, at most a number of times.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • MaxIterationsFactory: Computes the maximum number of iterations.
  • Body: The steps of the body.
  • ContinueWhileEvaluator: The condition to run another iteration; none when not set.

property Body #

public WorkflowStepSequence<TStartRequest> Body { get; init; }

The steps of the body.

property ContinueWhileEvaluator #

public Func<WorkflowSpecExecutionContext<TStartRequest>, bool>? ContinueWhileEvaluator { get; init; }

The condition to run another iteration; none when not set.

property ContinueWhileExpression #

public WorkflowExpressionDefinition? ContinueWhileExpression { get; init; }

The condition as an expression, for the canonical definition.

property IterationStateKey #

public string? IterationStateKey { get; init; }

The state key that holds the iteration number; not kept when not set.

property MaxIterationsExpression #

public WorkflowExpressionDefinition? MaxIterationsExpression { get; init; }

The maximum as an expression, for the canonical definition.

property MaxIterationsFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, int> MaxIterationsFactory { get; init; }

Computes the maximum number of iterations.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

record WorkflowRetentionOverride

public sealed record WorkflowRetentionOverride

Optional override passed from the admin UI to bypass the projection’s pre-computed StaleAfterUtc / PurgeAfterUtc values and force retention based on the instance’s age directly.

Members

MemberKindSummary
WorkflowRetentionOverride()constructorCreates an instance of WorkflowRetentionOverride.
CompletedOlderThanUtcpropertyPurge completed/cancelled instances whose CompletedOnUtc <= this threshold.
RunningOlderThanUtcpropertyMark running (Open) instances whose CreatedOnUtc <= this threshold as stale.

constructor WorkflowRetentionOverride() #

public WorkflowRetentionOverride()

Creates an instance of WorkflowRetentionOverride.

property CompletedOlderThanUtc #

public DateTime? CompletedOlderThanUtc { get; init; }

Purge completed/cancelled instances whose CompletedOnUtc <= this threshold.

property RunningOlderThanUtc #

public DateTime? RunningOlderThanUtc { get; init; }

Mark running (Open) instances whose CreatedOnUtc <= this threshold as stale.

record WorkflowRootExecutionStart

public sealed record WorkflowRootExecutionStart

The rows a committed start creates for its root execution: the instance, its runtime state, the root scope, the open association and the first history event (sequence 1).

Members

MemberKindSummary
WorkflowRootExecutionStart()constructorCreates an instance of WorkflowRootExecutionStart.
AssociationGenerationpropertyThe generation of the association.
AssociationIdpropertyThe association.
AssociationSha256propertyThe SHA-256 of the association.
BusinessReferenceSha256propertyThe SHA-256 of the business reference.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DefinitionCodepropertyThe workflow definition.
DefinitionSha256propertyThe SHA-256 of the definition.
DefinitionVersionpropertyThe definition version.
FirstEventpropertyThe first history event (sequence 1).
InitialStateJsonpropertyThe initial state, as JSON.
InstanceStatuspropertyThe instance status.
OpenStatuspropertyThe status of the open association.
RetentionPolicypropertyThe retention policy.
RootScopeCodepropertyThe root scope code.
RootScopeExecutionIdpropertyThe root scope.
RootScopeVersionpropertyThe root scope version.
RuntimeProviderpropertyThe runtime provider.
RuntimeStatuspropertyThe runtime status.
StartRequestIdpropertyThe start request.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowRootExecutionStart() #

public WorkflowRootExecutionStart()

Creates an instance of WorkflowRootExecutionStart.

property AssociationGeneration #

public long AssociationGeneration { get; init; }

The generation of the association.

property AssociationId #

public required string AssociationId { get; init; }

The association.

property AssociationSha256 #

public required string AssociationSha256 { get; init; }

The SHA-256 of the association.

property BusinessReferenceSha256 #

public required string BusinessReferenceSha256 { get; init; }

The SHA-256 of the business reference.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DefinitionCode #

public required string DefinitionCode { get; init; }

The workflow definition.

property DefinitionSha256 #

public required string DefinitionSha256 { get; init; }

The SHA-256 of the definition.

property DefinitionVersion #

public required string DefinitionVersion { get; init; }

The definition version.

property FirstEvent #

public required WorkflowHistoryEvent FirstEvent { get; init; }

The first history event (sequence 1).

property InitialStateJson #

public required string InitialStateJson { get; init; }

The initial state, as JSON.

property InstanceStatus #

public required string InstanceStatus { get; init; }

The instance status.

property OpenStatus #

public required string OpenStatus { get; init; }

The status of the open association.

property RetentionPolicy #

public required string RetentionPolicy { get; init; }

The retention policy.

property RootScopeCode #

public required string RootScopeCode { get; init; }

The root scope code.

property RootScopeExecutionId #

public required string RootScopeExecutionId { get; init; }

The root scope.

property RootScopeVersion #

public required string RootScopeVersion { get; init; }

The root scope version.

property RuntimeProvider #

public required string RuntimeProvider { get; init; }

The runtime provider.

property RuntimeStatus #

public required string RuntimeStatus { get; init; }

The runtime status.

property StartRequestId #

public required string StartRequestId { get; init; }

The start request.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowRuntimeDefinition

public sealed record WorkflowRuntimeDefinition

A workflow the engine can run: its registration, descriptor and, for a declarative workflow, its canonical definition.

Members

MemberKindSummary
WorkflowRuntimeDefinition()constructorCreates an instance of WorkflowRuntimeDefinition.
CanonicalDefinitionpropertyThe canonical definition of a declarative workflow.
DescriptorpropertyThe definition descriptor: name, version, roles and tasks.
ExecutionKindpropertyHow the engine runs it.
RegistrationpropertyThe registration.

constructor WorkflowRuntimeDefinition() #

public WorkflowRuntimeDefinition()

Creates an instance of WorkflowRuntimeDefinition.

property CanonicalDefinition #

public WorkflowCanonicalDefinition? CanonicalDefinition { get; init; }

The canonical definition of a declarative workflow.

property Descriptor #

public required WorkflowDefinitionDescriptor Descriptor { get; init; }

The definition descriptor: name, version, roles and tasks.

property ExecutionKind #

public required WorkflowRuntimeExecutionKind ExecutionKind { get; init; }

How the engine runs it.

property Registration #

public required WorkflowRegistration Registration { get; init; }

The registration.

enum WorkflowRuntimeExecutionKind

public enum WorkflowRuntimeExecutionKind

How the engine runs a registered workflow.

ValueDescription
DefinitionOnly = 0The registration has a definition only; the engine creates no handler.
CustomHandler = 1The registration names its own execution handler.
Declarative = 2The engine runs the canonical definition compiled from the workflow’s C# specification.

record WorkflowRuntimeExecutionResult

public sealed record WorkflowRuntimeExecutionResult

The outcome of a runtime step of an instance.

Members

MemberKindSummary
WorkflowRuntimeExecutionResult()constructorCreates an instance of WorkflowRuntimeExecutionResult.
BusinessReferencepropertyThe business reference after the step.
CancelledTaskTokenspropertyRuntime task tokens of open tasks the engine closed because another fork branch ended the fork.
ContinuationspropertyThe workflows to start next.
ExpiredTaskTokenspropertyRuntime task tokens of open tasks the engine closed because their timeout fired.
IgnoredpropertyWhether the runtime ignored the step, such as a duplicate or stale signal.
InstanceStatuspropertyThe instance status.
PendingSignalspropertyThe signals to wait for or send.
RuntimeInstanceIdpropertyThe runtime instance.
RuntimeProviderpropertyThe runtime provider.
RuntimeStatepropertyThe runtime state to store.
RuntimeStatuspropertyThe runtime status.
TaskspropertyThe tasks to open.
WorkflowStatepropertyThe workflow state after the step.

constructor WorkflowRuntimeExecutionResult() #

public WorkflowRuntimeExecutionResult()

Creates an instance of WorkflowRuntimeExecutionResult.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference after the step.

property CancelledTaskTokens #

public IReadOnlyCollection<string> CancelledTaskTokens { get; init; }

Runtime task tokens of open tasks the engine closed because another fork branch ended the fork.

property Continuations #

public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }

The workflows to start next.

property ExpiredTaskTokens #

public IReadOnlyCollection<string> ExpiredTaskTokens { get; init; }

Runtime task tokens of open tasks the engine closed because their timeout fired.

property Ignored #

public bool Ignored { get; init; }

Whether the runtime ignored the step, such as a duplicate or stale signal.

property InstanceStatus #

public required string InstanceStatus { get; init; }

The instance status.

property PendingSignals #

public IReadOnlyCollection<WorkflowPendingSignalPlan> PendingSignals { get; init; }

The signals to wait for or send.

property RuntimeInstanceId #

public string? RuntimeInstanceId { get; init; }

The runtime instance.

property RuntimeProvider #

public required string RuntimeProvider { get; init; }

The runtime provider.

property RuntimeState #

public object? RuntimeState { get; init; }

The runtime state to store.

property RuntimeStatus #

public string? RuntimeStatus { get; init; }

The runtime status.

property Tasks #

public IReadOnlyCollection<WorkflowExecutionTaskPlan> Tasks { get; init; }

The tasks to open.

property WorkflowState #

public IReadOnlyDictionary<string, JsonElement> WorkflowState { get; init; }

The workflow state after the step.

class WorkflowRuntimePayloadKeys

public static class WorkflowRuntimePayloadKeys

The payload keys the engine reserves.

Members

MemberKindSummary
ProjectionWorkflowInstanceIdPayloadKeyconstantThe reserved key of the projection’s instance id.
ReservedKeyPrefixconstantPrefix for engine-reserved state and task-payload keys.
RuntimeProviderPayloadKeyconstantThe key of the runtime provider.
RuntimeTaskTokenPayloadKeyconstantThe key of the runtime task token.

constant ProjectionWorkflowInstanceIdPayloadKey #

public const string ProjectionWorkflowInstanceIdPayloadKey = "__stellaops.projectionWorkflowInstanceId"

The reserved key of the projection’s instance id.

constant ReservedKeyPrefix #

public const string ReservedKeyPrefix = "__stellaops."

Prefix for engine-reserved state and task-payload keys. Reserved keys are engine bookkeeping: they are stripped before a payload is handed to a caller and are never authored in a workflow definition.

constant RuntimeProviderPayloadKey #

public const string RuntimeProviderPayloadKey = "runtimeProvider"

The key of the runtime provider.

constant RuntimeTaskTokenPayloadKey #

public const string RuntimeTaskTokenPayloadKey = "runtimeTaskToken"

The key of the runtime task token.

class WorkflowRuntimeProviderNames

public static class WorkflowRuntimeProviderNames

The names of the runtime providers.

Members

MemberKindSummary
EngineconstantThe durable engine runtime: Stella.Engine.
InProcessconstantThe in-process runtime: Stella.InProcess.

constant Engine #

public const string Engine = "Stella.Engine"

The durable engine runtime: Stella.Engine.

constant InProcess #

public const string InProcess = "Stella.InProcess"

The in-process runtime: Stella.InProcess.

class WorkflowRuntimeStateConcurrencyException

public sealed class WorkflowRuntimeStateConcurrencyException : Exception

Raised when a runtime state write loses its version check: another write changed the instance first.

Members

MemberKindSummary
WorkflowRuntimeStateConcurrencyException(string, long, long)constructorCreates the exception.
ActualVersionpropertyThe version found.
ExpectedVersionpropertyThe version the write expected.
WorkflowInstanceIdpropertyThe instance.

constructor WorkflowRuntimeStateConcurrencyException(string, long, long) #

public WorkflowRuntimeStateConcurrencyException(string workflowInstanceId, long expectedVersion, long actualVersion)

Creates the exception.

Parameters

  • workflowInstanceId: The instance.
  • expectedVersion: The version the write expected.
  • actualVersion: The version found.

property ActualVersion #

public long ActualVersion { get; }

The version found.

property ExpectedVersion #

public long ExpectedVersion { get; }

The version the write expected.

property WorkflowInstanceId #

public string WorkflowInstanceId { get; }

The instance.

record WorkflowRuntimeStateRecord

public sealed record WorkflowRuntimeStateRecord

The runtime state of an instance, versioned for optimistic concurrency.

Members

MemberKindSummary
WorkflowRuntimeStateRecord()constructorCreates an instance of WorkflowRuntimeStateRecord.
BusinessReferencepropertyThe business reference.
CompletedOnUtcpropertyWhen it completed, in UTC.
CreatedOnUtcpropertyWhen the instance started, in UTC.
LastUpdatedOnUtcpropertyWhen it last changed, in UTC.
PurgeAfterUtcpropertyWhen it may be purged, in UTC.
RuntimeInstanceIdpropertyThe runtime instance.
RuntimeProviderpropertyThe runtime provider.
RuntimeStatuspropertyThe runtime status; Open by default.
StaleAfterUtcpropertyWhen it becomes stale, in UTC.
StateJsonpropertyThe runtime state, as JSON.
VersionpropertyThe version; a write must raise it by one from the stored version.
WorkflowInstanceIdpropertyThe instance.
WorkflowNamepropertyThe workflow name.
WorkflowVersionpropertyThe workflow version.

constructor WorkflowRuntimeStateRecord() #

public WorkflowRuntimeStateRecord()

Creates an instance of WorkflowRuntimeStateRecord.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference.

property CompletedOnUtc #

public DateTime? CompletedOnUtc { get; init; }

When it completed, in UTC.

property CreatedOnUtc #

public DateTime CreatedOnUtc { get; init; }

When the instance started, in UTC.

property LastUpdatedOnUtc #

public DateTime LastUpdatedOnUtc { get; init; }

When it last changed, in UTC.

property PurgeAfterUtc #

public DateTime? PurgeAfterUtc { get; init; }

When it may be purged, in UTC.

property RuntimeInstanceId #

public required string RuntimeInstanceId { get; init; }

The runtime instance.

property RuntimeProvider #

public string RuntimeProvider { get; init; }

The runtime provider.

property RuntimeStatus #

public string RuntimeStatus { get; init; }

The runtime status; Open by default.

property StaleAfterUtc #

public DateTime? StaleAfterUtc { get; init; }

When it becomes stale, in UTC.

property StateJson #

public string StateJson { get; init; }

The runtime state, as JSON.

property Version #

public long Version { get; init; }

The version; a write must raise it by one from the stored version.

property WorkflowInstanceId #

public required string WorkflowInstanceId { get; init; }

The instance.

property WorkflowName #

public required string WorkflowName { get; init; }

The workflow name.

property WorkflowVersion #

public required string WorkflowVersion { get; init; }

The workflow version.

record WorkflowScopeReprocess

public sealed record WorkflowScopeReprocess

An operator request to run a scope again as a tagged successor occurrence.

Members

MemberKindSummary
WorkflowScopeReprocess()constructorCreates an instance of WorkflowScopeReprocess.
CreatedAtUtcpropertyWhen the row was created, in UTC.
OccurrenceNumberpropertyThe occurrence number of the new scope.
ReasonCodepropertyWhy.
ReprocessIdpropertyThe reprocess request.
RequestedBypropertyWho requested it.
SourceScopeExecutionIdpropertyThe scope to run again.
StatuspropertyThe status.
SuccessorScopeExecutionIdpropertyThe new scope occurrence.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowScopeReprocess() #

public WorkflowScopeReprocess()

Creates an instance of WorkflowScopeReprocess.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property OccurrenceNumber #

public int OccurrenceNumber { get; init; }

The occurrence number of the new scope.

property ReasonCode #

public required string ReasonCode { get; init; }

Why.

property ReprocessId #

public required string ReprocessId { get; init; }

The reprocess request.

property RequestedBy #

public required string RequestedBy { get; init; }

Who requested it.

property SourceScopeExecutionId #

public required string SourceScopeExecutionId { get; init; }

The scope to run again.

property Status #

public required string Status { get; init; }

The status.

property SuccessorScopeExecutionId #

public required string SuccessorScopeExecutionId { get; init; }

The new scope occurrence.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowSignalDeadlineTimer

public sealed record WorkflowSignalDeadlineTimer

The deadline timer of a registered wait.

Members

MemberKindSummary
WorkflowSignalDeadlineTimer()constructorCreates an instance of WorkflowSignalDeadlineTimer.
CreatedAtUtcpropertyWhen the row was created, in UTC.
DueAtUtcpropertyWhen the timer is due, in UTC.
ExpectedWaitVersionpropertyThe wait version the timer resolves.
FiredAtUtcpropertyWhen the timer fired, in UTC.
SignalRegistrationIdpropertyThe registered wait.
StatuspropertyThe status.
TimerIdpropertyThe timer.

constructor WorkflowSignalDeadlineTimer() #

public WorkflowSignalDeadlineTimer()

Creates an instance of WorkflowSignalDeadlineTimer.

property CreatedAtUtc #

public DateTime CreatedAtUtc { get; init; }

When the row was created, in UTC.

property DueAtUtc #

public DateTime DueAtUtc { get; init; }

When the timer is due, in UTC.

property ExpectedWaitVersion #

public long ExpectedWaitVersion { get; init; }

The wait version the timer resolves.

property FiredAtUtc #

public DateTime? FiredAtUtc { get; init; }

When the timer fired, in UTC.

property SignalRegistrationId #

public required string SignalRegistrationId { get; init; }

The registered wait.

property Status #

public required string Status { get; init; }

The status.

property TimerId #

public required string TimerId { get; init; }

The timer.

class WorkflowSignalDriverConfigurationExtensions

public static class WorkflowSignalDriverConfigurationExtensions

Reads the configured signal driver.

Members

MemberKindSummary
GetWorkflowSignalDriverProvider(IConfiguration)extension methodReturns WorkflowSignalDriver:Provider; Native when not set.

extension method GetWorkflowSignalDriverProvider(IConfiguration) #

public static string GetWorkflowSignalDriverProvider(this IConfiguration configuration)

Returns WorkflowSignalDriver:Provider; Native when not set.

Parameters

  • configuration: The configuration.

Returns

The driver name.

enum WorkflowSignalDriverDispatchMode

public enum WorkflowSignalDriverDispatchMode

When the engine tells the signal driver that a signal is available.

ValueDescription
NativeTransactional = 0The engine calls the driver right after it stores the signal.
PostCommitNotification = 1The engine calls the driver after the workflow changes commit, or at once when no change scope is open.
WakeOutbox = 2The engine writes the wake notification to the IWorkflowWakeOutboxinstead of calling the driver.

class WorkflowSignalDriverNames

public static class WorkflowSignalDriverNames

The names of the signal drivers, for WorkflowSignalDriver:Provider.

Members

MemberKindSummary
NativeconstantThe signal driver of the durable store itself.
RedisconstantThe Redis wake driver.

constant Native #

public const string Native = "Native"

The signal driver of the durable store itself.

constant Redis #

public const string Redis = "Redis"

The Redis wake driver.

class WorkflowSignalDriverOptions

public sealed class WorkflowSignalDriverOptions

The signal driver the host uses (WorkflowSignalDriver).

Members

MemberKindSummary
WorkflowSignalDriverOptions()constructorCreates an instance of WorkflowSignalDriverOptions.
SectionNameconstantThe configuration section the options bind from: WorkflowSignalDriver.
ProviderpropertyThe signal driver: Native (the store’s own signal queue; the default, also when unset) or Redis.

constructor WorkflowSignalDriverOptions() #

public WorkflowSignalDriverOptions()

Creates an instance of WorkflowSignalDriverOptions.

constant SectionName #

public const string SectionName = "WorkflowSignalDriver"

The configuration section the options bind from: WorkflowSignalDriver.

property Provider #

public string Provider { get; set; }

The signal driver: Native (the store’s own signal queue; the default, also when unset) or Redis.

record WorkflowSignalDriverRegistrationMarker

public sealed record WorkflowSignalDriverRegistrationMarker : IWorkflowSignalDriverRegistrationMarker

The registration marker of a signal driver.

Parameters

  • DriverName: The driver name.

Members

MemberKindSummary
WorkflowSignalDriverRegistrationMarker(string)constructorThe registration marker of a signal driver.
DriverNamepropertyThe driver name.

constructor WorkflowSignalDriverRegistrationMarker(string) #

public WorkflowSignalDriverRegistrationMarker(string DriverName)

The registration marker of a signal driver.

Parameters

  • DriverName: The driver name.

property DriverName #

public string DriverName { get; init; }

The driver name.

record WorkflowSignalEnvelope

public sealed record WorkflowSignalEnvelope

A signal for a workflow instance, as the signal store keeps it.

Members

MemberKindSummary
WorkflowSignalEnvelope()constructorCreates an instance of WorkflowSignalEnvelope.
DueAtUtcpropertyWhen the signal becomes available, in UTC; at once when not set.
ExpectedVersionpropertyThe runtime-state version the signal was raised against.
OccurredAtUtcpropertyWhen the signal was raised, in UTC.
PayloadpropertyThe signal payload.
RuntimeProviderpropertyThe runtime provider of the instance.
SignalIdpropertyThe signal identifier.
SignalTypepropertyThe signal type; see WorkflowSignalTypes.
WaitingTokenpropertyThe wait the signal resumes, when it targets one.
WorkflowInstanceIdpropertyThe instance the signal is for.

constructor WorkflowSignalEnvelope() #

public WorkflowSignalEnvelope()

Creates an instance of WorkflowSignalEnvelope.

property DueAtUtc #

public DateTime? DueAtUtc { get; init; }

When the signal becomes available, in UTC; at once when not set.

property ExpectedVersion #

public required long ExpectedVersion { get; init; }

The runtime-state version the signal was raised against.

property OccurredAtUtc #

public DateTime OccurredAtUtc { get; init; }

When the signal was raised, in UTC.

property Payload #

public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }

The signal payload.

property RuntimeProvider #

public required string RuntimeProvider { get; init; }

The runtime provider of the instance.

property SignalId #

public required string SignalId { get; init; }

The signal identifier.

property SignalType #

public required string SignalType { get; init; }

The signal type; see WorkflowSignalTypes.

property WaitingToken #

public string? WaitingToken { get; init; }

The wait the signal resumes, when it targets one.

property WorkflowInstanceId #

public required string WorkflowInstanceId { get; init; }

The instance the signal is for.

record WorkflowSignalExecutionContext

public sealed record WorkflowSignalExecutionContext

What the runtime gets to resume an instance with a signal.

Members

MemberKindSummary
WorkflowSignalExecutionContext()constructorCreates an instance of WorkflowSignalExecutionContext.
DefinitionpropertyThe definition descriptor.
RegistrationpropertyThe workflow registration.
RuntimeStatepropertyThe runtime state of the instance.
SignalpropertyThe signal.

constructor WorkflowSignalExecutionContext() #

public WorkflowSignalExecutionContext()

Creates an instance of WorkflowSignalExecutionContext.

property Definition #

public required WorkflowDefinitionDescriptor Definition { get; init; }

The definition descriptor.

property Registration #

public required WorkflowRegistration Registration { get; init; }

The workflow registration.

property RuntimeState #

public required WorkflowRuntimeStateRecord RuntimeState { get; init; }

The runtime state of the instance.

property Signal #

public required WorkflowSignalEnvelope Signal { get; init; }

The signal.

class WorkflowSignalPayloadKeys

public static class WorkflowSignalPayloadKeys

The payload keys of the engine’s own signals.

Members

MemberKindSummary
ExternalActivityContractVersionPayloadKeyconstantThe key of the contract version of an external activity.
ExternalActivityDestinationPayloadKeyconstantThe key of the destination of an external activity.
ExternalActivityLogicalStepKeyPayloadKeyconstantThe key of the step of an external activity.
ExternalActivityOperationPayloadKeyconstantThe key of the operation of an external activity.
ExternalActivityRequestPayloadKeyconstantThe key of the request of an external activity.
ExternalSignalNamePayloadKeyconstantThe key of the signal name of an external signal.
MapMaterializationPlanPayloadKeyconstantThe key of the item plan of a map.
MapResultPayloadKeyconstantThe key of the collected results of a map.
StartWorkflowRequestPayloadKeyconstantThe key of the start request of a sub-workflow or continue-with signal.

constant ExternalActivityContractVersionPayloadKey #

public const string ExternalActivityContractVersionPayloadKey = "contractVersion"

The key of the contract version of an external activity.

constant ExternalActivityDestinationPayloadKey #

public const string ExternalActivityDestinationPayloadKey = "destinationCode"

The key of the destination of an external activity.

constant ExternalActivityLogicalStepKeyPayloadKey #

public const string ExternalActivityLogicalStepKeyPayloadKey = "logicalStepKey"

The key of the step of an external activity.

constant ExternalActivityOperationPayloadKey #

public const string ExternalActivityOperationPayloadKey = "operationCode"

The key of the operation of an external activity.

constant ExternalActivityRequestPayloadKey #

public const string ExternalActivityRequestPayloadKey = "request"

The key of the request of an external activity.

constant ExternalSignalNamePayloadKey #

public const string ExternalSignalNamePayloadKey = "signalName"

The key of the signal name of an external signal.

constant MapMaterializationPlanPayloadKey #

public const string MapMaterializationPlanPayloadKey = "mapMaterializationPlan"

The key of the item plan of a map.

constant MapResultPayloadKey #

public const string MapResultPayloadKey = "mapResult"

The key of the collected results of a map.

constant StartWorkflowRequestPayloadKey #

public const string StartWorkflowRequestPayloadKey = "startWorkflowRequest"

The key of the start request of a sub-workflow or continue-with signal.

record WorkflowSignalResumeContext

public sealed record WorkflowSignalResumeContext

What an execution handler gets to resume an instance with a signal.

Members

MemberKindSummary
WorkflowSignalResumeContext()constructorCreates an instance of WorkflowSignalResumeContext.
BusinessReferencepropertyThe business reference.
ContinuationspropertyThe continuations already planned.
ResumeStatepropertyThe state the wait recorded.
SignalpropertyThe signal.
WorkflowStatepropertyThe workflow state.

constructor WorkflowSignalResumeContext() #

public WorkflowSignalResumeContext()

Creates an instance of WorkflowSignalResumeContext.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference.

property Continuations #

public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }

The continuations already planned.

property ResumeState #

public IReadOnlyDictionary<string, JsonElement> ResumeState { get; init; }

The state the wait recorded.

property Signal #

public required WorkflowSignalEnvelope Signal { get; init; }

The signal.

property WorkflowState #

public required IReadOnlyDictionary<string, JsonElement> WorkflowState { get; init; }

The workflow state.

class WorkflowSignalTypes

public static class WorkflowSignalTypes

The types of the engine’s signals.

Members

MemberKindSummary
ExternalActivityconstantAn external activity reported its outcome.
ExternalSignalconstantA caller raised a signal for the instance.
InternalContinueconstantThe engine continues the instance by itself.
MapCompletedconstantA map step finished.
RetryDueconstantA retry is due.
SubWorkflowCompletedconstantA child workflow finished.
TaskCompletedconstantA human task was completed.
TimerDueconstantA timer is due.

constant ExternalActivity #

public const string ExternalActivity = "ExternalActivity"

An external activity reported its outcome.

constant ExternalSignal #

public const string ExternalSignal = "ExternalSignal"

A caller raised a signal for the instance.

constant InternalContinue #

public const string InternalContinue = "InternalContinue"

The engine continues the instance by itself.

constant MapCompleted #

public const string MapCompleted = "MapCompleted"

A map step finished.

constant RetryDue #

public const string RetryDue = "RetryDue"

A retry is due.

constant SubWorkflowCompleted #

public const string SubWorkflowCompleted = "SubWorkflowCompleted"

A child workflow finished.

constant TaskCompleted #

public const string TaskCompleted = "TaskCompleted"

A human task was completed.

constant TimerDue #

public const string TimerDue = "TimerDue"

A timer is due.

record WorkflowSignalWakeNotification

public sealed record WorkflowSignalWakeNotification

Tells signal consumers that a signal is available.

Members

MemberKindSummary
WorkflowSignalWakeNotification()constructorCreates an instance of WorkflowSignalWakeNotification.
DueAtUtcpropertyWhen the signal is due, in UTC; due at once when not set.
RuntimeProviderpropertyThe runtime provider of the instance.
SignalIdpropertyThe signal.
SignalTypepropertyThe signal type.
WorkflowInstanceIdpropertyThe workflow instance the signal is for.

constructor WorkflowSignalWakeNotification() #

public WorkflowSignalWakeNotification()

Creates an instance of WorkflowSignalWakeNotification.

property DueAtUtc #

public DateTime? DueAtUtc { get; init; }

When the signal is due, in UTC; due at once when not set.

property RuntimeProvider #

public required string RuntimeProvider { get; init; }

The runtime provider of the instance.

property SignalId #

public required string SignalId { get; init; }

The signal.

property SignalType #

public required string SignalType { get; init; }

The signal type.

property WorkflowInstanceId #

public required string WorkflowInstanceId { get; init; }

The workflow instance the signal is for.

record WorkflowSourceExportResult

public sealed record WorkflowSourceExportResult

A definition converted to a source format.

Members

MemberKindSummary
WorkflowSourceExportResult()constructorCreates an instance of WorkflowSourceExportResult.
ContentpropertyThe content.
ContentTypepropertyThe media type of the content.
SuggestedFileNamepropertyA file name for the content.

constructor WorkflowSourceExportResult() #

public WorkflowSourceExportResult()

Creates an instance of WorkflowSourceExportResult.

property Content #

public required byte[] Content { get; init; }

The content.

property ContentType #

public required string ContentType { get; init; }

The media type of the content.

property SuggestedFileName #

public required string SuggestedFileName { get; init; }

A file name for the content.

record WorkflowSourceFormatDiagnostic

public sealed record WorkflowSourceFormatDiagnostic

A finding of a source format conversion.

Members

MemberKindSummary
WorkflowSourceFormatDiagnostic()constructorCreates an instance of WorkflowSourceFormatDiagnostic.
CodepropertyThe diagnostic code.
LocationpropertyOptional pointer into the source (line:col, XPath, JSON path, or archive entry name).
MessagepropertyThe message.
SeveritypropertyThe severity.

constructor WorkflowSourceFormatDiagnostic() #

public WorkflowSourceFormatDiagnostic()

Creates an instance of WorkflowSourceFormatDiagnostic.

property Code #

public required string Code { get; init; }

The diagnostic code.

property Location #

public string? Location { get; init; }

Optional pointer into the source (line:col, XPath, JSON path, or archive entry name).

property Message #

public required string Message { get; init; }

The message.

property Severity #

public required WorkflowSourceFormatDiagnosticSeverity Severity { get; init; }

The severity.

enum WorkflowSourceFormatDiagnosticSeverity

public enum WorkflowSourceFormatDiagnosticSeverity

The severity of a conversion finding.

ValueDescription
Info = 0Information.
Warning = 1A warning.
Error = 2An error; the converters report one when the conversion fails.

record WorkflowSourceImportResult

public sealed record WorkflowSourceImportResult

Result of converting external content into canonical form. Renderings are only populated by formats that carry them (e.g., the bundle ZIP).

Members

MemberKindSummary
WorkflowSourceImportResult()constructorCreates an instance of WorkflowSourceImportResult.
CanonicalDefinitionJsonpropertyThe canonical definition, as JSON, when the conversion succeeded.
DiagnosticspropertyThe findings of the conversion.
RenderingJsonpropertyThe render graph JSON the content carries.
RenderingPngpropertyThe PNG image the content carries.
RenderingSvgpropertyThe SVG diagram the content carries.
SucceededpropertyWhether the conversion succeeded.

constructor WorkflowSourceImportResult() #

public WorkflowSourceImportResult()

Creates an instance of WorkflowSourceImportResult.

property CanonicalDefinitionJson #

public string? CanonicalDefinitionJson { get; init; }

The canonical definition, as JSON, when the conversion succeeded.

property Diagnostics #

public IReadOnlyCollection<WorkflowSourceFormatDiagnostic> Diagnostics { get; init; }

The findings of the conversion.

property RenderingJson #

public byte[]? RenderingJson { get; init; }

The render graph JSON the content carries.

property RenderingPng #

public byte[]? RenderingPng { get; init; }

The PNG image the content carries.

property RenderingSvg #

public byte[]? RenderingSvg { get; init; }

The SVG diagram the content carries.

property Succeeded #

public required bool Succeeded { get; init; }

Whether the conversion succeeded.

class WorkflowSpec

public static class WorkflowSpec

Starts a declarative workflow definition.

Members

MemberKindSummary
For<TStartRequest>()methodStarts the definition of a workflow.

method For<TStartRequest>() #

public static WorkflowSpecBuilder<TStartRequest> For<TStartRequest>() where TStartRequest : class

Starts the definition of a workflow.

Type parameters

  • TStartRequest: The start request type.

Returns

A spec builder.

class WorkflowSpec<TStartRequest>

public sealed class WorkflowSpec<TStartRequest> where TStartRequest : class

A declarative workflow definition: the initial state, the tasks and the first steps.

Type parameters

  • TStartRequest: The start request type.

Members

MemberKindSummary
WorkflowSpec()constructorCreates an instance of WorkflowSpec<TStartRequest>.
InitialSequencepropertyThe first steps, when the workflow starts with steps.
InitialTaskNamepropertyThe task the workflow starts with, when it starts with a task.
InitializeStatepropertyBuilds the initial state from the start request.
InitializeStateExpressionpropertyThe initial state expression, when the state is declared as an expression.
InitializeStateWithRuntimepropertyBuilds the initial state from the start request, with the function runtime for expressions that call functions.
TaskDescriptorspropertyThe descriptors of the declared tasks.
TasksByNamepropertyThe declared tasks by name; names compare ignoring case.
GetRequiredTask(string)methodReturns the declared task taskName.

constructor WorkflowSpec() #

public WorkflowSpec()

Creates an instance of WorkflowSpec<TStartRequest>.

property InitialSequence #

public WorkflowStepSequence<TStartRequest> InitialSequence { get; init; }

The first steps, when the workflow starts with steps.

property InitialTaskName #

public string? InitialTaskName { get; init; }

The task the workflow starts with, when it starts with a task.

property InitializeState #

public required Func<TStartRequest, Dictionary<string, JsonElement>> InitializeState { get; init; }

Builds the initial state from the start request.

property InitializeStateExpression #

public WorkflowExpressionDefinition? InitializeStateExpression { get; init; }

The initial state expression, when the state is declared as an expression.

property InitializeStateWithRuntime #

public required Func<TStartRequest, IWorkflowFunctionRuntime?, Dictionary<string, JsonElement>> InitializeStateWithRuntime { get; init; }

Builds the initial state from the start request, with the function runtime for expressions that call functions.

property TaskDescriptors #

public IReadOnlyCollection<WorkflowTaskDescriptor> TaskDescriptors { get; }

The descriptors of the declared tasks.

property TasksByName #

public required IReadOnlyDictionary<string, WorkflowHumanTaskDefinition<TStartRequest>> TasksByName { get; init; }

The declared tasks by name; names compare ignoring case.

method GetRequiredTask(string) #

public WorkflowHumanTaskDefinition<TStartRequest> GetRequiredTask(string taskName)

Returns the declared task taskName.

Parameters

  • taskName: The task name.

Returns

The task definition.

Exceptions

  • InvalidOperationException: The task is not declared.

class WorkflowSpecBuilder<TStartRequest>

public sealed class WorkflowSpecBuilder<TStartRequest> where TStartRequest : class

Builds a declarative workflow definition: the initial state, the tasks and the first steps.

Type parameters

  • TStartRequest: The start request type.

Members

MemberKindSummary
WorkflowSpecBuilder()constructorCreates an instance of WorkflowSpecBuilder<TStartRequest>.
AddTask(WorkflowHumanTaskDefinition<TStartRequest>)methodDeclares a task, which ActivateTask opens.
Build()methodBuilds the definition and assigns the step identities.
InitializeState(Func<TStartRequest, Dictionary<string, JsonElement>>)methodSets the initial state from a delegate over the start request.
InitializeState(WorkflowExpressionDefinition)methodSets the initial state to the value of an object expression; start.* paths read the start request.
InitializeState<TState>(Func<TStartRequest, TState>)methodSets the initial state to the serialized value a delegate builds from the start request.
StartWith(Action<WorkflowFlowBuilder<TStartRequest>>)methodSets the first steps of the workflow.
StartWith(WorkflowHumanTaskDefinition<TStartRequest>)methodStarts the workflow with a task: declares it and opens it when an instance starts.

constructor WorkflowSpecBuilder() #

public WorkflowSpecBuilder()

Creates an instance of WorkflowSpecBuilder<TStartRequest>.

method AddTask(WorkflowHumanTaskDefinition<TStartRequest>) #

public WorkflowSpecBuilder<TStartRequest> AddTask(WorkflowHumanTaskDefinition<TStartRequest> task)

Declares a task, which ActivateTask opens. A task of the same name, ignoring case, is replaced.

Parameters

  • task: The task definition.

Returns

The same builder, for chaining.

method Build() #

public WorkflowSpec<TStartRequest> Build()

Builds the definition and assigns the step identities.

Returns

The workflow definition.

Exceptions

  • InvalidOperationException: The initial state is not set, or the workflow has neither a start task nor a first step.

method InitializeState(Func<TStartRequest, Dictionary<string, JsonElement>>) #

public WorkflowSpecBuilder<TStartRequest> InitializeState(Func<TStartRequest, Dictionary<string, JsonElement>> initializer)

Sets the initial state from a delegate over the start request. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Parameters

  • initializer: Builds the initial state.

Returns

The same builder, for chaining.

method InitializeState(WorkflowExpressionDefinition) #

public WorkflowSpecBuilder<TStartRequest> InitializeState(WorkflowExpressionDefinition initializerExpression)

Sets the initial state to the value of an object expression; start.* paths read the start request.

Parameters

  • initializerExpression: The initial state expression.

Returns

The same builder, for chaining.

method InitializeState<TState>(Func<TStartRequest, TState>) #

public WorkflowSpecBuilder<TStartRequest> InitializeState<TState>(Func<TStartRequest, TState> initializer)

Sets the initial state to the serialized value a delegate builds from the start request. A delegate has no canonical definition: the publisher cannot publish a workflow that uses it. Prefer the expression overload.

Type parameters

  • TState: The state type.

Parameters

  • initializer: Builds the initial state.

Returns

The same builder, for chaining.

method StartWith(Action<WorkflowFlowBuilder<TStartRequest>>) #

public WorkflowSpecBuilder<TStartRequest> StartWith(Action<WorkflowFlowBuilder<TStartRequest>> configure)

Sets the first steps of the workflow.

Parameters

  • configure: Adds the first steps.

Returns

The same builder, for chaining.

method StartWith(WorkflowHumanTaskDefinition<TStartRequest>) #

public WorkflowSpecBuilder<TStartRequest> StartWith(WorkflowHumanTaskDefinition<TStartRequest> task)

Starts the workflow with a task: declares it and opens it when an instance starts.

Parameters

  • task: The task definition.

Returns

The same builder, for chaining.

class WorkflowSpecExecutionContext<TStartRequest>

public sealed class WorkflowSpecExecutionContext<TStartRequest> : IWorkflowSpecExecutionContext where TStartRequest : class

What the delegates of a workflow see: the start request, state, payload, kept results and business reference of the instance.

Members

MemberKindSummary
WorkflowSpecExecutionContext(string, TStartRequest, Dictionary<string, JsonElement>, IReadOnlyDictionary<string, JsonElement>, WorkflowBusinessReference, IWorkflowFunctionRuntime)constructorCreates a context.
BusinessReferencepropertyThe business reference of the instance.
FunctionRuntimepropertyRuns the expression functions.
PayloadpropertyThe payload being handled, such as a task completion.
PayloadValuespropertyThe payload as a value dictionary; a missing key raises an error.
ResultValuespropertyThe kept step results, by key; keys compare ignoring case.
StartRequestpropertyThe start request, when it is available.
StateValuespropertyThe workflow state as a value dictionary; a missing key raises an error.
WorkflowNamepropertyThe workflow name.
WorkflowStatepropertyThe workflow state, which steps change.
CompareValue(WorkflowValueSource, string, object)methodWhether a payload or state value equals a value: a missing or null value equals null, and text compares ignoring case.
GetOptionalResult<TResponse>(string)methodReturns a kept result, or the default when none is kept under the key.
GetRequiredResult<TResponse>(string)methodReturns a kept result.
GetRequiredStartRequest()methodReturns the start request.
SetBusinessReference(WorkflowBusinessReference)methodReplaces the business reference.
SetResult(string, JsonElement)methodKeeps a result under a key, replacing any.

constructor WorkflowSpecExecutionContext(string, TStartRequest, Dictionary<string, JsonElement>, IReadOnlyDictionary<string, JsonElement>, WorkflowBusinessReference, IWorkflowFunctionRuntime) #

public WorkflowSpecExecutionContext(string workflowName, TStartRequest? startRequest, Dictionary<string, JsonElement> workflowState, IReadOnlyDictionary<string, JsonElement> payload, WorkflowBusinessReference? businessReference = null, IWorkflowFunctionRuntime? functionRuntime = null)

Creates a context.

Parameters

  • workflowName: The workflow name.
  • startRequest: The start request, when it is available.
  • workflowState: The workflow state.
  • payload: The payload being handled.
  • businessReference: The business reference; normalized.
  • functionRuntime: Runs the expression functions, when there is one.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; }

The business reference of the instance.

property FunctionRuntime #

public IWorkflowFunctionRuntime? FunctionRuntime { get; }

Runs the expression functions.

property Payload #

public IReadOnlyDictionary<string, JsonElement> Payload { get; }

The payload being handled, such as a task completion.

property PayloadValues #

public WorkflowValueDictionary PayloadValues { get; }

The payload as a value dictionary; a missing key raises an error.

property ResultValues #

public IReadOnlyDictionary<string, JsonElement> ResultValues { get; }

The kept step results, by key; keys compare ignoring case.

property StartRequest #

public TStartRequest? StartRequest { get; }

The start request, when it is available.

property StateValues #

public WorkflowValueDictionary StateValues { get; }

The workflow state as a value dictionary; a missing key raises an error.

property WorkflowName #

public string WorkflowName { get; }

The workflow name.

property WorkflowState #

public Dictionary<string, JsonElement> WorkflowState { get; }

The workflow state, which steps change.

method CompareValue(WorkflowValueSource, string, object) #

public bool CompareValue(WorkflowValueSource source, string key, object? expectedValue)

Whether a payload or state value equals a value: a missing or null value equals null, and text compares ignoring case.

Parameters

  • source: Where the value is read.
  • key: The key.
  • expectedValue: The value to compare with.

Returns

Whether the values are equal.

method GetOptionalResult<TResponse>(string) #

public TResponse? GetOptionalResult<TResponse>(string resultKey)

Returns a kept result, or the default when none is kept under the key.

Type parameters

  • TResponse: The result type.

Parameters

  • resultKey: The result key.

Returns

The result, or the default.

method GetRequiredResult<TResponse>(string) #

public TResponse GetRequiredResult<TResponse>(string resultKey)

Returns a kept result.

Type parameters

  • TResponse: The result type.

Parameters

  • resultKey: The result key.

Returns

The result.

Exceptions

  • InvalidOperationException: No result is kept under the key.

method GetRequiredStartRequest() #

public TStartRequest GetRequiredStartRequest()

Returns the start request.

Returns

The start request.

Exceptions

  • InvalidOperationException: The start request is not available.

method SetBusinessReference(WorkflowBusinessReference) #

public void SetBusinessReference(WorkflowBusinessReference? businessReference)

Replaces the business reference.

Parameters

  • businessReference: The business reference; normalized.

method SetResult(string, JsonElement) #

public void SetResult(string resultKey, JsonElement value)

Keeps a result under a key, replacing any.

Parameters

  • resultKey: The result key.
  • value: The result.

record WorkflowStartExecutionContext

public sealed record WorkflowStartExecutionContext

What an execution handler gets to start an instance.

Members

MemberKindSummary
WorkflowStartExecutionContext()constructorCreates an instance of WorkflowStartExecutionContext.
BusinessReferencepropertyThe business reference.
DefinitionpropertyThe definition descriptor.
PayloadpropertyThe start payload.
RegistrationpropertyThe workflow registration.
StartRequestpropertyThe typed start request.
GetRequiredStartRequest<TStartRequest>()methodReturns the start request as its type.

constructor WorkflowStartExecutionContext() #

public WorkflowStartExecutionContext()

Creates an instance of WorkflowStartExecutionContext.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference.

property Definition #

public required WorkflowDefinitionDescriptor Definition { get; init; }

The definition descriptor.

property Payload #

public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }

The start payload.

property Registration #

public required WorkflowRegistration Registration { get; init; }

The workflow registration.

property StartRequest #

public object? StartRequest { get; init; }

The typed start request.

method GetRequiredStartRequest<TStartRequest>() #

public TStartRequest GetRequiredStartRequest<TStartRequest>() where TStartRequest : class

Returns the start request as its type.

Type parameters

  • TStartRequest: The start request type.

Returns

The start request.

record WorkflowStartExecutionPlan

public sealed record WorkflowStartExecutionPlan

What starting an instance does: its status, state, tasks, signals and continuations.

Members

MemberKindSummary
WorkflowStartExecutionPlan()constructorCreates an instance of WorkflowStartExecutionPlan.
BusinessReferencepropertyThe business reference after the step.
ContinuationspropertyThe workflows to start next.
DeduplicationpropertyWith StartWorkflowDeduplication.OpenBusinessKeyand a business key, the projection store holds the instance’s open-business-key slot while it is open; when another start holds it, the store returns that instance with StartWorkflowResponse.Deduplicatedinstead of creating one, or, when it cannot, throws WorkflowStoreDuplicateExceptionwith WorkflowOpenBusinessKeySlot.AlreadyOpenCode.
InstanceStatuspropertyThe instance status after the start; Open by default.
PendingSignalspropertyThe signals to wait for or send.
TaskspropertyThe tasks to open.
WorkflowStatepropertyThe workflow state after the step.

constructor WorkflowStartExecutionPlan() #

public WorkflowStartExecutionPlan()

Creates an instance of WorkflowStartExecutionPlan.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference after the step.

property Continuations #

public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }

The workflows to start next.

property Deduplication #

public StartWorkflowDeduplication Deduplication { get; init; }

With StartWorkflowDeduplication.OpenBusinessKeyand a business key, the projection store holds the instance’s open-business-key slot while it is open; when another start holds it, the store returns that instance with StartWorkflowResponse.Deduplicatedinstead of creating one, or, when it cannot, throws WorkflowStoreDuplicateExceptionwith WorkflowOpenBusinessKeySlot.AlreadyOpenCode.

property InstanceStatus #

public string InstanceStatus { get; init; }

The instance status after the start; Open by default.

property PendingSignals #

public IReadOnlyCollection<WorkflowPendingSignalPlan> PendingSignals { get; init; }

The signals to wait for or send.

property Tasks #

public IReadOnlyCollection<WorkflowExecutionTaskPlan> Tasks { get; init; }

The tasks to open.

property WorkflowState #

public IReadOnlyDictionary<string, JsonElement> WorkflowState { get; init; }

The workflow state after the step.

record WorkflowStartReceipt

public sealed record WorkflowStartReceipt

The durable decision taken for one start request, with the canonical result once there is one.

Members

MemberKindSummary
WorkflowStartReceipt()constructorCreates an instance of WorkflowStartReceipt.
AssociationGenerationpropertyThe generation of the association.
AssociationIdpropertyThe association.
AssociationSha256propertyThe SHA-256 of the association.
BusinessReferenceSha256propertyThe SHA-256 of the business reference.
CallerIdempotencySha256propertyThe SHA-256 of the caller’s idempotency key.
CanonicalRequestJsonpropertyThe canonical request, as JSON.
CanonicalResultJsonpropertyThe canonical result, as JSON, once there is one.
DecidedAtUtcpropertyWhen the decision was taken, in UTC.
DefinitionCodepropertyThe workflow definition.
DefinitionSha256propertyThe SHA-256 of the definition.
DefinitionVersionpropertyThe definition version.
DispositionpropertyThe start decision.
ExecutionVersionpropertyThe execution version the start created.
FirstEventSequencepropertyThe sequence of the first history event.
ResultEventIdpropertyThe result event, once there is one.
ResultSha256propertyThe SHA-256 of the result.
RootScopeExecutionIdpropertyThe root scope.
SafeCodepropertyThe safe refusal code, when the start was refused.
StartRequestIdpropertyThe start request.
StartRequestSha256propertyThe SHA-256 of the start request.
WorkflowExecutionIdpropertyThe execution (workflow instance).

constructor WorkflowStartReceipt() #

public WorkflowStartReceipt()

Creates an instance of WorkflowStartReceipt.

property AssociationGeneration #

public long AssociationGeneration { get; init; }

The generation of the association.

property AssociationId #

public required string AssociationId { get; init; }

The association.

property AssociationSha256 #

public required string AssociationSha256 { get; init; }

The SHA-256 of the association.

property BusinessReferenceSha256 #

public string? BusinessReferenceSha256 { get; init; }

The SHA-256 of the business reference.

property CallerIdempotencySha256 #

public string? CallerIdempotencySha256 { get; init; }

The SHA-256 of the caller’s idempotency key.

property CanonicalRequestJson #

public string? CanonicalRequestJson { get; init; }

The canonical request, as JSON.

property CanonicalResultJson #

public string? CanonicalResultJson { get; init; }

The canonical result, as JSON, once there is one.

property DecidedAtUtc #

public DateTime DecidedAtUtc { get; init; }

When the decision was taken, in UTC.

property DefinitionCode #

public string? DefinitionCode { get; init; }

The workflow definition.

property DefinitionSha256 #

public string? DefinitionSha256 { get; init; }

The SHA-256 of the definition.

property DefinitionVersion #

public string? DefinitionVersion { get; init; }

The definition version.

property Disposition #

public required string Disposition { get; init; }

The start decision.

property ExecutionVersion #

public long? ExecutionVersion { get; init; }

The execution version the start created.

property FirstEventSequence #

public long? FirstEventSequence { get; init; }

The sequence of the first history event.

property ResultEventId #

public string? ResultEventId { get; init; }

The result event, once there is one.

property ResultSha256 #

public string? ResultSha256 { get; init; }

The SHA-256 of the result.

property RootScopeExecutionId #

public required string RootScopeExecutionId { get; init; }

The root scope.

property SafeCode #

public string? SafeCode { get; init; }

The safe refusal code, when the start was refused.

property StartRequestId #

public required string StartRequestId { get; init; }

The start request.

property StartRequestSha256 #

public required string StartRequestSha256 { get; init; }

The SHA-256 of the start request.

property WorkflowExecutionId #

public required string WorkflowExecutionId { get; init; }

The execution (workflow instance).

record WorkflowStateAssignmentStepDefinition<TStartRequest>

public sealed record WorkflowStateAssignmentStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Sets a state value.

Parameters

  • Key: The state key.
  • ValueFactory: Computes the value.
  • OnlyWhenHasValue: Whether to set the value only when it is set: not null and not an empty or white-space string.

Members

MemberKindSummary
WorkflowStateAssignmentStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, bool)constructorSets a state value.
KeypropertyThe state key.
OnlyWhenHasValuepropertyWhether to set the value only when it is set: not null and not an empty or white-space string.
ValueExpressionpropertyThe value as an expression, for the canonical definition.
ValueFactorypropertyComputes the value.

constructor WorkflowStateAssignmentStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, bool) #

public WorkflowStateAssignmentStepDefinition(string Key, Func<WorkflowSpecExecutionContext<TStartRequest>, object?> ValueFactory, bool OnlyWhenHasValue)

Sets a state value.

Parameters

  • Key: The state key.
  • ValueFactory: Computes the value.
  • OnlyWhenHasValue: Whether to set the value only when it is set: not null and not an empty or white-space string.

property Key #

public string Key { get; init; }

The state key.

property OnlyWhenHasValue #

public bool OnlyWhenHasValue { get; init; }

Whether to set the value only when it is set: not null and not an empty or white-space string.

property ValueExpression #

public WorkflowExpressionDefinition? ValueExpression { get; init; }

The value as an expression, for the canonical definition.

property ValueFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> ValueFactory { get; init; }

Computes the value.

class WorkflowStateJsonPolicy

public sealed class WorkflowStateJsonPolicy : IWorkflowStateJsonPolicy

The state limits of WorkflowRuntime:StateJson.

Parameters

  • options: The limits.

Members

MemberKindSummary
WorkflowStateJsonPolicy(IOptions<WorkflowStateJsonPolicyOptions>)constructorThe state limits of WorkflowRuntime:StateJson.
Validate(string)methodChecks a state against the limits.
Validate(string, WorkflowStateJsonPolicyOptions)methodChecks a state against given limits.

constructor WorkflowStateJsonPolicy(IOptions<WorkflowStateJsonPolicyOptions>) #

public WorkflowStateJsonPolicy(IOptions<WorkflowStateJsonPolicyOptions> options)

The state limits of WorkflowRuntime:StateJson.

Parameters

  • options: The limits.

method Validate(string) #

public void Validate(string stateJson)

Checks a state against the limits.

Parameters

  • stateJson: The state, as JSON.

Exceptions

  • InvalidOperationException: The state breaks a limit; the message is the WORKFLOW_STATE_JSON_* code.

method Validate(string, WorkflowStateJsonPolicyOptions) #

public static void Validate(string stateJson, WorkflowStateJsonPolicyOptions options)

Checks a state against given limits.

Parameters

  • stateJson: The state, as JSON.
  • options: The limits.

Exceptions

  • InvalidOperationException: The state breaks a limit; the message is the WORKFLOW_STATE_JSON_* code.

class WorkflowStateJsonPolicyOptions

public sealed class WorkflowStateJsonPolicyOptions

Limits of the workflow state JSON (WorkflowRuntime:StateJson). A state that breaks one is refused with a WORKFLOW_STATE_JSON_* code.

Members

MemberKindSummary
WorkflowStateJsonPolicyOptions()constructorCreates an instance of WorkflowStateJsonPolicyOptions.
SectionNameconstantThe configuration section the options bind from: WorkflowRuntime:StateJson.
ForbiddenFragmentspropertyProperty-name fragments that must never reach persisted state.
MaxArrayItemspropertyThe most items in one array.
MaxBytespropertyThe largest state, in UTF-8 bytes; a value below 1024 refuses every state.
MaxDepthpropertyThe deepest nesting of objects and arrays.
MaxStringLengthpropertyThe longest string value, in characters.

constructor WorkflowStateJsonPolicyOptions() #

public WorkflowStateJsonPolicyOptions()

Creates an instance of WorkflowStateJsonPolicyOptions.

constant SectionName #

public const string SectionName = "WorkflowRuntime:StateJson"

The configuration section the options bind from: WorkflowRuntime:StateJson.

property ForbiddenFragments #

public List<string> ForbiddenFragments { get; set; }

Property-name fragments that must never reach persisted state. Names are compared lower-cased, with ‘_’ and ‘-’ removed. Map items and attempt history live in their own tables, not in state.

property MaxArrayItems #

public int MaxArrayItems { get; set; }

The most items in one array. The default is 256.

property MaxBytes #

public int MaxBytes { get; set; }

The largest state, in UTF-8 bytes; a value below 1024 refuses every state. The default is 262144; the WORKFLOW_STATE_JSON_MAX_BYTES setting overrides it.

property MaxDepth #

public int MaxDepth { get; set; }

The deepest nesting of objects and arrays. The default is 16.

property MaxStringLength #

public int MaxStringLength { get; set; }

The longest string value, in characters. The default is 4096.

record WorkflowStepDefinition<TStartRequest>

public abstract record WorkflowStepDefinition<TStartRequest> where TStartRequest : class

A step of a workflow, as the builder produces it.

Parameters

  • DisplayName: The label of the step in diagrams.

Members

MemberKindSummary
WorkflowStepDefinition(string)constructorA step of a workflow, as the builder produces it.
DisplayNamepropertyThe label of the step in diagrams.
StepIdpropertyThe stable identifier of the step in the definition, assigned when the definition is built.

constructor WorkflowStepDefinition(string) #

protected WorkflowStepDefinition(string? DisplayName)

A step of a workflow, as the builder produces it.

Parameters

  • DisplayName: The label of the step in diagrams.

property DisplayName #

public string? DisplayName { get; init; }

The label of the step in diagrams.

property StepId #

public string? StepId { get; set; }

The stable identifier of the step in the definition, assigned when the definition is built.

class WorkflowStepSequence<TStartRequest>

public sealed class WorkflowStepSequence<TStartRequest> where TStartRequest : class

A sequence of steps.

Members

MemberKindSummary
WorkflowStepSequence(IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>>)constructorCreates a sequence.
EmptypropertyThe empty sequence.
StepspropertyThe steps, run in order.

constructor WorkflowStepSequence(IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>>) #

public WorkflowStepSequence(IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>> steps)

Creates a sequence.

Parameters

  • steps: The steps, run in order.

property Empty #

public static WorkflowStepSequence<TStartRequest> Empty { get; }

The empty sequence.

property Steps #

public IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>> Steps { get; }

The steps, run in order.

class WorkflowStoreConcurrencyException

public sealed class WorkflowStoreConcurrencyException : Exception

A durable store refused a write because the row changed since it was read (version or fence mismatch). Each backend maps its native optimistic-concurrency failure to this exception.

Members

MemberKindSummary
WorkflowStoreConcurrencyException(string, Exception)constructorA durable store refused a write because the row changed since it was read (version or fence mismatch).

constructor WorkflowStoreConcurrencyException(string, Exception) #

public WorkflowStoreConcurrencyException(string message, Exception? innerException = null)

A durable store refused a write because the row changed since it was read (version or fence mismatch). Each backend maps its native optimistic-concurrency failure to this exception.

class WorkflowStoreDuplicateException

public sealed class WorkflowStoreDuplicateException : Exception

A durable store refused a write because a row with the same key already exists. Each backend maps its native unique-key violation to this exception.

Members

MemberKindSummary
WorkflowStoreDuplicateException(string, Exception)constructorA durable store refused a write because a row with the same key already exists.

constructor WorkflowStoreDuplicateException(string, Exception) #

public WorkflowStoreDuplicateException(string message, Exception? innerException = null)

A durable store refused a write because a row with the same key already exists. Each backend maps its native unique-key violation to this exception.

record WorkflowSubWorkflowStepDefinition<TStartRequest>

public sealed record WorkflowSubWorkflowStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Runs another workflow as a child and waits for it.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • StartWorkflowRequestFactory: Builds the start request of the workflow to run.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.

Members

MemberKindSummary
WorkflowSubWorkflowStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest>, string)constructorRuns another workflow as a child and waits for it.
FailureHandlerspropertyRuns when the child workflow fails or ends in a status other than completed.
InvocationDeclarationpropertyThe child workflow, for the canonical definition.
ResultKeypropertyThe key the result is kept under (result.<key>); not kept when not set.
StartWorkflowRequestFactorypropertyBuilds the start request of the workflow to run.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowSubWorkflowStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest>, string) #

public WorkflowSubWorkflowStepDefinition(string StepName, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest> StartWorkflowRequestFactory, string? ResultKey)

Runs another workflow as a child and waits for it.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • StartWorkflowRequestFactory: Builds the start request of the workflow to run.
  • ResultKey: The key the result is kept under (result.<key>); not kept when not set.

property FailureHandlers #

public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }

Runs when the child workflow fails or ends in a status other than completed. Only the failure branch is used; a sub-workflow has no timeout of its own.

property InvocationDeclaration #

public WorkflowWorkflowInvocationDeclaration? InvocationDeclaration { get; init; }

The child workflow, for the canonical definition.

property ResultKey #

public string? ResultKey { get; init; }

The key the result is kept under (result.<key>); not kept when not set.

property StartWorkflowRequestFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest> StartWorkflowRequestFactory { get; init; }

Builds the start request of the workflow to run.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

enum WorkflowTaskAction

public enum WorkflowTaskAction

An action on a human task that needs permission.

ValueDescription
AssignSelf = 0The actor assigns the task to themselves.
AssignOther = 1The actor assigns the task to another user.
AssignRoles = 2The actor assigns the task to roles.
Release = 3The actor releases the task.
Complete = 4The actor completes the task.

record WorkflowTaskCompletionPlan

public sealed record WorkflowTaskCompletionPlan

What completing a task or resuming an instance does.

Members

MemberKindSummary
WorkflowTaskCompletionPlan()constructorCreates an instance of WorkflowTaskCompletionPlan.
BusinessReferencepropertyThe business reference after the step.
CancelledTaskTokenspropertyRuntime task tokens of open tasks the engine closed because another fork branch ended the fork.
ContinuationspropertyThe workflows to start next.
ExpiredTaskTokenspropertyRuntime task tokens of open tasks the engine closed because their timeout fired.
InstanceStatuspropertyThe instance status after the step; Completed by default.
NextTaskspropertyThe tasks to open next.
PendingSignalspropertyThe signals to wait for or send.
WorkflowStatepropertyThe workflow state after the step.

constructor WorkflowTaskCompletionPlan() #

public WorkflowTaskCompletionPlan()

Creates an instance of WorkflowTaskCompletionPlan.

property BusinessReference #

public WorkflowBusinessReference? BusinessReference { get; init; }

The business reference after the step.

property CancelledTaskTokens #

public IReadOnlyCollection<string> CancelledTaskTokens { get; init; }

Runtime task tokens of open tasks the engine closed because another fork branch ended the fork.

property Continuations #

public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }

The workflows to start next.

property ExpiredTaskTokens #

public IReadOnlyCollection<string> ExpiredTaskTokens { get; init; }

Runtime task tokens of open tasks the engine closed because their timeout fired.

property InstanceStatus #

public string InstanceStatus { get; init; }

The instance status after the step; Completed by default.

property NextTasks #

public IReadOnlyCollection<WorkflowExecutionTaskPlan> NextTasks { get; init; }

The tasks to open next.

property PendingSignals #

public IReadOnlyCollection<WorkflowPendingSignalPlan> PendingSignals { get; init; }

The signals to wait for or send.

property WorkflowState #

public IReadOnlyDictionary<string, JsonElement> WorkflowState { get; init; }

The workflow state after the step.

record WorkflowTaskExecutionContext

public sealed record WorkflowTaskExecutionContext

What an execution handler gets to complete a task.

Members

MemberKindSummary
WorkflowTaskExecutionContext()constructorCreates an instance of WorkflowTaskExecutionContext.
CurrentTaskpropertyThe task being completed.
DefinitionpropertyThe definition descriptor.
PayloadpropertyThe completion payload.
RegistrationpropertyThe workflow registration.
RuntimeInstanceIdpropertyThe runtime instance.
RuntimeStateJsonpropertyThe runtime state, as JSON.
WorkflowInstanceIdpropertyThe instance.
WorkflowStatepropertyThe workflow state.

constructor WorkflowTaskExecutionContext() #

public WorkflowTaskExecutionContext()

Creates an instance of WorkflowTaskExecutionContext.

property CurrentTask #

public required WorkflowTaskSummary CurrentTask { get; init; }

The task being completed.

property Definition #

public required WorkflowDefinitionDescriptor Definition { get; init; }

The definition descriptor.

property Payload #

public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }

The completion payload.

property Registration #

public required WorkflowRegistration Registration { get; init; }

The workflow registration.

property RuntimeInstanceId #

public string? RuntimeInstanceId { get; init; }

The runtime instance.

property RuntimeStateJson #

public string? RuntimeStateJson { get; init; }

The runtime state, as JSON.

property WorkflowInstanceId #

public required string WorkflowInstanceId { get; init; }

The instance.

property WorkflowState #

public IReadOnlyDictionary<string, JsonElement> WorkflowState { get; init; }

The workflow state.

record WorkflowTerminalInboxEntry

public sealed record WorkflowTerminalInboxEntry

A received prestart terminal command and the acknowledgement it was answered with, for exact replay.

Members

MemberKindSummary
WorkflowTerminalInboxEntry()constructorCreates an instance of WorkflowTerminalInboxEntry.
AckEventIdpropertyThe acknowledgement.
AckSha256propertyThe SHA-256 of the acknowledgement.
CanonicalAckJsonpropertyThe canonical acknowledgement, as JSON.
CanonicalCommandJsonpropertyThe canonical command, as JSON.
CommandEventIdpropertyThe command.
CommandSha256propertyThe SHA-256 of the command.
DispositionpropertyHow the command was handled.
ReceivedAtUtcpropertyWhen it was received, in UTC.
StartRequestIdpropertyThe start request.

constructor WorkflowTerminalInboxEntry() #

public WorkflowTerminalInboxEntry()

Creates an instance of WorkflowTerminalInboxEntry.

property AckEventId #

public required string AckEventId { get; init; }

The acknowledgement.

property AckSha256 #

public required string AckSha256 { get; init; }

The SHA-256 of the acknowledgement.

property CanonicalAckJson #

public required string CanonicalAckJson { get; init; }

The canonical acknowledgement, as JSON.

property CanonicalCommandJson #

public required string CanonicalCommandJson { get; init; }

The canonical command, as JSON.

property CommandEventId #

public required string CommandEventId { get; init; }

The command.

property CommandSha256 #

public required string CommandSha256 { get; init; }

The SHA-256 of the command.

property Disposition #

public required string Disposition { get; init; }

How the command was handled.

property ReceivedAtUtc #

public DateTime ReceivedAtUtc { get; init; }

When it was received, in UTC.

property StartRequestId #

public required string StartRequestId { get; init; }

The start request.

record WorkflowTerminateForkStepDefinition<TStartRequest>

public sealed record WorkflowTerminateForkStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Ends the fork whose branch reaches it.

Members

MemberKindSummary
WorkflowTerminateForkStepDefinition()constructorEnds the fork whose branch reaches it.

constructor WorkflowTerminateForkStepDefinition() #

public WorkflowTerminateForkStepDefinition()

Ends the fork whose branch reaches it.

class WorkflowTimeoutDefaults

public static class WorkflowTimeoutDefaults

Default timeout values used across the workflow engine when no explicit timeout is specified.

Members

MemberKindSummary
DefaultTimeoutForServiceTaskCallsSecondsconstantDefault timeout for service task (transport call) steps in seconds.
DefaultTransportTimeoutSecondsconstantDefault transport-level timeout in seconds, used as fallback when transport options do not specify a timeout.

constant DefaultTimeoutForServiceTaskCallsSeconds #

public const int DefaultTimeoutForServiceTaskCallsSeconds = 3600

Default timeout for service task (transport call) steps in seconds. Applied when neither the step declaration nor the transport configuration specifies a timeout. Value: 3600 seconds (1 hour).

constant DefaultTransportTimeoutSeconds #

public const int DefaultTransportTimeoutSeconds = 30

Default transport-level timeout in seconds, used as fallback when transport options do not specify a timeout. Value: 30 seconds.

class WorkflowTimerDelay

public static class WorkflowTimerDelay

The delay of a timer step (Wait(stepName, delayExpression)), from the value its delay expression evaluates to; both runtime providers read a delay this way. A number, or a string of digits, is a number of milliseconds: 60000 and "60000" are one minute. Any other string is a time span in the invariant form [-][d.]hh:mm:ss[.fffffff], whatever the current culture: "00:01:00" is one minute and "1.00:00:00" one day. A TimeSpan is taken as it is.

Members

MemberKindSummary
FromValue(object)methodConverts the value of a timer delay expression to a delay.

method FromValue(object) #

public static TimeSpan FromValue(object? value)

Converts the value of a timer delay expression to a delay.

Parameters

  • value: The value the delay expression evaluated to.

Returns

The delay.

Exceptions

  • InvalidOperationException: The value is none of the accepted forms.

record WorkflowTimerStepDefinition<TStartRequest>

public sealed record WorkflowTimerStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class

Pauses the instance for a delay.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • DelayFactory: Computes the delay.

Members

MemberKindSummary
WorkflowTimerStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan>)constructorPauses the instance for a delay.
DelayExpressionpropertyThe delay as an expression, for the canonical definition.
DelayFactorypropertyComputes the delay.
StepNamepropertyThe step name, shown in diagrams and in result.lastFailure.

constructor WorkflowTimerStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan>) #

public WorkflowTimerStepDefinition(string StepName, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan> DelayFactory)

Pauses the instance for a delay.

Parameters

  • StepName: The step name, shown in diagrams and in result.lastFailure.
  • DelayFactory: Computes the delay.

property DelayExpression #

public WorkflowExpressionDefinition? DelayExpression { get; init; }

The delay as an expression, for the canonical definition.

property DelayFactory #

public Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan> DelayFactory { get; init; }

Computes the delay.

property StepName #

public string StepName { get; init; }

The step name, shown in diagrams and in result.lastFailure.

class WorkflowTrustedAssemblyAttribute

public sealed class WorkflowTrustedAssemblyAttribute : Attribute

Marks an assembly as a trusted workflow-authoring assembly for the workflow canonicality analyzer (WF001-WF010).

Applies to: Assembly. Allow multiple: no. Inherited: no.

Remarks

Workflow definitions must be declarative so they can be canonicalized to JSON and replayed deterministically. The analyzer therefore rejects imperative C# inside a workflow Spec and refuses to trust calls it cannot walk.

Types in a trusted assembly are treated as canonicalizable leaves: the analyzer allows calls to them, instantiation of them, and member reads on them without walking their bodies. Helper methods that return a type from a trusted assembly are also exempt from WF010, because such a helper is a compile-time construction factory whose body is metaprogramming that runs once while the Spec is built, not runtime workflow logic.

The analyzer trusts the StellaOps.Workflow.* assemblies by default. Any other assembly that supplies workflow builder, expression, spec, or task-definition types opts in by applying this attribute to itself:

[assembly: StellaOps.Workflow.Abstractions.WorkflowTrustedAssembly]

Apply this only to an assembly whose public surface is compile-time workflow construction. Trusting an assembly that performs runtime work suppresses the diagnostics that keep workflow definitions replayable.

An assembly that cannot be annotated — a third-party binary you do not build — can be trusted instead through the stellaops_workflow_trusted_assembly_prefixes analyzer configuration option.

Members

MemberKindSummary
WorkflowTrustedAssemblyAttribute()constructorCreates an instance of WorkflowTrustedAssemblyAttribute.

constructor WorkflowTrustedAssemblyAttribute() #

public WorkflowTrustedAssemblyAttribute()

Creates an instance of WorkflowTrustedAssemblyAttribute.

struct WorkflowValue

public readonly struct WorkflowValue : IEquatable<WorkflowValue>

One workflow value; converting it to a type it cannot take raises the missing-value error.

Parameters

  • Key: The key.
  • WorkflowName: The workflow, for the error.
  • MissingMessageKey: The message id of the error.
  • Value: The value.

Members

MemberKindSummary
WorkflowValue(string, string, string, JsonElement)constructorOne workflow value; converting it to a type it cannot take raises the missing-value error.
KeypropertyThe key.
MissingMessageKeypropertyThe message id of the error.
ValuepropertyThe value.
WorkflowNamepropertyThe workflow, for the error.
Get<T>()methodConverts the value.

constructor WorkflowValue(string, string, string, JsonElement) #

public WorkflowValue(string Key, string WorkflowName, string MissingMessageKey, JsonElement Value)

One workflow value; converting it to a type it cannot take raises the missing-value error.

Parameters

  • Key: The key.
  • WorkflowName: The workflow, for the error.
  • MissingMessageKey: The message id of the error.
  • Value: The value.

property Key #

public string Key { get; init; }

The key.

property MissingMessageKey #

public string MissingMessageKey { get; init; }

The message id of the error.

property Value #

public JsonElement Value { get; init; }

The value.

property WorkflowName #

public string WorkflowName { get; init; }

The workflow, for the error.

method Get<T>() #

public T Get<T>()

Converts the value.

Type parameters

  • T: The target type.

Returns

The converted value.

Exceptions

class WorkflowValueConditionDefinition<TStartRequest>

public sealed class WorkflowValueConditionDefinition<TStartRequest> : WorkflowConditionDefinition<TStartRequest> where TStartRequest : class

A condition that a payload or state value equals a value.

Members

MemberKindSummary
WorkflowValueConditionDefinition(WorkflowValueSource, string, object, string)constructorCreates the condition.
CanonicalExpressionpropertyThe condition as an expression, for the canonical definition; none for a delegate.
ExpectedValuepropertyThe value to compare with.
KeypropertyThe key.
SourcepropertyWhere the value is read.
Evaluate(WorkflowSpecExecutionContext<TStartRequest>)methodEvaluates the condition.

constructor WorkflowValueConditionDefinition(WorkflowValueSource, string, object, string) #

public WorkflowValueConditionDefinition(WorkflowValueSource source, string key, object? expectedValue, string displayName)

Creates the condition.

Parameters

  • source: Where the value is read.
  • key: The key.
  • expectedValue: The value to compare with.
  • displayName: The label of the decision in diagrams.

property CanonicalExpression #

public override WorkflowExpressionDefinition CanonicalExpression { get; }

The condition as an expression, for the canonical definition; none for a delegate.

property ExpectedValue #

public object? ExpectedValue { get; }

The value to compare with.

property Key #

public string Key { get; }

The key.

property Source #

public WorkflowValueSource Source { get; }

Where the value is read.

method Evaluate(WorkflowSpecExecutionContext<TStartRequest>) #

public override bool Evaluate(WorkflowSpecExecutionContext<TStartRequest> context)

Evaluates the condition.

Parameters

  • context: The execution context.

Returns

Whether it holds.

struct WorkflowValueDictionary

public readonly struct WorkflowValueDictionary : IEquatable<WorkflowValueDictionary>

Workflow values by key; a missing key raises an error that names the key and the workflow.

Parameters

  • Values: The values.
  • WorkflowName: The workflow, for the error.
  • MissingMessageKey: The message id of the error.

Members

MemberKindSummary
WorkflowValueDictionary(IReadOnlyDictionary<string, JsonElement>, string, string)constructorWorkflow values by key; a missing key raises an error that names the key and the workflow.
MissingMessageKeypropertyThe message id of the error.
ValuespropertyThe values.
WorkflowNamepropertyThe workflow, for the error.
this[string]indexerReturns the value of a key.

constructor WorkflowValueDictionary(IReadOnlyDictionary<string, JsonElement>, string, string) #

public WorkflowValueDictionary(IReadOnlyDictionary<string, JsonElement> Values, string WorkflowName, string MissingMessageKey)

Workflow values by key; a missing key raises an error that names the key and the workflow.

Parameters

  • Values: The values.
  • WorkflowName: The workflow, for the error.
  • MissingMessageKey: The message id of the error.

property MissingMessageKey #

public string MissingMessageKey { get; init; }

The message id of the error.

property Values #

public IReadOnlyDictionary<string, JsonElement> Values { get; init; }

The values.

property WorkflowName #

public string WorkflowName { get; init; }

The workflow, for the error.

indexer this[string] #

public WorkflowValue this[string key] { get; }

Returns the value of a key.

Parameters

  • key: The key.

Returns

The value.

Exceptions

record WorkflowValueEqualsConditionDefinition

public sealed record WorkflowValueEqualsConditionDefinition

A condition that a payload or state value equals a value.

Parameters

  • Source: Where the value is read: the payload or the state.
  • Key: The state key.
  • ExpectedValue: The value to compare with.
  • DisplayName: The label of the step in diagrams.

Members

MemberKindSummary
WorkflowValueEqualsConditionDefinition(WorkflowValueSource, string, object, string)constructorA condition that a payload or state value equals a value.
CanonicalExpressionpropertyThe condition as an eq expression over payload.<key> or state.<key>.
DisplayNamepropertyThe label of the step in diagrams.
ExpectedValuepropertyThe value to compare with.
KeypropertyThe state key.
SourcepropertyWhere the value is read: the payload or the state.

constructor WorkflowValueEqualsConditionDefinition(WorkflowValueSource, string, object, string) #

public WorkflowValueEqualsConditionDefinition(WorkflowValueSource Source, string Key, object? ExpectedValue, string DisplayName)

A condition that a payload or state value equals a value.

Parameters

  • Source: Where the value is read: the payload or the state.
  • Key: The state key.
  • ExpectedValue: The value to compare with.
  • DisplayName: The label of the step in diagrams.

property CanonicalExpression #

public WorkflowExpressionDefinition CanonicalExpression { get; }

The condition as an eq expression over payload.<key> or state.<key>.

property DisplayName #

public string DisplayName { get; init; }

The label of the step in diagrams.

property ExpectedValue #

public object? ExpectedValue { get; init; }

The value to compare with.

property Key #

public string Key { get; init; }

The state key.

property Source #

public WorkflowValueSource Source { get; init; }

Where the value is read: the payload or the state.

class WorkflowValueNotFoundException

public class WorkflowValueNotFoundException : InvalidOperationException

Raised when a workflow value is missing or cannot take the requested type.

Members

MemberKindSummary
WorkflowValueNotFoundException(string, params object[])constructorCreates the exception.
MessageKeypropertyThe message id.

constructor WorkflowValueNotFoundException(string, params object[]) #

public WorkflowValueNotFoundException(string messageKey, params object[] args)

Creates the exception.

Parameters

  • messageKey: The message id.
  • args: The interpolation arguments.

property MessageKey #

public string MessageKey { get; }

The message id.

enum WorkflowValueSource

public enum WorkflowValueSource

Where a value condition reads its value.

ValueDescription
Payload = 1The payload being handled.
State = 2The workflow state.

class WorkflowVersioning

public static class WorkflowVersioning

Parses and compares semantic workflow versions (major.minor.patch).

Members

MemberKindSummary
SemanticComparerpropertyCompares version text semantically.
FormatVersion(string, int)methodFormats a version with build metadata suffix.
GetBaseVersion(string)methodExtracts the base version (without build metadata) from a version string.
GetBuildIteration(string)methodExtracts the build iteration from a version string.
TryParseSemanticVersion(string, out Version)methodParses major.minor.patch version text.

property SemanticComparer #

public static IComparer<string> SemanticComparer { get; }

Compares version text semantically.

method FormatVersion(string, int) #

public static string FormatVersion(string baseVersion, int buildIteration)

Formats a version with build metadata suffix. FormatVersion(“1.0.0”, 0) returns “1.0.0”. FormatVersion(“1.0.0”, 2) returns “1.0.0+2”.

method GetBaseVersion(string) #

public static string GetBaseVersion(string version)

Extracts the base version (without build metadata) from a version string. “1.0.0+2” returns “1.0.0”. “1.0.0” returns “1.0.0”.

method GetBuildIteration(string) #

public static int GetBuildIteration(string version)

Extracts the build iteration from a version string. “1.0.0+2” returns 2. “1.0.0” returns 0.

method TryParseSemanticVersion(string, out Version) #

public static bool TryParseSemanticVersion(string? value, out Version version)

Parses major.minor.patch version text.

Parameters

  • value: The text.
  • version: The version, when valid.

Returns

Whether it is valid.

class WorkflowWebserviceServiceCollectionExtensions

public static class WorkflowWebserviceServiceCollectionExtensions

Extension methods for registering workflow webservice API implementations in DI.

Members

MemberKindSummary
AddWorkflowCanonicalDefinitionApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow canonical definition API.
AddWorkflowDefinitionDeploymentApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow definition deployment API.
AddWorkflowDefinitionQueryApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow definition query API.
AddWorkflowDiagramApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow diagram API.
AddWorkflowFunctionCatalogApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow function catalog API.
AddWorkflowRetentionApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow retention API.
AddWorkflowRuntimeApi<TImplementation>(IServiceCollection)extension methodRegisters a specific workflow webservice API interface.
AddWorkflowServiceMetadataApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow service metadata API.
AddWorkflowSignalDeadLetterApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow signal dead-letter API.
AddWorkflowSignalPumpTelemetryApi<TImplementation>(IServiceCollection)extension methodRegisters the workflow signal pump telemetry API.
AddWorkflowWebserviceApis<TRuntime>(IServiceCollection)extension methodRegisters all workflow webservice API interfaces using the provided implementation types.

extension method AddWorkflowCanonicalDefinitionApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowCanonicalDefinitionApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowCanonicalDefinitionApi

Registers the workflow canonical definition API.

extension method AddWorkflowDefinitionDeploymentApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowDefinitionDeploymentApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowDefinitionDeploymentApi

Registers the workflow definition deployment API.

extension method AddWorkflowDefinitionQueryApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowDefinitionQueryApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowDefinitionQueryApi

Registers the workflow definition query API.

extension method AddWorkflowDiagramApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowDiagramApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowDiagramApi

Registers the workflow diagram API.

extension method AddWorkflowFunctionCatalogApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowFunctionCatalogApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowFunctionCatalogApi

Registers the workflow function catalog API.

extension method AddWorkflowRetentionApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowRetentionApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowRetentionApi

Registers the workflow retention API.

extension method AddWorkflowRuntimeApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowRuntimeApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowRuntimeApi

Registers a specific workflow webservice API interface.

extension method AddWorkflowServiceMetadataApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowServiceMetadataApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowServiceMetadataApi

Registers the workflow service metadata API.

extension method AddWorkflowSignalDeadLetterApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowSignalDeadLetterApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowSignalDeadLetterApi

Registers the workflow signal dead-letter API.

extension method AddWorkflowSignalPumpTelemetryApi<TImplementation>(IServiceCollection) #

public static IServiceCollection AddWorkflowSignalPumpTelemetryApi<TImplementation>(this IServiceCollection services) where TImplementation : class, IWorkflowSignalPumpTelemetryApi

Registers the workflow signal pump telemetry API.

extension method AddWorkflowWebserviceApis<TRuntime>(IServiceCollection) #

public static IServiceCollection AddWorkflowWebserviceApis<TRuntime>(this IServiceCollection services) where TRuntime : class, IWorkflowRuntimeApi

Registers all workflow webservice API interfaces using the provided implementation types. Only interfaces whose implementations are supplied will be registered.