StellaOps.Workflow.Abstractions
Workflow abstractions: the declaration API that workflow definitions are written against and the extension points of the workflow engine. Install Installing Stella Ops packagesWorkflow downloads and signaturesnet10.01.0.1-20261118T121708Zdotnet add package StellaOps.
Namespaces
| Namespace | Types |
|---|---|
StellaOps. | 284 |
namespace StellaOps.Workflow.Abstractions
| Type | Kind | Description |
|---|---|---|
ActorContextWorkflowCallerIdentityAccessor | class | Default accessor: the caller the local HTTP endpoints put on the actor context; restore is a no-op. |
DefaultWorkflowCancellationCleanupPolicy | class | Starts the cleanup workflow whenever the cancel request names one. |
EndpointAddress | class | Address of an HTTP endpoint of a named service ("$type": "endpoint"): the host resolves EndpointAddress.to a base address and calls EndpointAddress.with EndpointAddress.. |
GraphqlAddress | class | The address of a GraphQL query ("$type": "graphql"): a named target and the query. |
HttpAddress | class | The address of a call of a named HTTP target ("$type": "http"). |
IDeclarativeWorkflow | interface | A workflow defined with the declarative builder. |
IDeclarativeWorkflow< | interface | A declarative workflow whose start request binds to TStartRequest. |
INamedWorkflowRenderGraphLayoutEngine | interface | A layout engine with a provider name, which Workflow selects. |
IWorkflow | interface | The contract every registrable workflow implements: its identity, the roles allowed to act on it, and the tasks it declares. |
IWorkflow< | interface | A workflow whose start payload binds to TStartRequest. |
IWorkflowActorRoleResolver | interface | Resolves the authenticated actor’s identity (ID + roles) from the server-side request context. |
IWorkflowAssignmentPermissionEvaluator | interface | Decides whether an actor may take an action on a task. |
IWorkflowBackendRegistrationMarker | interface | Registered by a store library. |
IWorkflowCallerIdentityAccessor | interface | The host’s view of who is calling. |
IWorkflowCancellationCleanupPolicy | interface | Decides whether cancelling an instance starts the cleanup workflow the cancel request names. |
IWorkflowCanonicalDefinitionApi | interface | Canonical workflow definition operations: retrieving the JSON schema and validating canonical definition payloads. |
IWorkflowChildLinkStore | interface | Durable child-workflow links. |
IWorkflowDefinitionCatalog | interface | The definition descriptors of the registered workflows. |
IWorkflowDefinitionDeploymentApi | interface | Workflow definition deployment operations: export, import, activate, version listing, single definition lookup, and rendering. |
IWorkflowDefinitionGovernanceStore | interface | A definition store that governs activations: the expected active version and hash, and authorized rollbacks. |
IWorkflowDefinitionQueryApi | interface | Workflow definition query operations: listing registered workflow definitions. |
IWorkflowDefinitionStore | interface | Persistent store for versioned canonical workflow definitions. |
IWorkflowDiagramApi | interface | Workflow diagram operations: retrieving the visual graph representation of a workflow. |
IWorkflowDurableMaintenanceStore | interface | Integrity probes over the durable execution rows, for scheduled maintenance. |
IWorkflowDurableStartStore | interface | Durable start coordination: start receipts, prestart terminal fences and the terminal inbox. |
IWorkflowEndpointTransport | interface | Calls an HTTP endpoint of a named service ("$type": "endpoint"). |
IWorkflowExecutionConsoleReadStore | interface | Read-only queries behind the execution console. |
IWorkflowExecutionHandler | interface | Runs a workflow: starts instances and completes their tasks. |
IWorkflowExecutionHandlerCatalog | interface | Finds the execution handler of a workflow version. |
IWorkflowExternalActivityRegistry | interface | The external activities the host’s signed manifest registers. |
IWorkflowExternalActivityStore | interface | Durable external activities: steps, attempts, the dispatch and cancel outboxes, the completion inbox, continuation lineages and scope reprocesses. |
IWorkflowFirstSeenLedger | interface | 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. |
IWorkflowFunctionCatalog | interface | The expression functions the engine knows. |
IWorkflowFunctionCatalogApi | interface | Workflow function catalog operations: retrieving the canonical function catalog and installed workflow modules. |
IWorkflowFunctionProvider | interface | Provides the functions of one module to the function catalog. |
IWorkflowFunctionRuntime | interface | Evaluates expression function calls. |
IWorkflowFunctionRuntimeProvider | interface | Evaluates the functions of one module. |
IWorkflowGraphqlTransport | interface | Runs GraphQL queries against named targets: the transport of a graphql address. |
IWorkflowHistoryStore | interface | Durable execution history. |
IWorkflowHostedJobLockService | interface | A lock that lets one service instance at a time run a hosted job. |
IWorkflowHttpTransport | interface | Calls named HTTP targets: the transport of an http address. |
IWorkflowMapStore | interface | Durable maps: map executions and their items. |
IWorkflowModuleCatalog | interface | The installed modules: those registered with WorkflowModuleCatalogServiceCollectionExtensions.and those the function providers declare. |
IWorkflowMutationCoordinator | interface | Begins the change scopes of the workflow store. |
IWorkflowMutationScope | interface | A unit of workflow store changes that commit together. |
IWorkflowMutationScopeAccessor | interface | Holds the change scope of the running operation. |
IWorkflowOutboxStore | interface | Delivery side of the durable outboxes: read what is ready, record each attempt, and compact what was delivered long ago. |
IWorkflowPendingSignalDispatcher | interface | Dispatches a pending signal that is not a plain signal-bus publish, such as a durable map completion or an external activity dispatch. |
IWorkflowProjectionRetentionStore | interface | Applies retention to the instance and task projections. |
IWorkflowProjectionStore | interface | The read model of instances and tasks, and the task operations that change it. |
IWorkflowRabbitTransport | interface | Publishes to RabbitMQ: the transport of a rabbit address. |
IWorkflowRegisteredSignalStore | interface | Durable registered signals: waits, their deadline timers and the signal inbox. |
IWorkflowRegistrationCatalog | interface | The workflows registered in code. |
IWorkflowRenderGraphCompiler | interface | Builds the render graph of a workflow definition. |
IWorkflowRenderGraphLayoutEngine | interface | Lays out a workflow render graph. |
IWorkflowRenderLayoutEngineResolver | interface | Selects the layout engine of a render request. |
IWorkflowRenderSvgRenderer | interface | Renders a positioned workflow diagram as an SVG document. |
IWorkflowRetentionApi | interface | Workflow retention operations: running cleanup and purge of stale workflow data. |
IWorkflowRuntimeApi | interface | Core workflow runtime operations: starting workflows, querying instances and tasks, completing/assigning/releasing tasks, and raising external signals. |
IWorkflowRuntimeDefinitionStore | interface | The workflows registered in code, as the engine runs them. |
IWorkflowRuntimeExecutionHandlerFactory | interface | Creates the execution handler of a runtime definition. |
IWorkflowRuntimeOrchestrator | interface | Runs the instances of a runtime provider: start, task completion and signal resume. |
IWorkflowRuntimeProvider | interface | A runtime orchestrator with a provider name. |
IWorkflowRuntimeStateStore | interface | Stores the runtime state of instances. |
IWorkflowScheduleBus | interface | Schedules signals for later. |
IWorkflowServiceMetadataApi | interface | Workflow service metadata operations: retrieving operational metadata about the running workflow service instance. |
IWorkflowSignalBus | interface | Publishes and delivers the signals of workflow instances. |
IWorkflowSignalClaimStore | interface | Claims stored signals for processing. |
IWorkflowSignalDeadLetterApi | interface | Workflow signal dead-letter operations: listing and replaying dead-lettered signals. |
IWorkflowSignalDeadLetterStore | interface | Lists and replays the dead-lettered signals of a store. |
IWorkflowSignalDriver | interface | Wakes the signal consumers when a signal is stored, and hands them signals to process. |
IWorkflowSignalDriverRegistrationMarker | interface | Registered by a signal driver library. |
IWorkflowSignalLease | interface | A claimed signal: complete it when it is processed, abandon it to let it be claimed again, or dead-letter it. |
IWorkflowSignalProcessor | interface | Applies a signal to its workflow instance. |
IWorkflowSignalPumpTelemetryApi | interface | Workflow signal pump telemetry operations: retrieving in-process statistics for the workflow signal pump. |
IWorkflowSignalResumableExecutionHandler | interface | An execution handler that also resumes instances with signals. |
IWorkflowSignalScheduler | interface | Schedules signals for later, such as the signal of a timer. |
IWorkflowSignalStore | interface | Stores signals and dead letters. |
IWorkflowSourceFormatConverter | interface | Converts workflow definitions between a source format and the canonical JSON shape used by the engine’s import / export pipeline. |
IWorkflowSourceFormatRegistry | interface | Resolves converters by IWorkflowSourceFormatConverter.; used by the multi-format import / export endpoints to dispatch to the right converter. |
IWorkflowSpecExecutionContext | interface | The execution context of a workflow, without its start request type. |
IWorkflowStateJsonPolicy | interface | Checks the workflow state JSON against the limits before it is stored. |
IWorkflowWakeOutbox | interface | The outbox of wake notifications, for a driver whose dispatch mode is WorkflowSignalDriverDispatchMode.. |
IWorkflowWakeOutboxLease | interface | A claimed wake notification of the outbox. |
IWorkflowWakeOutboxReceiver | interface | Claims the wake notifications of the outbox. |
NoopWorkflowExecutionHandler | class | A placeholder handler for registrations whose steps the engine runs from their definition. |
NullWorkflowActorRoleResolver | class | Default no-op resolver that passes through client-supplied values. |
RabbitAddress | class | The address of a RabbitMQ call: the exchange and routing key the message is published to. |
RequiredPayloadKeyCancellationCleanupPolicy | class | 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. |
WorkflowActivateTaskStepDefinition< | record | Opens a declared human task. |
WorkflowActivityAttempt | record | One semantic attempt of a step, with its frozen request and how it completed. |
WorkflowActivityCancelEntry | record | An activity cancel request waiting in, or delivered from, the cancel outbox. |
WorkflowActivityCompletionEntry | record | A received activity completion and the disposition it was recorded with. |
WorkflowActivityDispatchEntry | record | An activity dispatch request waiting in, or delivered from, the dispatch outbox. |
WorkflowActivityEventAppend | record | An execution-history event to append. |
WorkflowActivityMapItemState | record | The status fields of a map item that a stop may skip. |
WorkflowActivityMapItemStatusChange | record | A map item moved to a terminal status; applied only at WorkflowActivityMapItemStatusChange.. |
WorkflowActivityMapState | record | The status fields of a map execution that a stop may fence. |
WorkflowActivityMapStatusChange | record | A map execution moved to a terminal status; applied only at WorkflowActivityMapStatusChange.. |
WorkflowActivityRuntimeChange | record | A runtime-state version bump, applied only when the stored version still equals WorkflowActivityRuntimeChange.. |
WorkflowActivityRuntimeState | record | The runtime-state fields the activity services read: the execution version and its snapshot. |
WorkflowActivityStep | record | One logical external-activity step: its binding, current attempt, retry and cancel fences. |
WorkflowActivityStepChange | record | A changed step, written only when its stored version still equals WorkflowActivityStepChange.. |
WorkflowActivityStopTargetKind | enum | What a stop request targets. |
WorkflowAssignmentPermissionContext | record | What a permission check knows about a task action. |
WorkflowAssignmentPermissionDecision | record | The outcome of a permission check. |
WorkflowBackendConfigurationExtensions | class | Reads the configured workflow backend. |
WorkflowBackendNames | class | The names of the durable stores, for Workflow. |
WorkflowBackendOptions | class | The workflow store the host uses (WorkflowBackend). |
WorkflowBackendRegistrationMarker | record | The registration marker of a store library. |
WorkflowBusinessIdAttribute | class | Marks the property of a start request whose value is the business reference key of the instance. |
WorkflowBusinessReferenceAssignmentStepDefinition< | record | Sets the business reference of the instance. |
WorkflowBusinessReferenceExtensions | class | Builds, normalizes and compares business references. |
WorkflowBusinessReferencePartAttribute | class | Marks a property of a start request as a part of the business reference of the instance. |
WorkflowCaller | record | A workflow’s caller: the user its service calls go as, with the roles the caller’s token carried. |
WorkflowCallerSnapshot | class | Reads and writes the caller kept in an engine runtime snapshot and carried in signal payloads. |
WorkflowCancellationCleanupPolicyServiceCollectionExtensions | class | Registers the rule that decides whether cancelling an instance starts its cleanup workflow. |
WorkflowCanonicalCompilationResult | record | The outcome of compiling a C# workflow to a canonical definition. |
WorkflowCanonicalDefinitionCompiler | class | Compiles C# workflows to canonical definitions at runtime. |
WorkflowCanonicalDefinitionValidator | class | Validates canonical definitions and their parts (WFVAL codes). |
WorkflowCanonicalEvaluationContext | record | What a canonical expression reads: the roots of its paths, and the function runtime. |
WorkflowCanonicalExpressionRuntime | class | Evaluates canonical expressions. |
WorkflowCanonicalImportValidationResult | record | The outcome of validating a canonical definition for import. |
WorkflowCanonicalImportValidator | class | Validates canonical definitions before an import. |
WorkflowCanonicalResultReferences | class | Finds the step results a canonical definition reads through result.<key> paths. |
WorkflowCanonicalTemplateBindings | class | The token values of a canonical definition template. |
WorkflowCanonicalTemplateLoader | class | Loads canonical definitions from embedded JSON templates whose {{token}} placeholders take bound JSON values. |
WorkflowCanonicalValidationError | record | A finding of the canonical definition validation. |
WorkflowCanonicalValidationResult | record | The outcome of a canonical definition validation. |
WorkflowCanonicalizationDiagnostic | record | Why a part of a C# workflow has no canonical form. |
WorkflowChildFamilyRetention | class | The retention rule for executions joined by child links. |
WorkflowChildLink | record | The durable link between a parent step and the child workflow execution it started. |
WorkflowChildLinkRetentionRow | record | One parent-to-child execution link, as the retention pass reads it. |
WorkflowCompleteStepDefinition< | record | Completes the instance. |
WorkflowConditionDefinition< | class | A condition of a decision. |
WorkflowConditionalStepDefinition< | record | Branches on a condition. |
WorkflowConsoleAttemptRecord | record | An attempt of an external activity step, as the console returns it. |
WorkflowConsoleDeliveryRecord | record | One activity delivery: a dispatch (DISPATCH, its delivery state, created and published times) or a completion (COMPLETION, its disposition, received and applied times). |
WorkflowConsoleExecutionRecord | record | An execution as the console reads it: the instance projection’s identity, status, state and history position. |
WorkflowConsoleMapItemRecord | record | A map item row, as the console returns it. |
WorkflowConsoleMapRecord | record | A map execution row. |
WorkflowConsoleScopeRecord | record | A scope execution row. |
WorkflowConsoleStepRecord | record | An external activity step row, as the console returns it. |
WorkflowContentHasher | class | Computes a deterministic content hash for canonical workflow definitions. |
WorkflowContinuationLineage | record | A provider continuation an attempt left behind, consumed by the next attempt or revoked by a cancel. |
WorkflowContinuationLineageChange | record | A changed lineage, written only when its stored version still equals WorkflowContinuationLineageChange.. |
WorkflowContinuationPlan | record | A workflow a plan starts next, at once or at a due time. |
WorkflowContinueWithStepDefinition< | record | Starts another workflow as an independent instance and continues at once. |
WorkflowCoreFunctionProvider | class | Provides the core expression functions (module workflow.). |
WorkflowDecisionStepDefinition< | record | Branches on a value condition. |
WorkflowDefinitionActivationRecord | record | A governed activation. |
WorkflowDefinitionRecord | record | A versioned, persisted canonical workflow definition record. |
WorkflowEndpointCallStepDefinition< | record | Defines a transport call of an HTTP endpoint of a named service. |
WorkflowExecutionActorContext | class | Propagates the authenticated actor ID through async workflow execution chains (e.g., OnComplete -> Call -> transport) where the original request context is not available. |
WorkflowExecutionTaskPlan | record | A human task a plan opens. |
WorkflowExpr | class | Builds the expressions of canonical workflow definitions. |
WorkflowExpressionConditionDefinition< | class | A condition evaluated by a delegate, with its expression when it has one. |
WorkflowExternalActivityRegistration | record | An external activity of the signed registry manifest. |
WorkflowExternalActivityStepDefinition< | record | Runs an external activity of the host’s signed registry. |
WorkflowExternalActivityWrite | record | The changes one external-activity decision makes, written atomically. |
WorkflowExternalSignalStepDefinition< | record | Pauses the instance until a caller raises the signal for it. |
WorkflowFailureHandlers< | record | The failure and timeout branches of a step. |
WorkflowFirstSeenIdentity | class | The identity of a workflow in the first-seen ledger. |
WorkflowFirstSeenRecord | record | A workflow in the first-seen ledger, as first seen. |
WorkflowFirstSeenSources | class | Where the ledger first saw a workflow. |
WorkflowFlowBuilder< | 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. |
WorkflowForkStepDefinition< | record | Runs its branches concurrently. |
WorkflowFunctionArguments | class | Argument access for workflow function providers: an exact arity check, then the argument by position. |
WorkflowFunctionCatalog | class | The function catalog: the functions of every provider, ordered by module and name. |
WorkflowFunctionCatalogServiceCollectionExtensions | class | Registers the function catalog and the function providers that workflow expressions call. |
WorkflowFunctionDescriptors | class | Builds the catalog descriptor of a deterministic workflow function with one example. |
WorkflowGraphqlCallStepDefinition< | record | Defines a transport call to a GraphQL endpoint. |
WorkflowHandledBranchAction | enum | What a call does on a failure or a timeout when no branch is given. |
WorkflowHistoryCompactionResult | record | The outcome of a history compaction. |
WorkflowHistoryCursor | record | 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. |
WorkflowHistoryEvent | record | One durable execution-history event, as the history store returns it. |
WorkflowHttpCallStepDefinition< | record | Defines a transport call to an HTTP endpoint. |
WorkflowHumanTask | class | Starts the definition of a human task. |
WorkflowHumanTaskBuilder< | class | Builds a human task: its payload, roles, route, timeout and completion steps. |
WorkflowHumanTaskDefinition< | class | Defines a human task (user task) within a workflow. |
WorkflowInlineStepDefinition< | record | Runs C# code with the inline step services. |
WorkflowInlineStepServices | class | The transports an inline step (Run) can call. |
WorkflowInstalledModule | record | A function module installed in the engine. |
WorkflowJsonExtensions | class | Reads, converts and writes the JSON values of workflow state, payloads and results. |
WorkflowMapExecutionChange | record | A changed map execution, written only when its stored version still equals WorkflowMapExecutionChange.. |
WorkflowMapExecutionRecord | record | One durable map execution: its frozen plan, bounds, fan-in and failure policies and status. |
WorkflowMapItemChange | record | A changed map item, written only when its stored version still equals WorkflowMapItemChange.. |
WorkflowMapItemRecord | record | One item of a map: its descriptor, claim lease and fence, progress state and terminal outcome. |
WorkflowMapStepDefinition< | record | Runs its body once per item of a collection. |
WorkflowMapWrite | record | The changes one map decision makes, written atomically. |
WorkflowModuleCatalogServiceCollectionExtensions | class | Registers the module catalog and installed modules. |
WorkflowModuleRequirementValidationError | record | A finding of a module requirement check. |
WorkflowModuleVersionExpression | class | Parses module version expressions such as >=1.0.0 <2.0.0. |
WorkflowModuleVersionOperator | enum | The comparison of a module version clause. |
WorkflowModuleVersionRequirement | record | A module version requirement: every clause must hold. |
WorkflowModuleVersionRequirementClause | record | One clause of a module version requirement. |
WorkflowModuleVersioning | class | Checks module requirements against the installed modules. |
WorkflowOutboxEntry | record | One outbox message waiting for delivery. |
WorkflowOutboxKind | enum | The durable outboxes an integration publisher drains. |
WorkflowOutboxMessage | record | A message appended to the durable outbox in the same write as the state change it announces. |
WorkflowPendingSignalPlan | record | A signal a plan waits for or sends. |
WorkflowPrestartTerminalFence | record | A terminal command that arrived before its start request: the start is fenced and never creates a root. |
WorkflowProjectionRetentionBatch | record | The outcome of one retention pass over the projections. |
WorkflowRabbitCallStepDefinition< | record | 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. |
WorkflowReference | class | Refers to the workflow a sub-workflow or continue-with step runs. |
WorkflowRegisteredSignalInboxEntry | record | A received external signal, kept for exact replay and for a wait registered after it arrived. |
WorkflowRegisteredSignalWait | record | A registered wait for one external signal, raced by its deadline timer. |
WorkflowRegisteredSignalWrite | record | The changes one registered-signal operation makes, written atomically. |
WorkflowRegistration | record | A registered workflow: its definition, its start request type and its execution handler. |
WorkflowRegistrationServiceCollectionExtensions | class | Registers workflow definitions: each registration records the definition, its start request type and, when given, its execution handler. |
WorkflowRenderEdge | record | An edge of a render graph, before layout. |
WorkflowRenderEdgeSection | record | A routed section of an edge. |
WorkflowRenderGraph | record | The nodes and edges of a workflow diagram, before layout. |
WorkflowRenderLayoutDirection | enum | The direction of the flow in a diagram. |
WorkflowRenderLayoutEffort | enum | How hard the layout works on node order and placement. |
WorkflowRenderLayoutProviderNames | class | The layout provider names. |
WorkflowRenderLayoutRequest | record | The settings of a layout. |
WorkflowRenderLayoutResult | record | A laid-out diagram: positioned nodes and routed edges. |
WorkflowRenderNode | record | A node of a render graph, before layout. |
WorkflowRenderPoint | record | A point of a laid-out diagram. |
WorkflowRenderPort | record | A port of a render node. |
WorkflowRenderPositionedNode | record | A positioned node. |
WorkflowRenderPositionedPort | record | A positioned port. |
WorkflowRenderRoutedEdge | record | A routed edge. |
WorkflowRenderingOptions | class | The layout engine of rendered workflow diagrams (WorkflowRendering). |
WorkflowRepeatStepDefinition< | record | Runs its body while a condition holds, at most a number of times. |
WorkflowRetentionOverride | record | 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. |
WorkflowRootExecutionStart | record | 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). |
WorkflowRuntimeDefinition | record | A workflow the engine can run: its registration, descriptor and, for a declarative workflow, its canonical definition. |
WorkflowRuntimeExecutionKind | enum | How the engine runs a registered workflow. |
WorkflowRuntimeExecutionResult | record | The outcome of a runtime step of an instance. |
WorkflowRuntimePayloadKeys | class | The payload keys the engine reserves. |
WorkflowRuntimeProviderNames | class | The names of the runtime providers. |
WorkflowRuntimeStateConcurrencyException | class | Raised when a runtime state write loses its version check: another write changed the instance first. |
WorkflowRuntimeStateRecord | record | The runtime state of an instance, versioned for optimistic concurrency. |
WorkflowScopeReprocess | record | An operator request to run a scope again as a tagged successor occurrence. |
WorkflowSignalDeadlineTimer | record | The deadline timer of a registered wait. |
WorkflowSignalDriverConfigurationExtensions | class | Reads the configured signal driver. |
WorkflowSignalDriverDispatchMode | enum | When the engine tells the signal driver that a signal is available. |
WorkflowSignalDriverNames | class | The names of the signal drivers, for Workflow. |
WorkflowSignalDriverOptions | class | The signal driver the host uses (WorkflowSignalDriver). |
WorkflowSignalDriverRegistrationMarker | record | The registration marker of a signal driver. |
WorkflowSignalEnvelope | record | A signal for a workflow instance, as the signal store keeps it. |
WorkflowSignalExecutionContext | record | What the runtime gets to resume an instance with a signal. |
WorkflowSignalPayloadKeys | class | The payload keys of the engine’s own signals. |
WorkflowSignalResumeContext | record | What an execution handler gets to resume an instance with a signal. |
WorkflowSignalTypes | class | The types of the engine’s signals. |
WorkflowSignalWakeNotification | record | Tells signal consumers that a signal is available. |
WorkflowSourceExportResult | record | A definition converted to a source format. |
WorkflowSourceFormatDiagnostic | record | A finding of a source format conversion. |
WorkflowSourceFormatDiagnosticSeverity | enum | The severity of a conversion finding. |
WorkflowSourceImportResult | record | Result of converting external content into canonical form. |
WorkflowSpec | class | Starts a declarative workflow definition. |
WorkflowSpec< | class | A declarative workflow definition: the initial state, the tasks and the first steps. |
WorkflowSpecBuilder< | class | Builds a declarative workflow definition: the initial state, the tasks and the first steps. |
WorkflowSpecExecutionContext< | class | What the delegates of a workflow see: the start request, state, payload, kept results and business reference of the instance. |
WorkflowStartExecutionContext | record | What an execution handler gets to start an instance. |
WorkflowStartExecutionPlan | record | What starting an instance does: its status, state, tasks, signals and continuations. |
WorkflowStartReceipt | record | The durable decision taken for one start request, with the canonical result once there is one. |
WorkflowStateAssignmentStepDefinition< | record | Sets a state value. |
WorkflowStateJsonPolicy | class | The state limits of Workflow. |
WorkflowStateJsonPolicyOptions | class | Limits of the workflow state JSON (Workflow). |
WorkflowStepDefinition< | record | A step of a workflow, as the builder produces it. |
WorkflowStepSequence< | class | A sequence of steps. |
WorkflowStoreConcurrencyException | class | A durable store refused a write because the row changed since it was read (version or fence mismatch). |
WorkflowStoreDuplicateException | class | A durable store refused a write because a row with the same key already exists. |
WorkflowSubWorkflowStepDefinition< | record | Runs another workflow as a child and waits for it. |
WorkflowTaskAction | enum | An action on a human task that needs permission. |
WorkflowTaskCompletionPlan | record | What completing a task or resuming an instance does. |
WorkflowTaskExecutionContext | record | What an execution handler gets to complete a task. |
WorkflowTerminalInboxEntry | record | A received prestart terminal command and the acknowledgement it was answered with, for exact replay. |
WorkflowTerminateForkStepDefinition< | record | Ends the fork whose branch reaches it. |
WorkflowTimeoutDefaults | class | Default timeout values used across the workflow engine when no explicit timeout is specified. |
WorkflowTimerDelay | class | The delay of a timer step (Wait(), from the value its delay expression evaluates to; both runtime providers read a delay this way. |
WorkflowTimerStepDefinition< | record | Pauses the instance for a delay. |
WorkflowTrustedAssemblyAttribute | class | Marks an assembly as a trusted workflow-authoring assembly for the workflow canonicality analyzer (WF001-WF010). |
WorkflowValue | struct | One workflow value; converting it to a type it cannot take raises the missing-value error. |
WorkflowValueConditionDefinition< | class | A condition that a payload or state value equals a value. |
WorkflowValueDictionary | struct | Workflow values by key; a missing key raises an error that names the key and the workflow. |
WorkflowValueEqualsConditionDefinition | record | A condition that a payload or state value equals a value. |
WorkflowValueNotFoundException | class | Raised when a workflow value is missing or cannot take the requested type. |
WorkflowValueSource | enum | Where a value condition reads its value. |
WorkflowVersioning | class | Parses and compares semantic workflow versions (major.minor.patch). |
WorkflowWebserviceServiceCollectionExtensions | class | Extension 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
| Member | Kind | Summary |
|---|---|---|
ActorContextWorkflowCallerIdentityAccessor( | constructor | Default accessor: the caller the local HTTP endpoints put on the actor context; restore is a no-op. |
Current( | method | The caller of the request being handled, or null outside a request. |
Restore( | method | Makes the stored caller the ambient caller when no request is being handled. |
constructor ActorContextWorkflowCallerIdentityAccessor(WorkflowExecutionActorContext) #
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() #
Current() #public WorkflowCaller? Current()
The caller of the request being handled, or null outside a request.
method Restore(WorkflowCaller) #
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
| Member | Kind | Summary |
|---|---|---|
DefaultWorkflowCancellationCleanupPolicy( | constructor | Creates an instance of Default. |
ShouldStartCleanup( | method | Whether cancelling starts the cleanup workflow of the request. |
constructor DefaultWorkflowCancellationCleanupPolicy() #
DefaultWorkflowCancellationCleanupPolicy() #public DefaultWorkflowCancellationCleanupPolicy()
Creates an instance of Default.
method ShouldStartCleanup(WorkflowCancelRequest) #
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.to a base address and calls EndpointAddress.with EndpointAddress..
Members
| Member | Kind | Summary |
|---|---|---|
EndpointAddress( | constructor | Creates the address. |
Method | property | The HTTP method. |
Path | property | The path. |
ServiceName | property | The service. |
constructor EndpointAddress(string, string, string) #
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;POSTby default.
Exceptions
ArgumentException: A required value is empty or white space.
property Method #
Method #public string Method { get; }
The HTTP method.
property Path #
Path #public string Path { get; }
The path.
property ServiceName #
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
| Member | Kind | Summary |
|---|---|---|
GraphqlAddress( | constructor | Creates the address. |
OperationName | property | The operation to run. |
Query | property | The GraphQL query. |
Target | property | The GraphQL target. |
constructor GraphqlAddress(string, string, string) #
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 #
OperationName #public string? OperationName { get; }
The operation to run.
property Query #
Query #public string Query { get; }
The GraphQL query.
property Target #
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
| Member | Kind | Summary |
|---|---|---|
HttpAddress( | constructor | Creates the address. |
Method | property | The HTTP method. |
Path | property | The path. |
Target | property | The HTTP target. |
constructor HttpAddress(string, string, string) #
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;POSTby default.
Exceptions
ArgumentException: A required value is empty or white space.
property Method #
Method #public string Method { get; }
The HTTP method.
property Path #
Path #public string Path { get; }
The path.
property Target #
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<can be written as a canonical definition.
Type parameters
TStartRequest: The start request type.
Members
| Member | Kind | Summary |
|---|---|---|
Spec | property | The definition: the initial state, the tasks and the first steps. |
property Spec #
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 Workflow selects.
Members
| Member | Kind | Summary |
|---|---|---|
ProviderName | property | The provider name that selects the engine, compared ignoring case. |
property ProviderName #
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
| Member | Kind | Summary |
|---|---|---|
DisplayName | property | The title in lists and diagrams. |
Tasks | property | The task descriptors of the workflow. |
WorkflowName | property | The name that identifies the workflow; clients start it by this name. |
WorkflowRoles | property | The roles that may work the workflow’s tasks, unless a task names its own roles. |
WorkflowVersion | property | The version of the definition. |
property DisplayName #
DisplayName #string DisplayName { get; }
The title in lists and diagrams.
property Tasks #
Tasks #IReadOnlyCollection<WorkflowTaskDescriptor> Tasks { get; }
The task descriptors of the workflow.
property WorkflowName #
WorkflowName #string WorkflowName { get; }
The name that identifies the workflow; clients start it by this name.
property WorkflowRoles #
WorkflowRoles #IReadOnlyCollection<string> WorkflowRoles { get; }
The roles that may work the workflow’s tasks, unless a task names its own roles.
property WorkflowVersion #
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
| Member | Kind | Summary |
|---|---|---|
ResolveActorId( | method | Returns the actor ID for the current request. |
ResolveActorRolesAsync( | method | Resolves user roles from a trusted source (database, identity provider). |
method ResolveActorId(string) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
Evaluate( | method | Decides on an action. |
method Evaluate(WorkflowAssignmentPermissionContext) #
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. Validate refuses a configured backend that no library registered.
Members
| Member | Kind | Summary |
|---|---|---|
BackendName | property | The backend name, compared ignoring case with Workflow. |
property BackendName #
BackendName #string BackendName { get; }
The backend name, compared ignoring case with Workflow.
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
| Member | Kind | Summary |
|---|---|---|
Current( | method | The caller of the request being handled, or null outside a request. |
Restore( | method | Makes the stored caller the ambient caller when no request is being handled. |
method Current() #
Current() #WorkflowCaller? Current()
The caller of the request being handled, or null outside a request.
method Restore(WorkflowCaller) #
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
| Member | Kind | Summary |
|---|---|---|
ShouldStartCleanup( | method | Whether cancelling starts the cleanup workflow of the request. |
method ShouldStartCleanup(WorkflowCancelRequest) #
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
| Member | Kind | Summary |
|---|---|---|
GetSchemaAsync( | method | Returns the JSON schema of canonical definitions. |
ValidateAsync( | method | Validates a canonical definition without importing it. |
method GetSchemaAsync(CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetAsync( | method | Reads a child link. |
InsertAsync( | method | Inserts the link and appends the message; throws WorkflowStoreDuplicateExceptionwhen the link exists. |
UpdateAsync( | method | Replaces the link when its stored version is expectedVersion and appends the message, if any; throws WorkflowStoreConcurrencyExceptionon a version mismatch. |
method GetAsync(string, CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetDefinition( | method | Finds a descriptor. |
GetDefinitions( | method | Returns every descriptor. |
method GetDefinition(string, string) #
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() #
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
| Member | Kind | Summary |
|---|---|---|
ActivateAsync( | method | Makes a stored version the active version of its workflow. |
ExportAsync( | method | Exports a stored definition. |
GetDefinitionByIdAsync( | method | Reads one definition: a code-registered workflow first, the store otherwise. |
GetVersionsAsync( | method | Lists the stored versions of a workflow. |
ImportAsync( | method | Imports a canonical definition as a new, inactive version. |
RenderAsync( | method | Reads the stored rendering of a definition in one format. |
method ActivateAsync(WorkflowDefinitionActivateRequest, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ActivateGovernedAsync( | method | Activates a version under the activation fence and the rollback rule, and records the activation for the audit. |
method ActivateGovernedAsync(WorkflowDefinitionActivationRecord, CancellationToken) #
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
Invalid: The fence or the rollback rule refuses the activation; the message is theOperation Exception WORKFLOW_code.DEFINITION_ *
interface IWorkflowDefinitionQueryApi
public interface IWorkflowDefinitionQueryApi
Workflow definition query operations: listing registered workflow definitions.
Members
| Member | Kind | Summary |
|---|---|---|
GetDefinitionsAsync( | method | Lists workflow definitions. |
method GetDefinitionsAsync(WorkflowDefinitionGetRequest, CancellationToken) #
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 (Postgres, registered by Add) implements it, as does the MongoDB backend (Mongo, registered by Add); the engine also offers In for a host or test that registers it. A host that registers no store keeps the engine’s Null, which stores nothing and refuses imports and activations; its workflows are the code-registered catalog only.
Members
| Member | Kind | Summary |
|---|---|---|
ActivateAsync( | method | Sets a specific version as active for a workflow name. |
FindByHashAsync( | method | Finds any definition record matching the given content hash, regardless of version. |
GetActiveAsync( | method | Gets the active definition for a workflow name. |
GetAllActiveAsync( | method | Gets all active definitions across all workflow names. |
GetAsync( | method | Gets a specific version of a workflow definition. |
GetVersionsAsync( | method | Gets all versions of a workflow definition, ordered by creation date descending. |
UpsertAsync( | method | Inserts or updates a definition record. |
method ActivateAsync(string, string, CancellationToken) #
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) #
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) #
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) #
GetAllActiveAsync(CancellationToken) #Task<IReadOnlyCollection<WorkflowDefinitionRecord>> GetAllActiveAsync(CancellationToken cancellationToken = default)
Gets all active definitions across all workflow names.
method GetAsync(string, string, CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetDiagramAsync( | method | Lays out a workflow diagram. |
method GetDiagramAsync(WorkflowDiagramGetRequest, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
HasOrphanedStepAttemptsAsync( | method | True when a step attempt exists whose step (same step, execution and scope ids) does not. |
method HasOrphanedStepAttemptsAsync(CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
GetFenceAsync( | method | Reads the prestart terminal fence of a start request. |
GetReceiptAsync( | method | Reads the receipt of a start request. |
GetTerminalInboxAsync( | method | Reads a terminal inbox entry. |
HasOpenExecutionAsync( | method | True when an execution of the definition is open for the business reference. |
RecordPrestartTerminalAsync( | method | Records a prestart terminal command: the fence, the fenced receipt when none exists, the inbox entry and the acknowledgement. |
RecordStartDecisionAsync( | method | Records a start decision: the receipt, the root execution rows when the start created one (the store allocates the instance id), and the messages. |
TryCompleteReceiptAsync( | method | Writes the result into a receipt that has none yet, with its message. |
method GetFenceAsync(string, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ExecuteAsync( | method | Sends the request and returns the response. |
method ExecuteAsync(WorkflowEndpointRequest, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
GetAttemptsAsync( | method | Up to maxCount step attempts of the execution, by creation time. |
GetDeliveriesAsync( | method | All activity dispatches of the execution, then all its completions, unsorted. |
GetExecutionAsync( | method | Reads one execution. |
GetMapItemsAsync( | method | Up to maxCount items of the execution’s maps, by map execution id, then ordinal. |
GetMapsAsync( | method | Up to maxCount map executions of the execution, in the backend’s natural order. |
GetScopesAsync( | method | Up to maxCount scopes of the execution; ordered by creation time when orderByCreation is set, otherwise in the backend’s natural order. |
GetStepsAsync( | method | Up to maxCount steps of the execution, by creation time. |
ListExecutionsAsync( | method | Up 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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
CompleteTaskAsync( | method | Plans the completion of a task. |
StartAsync( | method | Plans the start of an instance. |
method CompleteTaskAsync(WorkflowTaskExecutionContext, CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetHandler( | method | Finds the handler of a workflow version. |
method GetHandler(string, string) #
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
| Member | Kind | Summary |
|---|---|---|
IsReady | property | Whether the manifest loaded; a registry that is not ready resolves nothing. |
ReadinessFailureCode | property | Why the manifest did not load. |
IsExternalTransportAddress( | method | Whether a transport address targets a lane of the registry: a RabbitMQ routing key or an endpoint path that an activity uses. |
TryResolve( | method | Finds an activity by destination, operation and contract version. |
property IsReady #
IsReady #bool IsReady { get; }
Whether the manifest loaded; a registry that is not ready resolves nothing.
property ReadinessFailureCode #
ReadinessFailureCode #string? ReadinessFailureCode { get; }
Why the manifest did not load.
method IsExternalTransportAddress(WorkflowTransportAddressDeclaration) #
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) #
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..
Members
| Member | Kind | Summary |
|---|---|---|
GetAttemptAsync( | method | Reads an attempt. |
GetAttemptByNumberAsync( | method | Reads an attempt of a step by number. |
GetCompletionAsync( | method | Reads a completion. |
GetDispatchForAttemptAsync( | method | Reads the dispatch of an attempt. |
GetLastAttemptNumberAsync( | method | The highest attempt number recorded for the step; 0 when it has none. |
GetLastReprocessOccurrenceAsync( | method | The highest reprocess occurrence of the scope; 0 when it has none. |
GetLineageAsync( | method | Reads a lineage. |
GetLineagesAsync( | method | The step’s lineages in status, highest generation first, optionally limited to one source attempt. |
GetMapItemsAsync( | method | Reads the items of a map in a status. |
GetMapsForStopAsync( | method | The map executions a stop targets, in any status. |
GetReadyCancelsAsync( | method | Reads up to maxCount READY cancels, oldest first. |
GetReadyDispatchesAsync( | method | Reads up to maxCount READY dispatches, oldest first. |
GetRootScopeExecutionIdAsync( | method | Reads the root scope of an execution. |
GetRuntimeAsync( | method | Reads the runtime state of an execution. |
GetStepAsync( | method | Reads a step. |
GetStepsForStopAsync( | method | The steps a stop targets, ordered by step execution id; for a map, the items’ active steps. |
MarkCancelPublishedAsync( | method | Marks a cancel PUBLISHED and counts the delivery attempt; does nothing when it is already PUBLISHED and throws when it does not exist. |
MarkDispatchPublishedAsync( | method | Marks a dispatch PUBLISHED and counts the delivery attempt; does nothing when it is already PUBLISHED and throws when it does not exist. |
WriteAsync( | method | Writes the changes atomically. |
method GetAttemptAsync(string, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
GetReadyCancelsAsync(int, CancellationToken) #Task<IReadOnlyList<WorkflowActivityCancelEntry>> GetReadyCancelsAsync(int maxCount, CancellationToken cancellationToken = default)
Reads up to maxCount READY cancels, oldest first.
method GetReadyDispatchesAsync(int, CancellationToken) #
GetReadyDispatchesAsync(int, CancellationToken) #Task<IReadOnlyList<WorkflowActivityDispatchEntry>> GetReadyDispatchesAsync(int maxCount, CancellationToken cancellationToken = default)
Reads up to maxCount READY dispatches, oldest first.
method GetRootScopeExecutionIdAsync(string, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
IsDurable | property | 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. |
CountAsync( | method | The number of distinct workflows ever recorded. |
ListAsync( | method | Every workflow ever recorded, one entry per workflow with its first sighting, ordered by WorkflowFirstSeenIdentity.(ordinal). |
RecordAsync( | method | Records the workflows in workflowNames that the ledger has not seen, with source (WorkflowFirstSeenSources) and seenOnUtc. |
RecordStoredDefinitionsAsync( | method | 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. |
property IsDurable #
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) #
CountAsync(CancellationToken) #Task<int> CountAsync(CancellationToken cancellationToken = default)
The number of distinct workflows ever recorded.
method ListAsync(CancellationToken) #
ListAsync(CancellationToken) #Task<IReadOnlyList<WorkflowFirstSeenRecord>> ListAsync(CancellationToken cancellationToken = default)
Every workflow ever recorded, one entry per workflow with its first sighting, ordered by WorkflowFirstSeenIdentity.(ordinal). The number of entries is the count IWorkflowFirstSeenLedger.returns for the same ledger state. Reads only; records nothing.
method RecordAsync(IReadOnlyCollection<string>, string, DateTimeOffset, CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetFunctions( | method | Returns the functions. |
TryGetFunction( | method | Finds a function by name or alias, ignoring case. |
method GetFunctions() #
GetFunctions() #IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()
Returns the functions.
Returns
The functions.
method TryGetFunction(string, out WorkflowFunctionDescriptor) #
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
| Member | Kind | Summary |
|---|---|---|
GetCatalogAsync( | method | Returns the expression functions and installed modules. |
method GetCatalogAsync(CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
GetFunctions( | method | Returns the functions. |
method GetFunctions() #
GetFunctions() #IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()
Returns the functions.
Returns
The functions.
interface IWorkflowFunctionRuntime
public interface IWorkflowFunctionRuntime
Evaluates expression function calls.
Members
| Member | Kind | Summary |
|---|---|---|
TryEvaluate( | method | Evaluates a function call with the first provider that knows the function. |
method TryEvaluate(string, IReadOnlyCollection<object>, WorkflowCanonicalEvaluationContext, out object) #
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
| Member | Kind | Summary |
|---|---|---|
TryEvaluate( | method | Evaluates a function call. |
method TryEvaluate(string, IReadOnlyCollection<object>, WorkflowCanonicalEvaluationContext, out object) #
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
| Member | Kind | Summary |
|---|---|---|
ExecuteAsync( | method | Sends the query and returns the response. |
method ExecuteAsync(WorkflowGraphqlRequest, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
CompactPrefixAsync( | method | 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. |
GetCursorAsync( | method | Reads the history cursor; throws when the execution does not exist. |
GetEventsAsync( | method | Reads up to maxCount events after afterSequence, in sequence order. |
method CompactPrefixAsync(string, long, int, CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ReleaseAsync( | method | Releases a lock the owner holds. |
TryAcquireAsync( | method | Takes a lock for an owner unless another owner holds an unexpired lease. |
method ReleaseAsync(string, string, CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ExecuteAsync( | method | Sends the request and returns the response. |
method ExecuteAsync(WorkflowHttpRequest, CancellationToken) #
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., whose item version checks make a lease claim race-safe (one winner).
Members
| Member | Kind | Summary |
|---|---|---|
CountActiveClaimsAsync( | method | Counts the map’s CLAIMED items that hold capacity at nowUtc: an active step, or an unexpired lease. |
CountGlobalActiveClaimsAsync( | method | Counts the active claims (as above) across every map of the global activity class. |
GetClaimableItemsAsync( | method | 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. |
GetGlobalMaxConcurrencyAsync( | method | The lowest declared max concurrency among the maps of the global activity class. |
GetItemAsync( | method | Reads a map item. |
GetItemsAsync( | method | All items of the map, ordered by ordinal. |
GetItemsByActiveStepAsync( | method | Up to maxCount items whose active step is active. |
GetMapAsync( | method | Reads a map execution. |
WriteAsync( | method | Writes the changes atomically. |
method CountActiveClaimsAsync(string, DateTime, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
GetItemsByActiveStepAsync(string, int, CancellationToken) #Task<IReadOnlyList<WorkflowMapItemRecord>> GetItemsByActiveStepAsync(string activeStepExecutionId, int maxCount, CancellationToken cancellationToken = default)
Up to maxCount items whose active step is active.
method GetMapAsync(string, CancellationToken) #
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) #
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.and those the function providers declare.
Members
| Member | Kind | Summary |
|---|---|---|
GetInstalledModules( | method | Returns each installed module and version once, ordered by module name and then version. |
method GetInstalledModules() #
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
| Member | Kind | Summary |
|---|---|---|
BeginAsync( | method | Begins a change scope. |
method BeginAsync(CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
CommitAsync( | method | Commits the changes, then runs the post-commit actions. |
RegisterPostCommitAction( | method | Registers an action to run after the commit. |
method CommitAsync(CancellationToken) #
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>) #
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
| Member | Kind | Summary |
|---|---|---|
Current | property | The change scope of the running operation, when one is open. |
property Current #
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
| Member | Kind | Summary |
|---|---|---|
CompactDeliveredAsync( | method | Deletes up to batchSize rows per outbox published before cutoffUtc, and as many activity-completion inbox rows applied before it. |
GetReadyAsync( | method | Reads up to maxCount READY entries, oldest first, optionally limited to some channels. |
RecordDeliveryAttemptAsync( | method | Counts one delivery attempt; a non-null publishedAtUtc marks the entry PUBLISHED. |
TryMarkPublishedAsync( | method | Marks a READY entry PUBLISHED; false when it is not READY (already published or missing). |
method CompactDeliveredAsync(DateTime, int, CancellationToken) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
CanDispatch( | method | Whether this dispatcher sends a pending signal. |
DispatchAsync( | method | Dispatches the signal and returns the execution version the next signal must expect. |
method CanDispatch(WorkflowPendingSignalPlan) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
RunAsync( | method | Marks stale and purges the projections whose dates have passed. |
method RunAsync(DateTime, WorkflowRetentionOverride, CancellationToken) #
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
method ApplyRuntimeProgressAsync(string, WorkflowTaskCompletionPlan, WorkflowBusinessReference, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ExecuteAsync( | method | Publishes the request, and for a command that expects a reply, waits for the correlated reply. |
method ExecuteAsync(WorkflowRabbitRequest, CancellationToken) #
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..
Members
| Member | Kind | Summary |
|---|---|---|
FindWaitAsync( | method | Finds the wait of an execution for a signal code and audience, by registration id when one is given and by signal key otherwise. |
GetInboxAsync( | method | Reads a signal inbox entry. |
GetOldestUncorrelatedInboxAsync( | method | The oldest signal received for this execution, key, code and audience that no wait has taken yet. |
GetTimerAsync( | method | Reads a deadline timer. |
GetTimerForWaitAsync( | method | Reads the deadline timer of a wait. |
GetWaitAsync( | method | Reads a registered wait. |
WriteAsync( | method | Writes the changes atomically. |
method FindWaitAsync(string, string, string, string, string, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetRegistration( | method | Finds a registered workflow. |
GetRegistrations( | method | Returns every registered workflow. |
method GetRegistration(string, string) #
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() #
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
| Member | Kind | Summary |
|---|---|---|
Compile( | method | Builds the render graph of a workflow definition. |
method Compile(WorkflowRuntimeDefinition) #
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
| Member | Kind | Summary |
|---|---|---|
LayoutAsync( | method | Positions the nodes and routes the edges of a render graph. |
method LayoutAsync(WorkflowRenderGraph, WorkflowRenderLayoutRequest, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
Resolve( | method | Returns the registered layout engine of a provider: providerName, else Workflow, else ElkSharp. |
method Resolve(string) #
Resolve(string) #INamedWorkflowRenderGraphLayoutEngine Resolve(string? providerName = null)
Returns the registered layout engine of a provider: providerName, else Workflow, else ElkSharp.
Parameters
providerName: The provider name; the configured provider when not set.
Returns
The layout engine.
Exceptions
Invalid: No engine of that provider is registered.Operation Exception
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 (Add of Stella), so the engine itself carries no rendering library.
Members
| Member | Kind | Summary |
|---|---|---|
RenderSvg( | method | Renders layout titled title. |
method RenderSvg(WorkflowRenderLayoutResult, string, string) #
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
| Member | Kind | Summary |
|---|---|---|
RunRetentionAsync( | method | Runs the instance retention once. |
method RunRetentionAsync(WorkflowRetentionRunRequest, CancellationToken) #
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
method AssignTaskAsync(WorkflowTaskAssignRequest, CancellationToken) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetDefinition( | method | Finds a runtime definition. |
GetDefinitions( | method | Returns every runtime definition. |
GetRequiredDefinition( | method | Finds a runtime definition. |
method GetDefinition(string, string) #
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() #
GetDefinitions() #IReadOnlyCollection<WorkflowRuntimeDefinition> GetDefinitions()
Returns every runtime definition.
Returns
The definitions.
method GetRequiredDefinition(string, string) #
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
Invalid: No such definition is registered.Operation Exception
interface IWorkflowRuntimeExecutionHandlerFactory
public interface IWorkflowRuntimeExecutionHandlerFactory
Creates the execution handler of a runtime definition.
Members
| Member | Kind | Summary |
|---|---|---|
TryCreateHandler( | method | Creates the handler: the custom handler of the registration, or the declarative handler; none for a definition-only workflow. |
method TryCreateHandler(WorkflowRuntimeDefinition) #
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
| Member | Kind | Summary |
|---|---|---|
CompleteAsync( | method | Completes a task. |
ResumeAsync( | method | Resumes an instance with a signal. |
StartAsync( | method | Starts an instance. |
method CompleteAsync(WorkflowRegistration, WorkflowDefinitionDescriptor, WorkflowTaskExecutionContext, CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ProviderName | property | The provider name. |
property ProviderName #
ProviderName #string ProviderName { get; }
The provider name.
interface IWorkflowRuntimeStateStore
public interface IWorkflowRuntimeStateStore
Stores the runtime state of instances.
Members
| Member | Kind | Summary |
|---|---|---|
DeleteAsync( | method | Deletes the runtime states of instances. |
GetAsync( | method | Reads the runtime state of an instance. |
GetManyAsync( | method | Reads the runtime states of instances. |
MarkStaleAsync( | method | Marks instances stale. |
UpsertAsync( | method | Writes a runtime state whose version is one above the stored one (or the first). |
method DeleteAsync(IReadOnlyCollection<string>, CancellationToken) #
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) #
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) #
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) #
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) #
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
WorkflowRuntimeStateConcurrencyException: Another write changed the instance first.
interface IWorkflowScheduleBus
public interface IWorkflowScheduleBus
Schedules signals for later.
Members
| Member | Kind | Summary |
|---|---|---|
ScheduleAsync( | method | Stores a signal that becomes available at dueAtUtc. |
method ScheduleAsync(WorkflowSignalEnvelope, DateTime, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
GetMetadataAsync( | method | Returns the service metadata. |
method GetMetadataAsync(CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
PublishAsync( | method | Stores a signal for delivery. |
PublishDeadLetterAsync( | method | Stores a signal that could not be processed as a dead letter. |
ReceiveAsync( | method | Waits for a signal to claim. |
method PublishAsync(WorkflowSignalEnvelope, CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
TryClaimAsync( | method | Claims one available signal for a consumer. |
method TryClaimAsync(string, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
GetMessagesAsync( | method | Lists the dead-lettered signals. |
ReplayAsync( | method | Puts a dead letter back on the signal queue. |
method GetMessagesAsync(WorkflowSignalDeadLettersGetRequest, CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
GetMessagesAsync( | method | Lists the dead-lettered signals. |
ReplayAsync( | method | Puts a dead letter back on the signal queue. |
method GetMessagesAsync(WorkflowSignalDeadLettersGetRequest, CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
DispatchMode | property | When the engine tells the driver that a signal is available. |
DriverName | property | The driver name, as Workflow selects it. |
NotifySignalAvailableAsync( | method | Tells the consumers that a signal is available. |
ReceiveAsync( | method | Waits up to the driver’s blocking wait for a signal to claim. |
property DispatchMode #
DispatchMode #WorkflowSignalDriverDispatchMode DispatchMode { get; }
When the engine tells the driver that a signal is available.
property DriverName #
DriverName #string DriverName { get; }
The driver name, as Workflow selects it.
method NotifySignalAvailableAsync(WorkflowSignalWakeNotification, CancellationToken) #
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) #
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. Validate refuses a configured driver that no library registered.
Members
| Member | Kind | Summary |
|---|---|---|
DriverName | property | The driver name, compared ignoring case with Workflow. |
property DriverName #
DriverName #string DriverName { get; }
The driver name, compared ignoring case with Workflow.
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
| Member | Kind | Summary |
|---|---|---|
DeliveryCount | property | How many times the signal has been delivered, this delivery included. |
Envelope | property | The claimed signal. |
AbandonAsync( | method | Releases the signal, so it can be claimed again. |
CompleteAsync( | method | Removes the processed signal. |
DeadLetterAsync( | method | Moves the signal to the dead letters. |
property DeliveryCount #
DeliveryCount #int DeliveryCount { get; }
How many times the signal has been delivered, this delivery included.
property Envelope #
Envelope #WorkflowSignalEnvelope Envelope { get; }
The claimed signal.
method AbandonAsync(CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ProcessAsync( | method | Applies a signal to its instance. |
method ProcessAsync(WorkflowSignalEnvelope, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
GetStatsAsync( | method | Returns the signal pump counts of this process. |
method GetStatsAsync(CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
ResumeSignalAsync( | method | Plans the resume of an instance with a signal. |
method ResumeSignalAsync(WorkflowSignalResumeContext, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
ScheduleAsync( | method | Stores a signal that becomes available at dueAtUtc. |
method ScheduleAsync(WorkflowSignalEnvelope, DateTime, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
PublishAsync( | method | Stores a signal for delivery. |
PublishDeadLetterAsync( | method | Stores a signal that could not be processed as a dead letter. |
method PublishAsync(WorkflowSignalEnvelope, CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ContentType | property | MIME type of the content this converter produces / consumes. |
DisplayName | property | Human-friendly name, for example for a format picker. |
FileExtension | property | Canonical file extension including the leading dot (e.g., “.json”, “.yaml”, “.zip”). |
FormatId | property | Stable, machine-readable identifier (e.g., “canonical-json”, “canonical-yaml”, “canonical-bundle”). |
IsBinary | property | True when the format is not safely paste-able as text (e.g., binary ZIP). |
SupportsExport | property | True when the converter supports encoding a stored definition into its format. |
SupportsImport | property | True when the converter supports decoding its format into canonical JSON. |
ExportAsync( | method | Converts a stored definition to the format. |
ImportAsync( | method | Converts content of the format to a canonical definition. |
property ContentType #
ContentType #string ContentType { get; }
MIME type of the content this converter produces / consumes.
property DisplayName #
DisplayName #string DisplayName { get; }
Human-friendly name, for example for a format picker.
property FileExtension #
FileExtension #string FileExtension { get; }
Canonical file extension including the leading dot (e.g., “.json”, “.yaml”, “.zip”).
property FormatId #
FormatId #string FormatId { get; }
Stable, machine-readable identifier (e.g., “canonical-json”, “canonical-yaml”, “canonical-bundle”).
property IsBinary #
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 #
SupportsExport #bool SupportsExport { get; }
True when the converter supports encoding a stored definition into its format.
property SupportsImport #
SupportsImport #bool SupportsImport { get; }
True when the converter supports decoding its format into canonical JSON.
method ExportAsync(WorkflowDefinitionRecord, CancellationToken) #
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) #
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.; used by the multi-format import / export endpoints to dispatch to the right converter.
Members
| Member | Kind | Summary |
|---|---|---|
GetAll( | method | Returns the converters, ordered by display name. |
GetRequired( | method | Finds a converter by format id, ignoring case. |
TryGet( | method | Finds a converter by format id, ignoring case. |
method GetAll() #
GetAll() #IReadOnlyCollection<IWorkflowSourceFormatConverter> GetAll()
Returns the converters, ordered by display name.
Returns
The converters.
method GetRequired(string) #
GetRequired(string) #IWorkflowSourceFormatConverter GetRequired(string formatId)
Finds a converter by format id, ignoring case.
Parameters
formatId: The format id.
Returns
The converter.
Exceptions
Invalid: No converter has the format id.Operation Exception
method TryGet(string) #
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
| Member | Kind | Summary |
|---|---|---|
Payload | property | The payload being handled, such as a task completion. |
PayloadValues | property | The payload as a value dictionary; a missing key raises an error. |
ResultValues | property | The kept step results, by key; keys compare ignoring case. |
StateValues | property | The workflow state as a value dictionary; a missing key raises an error. |
WorkflowName | property | The workflow name. |
WorkflowState | property | The workflow state, which steps change. |
CompareValue( | method | Whether a payload or state value equals a value. |
GetOptionalResult< | method | Returns a kept result, or the default when none is kept under the key. |
GetRequiredResult< | method | Returns a kept result. |
property Payload #
Payload #IReadOnlyDictionary<string, JsonElement> Payload { get; }
The payload being handled, such as a task completion.
property PayloadValues #
PayloadValues #WorkflowValueDictionary PayloadValues { get; }
The payload as a value dictionary; a missing key raises an error.
property ResultValues #
ResultValues #IReadOnlyDictionary<string, JsonElement> ResultValues { get; }
The kept step results, by key; keys compare ignoring case.
property StateValues #
StateValues #WorkflowValueDictionary StateValues { get; }
The workflow state as a value dictionary; a missing key raises an error.
property WorkflowName #
WorkflowName #string WorkflowName { get; }
The workflow name.
property WorkflowState #
WorkflowState #Dictionary<string, JsonElement> WorkflowState { get; }
The workflow state, which steps change.
method CompareValue(WorkflowValueSource, string, object) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
Validate( | method | Checks a state against the limits. |
method Validate(string) #
Validate(string) #void Validate(string stateJson)
Checks a state against the limits.
Parameters
stateJson: The state, as JSON.
Exceptions
Invalid: The state breaks a limit; the message is theOperation Exception WORKFLOW_code.STATE_ JSON_ *
interface IWorkflowWakeOutbox
public interface IWorkflowWakeOutbox
The outbox of wake notifications, for a driver whose dispatch mode is WorkflowSignalDriverDispatchMode..
Members
| Member | Kind | Summary |
|---|---|---|
EnqueueAsync( | method | Writes a wake notification to the outbox. |
method EnqueueAsync(WorkflowSignalWakeNotification, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
ConsumerName | property | The consumer that claimed it. |
Notification | property | The claimed notification. |
AbandonAsync( | method | Releases the notification, so it can be claimed again. |
CompleteAsync( | method | Removes the notification from the outbox. |
property ConsumerName #
ConsumerName #string ConsumerName { get; }
The consumer that claimed it.
property Notification #
Notification #WorkflowSignalWakeNotification Notification { get; }
The claimed notification.
method AbandonAsync(CancellationToken) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
ReceiveAsync( | method | Claims one wake notification of the outbox for a consumer. |
method ReceiveAsync(string, CancellationToken) #
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
| Member | Kind | Summary |
|---|---|---|
NoopWorkflowExecutionHandler( | constructor | Creates an instance of Noop. |
CompleteTaskAsync( | method | Never runs. |
StartAsync( | method | Never runs. |
constructor NoopWorkflowExecutionHandler() #
NoopWorkflowExecutionHandler() #public NoopWorkflowExecutionHandler()
Creates an instance of Noop.
method CompleteTaskAsync(WorkflowTaskExecutionContext, CancellationToken) #
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
Not: Always.Supported Exception
method StartAsync(WorkflowStartExecutionContext, CancellationToken) #
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
Not: Always.Supported Exception
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
| Member | Kind | Summary |
|---|---|---|
NullWorkflowActorRoleResolver( | constructor | Creates an instance of Null. |
ResolveActorId( | method | Returns the client’s actor id, or empty. |
ResolveActorRolesAsync( | method | Resolves user roles from a trusted source (database, identity provider). |
constructor NullWorkflowActorRoleResolver() #
NullWorkflowActorRoleResolver() #public NullWorkflowActorRoleResolver()
Creates an instance of Null.
method ResolveActorId(string) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
RabbitAddress( | constructor | Creates the address. |
Command | property | The command-style semantics, or null for a plain publish. |
Exchange | property | The exchange. |
RoutingKey | property | The routing key. |
constructor RabbitAddress(string, string, string, WorkflowRabbitCommandFraming, bool) #
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 #
Command #public WorkflowRabbitCommandDeclaration? Command { get; }
The command-style semantics, or null for a plain publish.
property Exchange #
Exchange #public string Exchange { get; }
The exchange.
property RoutingKey #
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
| Member | Kind | Summary |
|---|---|---|
RequiredPayloadKeyCancellationCleanupPolicy( | constructor | 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. |
PayloadKey | property | The key the cleanup payload must carry a value under. |
ShouldStartCleanup( | method | Whether cancelling starts the cleanup workflow of the request. |
constructor RequiredPayloadKeyCancellationCleanupPolicy(string) #
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 #
PayloadKey #public string PayloadKey { get; }
The key the cleanup payload must carry a value under.
method ShouldStartCleanup(WorkflowCancelRequest) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivateTaskStepDefinition( | constructor | Opens a declared human task. |
RuntimeRolesExpression | property | The roles as an expression, for the canonical definition. |
RuntimeRolesFactory | property | Computes the roles that replace the task roles; when it yields no role, the task roles apply. |
TaskName | property | The declared task to open. |
constructor WorkflowActivateTaskStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>) #
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 #
RuntimeRolesExpression #public WorkflowExpressionDefinition? RuntimeRolesExpression { get; init; }
The roles as an expression, for the canonical definition.
property RuntimeRolesFactory #
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 #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityAttempt( | constructor | Creates an instance of Workflow. |
AttemptId | property | The attempt. |
AttemptNumber | property | The attempt number, from 1. |
CanonicalRequestJson | property | The canonical request, as JSON. |
CompletedAtUtc | property | When it completed, in UTC. |
CompletionDisposition | property | How the completion was applied. |
CompletionEventId | property | The completion event, once it arrived. |
CompletionSha256 | property | The SHA-256 of the completion. |
ContractKind | property | The contract kind of the activity. |
CreatedAtUtc | property | When the row was created, in UTC. |
DeadlineAtUtc | property | The deadline of the attempt, in UTC. |
DispatchId | property | The dispatch. |
ExpectedExecutionVersion | property | The execution version the step or attempt was created at. |
HandlerBuildSha256 | property | The SHA-256 of the handler build. |
PriorAttemptId | property | The attempt this one follows. |
PriorCompletionEventId | property | The completion of the prior attempt. |
ProviderGeneration | property | The provider generation that answered. |
ProviderReference | property | The provider’s reference of the attempt. |
RequestSha256 | property | The SHA-256 of the request. |
ScopeExecutionId | property | The scope of the step. |
Status | property | The status. |
StepExecutionId | property | The step execution. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityAttempt() #
WorkflowActivityAttempt() #public WorkflowActivityAttempt()
Creates an instance of Workflow.
property AttemptId #
AttemptId #public required string AttemptId { get; init; }
The attempt.
property AttemptNumber #
AttemptNumber #public int AttemptNumber { get; init; }
The attempt number, from 1.
property CanonicalRequestJson #
CanonicalRequestJson #public required string CanonicalRequestJson { get; init; }
The canonical request, as JSON.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property CompletionDisposition #
CompletionDisposition #public string? CompletionDisposition { get; init; }
How the completion was applied.
property CompletionEventId #
CompletionEventId #public string? CompletionEventId { get; init; }
The completion event, once it arrived.
property CompletionSha256 #
CompletionSha256 #public string? CompletionSha256 { get; init; }
The SHA-256 of the completion.
property ContractKind #
ContractKind #public required string ContractKind { get; init; }
The contract kind of the activity.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DeadlineAtUtc #
DeadlineAtUtc #public DateTime DeadlineAtUtc { get; init; }
The deadline of the attempt, in UTC.
property DispatchId #
DispatchId #public required string DispatchId { get; init; }
The dispatch.
property ExpectedExecutionVersion #
ExpectedExecutionVersion #public long ExpectedExecutionVersion { get; init; }
The execution version the step or attempt was created at.
property HandlerBuildSha256 #
HandlerBuildSha256 #public required string HandlerBuildSha256 { get; init; }
The SHA-256 of the handler build.
property PriorAttemptId #
PriorAttemptId #public string? PriorAttemptId { get; init; }
The attempt this one follows.
property PriorCompletionEventId #
PriorCompletionEventId #public string? PriorCompletionEventId { get; init; }
The completion of the prior attempt.
property ProviderGeneration #
ProviderGeneration #public long? ProviderGeneration { get; init; }
The provider generation that answered.
property ProviderReference #
ProviderReference #public string? ProviderReference { get; init; }
The provider’s reference of the attempt.
property RequestSha256 #
RequestSha256 #public required string RequestSha256 { get; init; }
The SHA-256 of the request.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the step.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
StepExecutionId #public required string StepExecutionId { get; init; }
The step execution.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityCancelEntry( | constructor | Creates an instance of Workflow. |
AttemptId | property | The attempt. |
CancelFenceVersion | property | The cancel fence of the request. |
CancelId | property | The cancel request. |
CancelLane | property | The lane the cancel goes to. |
CanonicalPayloadJson | property | The canonical payload, as JSON. |
CreatedAtUtc | property | When the row was created, in UTC. |
DeliveryAttempts | property | The delivery attempts so far. |
DeliveryState | property | The delivery state: READY or PUBLISHED. |
EventId | property | The cancel event. |
PayloadSha256 | property | The SHA-256 of the payload. |
PublishedAtUtc | property | When it was published, in UTC. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityCancelEntry() #
WorkflowActivityCancelEntry() #public WorkflowActivityCancelEntry()
Creates an instance of Workflow.
property AttemptId #
AttemptId #public required string AttemptId { get; init; }
The attempt.
property CancelFenceVersion #
CancelFenceVersion #public long CancelFenceVersion { get; init; }
The cancel fence of the request.
property CancelId #
CancelId #public required string CancelId { get; init; }
The cancel request.
property CancelLane #
CancelLane #public required string CancelLane { get; init; }
The lane the cancel goes to.
property CanonicalPayloadJson #
CanonicalPayloadJson #public required string CanonicalPayloadJson { get; init; }
The canonical payload, as JSON.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DeliveryAttempts #
DeliveryAttempts #public int DeliveryAttempts { get; init; }
The delivery attempts so far.
property DeliveryState #
DeliveryState #public required string DeliveryState { get; init; }
The delivery state: READY or PUBLISHED.
property EventId #
EventId #public required string EventId { get; init; }
The cancel event.
property PayloadSha256 #
PayloadSha256 #public required string PayloadSha256 { get; init; }
The SHA-256 of the payload.
property PublishedAtUtc #
PublishedAtUtc #public DateTime? PublishedAtUtc { get; init; }
When it was published, in UTC.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityCompletionEntry( | constructor | Creates an instance of Workflow. |
AppliedAtUtc | property | When it was applied, in UTC. |
AttemptId | property | The attempt. |
CanonicalCompletionJson | property | The canonical completion, as JSON. |
CompletionSha256 | property | The SHA-256 of the completion. |
Disposition | property | How it was recorded. |
EventId | property | The completion event. |
ReceivedAtUtc | property | When it was received, in UTC. |
SafeCode | property | The safe code of a refused completion. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityCompletionEntry() #
WorkflowActivityCompletionEntry() #public WorkflowActivityCompletionEntry()
Creates an instance of Workflow.
property AppliedAtUtc #
AppliedAtUtc #public DateTime? AppliedAtUtc { get; init; }
When it was applied, in UTC.
property AttemptId #
AttemptId #public required string AttemptId { get; init; }
The attempt.
property CanonicalCompletionJson #
CanonicalCompletionJson #public required string CanonicalCompletionJson { get; init; }
The canonical completion, as JSON.
property CompletionSha256 #
CompletionSha256 #public required string CompletionSha256 { get; init; }
The SHA-256 of the completion.
property Disposition #
Disposition #public required string Disposition { get; init; }
How it was recorded.
property EventId #
EventId #public required string EventId { get; init; }
The completion event.
property ReceivedAtUtc #
ReceivedAtUtc #public DateTime ReceivedAtUtc { get; init; }
When it was received, in UTC.
property SafeCode #
SafeCode #public string? SafeCode { get; init; }
The safe code of a refused completion.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityDispatchEntry( | constructor | Creates an instance of Workflow. |
AttemptId | property | The attempt. |
CanonicalRequestJson | property | The canonical request, as JSON. |
CreatedAtUtc | property | When the row was created, in UTC. |
DeliveryAttempts | property | The delivery attempts so far. |
DeliveryState | property | The delivery state: READY or PUBLISHED. |
DispatchId | property | The dispatch. |
ExecuteLane | property | The lane the request goes to. |
PublishedAtUtc | property | When it was published, in UTC. |
RequestSha256 | property | The SHA-256 of the request. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityDispatchEntry() #
WorkflowActivityDispatchEntry() #public WorkflowActivityDispatchEntry()
Creates an instance of Workflow.
property AttemptId #
AttemptId #public required string AttemptId { get; init; }
The attempt.
property CanonicalRequestJson #
CanonicalRequestJson #public required string CanonicalRequestJson { get; init; }
The canonical request, as JSON.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DeliveryAttempts #
DeliveryAttempts #public int DeliveryAttempts { get; init; }
The delivery attempts so far.
property DeliveryState #
DeliveryState #public required string DeliveryState { get; init; }
The delivery state: READY or PUBLISHED.
property DispatchId #
DispatchId #public required string DispatchId { get; init; }
The dispatch.
property ExecuteLane #
ExecuteLane #public required string ExecuteLane { get; init; }
The lane the request goes to.
property PublishedAtUtc #
PublishedAtUtc #public DateTime? PublishedAtUtc { get; init; }
When it was published, in UTC.
property RequestSha256 #
RequestSha256 #public required string RequestSha256 { get; init; }
The SHA-256 of the request.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityEventAppend( | constructor | Creates an instance of Workflow. |
CreatedAtUtc | property | When the row was created, in UTC. |
EventId | property | The event. |
EventSha256 | property | The SHA-256 of the event. |
EventType | property | The event type. |
PayloadJson | property | The event payload, as JSON. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityEventAppend() #
WorkflowActivityEventAppend() #public WorkflowActivityEventAppend()
Creates an instance of Workflow.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property EventId #
EventId #public required string EventId { get; init; }
The event.
property EventSha256 #
EventSha256 #public required string EventSha256 { get; init; }
The SHA-256 of the event.
property EventType #
EventType #public required string EventType { get; init; }
The event type.
property PayloadJson #
PayloadJson #public required string PayloadJson { get; init; }
The event payload, as JSON.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityMapItemState( | constructor | Creates an instance of Workflow. |
MapExecutionId | property | The map execution. |
MapItemId | property | The map item. |
Status | property | The status. |
VersionNo | property | The row version, raised by each change. |
constructor WorkflowActivityMapItemState() #
WorkflowActivityMapItemState() #public WorkflowActivityMapItemState()
Creates an instance of Workflow.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property MapItemId #
MapItemId #public required string MapItemId { get; init; }
The map item.
property Status #
Status #public required string Status { get; init; }
The status.
property VersionNo #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityMapItemStatusChange( | constructor | Creates an instance of Workflow. |
ExpectedVersionNo | property | The version the stored row must have. |
MapItemId | property | The map item. |
Status | property | The terminal status. |
TerminalOutcome | property | The final outcome of the item. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
constructor WorkflowActivityMapItemStatusChange() #
WorkflowActivityMapItemStatusChange() #public WorkflowActivityMapItemStatusChange()
Creates an instance of Workflow.
property ExpectedVersionNo #
ExpectedVersionNo #public long ExpectedVersionNo { get; init; }
The version the stored row must have.
property MapItemId #
MapItemId #public required string MapItemId { get; init; }
The map item.
property Status #
Status #public required string Status { get; init; }
The terminal status.
property TerminalOutcome #
TerminalOutcome #public string? TerminalOutcome { get; init; }
The final outcome of the item.
property UpdatedAtUtc #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityMapState( | constructor | Creates an instance of Workflow. |
MapExecutionId | property | The map execution. |
Status | property | The status. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityMapState() #
WorkflowActivityMapState() #public WorkflowActivityMapState()
Creates an instance of Workflow.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property Status #
Status #public required string Status { get; init; }
The status.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityMapStatusChange( | constructor | Creates an instance of Workflow. |
CompletedAtUtc | property | When it completed, in UTC. |
ExpectedVersionNo | property | The version the stored row must have. |
MapExecutionId | property | The map execution. |
Status | property | The terminal status. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
constructor WorkflowActivityMapStatusChange() #
WorkflowActivityMapStatusChange() #public WorkflowActivityMapStatusChange()
Creates an instance of Workflow.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property ExpectedVersionNo #
ExpectedVersionNo #public long ExpectedVersionNo { get; init; }
The version the stored row must have.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property Status #
Status #public required string Status { get; init; }
The terminal status.
property UpdatedAtUtc #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityRuntimeChange( | constructor | Creates an instance of Workflow. |
ExpectedVersion | property | The version the stored runtime state must have. |
LastUpdatedOnUtc | property | When it changed, in UTC. |
RuntimeStatus | property | The runtime status. |
StateJson | property | The new snapshot; null keeps the stored one. |
Version | property | The new runtime-state version. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityRuntimeChange() #
WorkflowActivityRuntimeChange() #public WorkflowActivityRuntimeChange()
Creates an instance of Workflow.
property ExpectedVersion #
ExpectedVersion #public long ExpectedVersion { get; init; }
The version the stored runtime state must have.
property LastUpdatedOnUtc #
LastUpdatedOnUtc #public DateTime LastUpdatedOnUtc { get; init; }
When it changed, in UTC.
property RuntimeStatus #
RuntimeStatus #public required string RuntimeStatus { get; init; }
The runtime status.
property StateJson #
StateJson #public string? StateJson { get; init; }
The new snapshot; null keeps the stored one.
property Version #
Version #public long Version { get; init; }
The new runtime-state version.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityRuntimeState( | constructor | Creates an instance of Workflow. |
RuntimeProvider | property | The runtime provider. |
RuntimeStatus | property | The runtime status. |
StateJson | property | The state snapshot, as JSON. |
Version | property | The runtime-state version. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityRuntimeState() #
WorkflowActivityRuntimeState() #public WorkflowActivityRuntimeState()
Creates an instance of Workflow.
property RuntimeProvider #
RuntimeProvider #public required string RuntimeProvider { get; init; }
The runtime provider.
property RuntimeStatus #
RuntimeStatus #public required string RuntimeStatus { get; init; }
The runtime status.
property StateJson #
StateJson #public required string StateJson { get; init; }
The state snapshot, as JSON.
property Version #
Version #public long Version { get; init; }
The runtime-state version.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityStep( | constructor | Creates an instance of WorkflowActivityStep. |
AbsoluteDeadlineAtUtc | property | The deadline over all attempts, in UTC. |
CancelFenceVersion | property | The cancel fence, raised by each cancel. |
CompletedAtUtc | property | When it completed, in UTC. |
ContractVersion | property | The contract version of the activity. |
CreatedAtUtc | property | When the row was created, in UTC. |
CurrentAttemptId | property | The current attempt. |
DeadlineAtUtc | property | The deadline of the current attempt, in UTC. |
DestinationCode | property | The destination of the activity. |
ExpectedExecutionVersion | property | The execution version the step or attempt was created at. |
FailureCategory | property | The category of the last failure. |
LogicalStepKey | property | The step in the definition. |
MapItemId | property | The map item the step runs for, when it runs in a map. |
OperationCode | property | The operation of the activity. |
ResultJson | property | The result, as JSON. |
ResultSha256 | property | The SHA-256 of the result. |
RetryAuthorizedBy | property | Who authorized a manual retry. |
RetryNotBeforeAtUtc | property | The earliest time of the next retry, in UTC. |
RetryPolicyJson | property | The retry policy, as JSON. |
ScopeExecutionId | property | The scope of the step. |
Status | property | The status. |
StepExecutionId | property | The step execution. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowActivityStep() #
WorkflowActivityStep() #public WorkflowActivityStep()
Creates an instance of WorkflowActivityStep.
property AbsoluteDeadlineAtUtc #
AbsoluteDeadlineAtUtc #public DateTime? AbsoluteDeadlineAtUtc { get; init; }
The deadline over all attempts, in UTC.
property CancelFenceVersion #
CancelFenceVersion #public long CancelFenceVersion { get; init; }
The cancel fence, raised by each cancel.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property ContractVersion #
ContractVersion #public required string ContractVersion { get; init; }
The contract version of the activity.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property CurrentAttemptId #
CurrentAttemptId #public required string CurrentAttemptId { get; init; }
The current attempt.
property DeadlineAtUtc #
DeadlineAtUtc #public DateTime DeadlineAtUtc { get; init; }
The deadline of the current attempt, in UTC.
property DestinationCode #
DestinationCode #public required string DestinationCode { get; init; }
The destination of the activity.
property ExpectedExecutionVersion #
ExpectedExecutionVersion #public long ExpectedExecutionVersion { get; init; }
The execution version the step or attempt was created at.
property FailureCategory #
FailureCategory #public string? FailureCategory { get; init; }
The category of the last failure.
property LogicalStepKey #
LogicalStepKey #public required string LogicalStepKey { get; init; }
The step in the definition.
property MapItemId #
MapItemId #public string? MapItemId { get; init; }
The map item the step runs for, when it runs in a map.
property OperationCode #
OperationCode #public required string OperationCode { get; init; }
The operation of the activity.
property ResultJson #
ResultJson #public string? ResultJson { get; init; }
The result, as JSON.
property ResultSha256 #
ResultSha256 #public string? ResultSha256 { get; init; }
The SHA-256 of the result.
property RetryAuthorizedBy #
RetryAuthorizedBy #public string? RetryAuthorizedBy { get; init; }
Who authorized a manual retry.
property RetryNotBeforeAtUtc #
RetryNotBeforeAtUtc #public DateTime? RetryNotBeforeAtUtc { get; init; }
The earliest time of the next retry, in UTC.
property RetryPolicyJson #
RetryPolicyJson #public string? RetryPolicyJson { get; init; }
The retry policy, as JSON.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the step.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
StepExecutionId #public required string StepExecutionId { get; init; }
The step execution.
property UpdatedAtUtc #
UpdatedAtUtc #public DateTime UpdatedAtUtc { get; init; }
When the row last changed, in UTC.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowActivityStepChange( | constructor | Creates an instance of Workflow. |
ExpectedVersionNo | property | The version the stored row must have. |
Step | property | The new step row. |
constructor WorkflowActivityStepChange() #
WorkflowActivityStepChange() #public WorkflowActivityStepChange()
Creates an instance of Workflow.
property ExpectedVersionNo #
ExpectedVersionNo #public long ExpectedVersionNo { get; init; }
The version the stored row must have.
property Step #
Step #public required WorkflowActivityStep Step { get; init; }
The new step row.
enum WorkflowActivityStopTargetKind
public enum WorkflowActivityStopTargetKind
What a stop request targets.
| Value | Description |
|---|---|
Execution = 0 | A whole execution. |
Scope = 1 | A scope. |
Step = 2 | One step. |
Map = 3 | A map execution. |
record WorkflowAssignmentPermissionContext
public sealed record WorkflowAssignmentPermissionContext
What a permission check knows about a task action.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowAssignmentPermissionContext( | constructor | Creates an instance of Workflow. |
Action | property | The action. |
ActorId | property | Who acts. |
ActorRoles | property | The roles of the actor. |
CurrentAssignee | property | The current assignee of the task. |
EffectiveRoles | property | The roles that may work the task. |
TargetRoles | property | The roles the task is assigned to, for WorkflowTaskAction.. |
TargetUserId | property | The user the task is assigned to, for WorkflowTaskAction.. |
constructor WorkflowAssignmentPermissionContext() #
WorkflowAssignmentPermissionContext() #public WorkflowAssignmentPermissionContext()
Creates an instance of Workflow.
property Action #
Action #public required WorkflowTaskAction Action { get; init; }
The action.
property ActorId #
ActorId #public required string ActorId { get; init; }
Who acts.
property ActorRoles #
ActorRoles #public IReadOnlyCollection<string> ActorRoles { get; init; }
The roles of the actor.
property CurrentAssignee #
CurrentAssignee #public string? CurrentAssignee { get; init; }
The current assignee of the task.
property EffectiveRoles #
EffectiveRoles #public IReadOnlyCollection<string> EffectiveRoles { get; init; }
The roles that may work the task.
property TargetRoles #
TargetRoles #public IReadOnlyCollection<string> TargetRoles { get; init; }
The roles the task is assigned to, for WorkflowTaskAction..
property TargetUserId #
TargetUserId #public string? TargetUserId { get; init; }
The user the task is assigned to, for WorkflowTaskAction..
record WorkflowAssignmentPermissionDecision
public sealed record WorkflowAssignmentPermissionDecision
The outcome of a permission check.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowAssignmentPermissionDecision( | constructor | Creates an instance of Workflow. |
Allowed | property | Whether the action is allowed. |
Reason | property | Why it is refused. |
constructor WorkflowAssignmentPermissionDecision() #
WorkflowAssignmentPermissionDecision() #public WorkflowAssignmentPermissionDecision()
Creates an instance of Workflow.
property Allowed #
Allowed #public required bool Allowed { get; init; }
Whether the action is allowed.
property Reason #
Reason #public string? Reason { get; init; }
Why it is refused.
class WorkflowBackendConfigurationExtensions
public static class WorkflowBackendConfigurationExtensions
Reads the configured workflow backend.
Members
| Member | Kind | Summary |
|---|---|---|
GetWorkflowBackendProvider( | extension method | Returns Workflow; Postgres when not set. |
extension method GetWorkflowBackendProvider(IConfiguration) #
GetWorkflowBackendProvider(IConfiguration) #public static string GetWorkflowBackendProvider(this IConfiguration configuration)
Returns Workflow; 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 Workflow.
Members
| Member | Kind | Summary |
|---|---|---|
Mongo | constant | The MongoDB store. |
Oracle | constant | The name reserved for an Oracle store, which is not available in this release. |
Postgres | constant | The PostgreSQL store. |
constant Mongo #
Mongo #public const string Mongo = "Mongo"
The MongoDB store.
constant Oracle #
Oracle #public const string Oracle = "Oracle"
The name reserved for an Oracle store, which is not available in this release.
constant Postgres #
Postgres #public const string Postgres = "Postgres"
The PostgreSQL store.
class WorkflowBackendOptions
public sealed class WorkflowBackendOptions
The workflow store the host uses (WorkflowBackend).
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowBackendOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: WorkflowBackend. |
Provider | property | The store: Postgres (the default, also when unset) or Mongo. |
constructor WorkflowBackendOptions() #
WorkflowBackendOptions() #public WorkflowBackendOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowBackend"
The configuration section the options bind from: WorkflowBackend.
property Provider #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowBackendRegistrationMarker( | constructor | The registration marker of a store library. |
BackendName | property | The backend name. |
constructor WorkflowBackendRegistrationMarker(string) #
WorkflowBackendRegistrationMarker(string) #public WorkflowBackendRegistrationMarker(string BackendName)
The registration marker of a store library.
Parameters
BackendName: The backend name.
property BackendName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowBusinessIdAttribute( | constructor | Creates an instance of Workflow. |
constructor WorkflowBusinessIdAttribute() #
WorkflowBusinessIdAttribute() #public WorkflowBusinessIdAttribute()
Creates an instance of Workflow.
record WorkflowBusinessReferenceAssignmentStepDefinition<TStartRequest>
public sealed record WorkflowBusinessReferenceAssignmentStepDefinition<TStartRequest> : WorkflowStepDefinition<TStartRequest> where TStartRequest : class
Sets the business reference of the instance.
Parameters
Business: Computes the business reference.Reference Factory
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowBusinessReferenceAssignmentStepDefinition( | constructor | Sets the business reference of the instance. |
BusinessReferenceDeclaration | property | The business reference as an expression, for the canonical definition. |
BusinessReferenceFactory | property | Computes the business reference. |
constructor WorkflowBusinessReferenceAssignmentStepDefinition(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #
WorkflowBusinessReferenceAssignmentStepDefinition(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #public WorkflowBusinessReferenceAssignmentStepDefinition(Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference?> BusinessReferenceFactory)
Sets the business reference of the instance.
Parameters
Business: Computes the business reference.Reference Factory
property BusinessReferenceDeclaration #
BusinessReferenceDeclaration #public WorkflowBusinessReferenceDeclaration? BusinessReferenceDeclaration { get; init; }
The business reference as an expression, for the canonical definition.
property BusinessReferenceFactory #
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
| Member | Kind | Summary |
|---|---|---|
MaxBusinessReferenceKeyLength | constant | The longest business reference key; a longer one is shortened with a hash. |
BuildCanonicalBusinessReferenceKey( | method | Builds a key from parts: name=value pairs ordered by name, URI-escaped and joined with |. |
ConvertBusinessReferenceValueToString( | method | Writes a part value as invariant text. |
MatchesBusinessReferenceFilter( | extension method | Whether a reference matches a filter: the same key when one is given, and the same text value for every part given. |
NormalizeBusinessReference( | method | Normalizes a reference: drops parts without a name, builds the key from the parts when it is not set, and shortens a long key. |
NormalizeBusinessReferenceKey( | method | Shortens a key longer than the maximum with a hash. |
ToBusinessReference( | extension method | Reads a reference from a dictionary with key and parts. |
ToObjectDictionary( | extension method | Writes a reference as a dictionary with key and parts. |
constant MaxBusinessReferenceKeyLength #
MaxBusinessReferenceKeyLength #public const int MaxBusinessReferenceKeyLength = 128
The longest business reference key; a longer one is shortened with a hash.
method BuildCanonicalBusinessReferenceKey(IDictionary<string, object>) #
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) #
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>) #
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) #
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) #
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>) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowBusinessReferencePartAttribute( | constructor | Marks the property as a business reference part. |
PartName | property | The part name, or null to use the property name. |
constructor WorkflowBusinessReferencePartAttribute(string) #
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 #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCaller( | constructor | A workflow’s caller: the user its service calls go as, with the roles the caller’s token carried. |
Roles | property | The roles of the caller’s token, when known. |
UserId | property | The user. |
constructor WorkflowCaller(string, IReadOnlyList<string>) #
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 #
Roles #public IReadOnlyList<string>? Roles { get; init; }
The roles of the caller’s token, when known.
property UserId #
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
| Member | Kind | Summary |
|---|---|---|
SignalPayloadKey | constant | Signal payload key that carries the caller to a continuation. |
Read( | method | Reads a caller from a signal payload entry. |
Read( | method | Reads the caller kept in an engine runtime snapshot. |
ToSignalPayload( | method | Writes a caller as a signal payload entry. |
Write( | method | Keeps the caller in an engine runtime snapshot; a snapshot without a caller is returned unchanged. |
constant SignalPayloadKey #
SignalPayloadKey #public const string SignalPayloadKey = "caller"
Signal payload key that carries the caller to a continuation.
method Read(JsonElement) #
Read(JsonElement) #public static WorkflowCaller? Read(JsonElement element)
Reads a caller from a signal payload entry.
method Read(string) #
Read(string) #public static WorkflowCaller? Read(string? runtimeStateJson)
Reads the caller kept in an engine runtime snapshot.
method ToSignalPayload(WorkflowCaller) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
AddWorkflowCancellationCleanupPolicy< | extension method | Replaces the registered IWorkflowCancellationCleanupPolicywith TPolicy, a singleton. |
extension method AddWorkflowCancellationCleanupPolicy<TPolicy>(IServiceCollection) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalCompilationResult( | constructor | Creates an instance of Workflow. |
Definition | property | The canonical definition, when the compilation succeeded. |
Diagnostics | property | Why parts of the workflow have no canonical form. |
Succeeded | property | Whether the compilation gave a definition without diagnostics. |
WorkflowName | property | The workflow name. |
WorkflowVersion | property | The workflow version. |
constructor WorkflowCanonicalCompilationResult() #
WorkflowCanonicalCompilationResult() #public WorkflowCanonicalCompilationResult()
Creates an instance of Workflow.
property Definition #
Definition #public WorkflowCanonicalDefinition? Definition { get; init; }
The canonical definition, when the compilation succeeded.
property Diagnostics #
Diagnostics #public IReadOnlyCollection<WorkflowCanonicalizationDiagnostic> Diagnostics { get; init; }
Why parts of the workflow have no canonical form.
property Succeeded #
Succeeded #public bool Succeeded { get; }
Whether the compilation gave a definition without diagnostics.
property WorkflowName #
WorkflowName #public required string WorkflowName { get; init; }
The workflow name.
property WorkflowVersion #
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
| Member | Kind | Summary |
|---|---|---|
Compile< | method | Compiles a workflow. |
method Compile<TStartRequest>(IDeclarativeWorkflow<TStartRequest>, IWorkflowFunctionCatalog) #
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
| Member | Kind | Summary |
|---|---|---|
Validate( | method | Validates a definition. |
ValidateBusinessReference( | method | Validates a business reference declaration. |
ValidateExpression( | method | Validates an expression. |
ValidateTask( | method | Validates a task declaration. |
method Validate(WorkflowCanonicalDefinition, IWorkflowFunctionCatalog, IWorkflowExternalActivityRegistry) #
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.external: The external activity registry, for the activity checks; none when not set.Activity Registry
Returns
The findings.
method ValidateBusinessReference(WorkflowBusinessReferenceDeclaration, IWorkflowFunctionCatalog) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalEvaluationContext( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference (businessReference). |
FunctionRuntime | property | Runs the expression functions. |
Payload | property | The payload being handled (payload). |
Result | property | The kept step results (result). |
Start | property | The start request (start). |
State | property | The workflow state (state). |
ForResult( | method | A context with only a result. |
ForStartRequest< | method | A context with only the start request. |
ForState( | method | A context with a state and, optionally, results and a business reference. |
From< | method | The context of an execution context: its start request, state, payload, results and business reference. |
constructor WorkflowCanonicalEvaluationContext() #
WorkflowCanonicalEvaluationContext() #public WorkflowCanonicalEvaluationContext()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference (businessReference).
property FunctionRuntime #
FunctionRuntime #public IWorkflowFunctionRuntime? FunctionRuntime { get; init; }
Runs the expression functions.
property Payload #
Payload #public JsonElement? Payload { get; init; }
The payload being handled (payload).
property Result #
Result #public JsonElement? Result { get; init; }
The kept step results (result).
property Start #
Start #public JsonElement? Start { get; init; }
The start request (start).
property State #
State #public JsonElement? State { get; init; }
The workflow state (state).
method ForResult(JsonElement, IWorkflowFunctionRuntime) #
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) #
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) #
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>) #
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
| Member | Kind | Summary |
|---|---|---|
Evaluate( | method | Evaluates an expression. |
Evaluate< | method | Evaluates an expression in an execution context. |
EvaluateBusinessReference( | method | Evaluates a business reference declaration. |
EvaluateBusinessReference< | method | Evaluates a business reference declaration in an execution context. |
method Evaluate(WorkflowExpressionDefinition, WorkflowCanonicalEvaluationContext) #
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>) #
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) #
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>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalImportValidationResult( | constructor | Creates an instance of Workflow. |
Definition | property | The definition, when the JSON could be read. |
ModuleErrors | property | The findings about required modules that are missing or too old. |
SchemaErrors | property | The JSON and schema findings. |
SemanticErrors | property | The semantic findings. |
Succeeded | property | Whether the definition was read and has no finding. |
constructor WorkflowCanonicalImportValidationResult() #
WorkflowCanonicalImportValidationResult() #public WorkflowCanonicalImportValidationResult()
Creates an instance of Workflow.
property Definition #
Definition #public WorkflowCanonicalDefinition? Definition { get; init; }
The definition, when the JSON could be read.
property ModuleErrors #
ModuleErrors #public IReadOnlyCollection<WorkflowCanonicalValidationError> ModuleErrors { get; init; }
The findings about required modules that are missing or too old.
property SchemaErrors #
SchemaErrors #public IReadOnlyCollection<WorkflowCanonicalValidationError> SchemaErrors { get; init; }
The JSON and schema findings.
property SemanticErrors #
SemanticErrors #public IReadOnlyCollection<WorkflowCanonicalValidationError> SemanticErrors { get; init; }
The semantic findings.
property Succeeded #
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
| Member | Kind | Summary |
|---|---|---|
Validate( | method | Reads 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) #
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.external: The external activity registry, for the activity checks.Activity Registry
Returns
The outcome.
Exceptions
ArgumentException:jsonis 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
| Member | Kind | Summary |
|---|---|---|
CollectReferencedKeys( | method | Collects the result keys the definition’s expressions read, ignoring case; null when an expression reads the whole result root. |
GetReferencedKeys( | method | The 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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalTemplateBindings( | constructor | Creates an instance of Workflow. |
AddJson< | method | Binds a token to a value, written as canonical JSON. |
AddString( | method | Binds a token to a string, written as a JSON string. |
Build( | method | Returns the bindings. |
constructor WorkflowCanonicalTemplateBindings() #
WorkflowCanonicalTemplateBindings() #public WorkflowCanonicalTemplateBindings()
Creates an instance of Workflow.
method AddJson<TValue>(string, TValue) #
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) #
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() #
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
| Member | Kind | Summary |
|---|---|---|
LoadEmbeddedDefinition( | method | Loads and renders a definition template. |
LoadEmbeddedFragment< | method | Loads and renders a template of a part of a definition. |
LoadEmbeddedText( | method | Reads an embedded resource as text. |
Render( | method | Replaces every {{token}} of a template with its bound value. |
method LoadEmbeddedDefinition(Assembly, string, IReadOnlyDictionary<string, string>) #
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>) #
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) #
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
Invalid: The resource does not exist.Operation Exception
method Render(string, IReadOnlyDictionary<string, string>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalValidationError( | constructor | Creates an instance of Workflow. |
Code | property | The finding code. |
Message | property | The message. |
Path | property | The JSON path of the element. |
constructor WorkflowCanonicalValidationError() #
WorkflowCanonicalValidationError() #public WorkflowCanonicalValidationError()
Creates an instance of Workflow.
property Code #
Code #public required string Code { get; init; }
The finding code.
property Message #
Message #public required string Message { get; init; }
The message.
property Path #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalValidationResult( | constructor | Creates an instance of Workflow. |
Errors | property | The findings. |
Succeeded | property | Whether there is no finding. |
constructor WorkflowCanonicalValidationResult() #
WorkflowCanonicalValidationResult() #public WorkflowCanonicalValidationResult()
Creates an instance of Workflow.
property Errors #
Errors #public IReadOnlyCollection<WorkflowCanonicalValidationError> Errors { get; init; }
The findings.
property Succeeded #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCanonicalizationDiagnostic( | constructor | Creates an instance of Workflow. |
Code | property | The diagnostic code. |
Message | property | The message. |
Path | property | The path of the part. |
constructor WorkflowCanonicalizationDiagnostic() #
WorkflowCanonicalizationDiagnostic() #public WorkflowCanonicalizationDiagnostic()
Creates an instance of Workflow.
property Code #
Code #public required string Code { get; init; }
The diagnostic code.
property Message #
Message #public required string Message { get; init; }
The message.
property Path #
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
| Member | Kind | Summary |
|---|---|---|
CanceledLinkStatus | constant | The child was canceled (Constants). |
CompletedLinkStatus | constant | The child completed and its result reached the parent (Constants). |
IsFinished( | method | A finished link changes no more: its child completed or was canceled. |
SelectReclaimableAsync( | method | The executions of eligibleExecutionIds that retention may reclaim, in their input order: those in no link, and those whose whole child family qualifies. |
constant CanceledLinkStatus #
CanceledLinkStatus #public const string CanceledLinkStatus = "CANCELED"
The child was canceled (Constants).
constant CompletedLinkStatus #
CompletedLinkStatus #public const string CompletedLinkStatus = "COMPLETED"
The child completed and its result reached the parent (Constants).
method IsFinished(string) #
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) #
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; read returns which of the given executions still have an instance.
record WorkflowChildLink
public sealed record WorkflowChildLink
The durable link between a parent step and the child workflow execution it started.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowChildLink( | constructor | Creates an instance of WorkflowChildLink. |
ChildDefinitionCode | property | The child workflow. |
ChildDefinitionVersion | property | The child workflow version. |
ChildWorkflowExecutionId | property | The child execution. |
CompletedAtUtc | property | When the link completed, in UTC. |
CreatedAtUtc | property | When the link was created, in UTC. |
LinkId | property | The link identifier. |
ParentScopeExecutionId | property | The parent scope. |
ParentStepExecutionId | property | The parent step that runs the child. |
ParentWorkflowExecutionId | property | The parent execution. |
ResultDescriptorJson | property | The child result descriptor, as JSON, once it completed. |
ResultSha256 | property | The SHA-256 of the child result. |
StartRequestSha256 | property | The SHA-256 of the child start request. |
Status | property | The link status. |
VersionNo | property | The record version, raised by each change. |
constructor WorkflowChildLink() #
WorkflowChildLink() #public WorkflowChildLink()
Creates an instance of WorkflowChildLink.
property ChildDefinitionCode #
ChildDefinitionCode #public required string ChildDefinitionCode { get; init; }
The child workflow.
property ChildDefinitionVersion #
ChildDefinitionVersion #public required string ChildDefinitionVersion { get; init; }
The child workflow version.
property ChildWorkflowExecutionId #
ChildWorkflowExecutionId #public required string ChildWorkflowExecutionId { get; init; }
The child execution.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When the link completed, in UTC.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the link was created, in UTC.
property LinkId #
LinkId #public required string LinkId { get; init; }
The link identifier.
property ParentScopeExecutionId #
ParentScopeExecutionId #public required string ParentScopeExecutionId { get; init; }
The parent scope.
property ParentStepExecutionId #
ParentStepExecutionId #public required string ParentStepExecutionId { get; init; }
The parent step that runs the child.
property ParentWorkflowExecutionId #
ParentWorkflowExecutionId #public required string ParentWorkflowExecutionId { get; init; }
The parent execution.
property ResultDescriptorJson #
ResultDescriptorJson #public string? ResultDescriptorJson { get; init; }
The child result descriptor, as JSON, once it completed.
property ResultSha256 #
ResultSha256 #public string? ResultSha256 { get; init; }
The SHA-256 of the child result.
property StartRequestSha256 #
StartRequestSha256 #public required string StartRequestSha256 { get; init; }
The SHA-256 of the child start request.
property Status #
Status #public required string Status { get; init; }
The link status.
property VersionNo #
VersionNo #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.Parent: The parent execution.Workflow Execution Id Child: The child execution.Workflow Execution Id Status: The link status.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowChildLinkRetentionRow( | constructor | One parent-to-child execution link, as the retention pass reads it. |
ChildWorkflowExecutionId | property | The child execution. |
LinkId | property | The link. |
ParentWorkflowExecutionId | property | The parent execution. |
Status | property | The link status. |
constructor WorkflowChildLinkRetentionRow(string, string, string, string) #
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.Parent: The parent execution.Workflow Execution Id Child: The child execution.Workflow Execution Id Status: The link status.
property ChildWorkflowExecutionId #
ChildWorkflowExecutionId #public string ChildWorkflowExecutionId { get; init; }
The child execution.
property LinkId #
LinkId #public string LinkId { get; init; }
The link.
property ParentWorkflowExecutionId #
ParentWorkflowExecutionId #public string ParentWorkflowExecutionId { get; init; }
The parent execution.
property Status #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowCompleteStepDefinition( | constructor | Completes the instance. |
constructor WorkflowCompleteStepDefinition() #
WorkflowCompleteStepDefinition() #public WorkflowCompleteStepDefinition()
Completes the instance.
class WorkflowConditionDefinition<TStartRequest>
public abstract class WorkflowConditionDefinition<TStartRequest> where TStartRequest : class
A condition of a decision.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowConditionDefinition( | constructor | Creates a condition. |
CanonicalExpression | property | The condition as an expression, for the canonical definition; none for a delegate. |
DisplayName | property | The label of the decision in diagrams. |
Evaluate( | method | Evaluates the condition. |
constructor WorkflowConditionDefinition(string) #
WorkflowConditionDefinition(string) #protected WorkflowConditionDefinition(string displayName)
Creates a condition.
Parameters
displayName: The label of the decision in diagrams.
property CanonicalExpression #
CanonicalExpression #public virtual WorkflowExpressionDefinition? CanonicalExpression { get; }
The condition as an expression, for the canonical definition; none for a delegate.
property DisplayName #
DisplayName #public string DisplayName { get; }
The label of the decision in diagrams.
method Evaluate(WorkflowSpecExecutionContext<TStartRequest>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConditionalStepDefinition( | constructor | Branches on a condition. |
Condition | property | The condition. |
WhenElse | property | The steps to run otherwise. |
WhenTrue | property | The steps to run when the condition holds. |
constructor WorkflowConditionalStepDefinition(WorkflowConditionDefinition<TStartRequest>, WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>) #
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 #
Condition #public WorkflowConditionDefinition<TStartRequest> Condition { get; init; }
The condition.
property WhenElse #
WhenElse #public WorkflowStepSequence<TStartRequest> WhenElse { get; init; }
The steps to run otherwise.
property WhenTrue #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleAttemptRecord( | constructor | Creates an instance of Workflow. |
AttemptId | property | The attempt. |
AttemptNumber | property | The attempt number, from 1. |
CompletedAtUtc | property | When it completed, in UTC. |
CompletionDisposition | property | How the completion was applied. |
CompletionEventId | property | The completion event, once it arrived. |
CompletionSha256 | property | The SHA-256 of the completion. |
ContractKind | property | The contract kind of the activity. |
CreatedAtUtc | property | When the row was created, in UTC. |
DeadlineAtUtc | property | The deadline of the attempt, in UTC. |
DispatchId | property | The dispatch of the attempt. |
HandlerBuildSha256 | property | The SHA-256 of the handler build. |
PriorAttemptId | property | The attempt this one follows. |
PriorCompletionEventId | property | The completion of the prior attempt. |
ProviderGeneration | property | The provider generation that answered. |
RequestSha256 | property | The SHA-256 of the request. |
ScopeExecutionId | property | The scope of the step. |
Status | property | The status. |
StepExecutionId | property | The step execution. |
constructor WorkflowConsoleAttemptRecord() #
WorkflowConsoleAttemptRecord() #public WorkflowConsoleAttemptRecord()
Creates an instance of Workflow.
property AttemptId #
AttemptId #public required string AttemptId { get; init; }
The attempt.
property AttemptNumber #
AttemptNumber #public int AttemptNumber { get; init; }
The attempt number, from 1.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property CompletionDisposition #
CompletionDisposition #public string? CompletionDisposition { get; init; }
How the completion was applied.
property CompletionEventId #
CompletionEventId #public string? CompletionEventId { get; init; }
The completion event, once it arrived.
property CompletionSha256 #
CompletionSha256 #public string? CompletionSha256 { get; init; }
The SHA-256 of the completion.
property ContractKind #
ContractKind #public required string ContractKind { get; init; }
The contract kind of the activity.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DeadlineAtUtc #
DeadlineAtUtc #public DateTime DeadlineAtUtc { get; init; }
The deadline of the attempt, in UTC.
property DispatchId #
DispatchId #public required string DispatchId { get; init; }
The dispatch of the attempt.
property HandlerBuildSha256 #
HandlerBuildSha256 #public required string HandlerBuildSha256 { get; init; }
The SHA-256 of the handler build.
property PriorAttemptId #
PriorAttemptId #public string? PriorAttemptId { get; init; }
The attempt this one follows.
property PriorCompletionEventId #
PriorCompletionEventId #public string? PriorCompletionEventId { get; init; }
The completion of the prior attempt.
property ProviderGeneration #
ProviderGeneration #public long? ProviderGeneration { get; init; }
The provider generation that answered.
property RequestSha256 #
RequestSha256 #public required string RequestSha256 { get; init; }
The SHA-256 of the request.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the step.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleDeliveryRecord( | constructor | Creates an instance of Workflow. |
AppliedAtUtc | property | When the dispatch was published or the completion applied, in UTC. |
DeliveryState | property | The delivery state of a dispatch, or the disposition of a completion. |
Id | property | The dispatch or completion identifier. |
Kind | property | DISPATCH or COMPLETION. |
OccurredAtUtc | property | When the dispatch was created or the completion received, in UTC. |
constructor WorkflowConsoleDeliveryRecord() #
WorkflowConsoleDeliveryRecord() #public WorkflowConsoleDeliveryRecord()
Creates an instance of Workflow.
property AppliedAtUtc #
AppliedAtUtc #public DateTime? AppliedAtUtc { get; init; }
When the dispatch was published or the completion applied, in UTC.
property DeliveryState #
DeliveryState #public required string DeliveryState { get; init; }
The delivery state of a dispatch, or the disposition of a completion.
property Id #
Id #public required string Id { get; init; }
The dispatch or completion identifier.
property Kind #
Kind #public required string Kind { get; init; }
DISPATCH or COMPLETION.
property OccurredAtUtc #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleExecutionRecord( | constructor | Creates an instance of Workflow. |
CompletedOnUtc | property | When it completed, in UTC. |
CreatedOnUtc | property | When the execution started, in UTC. |
HistoryFloorSequence | property | The first history sequence still kept. |
NextEventSequence | property | The sequence of the next history event. |
StateJson | property | The workflow state, as JSON. |
Status | property | The status. |
WorkflowInstanceId | property | The execution (workflow instance). |
WorkflowName | property | The workflow name. |
WorkflowVersion | property | The workflow version. |
constructor WorkflowConsoleExecutionRecord() #
WorkflowConsoleExecutionRecord() #public WorkflowConsoleExecutionRecord()
Creates an instance of Workflow.
property CompletedOnUtc #
CompletedOnUtc #public DateTime? CompletedOnUtc { get; init; }
When it completed, in UTC.
property CreatedOnUtc #
CreatedOnUtc #public DateTime CreatedOnUtc { get; init; }
When the execution started, in UTC.
property HistoryFloorSequence #
HistoryFloorSequence #public long HistoryFloorSequence { get; init; }
The first history sequence still kept.
property NextEventSequence #
NextEventSequence #public long NextEventSequence { get; init; }
The sequence of the next history event.
property StateJson #
StateJson #public required string StateJson { get; init; }
The workflow state, as JSON.
property Status #
Status #public required string Status { get; init; }
The status.
property WorkflowInstanceId #
WorkflowInstanceId #public required string WorkflowInstanceId { get; init; }
The execution (workflow instance).
property WorkflowName #
WorkflowName #public required string WorkflowName { get; init; }
The workflow name.
property WorkflowVersion #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleMapItemRecord( | constructor | Creates an instance of Workflow. |
ItemKey | property | The item key. |
MapExecutionId | property | The map execution. |
MapItemId | property | The map item. |
Ordinal | property | The position of the item in the collection. |
Status | property | The status. |
TerminalOutcome | property | The final outcome, once the item finished. |
constructor WorkflowConsoleMapItemRecord() #
WorkflowConsoleMapItemRecord() #public WorkflowConsoleMapItemRecord()
Creates an instance of Workflow.
property ItemKey #
ItemKey #public required string ItemKey { get; init; }
The item key.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property MapItemId #
MapItemId #public required string MapItemId { get; init; }
The map item.
property Ordinal #
Ordinal #public int Ordinal { get; init; }
The position of the item in the collection.
property Status #
Status #public required string Status { get; init; }
The status.
property TerminalOutcome #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleMapRecord( | constructor | Creates an instance of Workflow. |
AbsoluteDeadlineAtUtc | property | The deadline of the map, in UTC. |
CompletedAtUtc | property | When it completed, in UTC. |
CreatedAtUtc | property | When the row was created, in UTC. |
ExecutionPlanJson | property | The map plan, as JSON. |
ExecutionPlanSha256 | property | The SHA-256 of the map plan. |
FailurePolicy | property | The failure policy. |
FanInPolicy | property | The fan-in policy. |
GlobalActivityClass | property | The class of activities whose concurrency is limited across all maps. |
MapExecutionId | property | The map execution. |
MaxAggregateStateBytes | property | The size limit of the collected results, in bytes. |
MaxConcurrency | property | The items in flight at once. |
MaxItems | property | The items allowed. |
MinimumSucceeded | property | The items that must succeed under MIN_SUCCEEDED. |
ScopeExecutionId | property | The scope of the map. |
Status | property | The status. |
StepExecutionId | property | The map step. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution it belongs to. |
constructor WorkflowConsoleMapRecord() #
WorkflowConsoleMapRecord() #public WorkflowConsoleMapRecord()
Creates an instance of Workflow.
property AbsoluteDeadlineAtUtc #
AbsoluteDeadlineAtUtc #public DateTime? AbsoluteDeadlineAtUtc { get; init; }
The deadline of the map, in UTC.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property ExecutionPlanJson #
ExecutionPlanJson #public required string ExecutionPlanJson { get; init; }
The map plan, as JSON.
property ExecutionPlanSha256 #
ExecutionPlanSha256 #public required string ExecutionPlanSha256 { get; init; }
The SHA-256 of the map plan.
property FailurePolicy #
FailurePolicy #public required string FailurePolicy { get; init; }
The failure policy.
property FanInPolicy #
FanInPolicy #public required string FanInPolicy { get; init; }
The fan-in policy.
property GlobalActivityClass #
GlobalActivityClass #public string? GlobalActivityClass { get; init; }
The class of activities whose concurrency is limited across all maps.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property MaxAggregateStateBytes #
MaxAggregateStateBytes #public int MaxAggregateStateBytes { get; init; }
The size limit of the collected results, in bytes.
property MaxConcurrency #
MaxConcurrency #public int MaxConcurrency { get; init; }
The items in flight at once.
property MaxItems #
MaxItems #public int MaxItems { get; init; }
The items allowed.
property MinimumSucceeded #
MinimumSucceeded #public int? MinimumSucceeded { get; init; }
The items that must succeed under MIN_SUCCEEDED.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the map.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
StepExecutionId #public required string StepExecutionId { get; init; }
The map step.
property UpdatedAtUtc #
UpdatedAtUtc #public DateTime UpdatedAtUtc { get; init; }
When the row last changed, in UTC.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleScopeRecord( | constructor | Creates an instance of Workflow. |
CompletedAtUtc | property | When it completed, in UTC. |
CreatedAtUtc | property | When the row was created, in UTC. |
ParentScopeExecutionId | property | The scope that contains it. |
ScopeCode | property | The scope code. |
ScopeExecutionId | property | The scope execution. |
ScopeVersion | property | The scope version. |
Status | property | The status. |
TagsJson | property | The scope tags, as JSON. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution it belongs to. |
constructor WorkflowConsoleScopeRecord() #
WorkflowConsoleScopeRecord() #public WorkflowConsoleScopeRecord()
Creates an instance of Workflow.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property ParentScopeExecutionId #
ParentScopeExecutionId #public string? ParentScopeExecutionId { get; init; }
The scope that contains it.
property ScopeCode #
ScopeCode #public required string ScopeCode { get; init; }
The scope code.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope execution.
property ScopeVersion #
ScopeVersion #public required string ScopeVersion { get; init; }
The scope version.
property Status #
Status #public required string Status { get; init; }
The status.
property TagsJson #
TagsJson #public required string TagsJson { get; init; }
The scope tags, as JSON.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowConsoleStepRecord( | constructor | Creates an instance of Workflow. |
AbsoluteDeadlineAtUtc | property | The deadline over all attempts, in UTC. |
CompletedAtUtc | property | When it completed, in UTC. |
ContractVersion | property | The contract version of the activity. |
CreatedAtUtc | property | When the row was created, in UTC. |
CurrentAttemptId | property | The current attempt. |
DeadlineAtUtc | property | The deadline of the current attempt, in UTC. |
DestinationCode | property | The destination of the activity. |
FailureCategory | property | The category of the last failure. |
LogicalStepKey | property | The step in the definition. |
OperationCode | property | The operation of the activity. |
ResultSha256 | property | The SHA-256 of the result. |
RetryNotBeforeAtUtc | property | The earliest time of the next retry, in UTC. |
ScopeExecutionId | property | The scope of the step. |
Status | property | The status. |
StepExecutionId | property | The step execution. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
constructor WorkflowConsoleStepRecord() #
WorkflowConsoleStepRecord() #public WorkflowConsoleStepRecord()
Creates an instance of Workflow.
property AbsoluteDeadlineAtUtc #
AbsoluteDeadlineAtUtc #public DateTime? AbsoluteDeadlineAtUtc { get; init; }
The deadline over all attempts, in UTC.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property ContractVersion #
ContractVersion #public required string ContractVersion { get; init; }
The contract version of the activity.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property CurrentAttemptId #
CurrentAttemptId #public required string CurrentAttemptId { get; init; }
The current attempt.
property DeadlineAtUtc #
DeadlineAtUtc #public DateTime DeadlineAtUtc { get; init; }
The deadline of the current attempt, in UTC.
property DestinationCode #
DestinationCode #public required string DestinationCode { get; init; }
The destination of the activity.
property FailureCategory #
FailureCategory #public string? FailureCategory { get; init; }
The category of the last failure.
property LogicalStepKey #
LogicalStepKey #public required string LogicalStepKey { get; init; }
The step in the definition.
property OperationCode #
OperationCode #public required string OperationCode { get; init; }
The operation of the activity.
property ResultSha256 #
ResultSha256 #public string? ResultSha256 { get; init; }
The SHA-256 of the result.
property RetryNotBeforeAtUtc #
RetryNotBeforeAtUtc #public DateTime? RetryNotBeforeAtUtc { get; init; }
The earliest time of the next retry, in UTC.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the step.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
StepExecutionId #public required string StepExecutionId { get; init; }
The step execution.
property UpdatedAtUtc #
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
| Member | Kind | Summary |
|---|---|---|
ComputeHash( | method | Computes a SHA-256 hash of the canonical definition JSON. |
method ComputeHash(string) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowContinuationLineage( | constructor | Creates an instance of Workflow. |
ConsumedAtUtc | property | When the next attempt consumed it, in UTC. |
ContinuationRef | property | The provider’s continuation reference. |
ContinuationSha256 | property | The SHA-256 of the continuation. |
CreatedAtUtc | property | When the row was created, in UTC. |
Generation | property | The continuation generation. |
LineageId | property | The lineage. |
RevokedAtUtc | property | When a cancel revoked it, in UTC. |
RevokedByCancelFence | property | The cancel fence that revoked it. |
ScopeExecutionId | property | The scope of the step. |
SourceAttemptId | property | The attempt that left the continuation. |
SourceCompletionEventId | property | The completion that carried it. |
Status | property | The status. |
StepExecutionId | property | The step execution. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowContinuationLineage() #
WorkflowContinuationLineage() #public WorkflowContinuationLineage()
Creates an instance of Workflow.
property ConsumedAtUtc #
ConsumedAtUtc #public DateTime? ConsumedAtUtc { get; init; }
When the next attempt consumed it, in UTC.
property ContinuationRef #
ContinuationRef #public required string ContinuationRef { get; init; }
The provider’s continuation reference.
property ContinuationSha256 #
ContinuationSha256 #public required string ContinuationSha256 { get; init; }
The SHA-256 of the continuation.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property Generation #
Generation #public long Generation { get; init; }
The continuation generation.
property LineageId #
LineageId #public required string LineageId { get; init; }
The lineage.
property RevokedAtUtc #
RevokedAtUtc #public DateTime? RevokedAtUtc { get; init; }
When a cancel revoked it, in UTC.
property RevokedByCancelFence #
RevokedByCancelFence #public long? RevokedByCancelFence { get; init; }
The cancel fence that revoked it.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the step.
property SourceAttemptId #
SourceAttemptId #public required string SourceAttemptId { get; init; }
The attempt that left the continuation.
property SourceCompletionEventId #
SourceCompletionEventId #public required string SourceCompletionEventId { get; init; }
The completion that carried it.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
StepExecutionId #public required string StepExecutionId { get; init; }
The step execution.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowContinuationLineageChange( | constructor | Creates an instance of Workflow. |
ExpectedVersionNo | property | The version the stored row must have. |
Lineage | property | The new lineage row. |
constructor WorkflowContinuationLineageChange() #
WorkflowContinuationLineageChange() #public WorkflowContinuationLineageChange()
Creates an instance of Workflow.
property ExpectedVersionNo #
ExpectedVersionNo #public long ExpectedVersionNo { get; init; }
The version the stored row must have.
property Lineage #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowContinuationPlan( | constructor | Creates an instance of Workflow. |
DueAtUtc | property | When to start, in UTC; at once when not set. |
Request | property | The start request. |
constructor WorkflowContinuationPlan() #
WorkflowContinuationPlan() #public WorkflowContinuationPlan()
Creates an instance of Workflow.
property DueAtUtc #
DueAtUtc #public DateTime? DueAtUtc { get; init; }
When to start, in UTC; at once when not set.
property Request #
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 inresult.lastFailure.Start: Builds the start request of the workflow to run.Workflow Request Factory
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowContinueWithStepDefinition( | constructor | Starts another workflow as an independent instance and continues at once. |
InvocationDeclaration | property | The workflow to start, for the canonical definition. |
StartWorkflowRequestFactory | property | Builds the start request of the workflow to run. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowContinueWithStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest>) #
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 inresult.lastFailure.Start: Builds the start request of the workflow to run.Workflow Request Factory
property InvocationDeclaration #
InvocationDeclaration #public WorkflowWorkflowInvocationDeclaration? InvocationDeclaration { get; init; }
The workflow to start, for the canonical definition.
property StartWorkflowRequestFactory #
StartWorkflowRequestFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest> StartWorkflowRequestFactory { get; init; }
Builds the start request of the workflow to run.
property StepName #
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.).
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowCoreFunctionProvider( | constructor | Creates an instance of Workflow. |
GetFunctions( | method | Returns the functions. |
constructor WorkflowCoreFunctionProvider() #
WorkflowCoreFunctionProvider() #public WorkflowCoreFunctionProvider()
Creates an instance of Workflow.
method GetFunctions() #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowDecisionStepDefinition( | constructor | Branches on a value condition. |
Condition | property | The condition. |
WhenFalse | property | The steps to run otherwise. |
WhenTrue | property | The steps to run when the condition holds. |
constructor WorkflowDecisionStepDefinition(WorkflowValueEqualsConditionDefinition, WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>) #
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 #
Condition #public WorkflowValueEqualsConditionDefinition Condition { get; init; }
The condition.
property WhenFalse #
WhenFalse #public WorkflowStepSequence<TStartRequest> WhenFalse { get; init; }
The steps to run otherwise.
property WhenTrue #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowDefinitionActivationRecord( | constructor | Creates an instance of Workflow. |
ActorId | property | Who activates. |
AllowRollback | property | Allows activating a lower version than the active one; required for such a rollback, refused otherwise. |
ExpectedActiveSha256 | property | The content hash the caller expects the active version to have. |
ExpectedActiveVersion | property | The version the caller expects to be active; must match, or be unset when none is. |
ReasonCode | property | Why. |
RollbackOfAuditId | property | The audit record of the activation the rollback reverts. |
WorkflowName | property | The workflow name. |
WorkflowVersion | property | The version to activate. |
constructor WorkflowDefinitionActivationRecord() #
WorkflowDefinitionActivationRecord() #public WorkflowDefinitionActivationRecord()
Creates an instance of Workflow.
property ActorId #
ActorId #public required string ActorId { get; init; }
Who activates.
property AllowRollback #
AllowRollback #public bool AllowRollback { get; init; }
Allows activating a lower version than the active one; required for such a rollback, refused otherwise.
property ExpectedActiveSha256 #
ExpectedActiveSha256 #public string? ExpectedActiveSha256 { get; init; }
The content hash the caller expects the active version to have.
property ExpectedActiveVersion #
ExpectedActiveVersion #public string? ExpectedActiveVersion { get; init; }
The version the caller expects to be active; must match, or be unset when none is.
property ReasonCode #
ReasonCode #public required string ReasonCode { get; init; }
Why.
property RollbackOfAuditId #
RollbackOfAuditId #public string? RollbackOfAuditId { get; init; }
The audit record of the activation the rollback reverts.
property WorkflowName #
WorkflowName #public required string WorkflowName { get; init; }
The workflow name.
property WorkflowVersion #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowDefinitionRecord( | constructor | Creates an instance of Workflow. |
ActivatedOnUtc | property | When this version was last activated (set as active). |
BaseVersion | property | The version the definition declares. |
BuildIteration | property | The build iteration within the base version; 0 for a version imported as declared. |
CanonicalDefinitionJson | property | The full canonical definition as serialized JSON. |
CompatibilitySha256 | property | The compatibility SHA-256; zeros when none was given. |
ContentHash | property | SHA-256 hash of the canonical definition JSON (lowercase hex, 64 chars). |
CreatedOnUtc | property | When this record was created. |
DisplayName | property | Human-readable workflow name from the definition. |
ImportedBy | property | User or system identifier that performed the import. |
IsActive | property | Whether this version is the active version for the workflow name. |
IsManaged | property | Whether the definition is managed. |
ManagedCode | property | The code of a managed definition. |
Origin | property | Where the definition comes from: OPERATOR_IMPORTED or MANAGED_EMBEDDED. |
RenderingJson | property | Optional render graph JSON (for UI rendering). |
RenderingPng | property | Optional PNG screenshot. |
RenderingSvg | property | Optional SVG diagram rendering. |
ResolvedDependencies | property | 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. |
SourceBuildSha256 | property | The source build SHA-256; zeros when none was given. |
VersionNo | property | The record version, raised by each change of the record. |
WorkflowName | property | Workflow name (e.g., “ApproveApplication”). |
WorkflowVersion | property | The version. |
constructor WorkflowDefinitionRecord() #
WorkflowDefinitionRecord() #public WorkflowDefinitionRecord()
Creates an instance of Workflow.
property ActivatedOnUtc #
ActivatedOnUtc #public DateTime? ActivatedOnUtc { get; init; }
When this version was last activated (set as active).
property BaseVersion #
BaseVersion #public required string BaseVersion { get; init; }
The version the definition declares.
property BuildIteration #
BuildIteration #public int BuildIteration { get; init; }
The build iteration within the base version; 0 for a version imported as declared.
property CanonicalDefinitionJson #
CanonicalDefinitionJson #public required string CanonicalDefinitionJson { get; init; }
The full canonical definition as serialized JSON.
property CompatibilitySha256 #
CompatibilitySha256 #public string CompatibilitySha256 { get; init; }
The compatibility SHA-256; zeros when none was given.
property ContentHash #
ContentHash #public required string ContentHash { get; init; }
SHA-256 hash of the canonical definition JSON (lowercase hex, 64 chars).
property CreatedOnUtc #
CreatedOnUtc #public DateTime CreatedOnUtc { get; init; }
When this record was created.
property DisplayName #
DisplayName #public string? DisplayName { get; init; }
Human-readable workflow name from the definition.
property ImportedBy #
ImportedBy #public string? ImportedBy { get; init; }
User or system identifier that performed the import.
property IsActive #
IsActive #public bool IsActive { get; init; }
Whether this version is the active version for the workflow name.
property IsManaged #
IsManaged #public bool IsManaged { get; init; }
Whether the definition is managed.
property ManagedCode #
ManagedCode #public string? ManagedCode { get; init; }
The code of a managed definition.
property Origin #
Origin #public string Origin { get; init; }
Where the definition comes from: OPERATOR_IMPORTED or MANAGED_EMBEDDED.
property RenderingJson #
RenderingJson #public byte[]? RenderingJson { get; init; }
Optional render graph JSON (for UI rendering).
property RenderingPng #
RenderingPng #public byte[]? RenderingPng { get; init; }
Optional PNG screenshot.
property RenderingSvg #
RenderingSvg #public byte[]? RenderingSvg { get; init; }
Optional SVG diagram rendering.
property ResolvedDependencies #
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 #
SourceBuildSha256 #public string SourceBuildSha256 { get; init; }
The source build SHA-256; zeros when none was given.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The record version, raised by each change of the record.
property WorkflowName #
WorkflowName #public required string WorkflowName { get; init; }
Workflow name (e.g., “ApproveApplication”).
property WorkflowVersion #
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 inresult.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
| Member | Kind | Summary |
|---|---|---|
WorkflowEndpointCallStepDefinition( | constructor | Defines a transport call of an HTTP endpoint of a named service. |
FailureHandlers | property | The failure and timeout branches; none when not set. |
Method | property | The HTTP method. |
Path | property | The path. |
PayloadExpression | property | The payload as an expression, for the canonical definition. |
PayloadFactory | property | Builds the payload from the context. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
ServiceName | property | The service. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
TimeoutSeconds | property | The 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?) #
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 inresult.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 #
FailureHandlers #public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }
The failure and timeout branches; none when not set.
property Method #
Method #public string Method { get; init; }
The HTTP method.
property Path #
Path #public string Path { get; init; }
The path.
property PayloadExpression #
PayloadExpression #public WorkflowExpressionDefinition? PayloadExpression { get; init; }
The payload as an expression, for the canonical definition.
property PayloadFactory #
PayloadFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory { get; init; }
Builds the payload from the context.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property ServiceName #
ServiceName #public string ServiceName { get; init; }
The service.
property StepName #
StepName #public string StepName { get; init; }
The step name, shown in diagrams and in result.lastFailure.
property TimeoutSeconds #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowExecutionActorContext( | constructor | Creates an instance of Workflow. |
ActorId | property | The actor ID from the task operation request (e.g., numeric user account ID). |
CallerUserId | property | The authenticated caller’s user ID extracted from the HTTP request context. |
constructor WorkflowExecutionActorContext() #
WorkflowExecutionActorContext() #public WorkflowExecutionActorContext()
Creates an instance of Workflow.
property ActorId #
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 #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowExecutionTaskPlan( | constructor | Creates an instance of Workflow. |
Payload | property | The task payload. |
Route | property | The route of the task. |
RuntimeRoles | property | The roles computed at runtime, which replace the task roles. |
SingleOpenSlot | property | The task’s single-open slot (WorkflowTaskDeclaration.); the projection store keeps one open or assigned task per execution and slot. |
TaskName | property | The task name. |
TaskRoles | property | The roles the task declares. |
TaskType | property | The task type. |
TimeoutSeconds | property | Optional timeout for the task in seconds. |
WorkflowName | property | The workflow name. |
WorkflowRoles | property | The workflow roles. |
WorkflowVersion | property | The workflow version. |
constructor WorkflowExecutionTaskPlan() #
WorkflowExecutionTaskPlan() #public WorkflowExecutionTaskPlan()
Creates an instance of Workflow.
property Payload #
Payload #public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }
The task payload.
property Route #
Route #public required string Route { get; init; }
The route of the task.
property RuntimeRoles #
RuntimeRoles #public IReadOnlyCollection<string> RuntimeRoles { get; init; }
The roles computed at runtime, which replace the task roles.
property SingleOpenSlot #
SingleOpenSlot #public string? SingleOpenSlot { get; init; }
The task’s single-open slot (WorkflowTaskDeclaration.); the projection store keeps one open or assigned task per execution and slot.
property TaskName #
TaskName #public required string TaskName { get; init; }
The task name.
property TaskRoles #
TaskRoles #public IReadOnlyCollection<string> TaskRoles { get; init; }
The roles the task declares.
property TaskType #
TaskType #public required string TaskType { get; init; }
The task type.
property TimeoutSeconds #
TimeoutSeconds #public int? TimeoutSeconds { get; init; }
Optional timeout for the task in seconds. Used to compute WorkflowTaskSummary..
property WorkflowName #
WorkflowName #public string? WorkflowName { get; init; }
The workflow name.
property WorkflowRoles #
WorkflowRoles #public IReadOnlyCollection<string> WorkflowRoles { get; init; }
The workflow roles.
property WorkflowVersion #
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.and WorkflowExpr., which leave the workflow to the runtime compiler (WF021).
Members
| Member | Kind | Summary |
|---|---|---|
And( | method | Both conditions hold: and. |
Array( | method | An array of expressions. |
Array( | method | An array of expressions. |
Binary( | method | 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. |
Bool( | method | A Boolean literal. |
Eq( | method | Compares two values: eq, whether they are equal. |
FromValue( | method | An expression of a constant value: null, a string, a Boolean, a number, an object or an array. |
Func( | method | A call of a function of the function catalog. |
Group( | method | A parenthesized expression. |
Gt( | method | Compares two values: gt, whether the left is greater. |
Gte( | method | Compares two values: gte, whether the left is greater or equal. |
Lt( | method | Compares two values: lt, whether the left is less. |
Lte( | method | Compares two values: lte, whether the left is less or equal. |
Ne( | method | Compares two values: ne, whether they differ. |
Not( | method | The Boolean negation. |
Null( | method | The null value. |
Number( | method | A decimal literal. |
Number( | method | An integer literal. |
Obj( | method | An object of named expressions; a later property replaces an earlier one of the same name, ignoring case. |
Obj( | method | An object of named expressions; a later property replaces an earlier one of the same name, ignoring case. |
Or( | method | Either condition holds: or. |
Path( | method | Reads a value by dotted path. |
Prop( | method | A named expression: a property of WorkflowExpr.. |
String( | method | A string literal. |
method And(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #
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>) #
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[]) #
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) #
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.for arithmetic.
Parameters
operator: The operator name.left: The left operand.right: The right operand.
Returns
The binary expression.
method Bool(bool) #
Bool(bool) #public static WorkflowBooleanExpressionDefinition Bool(bool value)
A Boolean literal.
Parameters
value: The value.
Returns
The Boolean expression.
method Eq(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #
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) #
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[]) #
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.gives WF021.
Parameters
functionName: The function name.arguments: The arguments.
Returns
The function expression.
method Group(WorkflowExpressionDefinition) #
Group(WorkflowExpressionDefinition) #public static WorkflowGroupExpressionDefinition Group(WorkflowExpressionDefinition expression)
A parenthesized expression.
Parameters
expression: The expression.
Returns
The group expression.
method Gt(WorkflowExpressionDefinition, WorkflowExpressionDefinition) #
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) #
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) #
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) #
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) #
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) #
Not(WorkflowExpressionDefinition) #public static WorkflowUnaryExpressionDefinition Not(WorkflowExpressionDefinition operand)
The Boolean negation.
Parameters
operand: The operand.
Returns
The not expression.
method Null() #
Null() #public static WorkflowNullExpressionDefinition Null()
The null value.
Returns
The null expression.
method Number(decimal) #
Number(decimal) #public static WorkflowNumberExpressionDefinition Number(decimal value)
A decimal literal.
Parameters
value: The value.
Returns
The number expression.
method Number(long) #
Number(long) #public static WorkflowNumberExpressionDefinition Number(long value)
An integer literal.
Parameters
value: The value.
Returns
The number expression.
method Obj(IEnumerable<WorkflowNamedExpressionDefinition>) #
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[]) #
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) #
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) #
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 asstate.customerId.
Returns
The path expression.
method Prop(string, WorkflowExpressionDefinition) #
Prop(string, WorkflowExpressionDefinition) #public static WorkflowNamedExpressionDefinition Prop(string name, WorkflowExpressionDefinition expression)
A named expression: a property of WorkflowExpr..
Parameters
name: The property name.expression: The value.
Returns
The named expression.
method String(string) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowExpressionConditionDefinition( | constructor | Creates the condition. |
CanonicalExpression | property | The condition as an expression, for the canonical definition; none for a delegate. |
Evaluate( | method | Evaluates the condition. |
constructor WorkflowExpressionConditionDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>, WorkflowExpressionDefinition) #
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 #
CanonicalExpression #public override WorkflowExpressionDefinition? CanonicalExpression { get; }
The condition as an expression, for the canonical definition; none for a delegate.
method Evaluate(WorkflowSpecExecutionContext<TStartRequest>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowExternalActivityRegistration( | constructor | Creates an instance of Workflow. |
CancelLane | property | The lane the cancel requests go to, when there is one. |
CompletionLane | property | The lane the completions come back on, when it differs. |
ContractKind | property | The contract kind. |
ContractVersion | property | The contract version. |
DestinationCode | property | The destination. |
ExecuteLane | property | The lane the execute requests go to. |
HandlerBuildSha256 | property | The SHA-256 of the handler build the manifest pins. |
OperationCode | property | The operation. |
RequestSchemaId | property | The schema of the request. |
RequestSchemaVersion | property | The version of the request schema. |
ResultSchemaId | property | The schema of the result, when there is one. |
ResultSchemaVersion | property | The version of the result schema. |
constructor WorkflowExternalActivityRegistration() #
WorkflowExternalActivityRegistration() #public WorkflowExternalActivityRegistration()
Creates an instance of Workflow.
property CancelLane #
CancelLane #public string? CancelLane { get; init; }
The lane the cancel requests go to, when there is one.
property CompletionLane #
CompletionLane #public string? CompletionLane { get; init; }
The lane the completions come back on, when it differs.
property ContractKind #
ContractKind #public required string ContractKind { get; init; }
The contract kind.
property ContractVersion #
ContractVersion #public required string ContractVersion { get; init; }
The contract version.
property DestinationCode #
DestinationCode #public required string DestinationCode { get; init; }
The destination.
property ExecuteLane #
ExecuteLane #public required string ExecuteLane { get; init; }
The lane the execute requests go to.
property HandlerBuildSha256 #
HandlerBuildSha256 #public required string HandlerBuildSha256 { get; init; }
The SHA-256 of the handler build the manifest pins.
property OperationCode #
OperationCode #public required string OperationCode { get; init; }
The operation.
property RequestSchemaId #
RequestSchemaId #public required string RequestSchemaId { get; init; }
The schema of the request.
property RequestSchemaVersion #
RequestSchemaVersion #public required int RequestSchemaVersion { get; init; }
The version of the request schema.
property ResultSchemaId #
ResultSchemaId #public string? ResultSchemaId { get; init; }
The schema of the result, when there is one.
property ResultSchemaVersion #
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 inresult.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
| Member | Kind | Summary |
|---|---|---|
WorkflowExternalActivityStepDefinition( | constructor | Runs an external activity of the host’s signed registry. |
ContractVersion | property | The contract version of the activity in the registry. |
DeadlineSeconds | property | The deadline in seconds. |
DestinationCode | property | The destination of the activity in the registry. |
OperationCode | property | The operation of the activity in the registry. |
RequestExpression | property | The request. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowExternalActivityStepDefinition(string, string, string, string, WorkflowExpressionDefinition, string, int?) #
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 inresult.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 #
ContractVersion #public string ContractVersion { get; init; }
The contract version of the activity in the registry.
property DeadlineSeconds #
DeadlineSeconds #public int? DeadlineSeconds { get; init; }
The deadline in seconds.
property DestinationCode #
DestinationCode #public string DestinationCode { get; init; }
The destination of the activity in the registry.
property OperationCode #
OperationCode #public string OperationCode { get; init; }
The operation of the activity in the registry.
property RequestExpression #
RequestExpression #public WorkflowExpressionDefinition RequestExpression { get; init; }
The request.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property StepName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowExternalActivityWrite( | constructor | Creates an instance of Workflow. |
ChangedAttempts | property | Changed attempts. |
ChangedDispatches | property | Changed dispatches. |
ChangedLineages | property | Changed lineages. |
ChangedMapItems | property | Map item status changes. |
ChangedMaps | property | Map status changes. |
ChangedSteps | property | Changed steps. |
Events | property | History events to append, in order. |
NewAttempt | property | A new attempt. |
NewCancels | property | New cancel requests. |
NewCompletion | property | A new completion. |
NewDispatch | property | A new dispatch. |
NewLineages | property | New lineages. |
NewReprocess | property | A new reprocess request. |
NewStep | property | A new step. |
RuntimeChanges | property | Runtime-state changes. |
constructor WorkflowExternalActivityWrite() #
WorkflowExternalActivityWrite() #public WorkflowExternalActivityWrite()
Creates an instance of Workflow.
property ChangedAttempts #
ChangedAttempts #public IReadOnlyList<WorkflowActivityAttempt> ChangedAttempts { get; init; }
Changed attempts.
property ChangedDispatches #
ChangedDispatches #public IReadOnlyList<WorkflowActivityDispatchEntry> ChangedDispatches { get; init; }
Changed dispatches.
property ChangedLineages #
ChangedLineages #public IReadOnlyList<WorkflowContinuationLineageChange> ChangedLineages { get; init; }
Changed lineages.
property ChangedMapItems #
ChangedMapItems #public IReadOnlyList<WorkflowActivityMapItemStatusChange> ChangedMapItems { get; init; }
Map item status changes.
property ChangedMaps #
ChangedMaps #public IReadOnlyList<WorkflowActivityMapStatusChange> ChangedMaps { get; init; }
Map status changes.
property ChangedSteps #
ChangedSteps #public IReadOnlyList<WorkflowActivityStepChange> ChangedSteps { get; init; }
Changed steps.
property Events #
Events #public IReadOnlyList<WorkflowActivityEventAppend> Events { get; init; }
History events to append, in order.
property NewAttempt #
NewAttempt #public WorkflowActivityAttempt? NewAttempt { get; init; }
A new attempt.
property NewCancels #
NewCancels #public IReadOnlyList<WorkflowActivityCancelEntry> NewCancels { get; init; }
New cancel requests.
property NewCompletion #
NewCompletion #public WorkflowActivityCompletionEntry? NewCompletion { get; init; }
A new completion.
property NewDispatch #
NewDispatch #public WorkflowActivityDispatchEntry? NewDispatch { get; init; }
A new dispatch.
property NewLineages #
NewLineages #public IReadOnlyList<WorkflowContinuationLineage> NewLineages { get; init; }
New lineages.
property NewReprocess #
NewReprocess #public WorkflowScopeReprocess? NewReprocess { get; init; }
A new reprocess request.
property NewStep #
NewStep #public WorkflowActivityStep? NewStep { get; init; }
A new step.
property RuntimeChanges #
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 inresult.lastFailure.SignalNameFactory: Computes the signal name.ResultKey: The key the result is kept under (result.<key>); not kept when not set.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowExternalSignalStepDefinition( | constructor | Pauses the instance until a caller raises the signal for it. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
SignalNameExpression | property | The signal name as an expression, for the canonical definition. |
SignalNameFactory | property | Computes the signal name. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowExternalSignalStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, string>, string) #
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 inresult.lastFailure.SignalNameFactory: Computes the signal name.ResultKey: The key the result is kept under (result.<key>); not kept when not set.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property SignalNameExpression #
SignalNameExpression #public WorkflowExpressionDefinition? SignalNameExpression { get; init; }
The signal name as an expression, for the canonical definition.
property SignalNameFactory #
SignalNameFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, string> SignalNameFactory { get; init; }
Computes the signal name.
property StepName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowFailureHandlers( | constructor | The failure and timeout branches of a step. |
FailureConfigured | property | Whether the author gave a failure branch at all. |
HasAnyBranch | property | Whether either branch has steps. |
HasFailureBranch | property | Whether the failure branch has steps. |
HasTimeoutBranch | property | Whether the timeout branch has steps. |
TimeoutConfigured | property | Whether the author gave a timeout branch at all. |
WhenFailure | property | The steps to run when the step fails; empty to ignore the failure and continue. |
WhenTimeout | property | The steps to run when the step times out. |
constructor WorkflowFailureHandlers(WorkflowStepSequence<TStartRequest>, WorkflowStepSequence<TStartRequest>) #
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 #
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 #
HasAnyBranch #public bool HasAnyBranch { get; }
Whether either branch has steps.
property HasFailureBranch #
HasFailureBranch #public bool HasFailureBranch { get; }
Whether the failure branch has steps.
property HasTimeoutBranch #
HasTimeoutBranch #public bool HasTimeoutBranch { get; }
Whether the timeout branch has steps.
property TimeoutConfigured #
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 #
WhenFailure #public WorkflowStepSequence<TStartRequest> WhenFailure { get; init; }
The steps to run when the step fails; empty to ignore the failure and continue.
property WhenTimeout #
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
| Member | Kind | Summary |
|---|---|---|
Key( | method | The ledger key of workflowName: its invariant upper-case form, the same equality the code catalogue applies (String). |
method Key(string) #
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 (String). 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
| Member | Kind | Summary |
|---|---|---|
WorkflowFirstSeenRecord( | constructor | Creates an instance of Workflow. |
FirstSeenOnUtc | property | When the workflow was first seen (UTC). |
FirstSeenSource | property | Where the workflow was first seen (WorkflowFirstSeenSources). |
WorkflowName | property | The spelling of the workflow name at its first sighting. |
constructor WorkflowFirstSeenRecord() #
WorkflowFirstSeenRecord() #public WorkflowFirstSeenRecord()
Creates an instance of Workflow.
property FirstSeenOnUtc #
FirstSeenOnUtc #public required DateTimeOffset FirstSeenOnUtc { get; init; }
When the workflow was first seen (UTC).
property FirstSeenSource #
FirstSeenSource #public required string FirstSeenSource { get; init; }
Where the workflow was first seen (WorkflowFirstSeenSources).
property WorkflowName #
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
| Member | Kind | Summary |
|---|---|---|
Catalog | constant | Registered in code (IWorkflowRegistrationCatalog). |
Import | constant | Stored by a definition import. |
Store | constant | Found in the definition store by the reconciliation pass. |
IsKnown( | method | Whether a source is one of the known sources. |
constant Catalog #
Catalog #public const string Catalog = "catalog"
Registered in code (IWorkflowRegistrationCatalog).
constant Import #
Import #public const string Import = "import"
Stored by a definition import.
constant Store #
Store #public const string Store = "store"
Found in the definition store by the reconciliation pass.
method IsKnown(string) #
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
constructor WorkflowFlowBuilder() #
WorkflowFlowBuilder() #public WorkflowFlowBuilder()
Creates an instance of Workflow.
method ActivateTask(string, Func<WorkflowSpecExecutionContext<TStartRequest>, IReadOnlyCollection<string>>) #
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 withAddTask.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) #
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 withAddTask.runtime: 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.Roles Expression
Returns
The same builder, for chaining.
method Call(string, EndpointAddress, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, Action<WorkflowFlowBuilder<TStartRequest>>, Action<WorkflowFlowBuilder<TStartRequest>>, int?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Type parameters
TRequest: The payload type.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Type parameters
TRequest: The payload type.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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() #
Complete() #public WorkflowFlowBuilder<TStartRequest> Complete()
Adds a step that completes the instance.
Returns
The same builder, for chaining.
method ContinueWith(string, WorkflowReference) #
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>) #
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.business: Builds the business reference of the new instance; when not set, the new instance has none.Reference Factory
Returns
The same builder, for chaining.
method ContinueWith(string, WorkflowReference, WorkflowExpressionDefinition, WorkflowBusinessReferenceDeclaration) #
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.business: The business reference of the new instance; when not set, the new instance has none.Reference Declaration
Returns
The same builder, for chaining.
method ContinueWith(string, WorkflowWorkflowInvocationDeclaration) #
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.invocation: The workflow, payload and business reference of the new instance, as a canonical declaration.Declaration
Returns
The same builder, for chaining.
method ContinueWith<TPayload>(string, WorkflowReference, Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowBusinessReference>) #
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.business: Builds the business reference of the new instance; when not set, the new instance has none.Reference Factory
Returns
The same builder, for chaining.
method ExternalActivity(string, string, string, string, WorkflowExpressionDefinition, string, int?) #
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>>[]) #
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<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?) #
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 mostmaxItemsandWorkflow(8 by default).Runtime:Max Map Concurrency maxItems: The items allowed in the collection; at mostWorkflow(512 by default). A longer collection fails withRuntime:Max Map Items MAP_.ITEM_ LIMIT_ EXCEEDED max: The size limit of the collected results, in bytes.Aggregate State Bytes configureBody: The body that runs for each item.fanInPolicy:ALL_SUCCEEDED(the default),COLLECT_ALL, orMIN_SUCCEEDEDwithminimumSucceeded.failurePolicy:FAIL_FAST(the default),COLLECT_PARTIALorROUTE_MANUAL.resultKey: The key the collected results are kept under.minimumSucceeded: The items that must succeed underMIN_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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.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 inresult.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?) #
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 inresult.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?) #
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 inresult.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?) #
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.completes the instance, WorkflowHandledBranchAction.fails the step.
Type parameters
TVariables: The variables type.
Parameters
stepName: The step name, shown in diagrams and inresult.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?) #
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 inresult.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>>) #
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 continue holds, evaluated before each iteration, at most the maximum number of iterations.
Parameters
stepName: The step name, shown in diagrams.max: The maximum number of iterations, as an expression.Iterations Expression iterationStateKey: The state key that holds the iteration number; not kept when not set.continue: The condition to run another iteration.While Expression configureBody: The body of one iteration.
Returns
The same builder, for chaining.
method Repeat(string, int, string, WorkflowExpressionDefinition, Action<WorkflowFlowBuilder<TStartRequest>>) #
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 continue 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.continue: The condition to run another iteration.While Expression configureBody: The body of one iteration.
Returns
The same builder, for chaining.
method Run(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>) #
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>>) #
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) #
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>) #
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) #
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) #
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>) #
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
business: Computes the business reference.Reference Factory
Returns
The same builder, for chaining.
method SetBusinessReference(WorkflowBusinessReferenceDeclaration) #
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
business: The key and part expressions.Reference Declaration
Returns
The same builder, for chaining.
method SetIfHasValue(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>) #
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) #
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) #
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) #
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.business: Builds the business reference of the new instance; when not set, the new instance has none.Reference Factory 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) #
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.business: The business reference of the new instance; when not set, the new instance has none.Reference Declaration 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) #
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.business: The business reference of the new instance; when not set, the new instance has none.Reference Declaration resultKey: The key the child’s result is kept under.
Returns
The same builder, for chaining.
method SubWorkflow(string, WorkflowReference, string) #
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) #
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) #
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.invocation: The workflow, payload and business reference of the new instance, as a canonical declaration.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) #
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.business: Builds the business reference of the new instance; when not set, the new instance has none.Reference Factory resultKey: The key the child’s result is kept under.
Returns
The same builder, for chaining.
method TerminateFork() #
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>) #
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) #
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 invariantcformat such as00:01:00; a negative delay is zero.
Returns
The same builder, for chaining.
method WaitForSignal(string, Func<WorkflowSpecExecutionContext<TStartRequest>, string>, string) #
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) #
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) #
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>>) #
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>>) #
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>>) #
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>>) #
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>>) #
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 inresult.lastFailure.Branches: The branches.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowForkStepDefinition( | constructor | Runs its branches concurrently. |
Branches | property | The branches. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowForkStepDefinition(string, IReadOnlyCollection<WorkflowStepSequence<TStartRequest>>) #
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 inresult.lastFailure.Branches: The branches.
property Branches #
Branches #public IReadOnlyCollection<WorkflowStepSequence<TStartRequest>> Branches { get; init; }
The branches.
property StepName #
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
| Member | Kind | Summary |
|---|---|---|
GetRequiredElement( | method | Returns argument argumentIndex as JSON (default for null) after checking that the function got exactly expected arguments. |
GetRequiredString( | method | Returns argument argumentIndex as text (empty for null; a non-string JSON value as its raw text) after checking that the function got exactly expected arguments. |
method GetRequiredElement(IReadOnlyCollection<object>, string, int, int) #
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 expected arguments.
method GetRequiredString(IReadOnlyCollection<object>, string, int, int) #
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 expected arguments.
class WorkflowFunctionCatalog
public sealed class WorkflowFunctionCatalog : IWorkflowFunctionCatalog
The function catalog: the functions of every provider, ordered by module and name.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowFunctionCatalog( | constructor | Creates the catalog from the functions of every provider. |
GetFunctions( | method | Returns the functions. |
TryGetFunction( | method | Finds a function by name or alias, ignoring case. |
constructor WorkflowFunctionCatalog(IEnumerable<IWorkflowFunctionProvider>) #
WorkflowFunctionCatalog(IEnumerable<IWorkflowFunctionProvider>) #public WorkflowFunctionCatalog(IEnumerable<IWorkflowFunctionProvider> providers)
Creates the catalog from the functions of every provider.
Parameters
providers: The function providers.
Exceptions
Invalid: Two modules register the same name or alias, ignoring case.Operation Exception
method GetFunctions() #
GetFunctions() #public IReadOnlyCollection<WorkflowFunctionDescriptor> GetFunctions()
Returns the functions.
Returns
The functions.
method TryGetFunction(string, out WorkflowFunctionDescriptor) #
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
| Member | Kind | Summary |
|---|---|---|
AddWorkflowFunctionCatalog( | extension method | Registers the function catalog and the function runtime, unless they are already registered. |
AddWorkflowFunctionProvider< | extension method | Adds TProvider as a function provider, and registers the function catalog. |
extension method AddWorkflowFunctionCatalog(IServiceCollection) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
Create( | method | Creates a function descriptor. |
Create( | method | Creates a function descriptor from text parts. |
method Create(string, string, string, string, WorkflowFunctionReturnDescriptor, WorkflowFunctionExample, params WorkflowFunctionArgumentDescriptor[]) #
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[]) #
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 inresult.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
| Member | Kind | Summary |
|---|---|---|
WorkflowGraphqlCallStepDefinition( | constructor | Defines a transport call to a GraphQL endpoint. |
FailureHandlers | property | The failure and timeout branches; none when not set. |
OperationName | property | The operation to run, for a query document with several. |
Query | property | The GraphQL query. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
Target | property | The target, as the transport configuration names it. |
TimeoutSeconds | property | The step timeout in seconds, over all attempts; one hour when not set. |
VariablesExpression | property | The variables as an expression, for the canonical definition. |
VariablesFactory | property | Builds the query variables from the context. |
constructor WorkflowGraphqlCallStepDefinition(string, string, string, string, Func<WorkflowSpecExecutionContext<TStartRequest>, IDictionary<string, object>>, string, WorkflowFailureHandlers<TStartRequest>, int?) #
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 inresult.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 #
FailureHandlers #public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }
The failure and timeout branches; none when not set.
property OperationName #
OperationName #public string? OperationName { get; init; }
The operation to run, for a query document with several.
property Query #
Query #public string Query { get; init; }
The GraphQL query.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property StepName #
StepName #public string StepName { get; init; }
The step name, shown in diagrams and in result.lastFailure.
property Target #
Target #public string Target { get; init; }
The target, as the transport configuration names it.
property TimeoutSeconds #
TimeoutSeconds #public int? TimeoutSeconds { get; init; }
The step timeout in seconds, over all attempts; one hour when not set.
property VariablesExpression #
VariablesExpression #public WorkflowExpressionDefinition? VariablesExpression { get; init; }
The variables as an expression, for the canonical definition.
property VariablesFactory #
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.
| Value | Description |
|---|---|
None = 0 | No handling: the failure or the timeout fails the step. |
Complete = 1 | Completes the instance. |
record WorkflowHistoryCompactionResult
public sealed record WorkflowHistoryCompactionResult
The outcome of a history compaction.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowHistoryCompactionResult( | constructor | Creates an instance of Workflow. |
DeletedEvents | property | The events deleted. |
HistoryFloorSequence | property | The first sequence still kept. |
constructor WorkflowHistoryCompactionResult() #
WorkflowHistoryCompactionResult() #public WorkflowHistoryCompactionResult()
Creates an instance of Workflow.
property DeletedEvents #
DeletedEvents #public required int DeletedEvents { get; init; }
The events deleted.
property HistoryFloorSequence #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowHistoryCursor( | constructor | Creates an instance of Workflow. |
HistoryFloorSequence | property | The first sequence still kept. |
LegalHold | property | Whether the execution is under a legal hold, which keeps its history. |
NextEventSequence | property | The sequence of the next event. |
RetentionPolicy | property | The retention policy: STANDARD or HOLD_ALL. |
constructor WorkflowHistoryCursor() #
WorkflowHistoryCursor() #public WorkflowHistoryCursor()
Creates an instance of Workflow.
property HistoryFloorSequence #
HistoryFloorSequence #public required long HistoryFloorSequence { get; init; }
The first sequence still kept.
property LegalHold #
LegalHold #public bool LegalHold { get; init; }
Whether the execution is under a legal hold, which keeps its history.
property NextEventSequence #
NextEventSequence #public required long NextEventSequence { get; init; }
The sequence of the next event.
property RetentionPolicy #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowHistoryEvent( | constructor | Creates an instance of WorkflowHistoryEvent. |
CreatedAtUtc | property | When the event was recorded, in UTC. |
DetailCompacted | property | Whether the event detail was compacted. |
EventId | property | The event identifier. |
EventSequence | property | The sequence of the event. |
EventSha256 | property | The SHA-256 of the event. |
EventType | property | The event type. |
PayloadJson | property | The event payload, as JSON. |
RetentionHeld | property | Whether retention holds the event. |
WorkflowExecutionId | property | The execution. |
constructor WorkflowHistoryEvent() #
WorkflowHistoryEvent() #public WorkflowHistoryEvent()
Creates an instance of WorkflowHistoryEvent.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the event was recorded, in UTC.
property DetailCompacted #
DetailCompacted #public bool DetailCompacted { get; init; }
Whether the event detail was compacted.
property EventId #
EventId #public required string EventId { get; init; }
The event identifier.
property EventSequence #
EventSequence #public required long EventSequence { get; init; }
The sequence of the event.
property EventSha256 #
EventSha256 #public required string EventSha256 { get; init; }
The SHA-256 of the event.
property EventType #
EventType #public required string EventType { get; init; }
The event type.
property PayloadJson #
PayloadJson #public required string PayloadJson { get; init; }
The event payload, as JSON.
property RetentionHeld #
RetentionHeld #public bool RetentionHeld { get; init; }
Whether retention holds the event.
property WorkflowExecutionId #
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 inresult.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
| Member | Kind | Summary |
|---|---|---|
WorkflowHttpCallStepDefinition( | constructor | Defines a transport call to an HTTP endpoint. |
FailureHandlers | property | The failure and timeout branches; none when not set. |
Method | property | The HTTP method. |
Path | property | The path. |
PayloadExpression | property | The payload as an expression, for the canonical definition. |
PayloadFactory | property | Builds the payload from the context. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
Target | property | The target, as the transport configuration names it. |
TimeoutSeconds | property | The 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?) #
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 inresult.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 #
FailureHandlers #public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }
The failure and timeout branches; none when not set.
property Method #
Method #public string Method { get; init; }
The HTTP method.
property Path #
Path #public string Path { get; init; }
The path.
property PayloadExpression #
PayloadExpression #public WorkflowExpressionDefinition? PayloadExpression { get; init; }
The payload as an expression, for the canonical definition.
property PayloadFactory #
PayloadFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory { get; init; }
Builds the payload from the context.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property StepName #
StepName #public string StepName { get; init; }
The step name, shown in diagrams and in result.lastFailure.
property Target #
Target #public string Target { get; init; }
The target, as the transport configuration names it.
property TimeoutSeconds #
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
| Member | Kind | Summary |
|---|---|---|
For< | method | Starts the definition of a human task. |
method For<TStartRequest>(string, string, string, IEnumerable<string>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowHumanTaskBuilder( | constructor | Starts the definition of a human task. |
Build( | method | Builds the task definition without completion steps. |
OnComplete( | method | Sets the steps that run after a user completes the task, and builds the task definition. |
SingleOpen( | method | 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.). |
WithPayload( | method | Sets the data the task shows with a delegate. |
WithPayload( | method | Sets the data the task shows to the value of an object expression. |
WithPayload< | method | Sets the data the task shows to the serialized value a delegate builds. |
WithRoles( | method | Sets the roles that may work the task, replacing the workflow roles. |
WithRoles( | method | Sets the roles that may work the task, replacing the workflow roles. |
WithRoute( | method | Computes the route of the task with a delegate. |
WithRoute( | method | Computes the route of the task from an expression. |
WithTimeout( | method | Sets an optional timeout for the human task. |
WithTimeout( | method | 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. |
constructor WorkflowHumanTaskBuilder(string, string, string) #
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() #
Build() #public WorkflowHumanTaskDefinition<TStartRequest> Build()
Builds the task definition without completion steps.
Returns
The task definition.
Exceptions
Invalid: The task has no payload.Operation Exception
method OnComplete(Action<WorkflowFlowBuilder<TStartRequest>>) #
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
Invalid: The task has no payload.Operation Exception
method SingleOpen(string) #
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.).
method WithPayload(Func<WorkflowSpecExecutionContext<TStartRequest>, Dictionary<string, JsonElement>>) #
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) #
WithPayload(WorkflowExpressionDefinition) #public WorkflowHumanTaskBuilder<TStartRequest> WithPayload(WorkflowExpressionDefinition buildPayloadExpression)
Sets the data the task shows to the value of an object expression.
Parameters
build: The payload expression.Payload Expression
Returns
The same builder, for chaining.
method WithPayload<TPayload>(Func<WorkflowSpecExecutionContext<TStartRequest>, TPayload>) #
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>) #
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[]) #
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>) #
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) #
WithRoute(WorkflowExpressionDefinition) #public WorkflowHumanTaskBuilder<TStartRequest> WithRoute(WorkflowExpressionDefinition resolveRouteExpression)
Computes the route of the task from an expression.
Parameters
resolve: The route expression.Route Expression
Returns
The same builder, for chaining.
method WithTimeout(int) #
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>>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowHumanTaskDefinition( | constructor | Creates an instance of Workflow. |
BuildPayload | property | Builds the payload of an opened task. |
Descriptor | property | The task descriptor: name, type, route and roles. |
OnComplete | property | The steps that run after a user completes the task. |
OnTimeout | property | Runs when the task is still open at WorkflowHumanTaskDefinition<: the engine closes the task as expired and continues here instead of WorkflowHumanTaskDefinition<(a BPMN interrupting timer). |
PayloadExpression | property | The payload expression, when the payload is declared as an expression. |
ResolveRoute | property | Computes the route of an opened task. |
RouteExpression | property | The route expression, when the route is declared as an expression. |
SingleOpenSlot | property | Optional single-open slot: the projection store keeps at most one open or assigned task per execution in it. |
TaskName | property | The task name. |
TimeoutSeconds | property | Optional timeout for the human task in seconds. |
constructor WorkflowHumanTaskDefinition() #
WorkflowHumanTaskDefinition() #public WorkflowHumanTaskDefinition()
Creates an instance of Workflow.
property BuildPayload #
BuildPayload #public required Func<WorkflowSpecExecutionContext<TStartRequest>, Dictionary<string, JsonElement>> BuildPayload { get; init; }
Builds the payload of an opened task.
property Descriptor #
Descriptor #public required WorkflowTaskDescriptor Descriptor { get; init; }
The task descriptor: name, type, route and roles.
property OnComplete #
OnComplete #public required WorkflowStepSequence<TStartRequest> OnComplete { get; init; }
The steps that run after a user completes the task.
property OnTimeout #
OnTimeout #public WorkflowStepSequence<TStartRequest>? OnTimeout { get; init; }
Runs when the task is still open at WorkflowHumanTaskDefinition<: the engine closes the task as expired and continues here instead of WorkflowHumanTaskDefinition<(a BPMN interrupting timer).
property PayloadExpression #
PayloadExpression #public WorkflowExpressionDefinition? PayloadExpression { get; init; }
The payload expression, when the payload is declared as an expression.
property ResolveRoute #
ResolveRoute #public required Func<WorkflowSpecExecutionContext<TStartRequest>, string> ResolveRoute { get; init; }
Computes the route of an opened task.
property RouteExpression #
RouteExpression #public WorkflowExpressionDefinition? RouteExpression { get; init; }
The route expression, when the route is declared as an expression.
property SingleOpenSlot #
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 #
TaskName #public required string TaskName { get; init; }
The task name.
property TimeoutSeconds #
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 Created.
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 inresult.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
| Member | Kind | Summary |
|---|---|---|
WorkflowInlineStepDefinition( | constructor | Runs C# code with the inline step services. |
ExecuteAsync | property | The code to run, with the context, the inline step services and a cancellation token. |
FailureHandlers | property | The failure and timeout branches; none when not set. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowInlineStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, WorkflowInlineStepServices, CancellationToken, Task>, WorkflowFailureHandlers<TStartRequest>) #
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 inresult.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 #
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 #
FailureHandlers #public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }
The failure and timeout branches; none when not set.
property StepName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowInlineStepServices( | constructor | The transports an inline step (Run) can call. |
EndpointTransport | property | The endpoint transport. |
GraphqlTransport | property | The GraphQL transport. |
HttpTransport | property | The HTTP transport. |
CallAsync( | method | Calls an endpoint of a named service. |
CallAsync( | method | Calls a named HTTP target. |
QueryAsync( | method | Runs a GraphQL query. |
constructor WorkflowInlineStepServices(IWorkflowEndpointTransport, IWorkflowGraphqlTransport, IWorkflowHttpTransport) #
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 #
EndpointTransport #public IWorkflowEndpointTransport EndpointTransport { get; }
The endpoint transport.
property GraphqlTransport #
GraphqlTransport #public IWorkflowGraphqlTransport GraphqlTransport { get; }
The GraphQL transport.
property HttpTransport #
HttpTransport #public IWorkflowHttpTransport HttpTransport { get; }
The HTTP transport.
method CallAsync(EndpointAddress, object, CancellationToken) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowInstalledModule( | constructor | A function module installed in the engine. |
ModuleName | property | The module name. |
Version | property | The module version. |
constructor WorkflowInstalledModule(string, string) #
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 #
ModuleName #public string ModuleName { get; init; }
The module name.
property Version #
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
| Member | Kind | Summary |
|---|---|---|
AsJsonElement< | extension method | Writes a value as JSON, with the web defaults. |
AsWorkflowJsonDictionary( | extension method | Converts an object, or a dictionary of JSON values, to a dictionary of JSON values; null gives an empty one. |
AsWorkflowObjectDictionary( | extension method | Converts an object or a dictionary to a dictionary of objects whose keys compare ignoring case; null gives an empty one. |
Assign< | extension method | Sets a value. |
AssignIfHasValue( | extension method | Sets a text value unless it is empty or white space. |
CloneJson( | extension method | Copies values into a new dictionary whose keys compare ignoring case. |
Get< | extension method | Converts a JSON value. |
GetOptional< | extension method | Reads a value, or the default when it is missing or null. |
GetOptionalProperty< | extension method | Reads a property, or the default when it is missing or null. |
GetRequiredProperty< | extension method | Reads a property. |
TryGet( | method | Converts a JSON value to a type; null converts to null. |
TryGet< | method | Converts a JSON value; null converts to the default. |
TryGetPropertyIgnoreCase( | extension method | Finds a property of a JSON object by name, ignoring case. |
WorkflowDict( | extension method | Wraps values in a value dictionary. |
extension method AsJsonElement<T>(T) #
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) #
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
Invalid: The value does not serialize to a JSON object.Operation Exception
extension method AsWorkflowObjectDictionary(object) #
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) #
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) #
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>) #
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) #
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
Invalid: The value cannot be converted.Operation Exception
extension method GetOptional<T>(IReadOnlyDictionary<string, JsonElement>, string) #
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
Invalid: The value cannot be converted.Operation Exception
extension method GetOptionalProperty<T>(JsonElement, string) #
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
Invalid: The value cannot be converted.Operation Exception
extension method GetRequiredProperty<T>(JsonElement, string) #
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
Invalid: The property is missing, null or cannot be converted.Operation Exception
method TryGet(JsonElement, Type, out object) #
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) #
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) #
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) #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowMapExecutionChange( | constructor | Creates an instance of Workflow. |
ExpectedVersionNo | property | The version the stored row must have. |
Map | property | The new map row. |
constructor WorkflowMapExecutionChange() #
WorkflowMapExecutionChange() #public WorkflowMapExecutionChange()
Creates an instance of Workflow.
property ExpectedVersionNo #
ExpectedVersionNo #public long ExpectedVersionNo { get; init; }
The version the stored row must have.
property Map #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowMapExecutionRecord( | constructor | Creates an instance of Workflow. |
AbsoluteDeadlineAtUtc | property | The deadline of the map, in UTC. |
CompletedAtUtc | property | When it completed, in UTC. |
CreatedAtUtc | property | When the row was created, in UTC. |
ExecutionPlanJson | property | The map plan, as JSON. |
ExecutionPlanSha256 | property | The SHA-256 of the map plan. |
FailurePolicy | property | The failure policy. |
FanInPolicy | property | The fan-in policy. |
GlobalActivityClass | property | The class of activities whose concurrency is limited across all maps. |
MapExecutionId | property | The map execution. |
MaxAggregateStateBytes | property | The size limit of the collected results, in bytes. |
MaxConcurrency | property | The items in flight at once. |
MaxItems | property | The items allowed. |
MinimumSucceeded | property | The items that must succeed under MIN_SUCCEEDED. |
ScopeExecutionId | property | The scope of the map. |
Status | property | The status. |
StepExecutionId | property | The map step. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowMapExecutionRecord() #
WorkflowMapExecutionRecord() #public WorkflowMapExecutionRecord()
Creates an instance of Workflow.
property AbsoluteDeadlineAtUtc #
AbsoluteDeadlineAtUtc #public DateTime? AbsoluteDeadlineAtUtc { get; init; }
The deadline of the map, in UTC.
property CompletedAtUtc #
CompletedAtUtc #public DateTime? CompletedAtUtc { get; init; }
When it completed, in UTC.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property ExecutionPlanJson #
ExecutionPlanJson #public required string ExecutionPlanJson { get; init; }
The map plan, as JSON.
property ExecutionPlanSha256 #
ExecutionPlanSha256 #public required string ExecutionPlanSha256 { get; init; }
The SHA-256 of the map plan.
property FailurePolicy #
FailurePolicy #public required string FailurePolicy { get; init; }
The failure policy.
property FanInPolicy #
FanInPolicy #public required string FanInPolicy { get; init; }
The fan-in policy.
property GlobalActivityClass #
GlobalActivityClass #public string? GlobalActivityClass { get; init; }
The class of activities whose concurrency is limited across all maps.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property MaxAggregateStateBytes #
MaxAggregateStateBytes #public int MaxAggregateStateBytes { get; init; }
The size limit of the collected results, in bytes.
property MaxConcurrency #
MaxConcurrency #public int MaxConcurrency { get; init; }
The items in flight at once.
property MaxItems #
MaxItems #public int MaxItems { get; init; }
The items allowed.
property MinimumSucceeded #
MinimumSucceeded #public int? MinimumSucceeded { get; init; }
The items that must succeed under MIN_SUCCEEDED.
property ScopeExecutionId #
ScopeExecutionId #public required string ScopeExecutionId { get; init; }
The scope of the map.
property Status #
Status #public required string Status { get; init; }
The status.
property StepExecutionId #
StepExecutionId #public required string StepExecutionId { get; init; }
The map step.
property UpdatedAtUtc #
UpdatedAtUtc #public DateTime UpdatedAtUtc { get; init; }
When the row last changed, in UTC.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowMapItemChange( | constructor | Creates an instance of Workflow. |
ExpectedVersionNo | property | The version the stored row must have. |
Item | property | The new item row. |
constructor WorkflowMapItemChange() #
WorkflowMapItemChange() #public WorkflowMapItemChange()
Creates an instance of Workflow.
property ExpectedVersionNo #
ExpectedVersionNo #public long ExpectedVersionNo { get; init; }
The version the stored row must have.
property Item #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowMapItemRecord( | constructor | Creates an instance of Workflow. |
ActiveStepExecutionId | property | The step the item runs now. |
ClaimExpiresAtUtc | property | When the claim lease expires, in UTC. |
ClaimFence | property | The claim fence, raised by each claim. |
ClaimOwner | property | The worker that holds the claim. |
CreatedAtUtc | property | When the row was created, in UTC. |
DescriptorJson | property | The item descriptor, as JSON. |
DescriptorSha256 | property | The SHA-256 of the item descriptor. |
ExecutionStateJson | property | The progress of the item, as JSON. |
ItemKey | property | The item key. |
MapExecutionId | property | The map execution. |
MapItemId | property | The map item. |
Ordinal | property | The position of the item in the collection. |
SafeResultDescriptorJson | property | The safe result descriptor, as JSON. |
Status | property | The status. |
TerminalOutcome | property | The final outcome, once the item finished. |
UpdatedAtUtc | property | When the row last changed, in UTC. |
VersionNo | property | The row version, raised by each change. |
constructor WorkflowMapItemRecord() #
WorkflowMapItemRecord() #public WorkflowMapItemRecord()
Creates an instance of Workflow.
property ActiveStepExecutionId #
ActiveStepExecutionId #public string? ActiveStepExecutionId { get; init; }
The step the item runs now.
property ClaimExpiresAtUtc #
ClaimExpiresAtUtc #public DateTime? ClaimExpiresAtUtc { get; init; }
When the claim lease expires, in UTC.
property ClaimFence #
ClaimFence #public long ClaimFence { get; init; }
The claim fence, raised by each claim.
property ClaimOwner #
ClaimOwner #public string? ClaimOwner { get; init; }
The worker that holds the claim.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DescriptorJson #
DescriptorJson #public required string DescriptorJson { get; init; }
The item descriptor, as JSON.
property DescriptorSha256 #
DescriptorSha256 #public required string DescriptorSha256 { get; init; }
The SHA-256 of the item descriptor.
property ExecutionStateJson #
ExecutionStateJson #public string? ExecutionStateJson { get; init; }
The progress of the item, as JSON.
property ItemKey #
ItemKey #public required string ItemKey { get; init; }
The item key.
property MapExecutionId #
MapExecutionId #public required string MapExecutionId { get; init; }
The map execution.
property MapItemId #
MapItemId #public required string MapItemId { get; init; }
The map item.
property Ordinal #
Ordinal #public int Ordinal { get; init; }
The position of the item in the collection.
property SafeResultDescriptorJson #
SafeResultDescriptorJson #public string? SafeResultDescriptorJson { get; init; }
The safe result descriptor, as JSON.
property Status #
Status #public required string Status { get; init; }
The status.
property TerminalOutcome #
TerminalOutcome #public string? TerminalOutcome { get; init; }
The final outcome, once the item finished.
property UpdatedAtUtc #
UpdatedAtUtc #public DateTime UpdatedAtUtc { get; init; }
When the row last changed, in UTC.
property VersionNo #
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 inresult.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.Max: The size limit of the collected results, in bytes.Aggregate State Bytes Body: The steps of the body.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowMapStepDefinition( | constructor | Runs its body once per item of a collection. |
Body | property | The steps of the body. |
CollectionExpression | property | The collection to map over. |
DeadlineSeconds | property | The deadline of the map in seconds. |
FailurePolicy | property | What a failed item does; FAIL_FAST by default. |
FanInPolicy | property | When the map completes; ALL_SUCCEEDED by default. |
GlobalActivityClass | property | A class of activities whose concurrency is limited across all maps. |
ItemKeyExpression | property | The key of an item, evaluated with the item in the state. |
ItemResultExpression | property | The result of an item, evaluated after its body. |
ItemStateKey | property | The state key that holds the current item. |
MaxAggregateStateBytes | property | The size limit of the collected results, in bytes. |
MaxConcurrency | property | The items in flight at once. |
MaxItems | property | The items allowed in the collection. |
MinimumSucceeded | property | The items that must succeed under MIN_SUCCEEDED. |
ResultKey | property | The key the collected results are kept under. |
RetryPolicy | property | The retry policy of an item. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowMapStepDefinition(string, WorkflowExpressionDefinition, WorkflowExpressionDefinition, WorkflowExpressionDefinition, string, int, int, int, WorkflowStepSequence<TStartRequest>) #
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 inresult.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.Max: The size limit of the collected results, in bytes.Aggregate State Bytes Body: The steps of the body.
property Body #
Body #public WorkflowStepSequence<TStartRequest> Body { get; init; }
The steps of the body.
property CollectionExpression #
CollectionExpression #public WorkflowExpressionDefinition CollectionExpression { get; init; }
The collection to map over.
property DeadlineSeconds #
DeadlineSeconds #public int? DeadlineSeconds { get; init; }
The deadline of the map in seconds.
property FailurePolicy #
FailurePolicy #public string FailurePolicy { get; init; }
What a failed item does; FAIL_FAST by default.
property FanInPolicy #
FanInPolicy #public string FanInPolicy { get; init; }
When the map completes; ALL_SUCCEEDED by default.
property GlobalActivityClass #
GlobalActivityClass #public string? GlobalActivityClass { get; init; }
A class of activities whose concurrency is limited across all maps.
property ItemKeyExpression #
ItemKeyExpression #public WorkflowExpressionDefinition ItemKeyExpression { get; init; }
The key of an item, evaluated with the item in the state.
property ItemResultExpression #
ItemResultExpression #public WorkflowExpressionDefinition ItemResultExpression { get; init; }
The result of an item, evaluated after its body.
property ItemStateKey #
ItemStateKey #public string ItemStateKey { get; init; }
The state key that holds the current item.
property MaxAggregateStateBytes #
MaxAggregateStateBytes #public int MaxAggregateStateBytes { get; init; }
The size limit of the collected results, in bytes.
property MaxConcurrency #
MaxConcurrency #public int MaxConcurrency { get; init; }
The items in flight at once.
property MaxItems #
MaxItems #public int MaxItems { get; init; }
The items allowed in the collection.
property MinimumSucceeded #
MinimumSucceeded #public int? MinimumSucceeded { get; init; }
The items that must succeed under MIN_SUCCEEDED.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the collected results are kept under.
property RetryPolicy #
RetryPolicy #public WorkflowRetryPolicyDeclaration RetryPolicy { get; init; }
The retry policy of an item.
property StepName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowMapWrite( | constructor | Creates an instance of WorkflowMapWrite. |
ChangedItems | property | Changed items. |
ChangedMaps | property | Changed maps. |
NewItems | property | New items. |
NewMap | property | A new map. |
constructor WorkflowMapWrite() #
WorkflowMapWrite() #public WorkflowMapWrite()
Creates an instance of WorkflowMapWrite.
property ChangedItems #
ChangedItems #public IReadOnlyList<WorkflowMapItemChange> ChangedItems { get; init; }
Changed items.
property ChangedMaps #
ChangedMaps #public IReadOnlyList<WorkflowMapExecutionChange> ChangedMaps { get; init; }
Changed maps.
property NewItems #
NewItems #public IReadOnlyList<WorkflowMapItemRecord> NewItems { get; init; }
New items.
property NewMap #
NewMap #public WorkflowMapExecutionRecord? NewMap { get; init; }
A new map.
class WorkflowModuleCatalogServiceCollectionExtensions
public static class WorkflowModuleCatalogServiceCollectionExtensions
Registers the module catalog and installed modules.
Members
| Member | Kind | Summary |
|---|---|---|
AddWorkflowModule( | extension method | Records moduleName at version as installed, and registers the module catalog. |
AddWorkflowModuleCatalog( | extension method | Registers the module catalog, unless it is already registered. |
extension method AddWorkflowModule(IServiceCollection, string, string) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowModuleRequirementValidationError( | constructor | A finding of a module requirement check. |
Code | property | The finding code. |
Message | property | The message. |
Path | property | The path of the requirement. |
constructor WorkflowModuleRequirementValidationError(string, string, string) #
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 #
Code #public string Code { get; init; }
The finding code.
property Message #
Message #public string Message { get; init; }
The message.
property Path #
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
| Member | Kind | Summary |
|---|---|---|
TryParse( | method | Parses 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) #
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.
record WorkflowModuleVersionRequirement
public sealed record WorkflowModuleVersionRequirement
A module version requirement: every clause must hold.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowModuleVersionRequirement( | constructor | Creates an instance of Workflow. |
Clauses | property | The clauses. |
IsSatisfiedBy( | method | Whether an installed version meets every clause. |
constructor WorkflowModuleVersionRequirement() #
WorkflowModuleVersionRequirement() #public WorkflowModuleVersionRequirement()
Creates an instance of Workflow.
property Clauses #
Clauses #public required IReadOnlyCollection<WorkflowModuleVersionRequirementClause> Clauses { get; init; }
The clauses.
method IsSatisfiedBy(string) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowModuleVersionRequirementClause( | constructor | One clause of a module version requirement. |
Operator | property | The comparison. |
Version | property | The version compared with. |
constructor WorkflowModuleVersionRequirementClause(WorkflowModuleVersionOperator, Version) #
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 #
Operator #public WorkflowModuleVersionOperator Operator { get; init; }
The comparison.
property Version #
Version #public Version Version { get; init; }
The version compared with.
class WorkflowModuleVersioning
public static class WorkflowModuleVersioning
Checks module requirements against the installed modules.
Members
| Member | Kind | Summary |
|---|---|---|
Satisfies( | method | Whether an installed module meets a requirement: the same name, ignoring case, and a version that meets every clause. |
ValidateRequirementSyntax( | method | Checks a requirement’s syntax: a module name (WFVAL070) and a valid version expression (WFVAL071). |
method Satisfies(WorkflowInstalledModule, WorkflowRequiredModuleDeclaration) #
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) #
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.is the message type or lane it is published on; WorkflowOutboxEntry.is the id the receiver de-duplicates on.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowOutboxEntry( | constructor | Creates an instance of WorkflowOutboxEntry. |
AggregateId | property | The aggregate the entry belongs to, when it has one. |
Channel | property | The message type or lane the entry is published on. |
DeliveryAttempts | property | The delivery attempts so far. |
EntryKey | property | The key of the entry in its outbox. |
Kind | property | The outbox. |
MessageId | property | The id the receiver de-duplicates on. |
PayloadJson | property | The payload, as JSON. |
PayloadSha256 | property | The SHA-256 of the payload. |
constructor WorkflowOutboxEntry() #
WorkflowOutboxEntry() #public WorkflowOutboxEntry()
Creates an instance of WorkflowOutboxEntry.
property AggregateId #
AggregateId #public string? AggregateId { get; init; }
The aggregate the entry belongs to, when it has one.
property Channel #
Channel #public required string Channel { get; init; }
The message type or lane the entry is published on.
property DeliveryAttempts #
DeliveryAttempts #public int DeliveryAttempts { get; init; }
The delivery attempts so far.
property EntryKey #
EntryKey #public required string EntryKey { get; init; }
The key of the entry in its outbox.
property Kind #
Kind #public required WorkflowOutboxKind Kind { get; init; }
The outbox.
property MessageId #
MessageId #public required string MessageId { get; init; }
The id the receiver de-duplicates on.
property PayloadJson #
PayloadJson #public required string PayloadJson { get; init; }
The payload, as JSON.
property PayloadSha256 #
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.
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
| Member | Kind | Summary |
|---|---|---|
WorkflowOutboxMessage( | constructor | Creates an instance of Workflow. |
AggregateId | property | The aggregate the message belongs to. |
CreatedAtUtc | property | When the message was created, in UTC. |
EventId | property | The message identifier. |
MessageType | property | The message type. |
PayloadJson | property | The payload, as JSON. |
PayloadSha256 | property | The SHA-256 of the payload. |
constructor WorkflowOutboxMessage() #
WorkflowOutboxMessage() #public WorkflowOutboxMessage()
Creates an instance of Workflow.
property AggregateId #
AggregateId #public required string AggregateId { get; init; }
The aggregate the message belongs to.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the message was created, in UTC.
property EventId #
EventId #public required string EventId { get; init; }
The message identifier.
property MessageType #
MessageType #public required string MessageType { get; init; }
The message type.
property PayloadJson #
PayloadJson #public required string PayloadJson { get; init; }
The payload, as JSON.
property PayloadSha256 #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowPendingSignalPlan( | constructor | Creates an instance of Workflow. |
AutoDispatch | property | Whether the engine sends the signal itself; true by default. |
DueAtUtc | property | When the signal is due, in UTC; at once when not set. |
DurableDispatch | property | Whether a durable dispatcher sends it, such as for an external activity step. |
Payload | property | The signal payload. |
ResumeState | property | The state the resume continues with. |
SignalType | property | The signal type. |
WaitingToken | property | The token of the wait the signal resumes. |
constructor WorkflowPendingSignalPlan() #
WorkflowPendingSignalPlan() #public WorkflowPendingSignalPlan()
Creates an instance of Workflow.
property AutoDispatch #
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 #
DueAtUtc #public DateTime? DueAtUtc { get; init; }
When the signal is due, in UTC; at once when not set.
property DurableDispatch #
DurableDispatch #public bool DurableDispatch { get; init; }
Whether a durable dispatcher sends it, such as for an external activity step.
property Payload #
Payload #public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }
The signal payload.
property ResumeState #
ResumeState #public IReadOnlyDictionary<string, JsonElement> ResumeState { get; init; }
The state the resume continues with.
property SignalType #
SignalType #public required string SignalType { get; init; }
The signal type.
property WaitingToken #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowPrestartTerminalFence( | constructor | Creates an instance of Workflow. |
AssociationGeneration | property | The generation of the association. |
AssociationId | property | The association. |
AssociationSha256 | property | The SHA-256 of the association. |
CreatedAtUtc | property | When the row was created, in UTC. |
RootScopeExecutionId | property | The root scope. |
StartRequestId | property | The start request. |
StartRequestSha256 | property | The SHA-256 of the start request. |
TerminalCommandEventId | property | The terminal command. |
TerminalCommandSha256 | property | The SHA-256 of the terminal command. |
TerminalFenceId | property | The fence. |
TerminalFenceSha256 | property | The SHA-256 of the fence. |
TerminalFenceVersion | property | The fence version. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowPrestartTerminalFence() #
WorkflowPrestartTerminalFence() #public WorkflowPrestartTerminalFence()
Creates an instance of Workflow.
property AssociationGeneration #
AssociationGeneration #public long AssociationGeneration { get; init; }
The generation of the association.
property AssociationId #
AssociationId #public required string AssociationId { get; init; }
The association.
property AssociationSha256 #
AssociationSha256 #public required string AssociationSha256 { get; init; }
The SHA-256 of the association.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property RootScopeExecutionId #
RootScopeExecutionId #public required string RootScopeExecutionId { get; init; }
The root scope.
property StartRequestId #
StartRequestId #public required string StartRequestId { get; init; }
The start request.
property StartRequestSha256 #
StartRequestSha256 #public required string StartRequestSha256 { get; init; }
The SHA-256 of the start request.
property TerminalCommandEventId #
TerminalCommandEventId #public required string TerminalCommandEventId { get; init; }
The terminal command.
property TerminalCommandSha256 #
TerminalCommandSha256 #public required string TerminalCommandSha256 { get; init; }
The SHA-256 of the terminal command.
property TerminalFenceId #
TerminalFenceId #public required string TerminalFenceId { get; init; }
The fence.
property TerminalFenceSha256 #
TerminalFenceSha256 #public required string TerminalFenceSha256 { get; init; }
The SHA-256 of the fence.
property TerminalFenceVersion #
TerminalFenceVersion #public long TerminalFenceVersion { get; init; }
The fence version.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowProjectionRetentionBatch( | constructor | Creates an instance of Workflow. |
PurgedInstances | property | The instances purged. |
PurgedTaskEvents | property | The task events purged. |
PurgedTasks | property | The tasks purged. |
PurgedWorkflowInstanceIds | property | The instances purged. |
StaleInstancesMarked | property | The instances marked stale. |
StaleTasksMarked | property | The tasks marked stale. |
StaleWorkflowInstanceIds | property | The instances marked stale. |
constructor WorkflowProjectionRetentionBatch() #
WorkflowProjectionRetentionBatch() #public WorkflowProjectionRetentionBatch()
Creates an instance of Workflow.
property PurgedInstances #
PurgedInstances #public int PurgedInstances { get; init; }
The instances purged.
property PurgedTaskEvents #
PurgedTaskEvents #public int PurgedTaskEvents { get; init; }
The task events purged.
property PurgedTasks #
PurgedTasks #public int PurgedTasks { get; init; }
The tasks purged.
property PurgedWorkflowInstanceIds #
PurgedWorkflowInstanceIds #public IReadOnlyCollection<string> PurgedWorkflowInstanceIds { get; init; }
The instances purged.
property StaleInstancesMarked #
StaleInstancesMarked #public int StaleInstancesMarked { get; init; }
The instances marked stale.
property StaleTasksMarked #
StaleTasksMarked #public int StaleTasksMarked { get; init; }
The tasks marked stale.
property StaleWorkflowInstanceIds #
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 inresult.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
| Member | Kind | Summary |
|---|---|---|
WorkflowRabbitCallStepDefinition( | constructor | 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. |
Command | property | The command-style semantics; none for a plain publish. |
Exchange | property | The exchange. |
FailureHandlers | property | The failure and timeout branches; none when not set. |
PayloadExpression | property | The payload as an expression, for the canonical definition. |
PayloadFactory | property | Builds the payload from the context. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
RoutingKey | property | The routing key. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
TimeoutSeconds | property | The 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?) #
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 inresult.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 #
Command #public WorkflowRabbitCommandDeclaration? Command { get; init; }
The command-style semantics; none for a plain publish.
property Exchange #
Exchange #public string Exchange { get; init; }
The exchange.
property FailureHandlers #
FailureHandlers #public WorkflowFailureHandlers<TStartRequest>? FailureHandlers { get; init; }
The failure and timeout branches; none when not set.
property PayloadExpression #
PayloadExpression #public WorkflowExpressionDefinition? PayloadExpression { get; init; }
The payload as an expression, for the canonical definition.
property PayloadFactory #
PayloadFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> PayloadFactory { get; init; }
Builds the payload from the context.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property RoutingKey #
RoutingKey #public string RoutingKey { get; init; }
The routing key.
property StepName #
StepName #public string StepName { get; init; }
The step name, shown in diagrams and in result.lastFailure.
property TimeoutSeconds #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowReference( | constructor | Refers to a workflow computed from the context. |
WorkflowReference( | constructor | Refers to a workflow by name and optionally version; it has a canonical form. |
StaticWorkflowName | property | The workflow name, when it was given as a value. |
StaticWorkflowVersion | property | The version, when it was given as a value. |
WorkflowNameFactory | property | Computes the workflow name. |
WorkflowVersionFactory | property | Computes the version. |
BuildStartWorkflowRequest( | method | Builds the start request of the referred workflow. |
TryBuildCanonicalInvocationDeclaration( | method | Builds the canonical invocation, when the workflow was given as a value. |
constructor WorkflowReference(Func<IWorkflowSpecExecutionContext, string>, Func<IWorkflowSpecExecutionContext, string>) #
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.workflow: Computes the version; the latest when not set.Version Factory
constructor WorkflowReference(string, string) #
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 #
StaticWorkflowName #public string? StaticWorkflowName { get; }
The workflow name, when it was given as a value.
property StaticWorkflowVersion #
StaticWorkflowVersion #public string? StaticWorkflowVersion { get; }
The version, when it was given as a value.
property WorkflowNameFactory #
WorkflowNameFactory #public Func<IWorkflowSpecExecutionContext, string> WorkflowNameFactory { get; }
Computes the workflow name.
property WorkflowVersionFactory #
WorkflowVersionFactory #public Func<IWorkflowSpecExecutionContext, string?>? WorkflowVersionFactory { get; }
Computes the version.
method BuildStartWorkflowRequest(IWorkflowSpecExecutionContext, object, WorkflowBusinessReference) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRegisteredSignalInboxEntry( | constructor | Creates an instance of Workflow. |
CanonicalRequestJson | property | The canonical request, as JSON. |
Disposition | property | How the signal was handled. |
PayloadJson | property | The payload, as JSON. |
PayloadSha256 | property | The SHA-256 of the payload. |
ReceivedAtUtc | property | When it was received, in UTC. |
RequestSha256 | property | The SHA-256 of the request. |
ResolvedAtUtc | property | When it was resolved, in UTC. |
ServiceAudience | property | The service audience allowed to raise it. |
SignalCode | property | The signal code. |
SignalEventId | property | The signal event. |
SignalKey | property | The signal key. |
SignalRegistrationId | property | The wait that took the signal, when one did. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowRegisteredSignalInboxEntry() #
WorkflowRegisteredSignalInboxEntry() #public WorkflowRegisteredSignalInboxEntry()
Creates an instance of Workflow.
property CanonicalRequestJson #
CanonicalRequestJson #public required string CanonicalRequestJson { get; init; }
The canonical request, as JSON.
property Disposition #
Disposition #public required string Disposition { get; init; }
How the signal was handled.
property PayloadJson #
PayloadJson #public required string PayloadJson { get; init; }
The payload, as JSON.
property PayloadSha256 #
PayloadSha256 #public required string PayloadSha256 { get; init; }
The SHA-256 of the payload.
property ReceivedAtUtc #
ReceivedAtUtc #public DateTime ReceivedAtUtc { get; init; }
When it was received, in UTC.
property RequestSha256 #
RequestSha256 #public required string RequestSha256 { get; init; }
The SHA-256 of the request.
property ResolvedAtUtc #
ResolvedAtUtc #public DateTime? ResolvedAtUtc { get; init; }
When it was resolved, in UTC.
property ServiceAudience #
ServiceAudience #public required string ServiceAudience { get; init; }
The service audience allowed to raise it.
property SignalCode #
SignalCode #public required string SignalCode { get; init; }
The signal code.
property SignalEventId #
SignalEventId #public required string SignalEventId { get; init; }
The signal event.
property SignalKey #
SignalKey #public required string SignalKey { get; init; }
The signal key.
property SignalRegistrationId #
SignalRegistrationId #public string? SignalRegistrationId { get; init; }
The wait that took the signal, when one did.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRegisteredSignalWait( | constructor | Creates an instance of Workflow. |
ExpectedExecutionVersion | property | The execution version the wait was registered at. |
PayloadJson | property | The signal payload, as JSON. |
PayloadSha256 | property | The SHA-256 of the signal payload. |
RegisteredAtUtc | property | When the wait was registered, in UTC. |
ResolvedAtUtc | property | When it was resolved, in UTC. |
ResolvedByEventId | property | The signal that resolved the wait. |
ResolvedByTimerId | property | The deadline timer that resolved the wait. |
ServiceAudience | property | The service audience allowed to raise it. |
SignalCode | property | The signal code. |
SignalKey | property | The signal key. |
SignalRegistrationId | property | The registered wait. |
Status | property | The status. |
VersionNo | property | The row version, raised by each change. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowRegisteredSignalWait() #
WorkflowRegisteredSignalWait() #public WorkflowRegisteredSignalWait()
Creates an instance of Workflow.
property ExpectedExecutionVersion #
ExpectedExecutionVersion #public long ExpectedExecutionVersion { get; init; }
The execution version the wait was registered at.
property PayloadJson #
PayloadJson #public string? PayloadJson { get; init; }
The signal payload, as JSON.
property PayloadSha256 #
PayloadSha256 #public string? PayloadSha256 { get; init; }
The SHA-256 of the signal payload.
property RegisteredAtUtc #
RegisteredAtUtc #public DateTime RegisteredAtUtc { get; init; }
When the wait was registered, in UTC.
property ResolvedAtUtc #
ResolvedAtUtc #public DateTime? ResolvedAtUtc { get; init; }
When it was resolved, in UTC.
property ResolvedByEventId #
ResolvedByEventId #public string? ResolvedByEventId { get; init; }
The signal that resolved the wait.
property ResolvedByTimerId #
ResolvedByTimerId #public string? ResolvedByTimerId { get; init; }
The deadline timer that resolved the wait.
property ServiceAudience #
ServiceAudience #public required string ServiceAudience { get; init; }
The service audience allowed to raise it.
property SignalCode #
SignalCode #public required string SignalCode { get; init; }
The signal code.
property SignalKey #
SignalKey #public required string SignalKey { get; init; }
The signal key.
property SignalRegistrationId #
SignalRegistrationId #public required string SignalRegistrationId { get; init; }
The registered wait.
property Status #
Status #public required string Status { get; init; }
The status.
property VersionNo #
VersionNo #public long VersionNo { get; init; }
The row version, raised by each change.
property WorkflowExecutionId #
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..
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRegisteredSignalWrite( | constructor | Creates an instance of Workflow. |
ChangedInbox | property | A changed inbox entry. |
ChangedTimer | property | A changed timer. |
ChangedWait | property | A changed wait. |
ChangedWaitExpectedVersion | property | The version the stored wait must have. |
NewInbox | property | A new inbox entry. |
NewTimer | property | A new timer. |
NewWait | property | A new wait. |
constructor WorkflowRegisteredSignalWrite() #
WorkflowRegisteredSignalWrite() #public WorkflowRegisteredSignalWrite()
Creates an instance of Workflow.
property ChangedInbox #
ChangedInbox #public WorkflowRegisteredSignalInboxEntry? ChangedInbox { get; init; }
A changed inbox entry.
property ChangedTimer #
ChangedTimer #public WorkflowSignalDeadlineTimer? ChangedTimer { get; init; }
A changed timer.
property ChangedWait #
ChangedWait #public WorkflowRegisteredSignalWait? ChangedWait { get; init; }
A changed wait.
property ChangedWaitExpectedVersion #
ChangedWaitExpectedVersion #public long ChangedWaitExpectedVersion { get; init; }
The version the stored wait must have.
property NewInbox #
NewInbox #public WorkflowRegisteredSignalInboxEntry? NewInbox { get; init; }
A new inbox entry.
property NewTimer #
NewTimer #public WorkflowSignalDeadlineTimer? NewTimer { get; init; }
A new timer.
property NewWait #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRegistration( | constructor | Creates an instance of WorkflowRegistration. |
BindStartRequest | property | Binds a start payload to the start request type. |
BusinessReferenceKeyPropertyName | property | The start request property marked with WorkflowBusinessIdAttribute, when one is. |
Definition | property | The definition descriptor: name, version, display name, roles and tasks. |
ExtractBusinessReference | property | Reads the business reference of a start request: its key and its parts. |
HandlerType | property | The execution handler type, or null for a workflow without a handler. |
StartRequestType | property | The type the start payload binds to; a dictionary for a workflow without a start request type. |
WorkflowType | property | The workflow type. |
constructor WorkflowRegistration() #
WorkflowRegistration() #public WorkflowRegistration()
Creates an instance of WorkflowRegistration.
property BindStartRequest #
BindStartRequest #public required Func<IDictionary<string, object?>, object> BindStartRequest { get; init; }
Binds a start payload to the start request type.
property BusinessReferenceKeyPropertyName #
BusinessReferenceKeyPropertyName #public string? BusinessReferenceKeyPropertyName { get; init; }
The start request property marked with WorkflowBusinessIdAttribute, when one is.
property Definition #
Definition #public required WorkflowDefinitionDescriptor Definition { get; init; }
The definition descriptor: name, version, display name, roles and tasks.
property ExtractBusinessReference #
ExtractBusinessReference #public required Func<object, WorkflowBusinessReference?> ExtractBusinessReference { get; init; }
Reads the business reference of a start request: its key and its parts.
property HandlerType #
HandlerType #public Type? HandlerType { get; init; }
The execution handler type, or null for a workflow without a handler.
property StartRequestType #
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 #
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
| Member | Kind | Summary |
|---|---|---|
AddWorkflowRegistration< | extension method | Registers TWorkflow with an execution handler or a start request type. |
AddWorkflowRegistration< | extension method | Registers TWorkflow with its start request type and its execution handler, which is registered scoped. |
AddWorkflowRegistration< | extension method | Registers TWorkflow. |
extension method AddWorkflowRegistration<TWorkflow, TRegistrationArgument>(IServiceCollection) #
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 TRegistration implements IWorkflowExecutionHandler, it is the handler (registered scoped); otherwise it is the start request type, and the workflow must implement IWorkflow<for it.
Type parameters
TWorkflow: The workflow definition.TRegistration: The execution handler or the start request type.Argument
Parameters
services: The service collection to add the services to.
Returns
The same service collection, for chaining.
extension method AddWorkflowRegistration<TWorkflow, TStartRequest, THandler>(IServiceCollection) #
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) #
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<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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderEdge( | constructor | Creates an instance of WorkflowRenderEdge. |
Id | property | The edge identifier. |
Kind | property | The edge kind. |
Label | property | The label. |
SourceNodeId | property | The source node. |
SourcePortId | property | The source port, when the edge leaves a port. |
TargetNodeId | property | The target node. |
TargetPortId | property | The target port, when the edge enters a port. |
constructor WorkflowRenderEdge() #
WorkflowRenderEdge() #public WorkflowRenderEdge()
Creates an instance of WorkflowRenderEdge.
property Id #
Id #public required string Id { get; init; }
The edge identifier.
property Kind #
Kind #public string? Kind { get; init; }
The edge kind.
property Label #
Label #public string? Label { get; init; }
The label.
property SourceNodeId #
SourceNodeId #public required string SourceNodeId { get; init; }
The source node.
property SourcePortId #
SourcePortId #public string? SourcePortId { get; init; }
The source port, when the edge leaves a port.
property TargetNodeId #
TargetNodeId #public required string TargetNodeId { get; init; }
The target node.
property TargetPortId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderEdgeSection( | constructor | Creates an instance of Workflow. |
BendPoints | property | The bends between them. |
EndPoint | property | Where the section ends. |
StartPoint | property | Where the section starts. |
constructor WorkflowRenderEdgeSection() #
WorkflowRenderEdgeSection() #public WorkflowRenderEdgeSection()
Creates an instance of Workflow.
property BendPoints #
BendPoints #public IReadOnlyCollection<WorkflowRenderPoint> BendPoints { get; init; }
The bends between them.
property EndPoint #
EndPoint #public required WorkflowRenderPoint EndPoint { get; init; }
Where the section ends.
property StartPoint #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderGraph( | constructor | Creates an instance of WorkflowRenderGraph. |
Edges | property | The edges. |
Id | property | The graph identifier. |
Nodes | property | The nodes. |
constructor WorkflowRenderGraph() #
WorkflowRenderGraph() #public WorkflowRenderGraph()
Creates an instance of WorkflowRenderGraph.
property Edges #
Edges #public required IReadOnlyCollection<WorkflowRenderEdge> Edges { get; init; }
The edges.
property Id #
Id #public required string Id { get; init; }
The graph identifier.
property Nodes #
Nodes #public required IReadOnlyCollection<WorkflowRenderNode> Nodes { get; init; }
The nodes.
enum WorkflowRenderLayoutDirection
public enum WorkflowRenderLayoutDirection
The direction of the flow in a diagram.
| Value | Description |
|---|---|
TopToBottom = 0 | From top to bottom. |
LeftToRight = 1 | From left to right. |
enum WorkflowRenderLayoutEffort
public enum WorkflowRenderLayoutEffort
How hard the layout works on node order and placement.
| Value | Description |
|---|---|
Draft = 0 | The fastest layout. |
Balanced = 1 | A balance of speed and quality. |
Best = 2 | The best layout, the slowest. |
class WorkflowRenderLayoutProviderNames
public static class WorkflowRenderLayoutProviderNames
The layout provider names.
Members
| Member | Kind | Summary |
|---|---|---|
ElkJs | constant | The name reserved for an ElkJS layout provider. |
ElkSharp | constant | The ElkSharp layered layout, the default. |
Msagl | constant | The name reserved for an MSAGL layout provider. |
constant ElkJs #
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 #
ElkSharp #public const string ElkSharp = "ElkSharp"
The ElkSharp layered layout, the default.
constant Msagl #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderLayoutRequest( | constructor | Creates an instance of Workflow. |
Direction | property | The flow direction; left to right by default. |
Effort | property | The layout effort; WorkflowRenderLayoutEffort.by default. |
LayerSpacing | property | The space between layers; 60 by default. |
NodeSpacing | property | The space between nodes of a layer; 40 by default. |
OrderingIterations | property | The node ordering iterations; the engine’s choice when not set. |
PlacementIterations | property | The node placement iterations; the engine’s choice when not set. |
constructor WorkflowRenderLayoutRequest() #
WorkflowRenderLayoutRequest() #public WorkflowRenderLayoutRequest()
Creates an instance of Workflow.
property Direction #
Direction #public WorkflowRenderLayoutDirection Direction { get; init; }
The flow direction; left to right by default.
property Effort #
Effort #public WorkflowRenderLayoutEffort Effort { get; init; }
The layout effort; WorkflowRenderLayoutEffort.by default.
property LayerSpacing #
LayerSpacing #public double LayerSpacing { get; init; }
The space between layers; 60 by default.
property NodeSpacing #
NodeSpacing #public double NodeSpacing { get; init; }
The space between nodes of a layer; 40 by default.
property OrderingIterations #
OrderingIterations #public int? OrderingIterations { get; init; }
The node ordering iterations; the engine’s choice when not set.
property PlacementIterations #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderLayoutResult( | constructor | Creates an instance of Workflow. |
Edges | property | The routed edges. |
GraphId | property | The graph identifier. |
Nodes | property | The positioned nodes. |
constructor WorkflowRenderLayoutResult() #
WorkflowRenderLayoutResult() #public WorkflowRenderLayoutResult()
Creates an instance of Workflow.
property Edges #
Edges #public required IReadOnlyCollection<WorkflowRenderRoutedEdge> Edges { get; init; }
The routed edges.
property GraphId #
GraphId #public required string GraphId { get; init; }
The graph identifier.
property Nodes #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderNode( | constructor | Creates an instance of WorkflowRenderNode. |
Height | property | The node height; 72 by default. |
IconKey | property | The icon of the node. |
Id | property | The node identifier. |
Kind | property | The node kind, such as Start, End, HumanTask, TransportCall or Decision. |
Label | property | The label. |
ParentNodeId | property | The node that contains this one, when it is nested. |
Ports | property | The ports of the node. |
Route | property | The route of a human task node. |
SemanticKey | property | The name of what the node stands for, such as the task or step name. |
SemanticType | property | What the node stands for, such as Task or Decision. |
TaskType | property | The task type of a human task node. |
Width | property | The node width; 160 by default. |
constructor WorkflowRenderNode() #
WorkflowRenderNode() #public WorkflowRenderNode()
Creates an instance of WorkflowRenderNode.
property Height #
Height #public double Height { get; init; }
The node height; 72 by default.
property IconKey #
IconKey #public string? IconKey { get; init; }
The icon of the node.
property Id #
Id #public required string Id { get; init; }
The node identifier.
property Kind #
Kind #public required string Kind { get; init; }
The node kind, such as Start, End, HumanTask, TransportCall or Decision.
property Label #
Label #public required string Label { get; init; }
The label.
property ParentNodeId #
ParentNodeId #public string? ParentNodeId { get; init; }
The node that contains this one, when it is nested.
property Ports #
Ports #public IReadOnlyCollection<WorkflowRenderPort> Ports { get; init; }
The ports of the node.
property Route #
Route #public string? Route { get; init; }
The route of a human task node.
property SemanticKey #
SemanticKey #public string? SemanticKey { get; init; }
The name of what the node stands for, such as the task or step name.
property SemanticType #
SemanticType #public string? SemanticType { get; init; }
What the node stands for, such as Task or Decision.
property TaskType #
TaskType #public string? TaskType { get; init; }
The task type of a human task node.
property Width #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderPoint( | constructor | Creates an instance of WorkflowRenderPoint. |
X | property | The horizontal position. |
Y | property | The vertical position. |
constructor WorkflowRenderPoint() #
WorkflowRenderPoint() #public WorkflowRenderPoint()
Creates an instance of WorkflowRenderPoint.
property X #
X #public required double X { get; init; }
The horizontal position.
property Y #
Y #public required double Y { get; init; }
The vertical position.
record WorkflowRenderPort
public sealed record WorkflowRenderPort
A port of a render node.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderPort( | constructor | Creates an instance of WorkflowRenderPort. |
Height | property | The port height; 8 by default. |
Id | property | The port identifier. |
Side | property | The side of the node the port is on. |
Width | property | The port width; 8 by default. |
constructor WorkflowRenderPort() #
WorkflowRenderPort() #public WorkflowRenderPort()
Creates an instance of WorkflowRenderPort.
property Height #
Height #public double Height { get; init; }
The port height; 8 by default.
property Id #
Id #public required string Id { get; init; }
The port identifier.
property Side #
Side #public string? Side { get; init; }
The side of the node the port is on.
property Width #
Width #public double Width { get; init; }
The port width; 8 by default.
record WorkflowRenderPositionedNode
public sealed record WorkflowRenderPositionedNode
A positioned node.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderPositionedNode( | constructor | Creates an instance of Workflow. |
Height | property | The node height. |
IconKey | property | The icon of the node. |
Id | property | The node identifier. |
Kind | property | The node kind, such as Start, End, HumanTask, TransportCall or Decision. |
Label | property | The label. |
ParentNodeId | property | The node that contains this one, when it is nested. |
Ports | property | The positioned ports. |
Route | property | The route of a human task node. |
SemanticKey | property | The name of what the node stands for, such as the task or step name. |
SemanticType | property | What the node stands for, such as Task or Decision. |
TaskType | property | The task type of a human task node. |
Width | property | The node width. |
X | property | The left edge of the node. |
Y | property | The top edge of the node. |
constructor WorkflowRenderPositionedNode() #
WorkflowRenderPositionedNode() #public WorkflowRenderPositionedNode()
Creates an instance of Workflow.
property Height #
Height #public double Height { get; init; }
The node height.
property IconKey #
IconKey #public string? IconKey { get; init; }
The icon of the node.
property Id #
Id #public required string Id { get; init; }
The node identifier.
property Kind #
Kind #public required string Kind { get; init; }
The node kind, such as Start, End, HumanTask, TransportCall or Decision.
property Label #
Label #public required string Label { get; init; }
The label.
property ParentNodeId #
ParentNodeId #public string? ParentNodeId { get; init; }
The node that contains this one, when it is nested.
property Ports #
Ports #public IReadOnlyCollection<WorkflowRenderPositionedPort> Ports { get; init; }
The positioned ports.
property Route #
Route #public string? Route { get; init; }
The route of a human task node.
property SemanticKey #
SemanticKey #public string? SemanticKey { get; init; }
The name of what the node stands for, such as the task or step name.
property SemanticType #
SemanticType #public string? SemanticType { get; init; }
What the node stands for, such as Task or Decision.
property TaskType #
TaskType #public string? TaskType { get; init; }
The task type of a human task node.
property Width #
Width #public double Width { get; init; }
The node width.
property X #
X #public double X { get; init; }
The left edge of the node.
property Y #
Y #public double Y { get; init; }
The top edge of the node.
record WorkflowRenderPositionedPort
public sealed record WorkflowRenderPositionedPort
A positioned port.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderPositionedPort( | constructor | Creates an instance of Workflow. |
Height | property | The port height. |
Id | property | The port identifier. |
Side | property | The side of the node the port is on. |
Width | property | The port width. |
X | property | The left edge of the port. |
Y | property | The top edge of the port. |
constructor WorkflowRenderPositionedPort() #
WorkflowRenderPositionedPort() #public WorkflowRenderPositionedPort()
Creates an instance of Workflow.
property Height #
Height #public double Height { get; init; }
The port height.
property Id #
Id #public required string Id { get; init; }
The port identifier.
property Side #
Side #public string? Side { get; init; }
The side of the node the port is on.
property Width #
Width #public double Width { get; init; }
The port width.
property X #
X #public double X { get; init; }
The left edge of the port.
property Y #
Y #public double Y { get; init; }
The top edge of the port.
record WorkflowRenderRoutedEdge
public sealed record WorkflowRenderRoutedEdge
A routed edge.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderRoutedEdge( | constructor | Creates an instance of Workflow. |
Id | property | The edge identifier. |
Kind | property | The edge kind. |
Label | property | The label. |
Sections | property | The routed sections. |
SourceNodeId | property | The source node. |
SourcePortId | property | The source port, when the edge leaves a port. |
TargetNodeId | property | The target node. |
TargetPortId | property | The target port, when the edge enters a port. |
constructor WorkflowRenderRoutedEdge() #
WorkflowRenderRoutedEdge() #public WorkflowRenderRoutedEdge()
Creates an instance of Workflow.
property Id #
Id #public required string Id { get; init; }
The edge identifier.
property Kind #
Kind #public string? Kind { get; init; }
The edge kind.
property Label #
Label #public string? Label { get; init; }
The label.
property Sections #
Sections #public IReadOnlyCollection<WorkflowRenderEdgeSection> Sections { get; init; }
The routed sections.
property SourceNodeId #
SourceNodeId #public required string SourceNodeId { get; init; }
The source node.
property SourcePortId #
SourcePortId #public string? SourcePortId { get; init; }
The source port, when the edge leaves a port.
property TargetNodeId #
TargetNodeId #public required string TargetNodeId { get; init; }
The target node.
property TargetPortId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRenderingOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: WorkflowRendering. |
LayoutProvider | property | The diagram layout provider, for example ElkSharp; ElkSharp when not set. |
constructor WorkflowRenderingOptions() #
WorkflowRenderingOptions() #public WorkflowRenderingOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowRendering"
The configuration section the options bind from: WorkflowRendering.
property LayoutProvider #
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 inresult.lastFailure.MaxIterationsFactory: Computes the maximum number of iterations.Body: The steps of the body.Continue: The condition to run another iteration; none when not set.While Evaluator
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRepeatStepDefinition( | constructor | Runs its body while a condition holds, at most a number of times. |
Body | property | The steps of the body. |
ContinueWhileEvaluator | property | The condition to run another iteration; none when not set. |
ContinueWhileExpression | property | The condition as an expression, for the canonical definition. |
IterationStateKey | property | The state key that holds the iteration number; not kept when not set. |
MaxIterationsExpression | property | The maximum as an expression, for the canonical definition. |
MaxIterationsFactory | property | Computes the maximum number of iterations. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowRepeatStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, int>, WorkflowStepSequence<TStartRequest>, Func<WorkflowSpecExecutionContext<TStartRequest>, bool>) #
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 inresult.lastFailure.MaxIterationsFactory: Computes the maximum number of iterations.Body: The steps of the body.Continue: The condition to run another iteration; none when not set.While Evaluator
property Body #
Body #public WorkflowStepSequence<TStartRequest> Body { get; init; }
The steps of the body.
property ContinueWhileEvaluator #
ContinueWhileEvaluator #public Func<WorkflowSpecExecutionContext<TStartRequest>, bool>? ContinueWhileEvaluator { get; init; }
The condition to run another iteration; none when not set.
property ContinueWhileExpression #
ContinueWhileExpression #public WorkflowExpressionDefinition? ContinueWhileExpression { get; init; }
The condition as an expression, for the canonical definition.
property IterationStateKey #
IterationStateKey #public string? IterationStateKey { get; init; }
The state key that holds the iteration number; not kept when not set.
property MaxIterationsExpression #
MaxIterationsExpression #public WorkflowExpressionDefinition? MaxIterationsExpression { get; init; }
The maximum as an expression, for the canonical definition.
property MaxIterationsFactory #
MaxIterationsFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, int> MaxIterationsFactory { get; init; }
Computes the maximum number of iterations.
property StepName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRetentionOverride( | constructor | Creates an instance of Workflow. |
CompletedOlderThanUtc | property | Purge completed/cancelled instances whose CompletedOnUtc <= this threshold. |
RunningOlderThanUtc | property | Mark running (Open) instances whose CreatedOnUtc <= this threshold as stale. |
constructor WorkflowRetentionOverride() #
WorkflowRetentionOverride() #public WorkflowRetentionOverride()
Creates an instance of Workflow.
property CompletedOlderThanUtc #
CompletedOlderThanUtc #public DateTime? CompletedOlderThanUtc { get; init; }
Purge completed/cancelled instances whose CompletedOnUtc <= this threshold.
property RunningOlderThanUtc #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRootExecutionStart( | constructor | Creates an instance of Workflow. |
AssociationGeneration | property | The generation of the association. |
AssociationId | property | The association. |
AssociationSha256 | property | The SHA-256 of the association. |
BusinessReferenceSha256 | property | The SHA-256 of the business reference. |
CreatedAtUtc | property | When the row was created, in UTC. |
DefinitionCode | property | The workflow definition. |
DefinitionSha256 | property | The SHA-256 of the definition. |
DefinitionVersion | property | The definition version. |
FirstEvent | property | The first history event (sequence 1). |
InitialStateJson | property | The initial state, as JSON. |
InstanceStatus | property | The instance status. |
OpenStatus | property | The status of the open association. |
RetentionPolicy | property | The retention policy. |
RootScopeCode | property | The root scope code. |
RootScopeExecutionId | property | The root scope. |
RootScopeVersion | property | The root scope version. |
RuntimeProvider | property | The runtime provider. |
RuntimeStatus | property | The runtime status. |
StartRequestId | property | The start request. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowRootExecutionStart() #
WorkflowRootExecutionStart() #public WorkflowRootExecutionStart()
Creates an instance of Workflow.
property AssociationGeneration #
AssociationGeneration #public long AssociationGeneration { get; init; }
The generation of the association.
property AssociationId #
AssociationId #public required string AssociationId { get; init; }
The association.
property AssociationSha256 #
AssociationSha256 #public required string AssociationSha256 { get; init; }
The SHA-256 of the association.
property BusinessReferenceSha256 #
BusinessReferenceSha256 #public required string BusinessReferenceSha256 { get; init; }
The SHA-256 of the business reference.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DefinitionCode #
DefinitionCode #public required string DefinitionCode { get; init; }
The workflow definition.
property DefinitionSha256 #
DefinitionSha256 #public required string DefinitionSha256 { get; init; }
The SHA-256 of the definition.
property DefinitionVersion #
DefinitionVersion #public required string DefinitionVersion { get; init; }
The definition version.
property FirstEvent #
FirstEvent #public required WorkflowHistoryEvent FirstEvent { get; init; }
The first history event (sequence 1).
property InitialStateJson #
InitialStateJson #public required string InitialStateJson { get; init; }
The initial state, as JSON.
property InstanceStatus #
InstanceStatus #public required string InstanceStatus { get; init; }
The instance status.
property OpenStatus #
OpenStatus #public required string OpenStatus { get; init; }
The status of the open association.
property RetentionPolicy #
RetentionPolicy #public required string RetentionPolicy { get; init; }
The retention policy.
property RootScopeCode #
RootScopeCode #public required string RootScopeCode { get; init; }
The root scope code.
property RootScopeExecutionId #
RootScopeExecutionId #public required string RootScopeExecutionId { get; init; }
The root scope.
property RootScopeVersion #
RootScopeVersion #public required string RootScopeVersion { get; init; }
The root scope version.
property RuntimeProvider #
RuntimeProvider #public required string RuntimeProvider { get; init; }
The runtime provider.
property RuntimeStatus #
RuntimeStatus #public required string RuntimeStatus { get; init; }
The runtime status.
property StartRequestId #
StartRequestId #public required string StartRequestId { get; init; }
The start request.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRuntimeDefinition( | constructor | Creates an instance of Workflow. |
CanonicalDefinition | property | The canonical definition of a declarative workflow. |
Descriptor | property | The definition descriptor: name, version, roles and tasks. |
ExecutionKind | property | How the engine runs it. |
Registration | property | The registration. |
constructor WorkflowRuntimeDefinition() #
WorkflowRuntimeDefinition() #public WorkflowRuntimeDefinition()
Creates an instance of Workflow.
property CanonicalDefinition #
CanonicalDefinition #public WorkflowCanonicalDefinition? CanonicalDefinition { get; init; }
The canonical definition of a declarative workflow.
property Descriptor #
Descriptor #public required WorkflowDefinitionDescriptor Descriptor { get; init; }
The definition descriptor: name, version, roles and tasks.
property ExecutionKind #
ExecutionKind #public required WorkflowRuntimeExecutionKind ExecutionKind { get; init; }
How the engine runs it.
property Registration #
Registration #public required WorkflowRegistration Registration { get; init; }
The registration.
enum WorkflowRuntimeExecutionKind
public enum WorkflowRuntimeExecutionKind
How the engine runs a registered workflow.
record WorkflowRuntimeExecutionResult
public sealed record WorkflowRuntimeExecutionResult
The outcome of a runtime step of an instance.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRuntimeExecutionResult( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference after the step. |
CancelledTaskTokens | property | Runtime task tokens of open tasks the engine closed because another fork branch ended the fork. |
Continuations | property | The workflows to start next. |
ExpiredTaskTokens | property | Runtime task tokens of open tasks the engine closed because their timeout fired. |
Ignored | property | Whether the runtime ignored the step, such as a duplicate or stale signal. |
InstanceStatus | property | The instance status. |
PendingSignals | property | The signals to wait for or send. |
RuntimeInstanceId | property | The runtime instance. |
RuntimeProvider | property | The runtime provider. |
RuntimeState | property | The runtime state to store. |
RuntimeStatus | property | The runtime status. |
Tasks | property | The tasks to open. |
WorkflowState | property | The workflow state after the step. |
constructor WorkflowRuntimeExecutionResult() #
WorkflowRuntimeExecutionResult() #public WorkflowRuntimeExecutionResult()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference after the step.
property CancelledTaskTokens #
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 #
Continuations #public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }
The workflows to start next.
property ExpiredTaskTokens #
ExpiredTaskTokens #public IReadOnlyCollection<string> ExpiredTaskTokens { get; init; }
Runtime task tokens of open tasks the engine closed because their timeout fired.
property Ignored #
Ignored #public bool Ignored { get; init; }
Whether the runtime ignored the step, such as a duplicate or stale signal.
property InstanceStatus #
InstanceStatus #public required string InstanceStatus { get; init; }
The instance status.
property PendingSignals #
PendingSignals #public IReadOnlyCollection<WorkflowPendingSignalPlan> PendingSignals { get; init; }
The signals to wait for or send.
property RuntimeInstanceId #
RuntimeInstanceId #public string? RuntimeInstanceId { get; init; }
The runtime instance.
property RuntimeProvider #
RuntimeProvider #public required string RuntimeProvider { get; init; }
The runtime provider.
property RuntimeState #
RuntimeState #public object? RuntimeState { get; init; }
The runtime state to store.
property RuntimeStatus #
RuntimeStatus #public string? RuntimeStatus { get; init; }
The runtime status.
property Tasks #
Tasks #public IReadOnlyCollection<WorkflowExecutionTaskPlan> Tasks { get; init; }
The tasks to open.
property WorkflowState #
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
| Member | Kind | Summary |
|---|---|---|
ProjectionWorkflowInstanceIdPayloadKey | constant | The reserved key of the projection’s instance id. |
ReservedKeyPrefix | constant | Prefix for engine-reserved state and task-payload keys. |
RuntimeProviderPayloadKey | constant | The key of the runtime provider. |
RuntimeTaskTokenPayloadKey | constant | The key of the runtime task token. |
constant ProjectionWorkflowInstanceIdPayloadKey #
ProjectionWorkflowInstanceIdPayloadKey #public const string ProjectionWorkflowInstanceIdPayloadKey = "__stellaops.projectionWorkflowInstanceId"
The reserved key of the projection’s instance id.
constant ReservedKeyPrefix #
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 #
RuntimeProviderPayloadKey #public const string RuntimeProviderPayloadKey = "runtimeProvider"
The key of the runtime provider.
constant RuntimeTaskTokenPayloadKey #
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
| Member | Kind | Summary |
|---|---|---|
Engine | constant | The durable engine runtime: Stella.Engine. |
InProcess | constant | The in-process runtime: Stella.InProcess. |
constant Engine #
Engine #public const string Engine = "Stella.Engine"
The durable engine runtime: Stella.Engine.
constant InProcess #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowRuntimeStateConcurrencyException( | constructor | Creates the exception. |
ActualVersion | property | The version found. |
ExpectedVersion | property | The version the write expected. |
WorkflowInstanceId | property | The instance. |
constructor WorkflowRuntimeStateConcurrencyException(string, long, long) #
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 #
ActualVersion #public long ActualVersion { get; }
The version found.
property ExpectedVersion #
ExpectedVersion #public long ExpectedVersion { get; }
The version the write expected.
property WorkflowInstanceId #
WorkflowInstanceId #public string WorkflowInstanceId { get; }
The instance.
record WorkflowRuntimeStateRecord
public sealed record WorkflowRuntimeStateRecord
The runtime state of an instance, versioned for optimistic concurrency.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRuntimeStateRecord( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference. |
CompletedOnUtc | property | When it completed, in UTC. |
CreatedOnUtc | property | When the instance started, in UTC. |
LastUpdatedOnUtc | property | When it last changed, in UTC. |
PurgeAfterUtc | property | When it may be purged, in UTC. |
RuntimeInstanceId | property | The runtime instance. |
RuntimeProvider | property | The runtime provider. |
RuntimeStatus | property | The runtime status; Open by default. |
StaleAfterUtc | property | When it becomes stale, in UTC. |
StateJson | property | The runtime state, as JSON. |
Version | property | The version; a write must raise it by one from the stored version. |
WorkflowInstanceId | property | The instance. |
WorkflowName | property | The workflow name. |
WorkflowVersion | property | The workflow version. |
constructor WorkflowRuntimeStateRecord() #
WorkflowRuntimeStateRecord() #public WorkflowRuntimeStateRecord()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference.
property CompletedOnUtc #
CompletedOnUtc #public DateTime? CompletedOnUtc { get; init; }
When it completed, in UTC.
property CreatedOnUtc #
CreatedOnUtc #public DateTime CreatedOnUtc { get; init; }
When the instance started, in UTC.
property LastUpdatedOnUtc #
LastUpdatedOnUtc #public DateTime LastUpdatedOnUtc { get; init; }
When it last changed, in UTC.
property PurgeAfterUtc #
PurgeAfterUtc #public DateTime? PurgeAfterUtc { get; init; }
When it may be purged, in UTC.
property RuntimeInstanceId #
RuntimeInstanceId #public required string RuntimeInstanceId { get; init; }
The runtime instance.
property RuntimeProvider #
RuntimeProvider #public string RuntimeProvider { get; init; }
The runtime provider.
property RuntimeStatus #
RuntimeStatus #public string RuntimeStatus { get; init; }
The runtime status; Open by default.
property StaleAfterUtc #
StaleAfterUtc #public DateTime? StaleAfterUtc { get; init; }
When it becomes stale, in UTC.
property StateJson #
StateJson #public string StateJson { get; init; }
The runtime state, as JSON.
property Version #
Version #public long Version { get; init; }
The version; a write must raise it by one from the stored version.
property WorkflowInstanceId #
WorkflowInstanceId #public required string WorkflowInstanceId { get; init; }
The instance.
property WorkflowName #
WorkflowName #public required string WorkflowName { get; init; }
The workflow name.
property WorkflowVersion #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowScopeReprocess( | constructor | Creates an instance of Workflow. |
CreatedAtUtc | property | When the row was created, in UTC. |
OccurrenceNumber | property | The occurrence number of the new scope. |
ReasonCode | property | Why. |
ReprocessId | property | The reprocess request. |
RequestedBy | property | Who requested it. |
SourceScopeExecutionId | property | The scope to run again. |
Status | property | The status. |
SuccessorScopeExecutionId | property | The new scope occurrence. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowScopeReprocess() #
WorkflowScopeReprocess() #public WorkflowScopeReprocess()
Creates an instance of Workflow.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property OccurrenceNumber #
OccurrenceNumber #public int OccurrenceNumber { get; init; }
The occurrence number of the new scope.
property ReasonCode #
ReasonCode #public required string ReasonCode { get; init; }
Why.
property ReprocessId #
ReprocessId #public required string ReprocessId { get; init; }
The reprocess request.
property RequestedBy #
RequestedBy #public required string RequestedBy { get; init; }
Who requested it.
property SourceScopeExecutionId #
SourceScopeExecutionId #public required string SourceScopeExecutionId { get; init; }
The scope to run again.
property Status #
Status #public required string Status { get; init; }
The status.
property SuccessorScopeExecutionId #
SuccessorScopeExecutionId #public required string SuccessorScopeExecutionId { get; init; }
The new scope occurrence.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalDeadlineTimer( | constructor | Creates an instance of Workflow. |
CreatedAtUtc | property | When the row was created, in UTC. |
DueAtUtc | property | When the timer is due, in UTC. |
ExpectedWaitVersion | property | The wait version the timer resolves. |
FiredAtUtc | property | When the timer fired, in UTC. |
SignalRegistrationId | property | The registered wait. |
Status | property | The status. |
TimerId | property | The timer. |
constructor WorkflowSignalDeadlineTimer() #
WorkflowSignalDeadlineTimer() #public WorkflowSignalDeadlineTimer()
Creates an instance of Workflow.
property CreatedAtUtc #
CreatedAtUtc #public DateTime CreatedAtUtc { get; init; }
When the row was created, in UTC.
property DueAtUtc #
DueAtUtc #public DateTime DueAtUtc { get; init; }
When the timer is due, in UTC.
property ExpectedWaitVersion #
ExpectedWaitVersion #public long ExpectedWaitVersion { get; init; }
The wait version the timer resolves.
property FiredAtUtc #
FiredAtUtc #public DateTime? FiredAtUtc { get; init; }
When the timer fired, in UTC.
property SignalRegistrationId #
SignalRegistrationId #public required string SignalRegistrationId { get; init; }
The registered wait.
property Status #
Status #public required string Status { get; init; }
The status.
property TimerId #
TimerId #public required string TimerId { get; init; }
The timer.
class WorkflowSignalDriverConfigurationExtensions
public static class WorkflowSignalDriverConfigurationExtensions
Reads the configured signal driver.
Members
| Member | Kind | Summary |
|---|---|---|
GetWorkflowSignalDriverProvider( | extension method | Returns Workflow; Native when not set. |
extension method GetWorkflowSignalDriverProvider(IConfiguration) #
GetWorkflowSignalDriverProvider(IConfiguration) #public static string GetWorkflowSignalDriverProvider(this IConfiguration configuration)
Returns Workflow; 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.
| Value | Description |
|---|---|
Native | The engine calls the driver right after it stores the signal. |
Post | The engine calls the driver after the workflow changes commit, or at once when no change scope is open. |
WakeOutbox = 2 | The 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 Workflow.
Members
| Member | Kind | Summary |
|---|---|---|
Native | constant | The signal driver of the durable store itself. |
Redis | constant | The Redis wake driver. |
constant Native #
Native #public const string Native = "Native"
The signal driver of the durable store itself.
constant Redis #
Redis #public const string Redis = "Redis"
The Redis wake driver.
class WorkflowSignalDriverOptions
public sealed class WorkflowSignalDriverOptions
The signal driver the host uses (WorkflowSignalDriver).
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalDriverOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: WorkflowSignalDriver. |
Provider | property | The signal driver: Native (the store’s own signal queue; the default, also when unset) or Redis. |
constructor WorkflowSignalDriverOptions() #
WorkflowSignalDriverOptions() #public WorkflowSignalDriverOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowSignalDriver"
The configuration section the options bind from: WorkflowSignalDriver.
property Provider #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalDriverRegistrationMarker( | constructor | The registration marker of a signal driver. |
DriverName | property | The driver name. |
constructor WorkflowSignalDriverRegistrationMarker(string) #
WorkflowSignalDriverRegistrationMarker(string) #public WorkflowSignalDriverRegistrationMarker(string DriverName)
The registration marker of a signal driver.
Parameters
DriverName: The driver name.
property DriverName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalEnvelope( | constructor | Creates an instance of Workflow. |
DueAtUtc | property | When the signal becomes available, in UTC; at once when not set. |
ExpectedVersion | property | The runtime-state version the signal was raised against. |
OccurredAtUtc | property | When the signal was raised, in UTC. |
Payload | property | The signal payload. |
RuntimeProvider | property | The runtime provider of the instance. |
SignalId | property | The signal identifier. |
SignalType | property | The signal type; see WorkflowSignalTypes. |
WaitingToken | property | The wait the signal resumes, when it targets one. |
WorkflowInstanceId | property | The instance the signal is for. |
constructor WorkflowSignalEnvelope() #
WorkflowSignalEnvelope() #public WorkflowSignalEnvelope()
Creates an instance of Workflow.
property DueAtUtc #
DueAtUtc #public DateTime? DueAtUtc { get; init; }
When the signal becomes available, in UTC; at once when not set.
property ExpectedVersion #
ExpectedVersion #public required long ExpectedVersion { get; init; }
The runtime-state version the signal was raised against.
property OccurredAtUtc #
OccurredAtUtc #public DateTime OccurredAtUtc { get; init; }
When the signal was raised, in UTC.
property Payload #
Payload #public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }
The signal payload.
property RuntimeProvider #
RuntimeProvider #public required string RuntimeProvider { get; init; }
The runtime provider of the instance.
property SignalId #
SignalId #public required string SignalId { get; init; }
The signal identifier.
property SignalType #
SignalType #public required string SignalType { get; init; }
The signal type; see WorkflowSignalTypes.
property WaitingToken #
WaitingToken #public string? WaitingToken { get; init; }
The wait the signal resumes, when it targets one.
property WorkflowInstanceId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalExecutionContext( | constructor | Creates an instance of Workflow. |
Definition | property | The definition descriptor. |
Registration | property | The workflow registration. |
RuntimeState | property | The runtime state of the instance. |
Signal | property | The signal. |
constructor WorkflowSignalExecutionContext() #
WorkflowSignalExecutionContext() #public WorkflowSignalExecutionContext()
Creates an instance of Workflow.
property Definition #
Definition #public required WorkflowDefinitionDescriptor Definition { get; init; }
The definition descriptor.
property Registration #
Registration #public required WorkflowRegistration Registration { get; init; }
The workflow registration.
property RuntimeState #
RuntimeState #public required WorkflowRuntimeStateRecord RuntimeState { get; init; }
The runtime state of the instance.
property Signal #
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
| Member | Kind | Summary |
|---|---|---|
ExternalActivityContractVersionPayloadKey | constant | The key of the contract version of an external activity. |
ExternalActivityDestinationPayloadKey | constant | The key of the destination of an external activity. |
ExternalActivityLogicalStepKeyPayloadKey | constant | The key of the step of an external activity. |
ExternalActivityOperationPayloadKey | constant | The key of the operation of an external activity. |
ExternalActivityRequestPayloadKey | constant | The key of the request of an external activity. |
ExternalSignalNamePayloadKey | constant | The key of the signal name of an external signal. |
MapMaterializationPlanPayloadKey | constant | The key of the item plan of a map. |
MapResultPayloadKey | constant | The key of the collected results of a map. |
StartWorkflowRequestPayloadKey | constant | The key of the start request of a sub-workflow or continue-with signal. |
constant ExternalActivityContractVersionPayloadKey #
ExternalActivityContractVersionPayloadKey #public const string ExternalActivityContractVersionPayloadKey = "contractVersion"
The key of the contract version of an external activity.
constant ExternalActivityDestinationPayloadKey #
ExternalActivityDestinationPayloadKey #public const string ExternalActivityDestinationPayloadKey = "destinationCode"
The key of the destination of an external activity.
constant ExternalActivityLogicalStepKeyPayloadKey #
ExternalActivityLogicalStepKeyPayloadKey #public const string ExternalActivityLogicalStepKeyPayloadKey = "logicalStepKey"
The key of the step of an external activity.
constant ExternalActivityOperationPayloadKey #
ExternalActivityOperationPayloadKey #public const string ExternalActivityOperationPayloadKey = "operationCode"
The key of the operation of an external activity.
constant ExternalActivityRequestPayloadKey #
ExternalActivityRequestPayloadKey #public const string ExternalActivityRequestPayloadKey = "request"
The key of the request of an external activity.
constant ExternalSignalNamePayloadKey #
ExternalSignalNamePayloadKey #public const string ExternalSignalNamePayloadKey = "signalName"
The key of the signal name of an external signal.
constant MapMaterializationPlanPayloadKey #
MapMaterializationPlanPayloadKey #public const string MapMaterializationPlanPayloadKey = "mapMaterializationPlan"
The key of the item plan of a map.
constant MapResultPayloadKey #
MapResultPayloadKey #public const string MapResultPayloadKey = "mapResult"
The key of the collected results of a map.
constant StartWorkflowRequestPayloadKey #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalResumeContext( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference. |
Continuations | property | The continuations already planned. |
ResumeState | property | The state the wait recorded. |
Signal | property | The signal. |
WorkflowState | property | The workflow state. |
constructor WorkflowSignalResumeContext() #
WorkflowSignalResumeContext() #public WorkflowSignalResumeContext()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference.
property Continuations #
Continuations #public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }
The continuations already planned.
property ResumeState #
ResumeState #public IReadOnlyDictionary<string, JsonElement> ResumeState { get; init; }
The state the wait recorded.
property Signal #
Signal #public required WorkflowSignalEnvelope Signal { get; init; }
The signal.
property WorkflowState #
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
| Member | Kind | Summary |
|---|---|---|
ExternalActivity | constant | An external activity reported its outcome. |
ExternalSignal | constant | A caller raised a signal for the instance. |
InternalContinue | constant | The engine continues the instance by itself. |
MapCompleted | constant | A map step finished. |
RetryDue | constant | A retry is due. |
SubWorkflowCompleted | constant | A child workflow finished. |
TaskCompleted | constant | A human task was completed. |
TimerDue | constant | A timer is due. |
constant ExternalActivity #
ExternalActivity #public const string ExternalActivity = "ExternalActivity"
An external activity reported its outcome.
constant ExternalSignal #
ExternalSignal #public const string ExternalSignal = "ExternalSignal"
A caller raised a signal for the instance.
constant InternalContinue #
InternalContinue #public const string InternalContinue = "InternalContinue"
The engine continues the instance by itself.
constant MapCompleted #
MapCompleted #public const string MapCompleted = "MapCompleted"
A map step finished.
constant RetryDue #
RetryDue #public const string RetryDue = "RetryDue"
A retry is due.
constant SubWorkflowCompleted #
SubWorkflowCompleted #public const string SubWorkflowCompleted = "SubWorkflowCompleted"
A child workflow finished.
constant TaskCompleted #
TaskCompleted #public const string TaskCompleted = "TaskCompleted"
A human task was completed.
constant TimerDue #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSignalWakeNotification( | constructor | Creates an instance of Workflow. |
DueAtUtc | property | When the signal is due, in UTC; due at once when not set. |
RuntimeProvider | property | The runtime provider of the instance. |
SignalId | property | The signal. |
SignalType | property | The signal type. |
WorkflowInstanceId | property | The workflow instance the signal is for. |
constructor WorkflowSignalWakeNotification() #
WorkflowSignalWakeNotification() #public WorkflowSignalWakeNotification()
Creates an instance of Workflow.
property DueAtUtc #
DueAtUtc #public DateTime? DueAtUtc { get; init; }
When the signal is due, in UTC; due at once when not set.
property RuntimeProvider #
RuntimeProvider #public required string RuntimeProvider { get; init; }
The runtime provider of the instance.
property SignalId #
SignalId #public required string SignalId { get; init; }
The signal.
property SignalType #
SignalType #public required string SignalType { get; init; }
The signal type.
property WorkflowInstanceId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSourceExportResult( | constructor | Creates an instance of Workflow. |
Content | property | The content. |
ContentType | property | The media type of the content. |
SuggestedFileName | property | A file name for the content. |
constructor WorkflowSourceExportResult() #
WorkflowSourceExportResult() #public WorkflowSourceExportResult()
Creates an instance of Workflow.
property Content #
Content #public required byte[] Content { get; init; }
The content.
property ContentType #
ContentType #public required string ContentType { get; init; }
The media type of the content.
property SuggestedFileName #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSourceFormatDiagnostic( | constructor | Creates an instance of Workflow. |
Code | property | The diagnostic code. |
Location | property | Optional pointer into the source (line:col, XPath, JSON path, or archive entry name). |
Message | property | The message. |
Severity | property | The severity. |
constructor WorkflowSourceFormatDiagnostic() #
WorkflowSourceFormatDiagnostic() #public WorkflowSourceFormatDiagnostic()
Creates an instance of Workflow.
property Code #
Code #public required string Code { get; init; }
The diagnostic code.
property Location #
Location #public string? Location { get; init; }
Optional pointer into the source (line:col, XPath, JSON path, or archive entry name).
property Message #
Message #public required string Message { get; init; }
The message.
property Severity #
Severity #public required WorkflowSourceFormatDiagnosticSeverity Severity { get; init; }
The severity.
enum WorkflowSourceFormatDiagnosticSeverity
public enum WorkflowSourceFormatDiagnosticSeverity
The severity of a conversion finding.
| Value | Description |
|---|---|
Info = 0 | Information. |
Warning = 1 | A warning. |
Error = 2 | An 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
| Member | Kind | Summary |
|---|---|---|
WorkflowSourceImportResult( | constructor | Creates an instance of Workflow. |
CanonicalDefinitionJson | property | The canonical definition, as JSON, when the conversion succeeded. |
Diagnostics | property | The findings of the conversion. |
RenderingJson | property | The render graph JSON the content carries. |
RenderingPng | property | The PNG image the content carries. |
RenderingSvg | property | The SVG diagram the content carries. |
Succeeded | property | Whether the conversion succeeded. |
constructor WorkflowSourceImportResult() #
WorkflowSourceImportResult() #public WorkflowSourceImportResult()
Creates an instance of Workflow.
property CanonicalDefinitionJson #
CanonicalDefinitionJson #public string? CanonicalDefinitionJson { get; init; }
The canonical definition, as JSON, when the conversion succeeded.
property Diagnostics #
Diagnostics #public IReadOnlyCollection<WorkflowSourceFormatDiagnostic> Diagnostics { get; init; }
The findings of the conversion.
property RenderingJson #
RenderingJson #public byte[]? RenderingJson { get; init; }
The render graph JSON the content carries.
property RenderingPng #
RenderingPng #public byte[]? RenderingPng { get; init; }
The PNG image the content carries.
property RenderingSvg #
RenderingSvg #public byte[]? RenderingSvg { get; init; }
The SVG diagram the content carries.
property Succeeded #
Succeeded #public required bool Succeeded { get; init; }
Whether the conversion succeeded.
class WorkflowSpec
public static class WorkflowSpec
Starts a declarative workflow definition.
Members
| Member | Kind | Summary |
|---|---|---|
For< | method | Starts the definition of a workflow. |
method For<TStartRequest>() #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSpec( | constructor | Creates an instance of Workflow. |
InitialSequence | property | The first steps, when the workflow starts with steps. |
InitialTaskName | property | The task the workflow starts with, when it starts with a task. |
InitializeState | property | Builds the initial state from the start request. |
InitializeStateExpression | property | The initial state expression, when the state is declared as an expression. |
InitializeStateWithRuntime | property | Builds the initial state from the start request, with the function runtime for expressions that call functions. |
TaskDescriptors | property | The descriptors of the declared tasks. |
TasksByName | property | The declared tasks by name; names compare ignoring case. |
GetRequiredTask( | method | Returns the declared task taskName. |
constructor WorkflowSpec() #
WorkflowSpec() #public WorkflowSpec()
Creates an instance of Workflow.
property InitialSequence #
InitialSequence #public WorkflowStepSequence<TStartRequest> InitialSequence { get; init; }
The first steps, when the workflow starts with steps.
property InitialTaskName #
InitialTaskName #public string? InitialTaskName { get; init; }
The task the workflow starts with, when it starts with a task.
property InitializeState #
InitializeState #public required Func<TStartRequest, Dictionary<string, JsonElement>> InitializeState { get; init; }
Builds the initial state from the start request.
property InitializeStateExpression #
InitializeStateExpression #public WorkflowExpressionDefinition? InitializeStateExpression { get; init; }
The initial state expression, when the state is declared as an expression.
property InitializeStateWithRuntime #
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 #
TaskDescriptors #public IReadOnlyCollection<WorkflowTaskDescriptor> TaskDescriptors { get; }
The descriptors of the declared tasks.
property TasksByName #
TasksByName #public required IReadOnlyDictionary<string, WorkflowHumanTaskDefinition<TStartRequest>> TasksByName { get; init; }
The declared tasks by name; names compare ignoring case.
method GetRequiredTask(string) #
GetRequiredTask(string) #public WorkflowHumanTaskDefinition<TStartRequest> GetRequiredTask(string taskName)
Returns the declared task taskName.
Parameters
taskName: The task name.
Returns
The task definition.
Exceptions
Invalid: The task is not declared.Operation Exception
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSpecBuilder( | constructor | Creates an instance of Workflow. |
AddTask( | method | Declares a task, which ActivateTask opens. |
Build( | method | Builds the definition and assigns the step identities. |
InitializeState( | method | Sets the initial state from a delegate over the start request. |
InitializeState( | method | Sets the initial state to the value of an object expression; start.* paths read the start request. |
InitializeState< | method | Sets the initial state to the serialized value a delegate builds from the start request. |
StartWith( | method | Sets the first steps of the workflow. |
StartWith( | method | Starts the workflow with a task: declares it and opens it when an instance starts. |
constructor WorkflowSpecBuilder() #
WorkflowSpecBuilder() #public WorkflowSpecBuilder()
Creates an instance of Workflow.
method AddTask(WorkflowHumanTaskDefinition<TStartRequest>) #
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() #
Build() #public WorkflowSpec<TStartRequest> Build()
Builds the definition and assigns the step identities.
Returns
The workflow definition.
Exceptions
Invalid: The initial state is not set, or the workflow has neither a start task nor a first step.Operation Exception
method InitializeState(Func<TStartRequest, Dictionary<string, JsonElement>>) #
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) #
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
initializer: The initial state expression.Expression
Returns
The same builder, for chaining.
method InitializeState<TState>(Func<TStartRequest, TState>) #
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>>) #
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>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowSpecExecutionContext( | constructor | Creates a context. |
BusinessReference | property | The business reference of the instance. |
FunctionRuntime | property | Runs the expression functions. |
Payload | property | The payload being handled, such as a task completion. |
PayloadValues | property | The payload as a value dictionary; a missing key raises an error. |
ResultValues | property | The kept step results, by key; keys compare ignoring case. |
StartRequest | property | The start request, when it is available. |
StateValues | property | The workflow state as a value dictionary; a missing key raises an error. |
WorkflowName | property | The workflow name. |
WorkflowState | property | The workflow state, which steps change. |
CompareValue( | method | Whether a payload or state value equals a value: a missing or null value equals null, and text compares ignoring case. |
GetOptionalResult< | method | Returns a kept result, or the default when none is kept under the key. |
GetRequiredResult< | method | Returns a kept result. |
GetRequiredStartRequest( | method | Returns the start request. |
SetBusinessReference( | method | Replaces the business reference. |
SetResult( | method | Keeps a result under a key, replacing any. |
constructor WorkflowSpecExecutionContext(string, TStartRequest, Dictionary<string, JsonElement>, IReadOnlyDictionary<string, JsonElement>, WorkflowBusinessReference, IWorkflowFunctionRuntime) #
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 #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; }
The business reference of the instance.
property FunctionRuntime #
FunctionRuntime #public IWorkflowFunctionRuntime? FunctionRuntime { get; }
Runs the expression functions.
property Payload #
Payload #public IReadOnlyDictionary<string, JsonElement> Payload { get; }
The payload being handled, such as a task completion.
property PayloadValues #
PayloadValues #public WorkflowValueDictionary PayloadValues { get; }
The payload as a value dictionary; a missing key raises an error.
property ResultValues #
ResultValues #public IReadOnlyDictionary<string, JsonElement> ResultValues { get; }
The kept step results, by key; keys compare ignoring case.
property StartRequest #
StartRequest #public TStartRequest? StartRequest { get; }
The start request, when it is available.
property StateValues #
StateValues #public WorkflowValueDictionary StateValues { get; }
The workflow state as a value dictionary; a missing key raises an error.
property WorkflowName #
WorkflowName #public string WorkflowName { get; }
The workflow name.
property WorkflowState #
WorkflowState #public Dictionary<string, JsonElement> WorkflowState { get; }
The workflow state, which steps change.
method CompareValue(WorkflowValueSource, string, object) #
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) #
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) #
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
Invalid: No result is kept under the key.Operation Exception
method GetRequiredStartRequest() #
GetRequiredStartRequest() #public TStartRequest GetRequiredStartRequest()
Returns the start request.
Returns
The start request.
Exceptions
Invalid: The start request is not available.Operation Exception
method SetBusinessReference(WorkflowBusinessReference) #
SetBusinessReference(WorkflowBusinessReference) #public void SetBusinessReference(WorkflowBusinessReference? businessReference)
Replaces the business reference.
Parameters
businessReference: The business reference; normalized.
method SetResult(string, JsonElement) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStartExecutionContext( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference. |
Definition | property | The definition descriptor. |
Payload | property | The start payload. |
Registration | property | The workflow registration. |
StartRequest | property | The typed start request. |
GetRequiredStartRequest< | method | Returns the start request as its type. |
constructor WorkflowStartExecutionContext() #
WorkflowStartExecutionContext() #public WorkflowStartExecutionContext()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference.
property Definition #
Definition #public required WorkflowDefinitionDescriptor Definition { get; init; }
The definition descriptor.
property Payload #
Payload #public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }
The start payload.
property Registration #
Registration #public required WorkflowRegistration Registration { get; init; }
The workflow registration.
property StartRequest #
StartRequest #public object? StartRequest { get; init; }
The typed start request.
method GetRequiredStartRequest<TStartRequest>() #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStartExecutionPlan( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference after the step. |
Continuations | property | The workflows to start next. |
Deduplication | property | With StartWorkflowDeduplication.and 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.instead of creating one, or, when it cannot, throws WorkflowStoreDuplicateExceptionwith WorkflowOpenBusinessKeySlot.. |
InstanceStatus | property | The instance status after the start; Open by default. |
PendingSignals | property | The signals to wait for or send. |
Tasks | property | The tasks to open. |
WorkflowState | property | The workflow state after the step. |
constructor WorkflowStartExecutionPlan() #
WorkflowStartExecutionPlan() #public WorkflowStartExecutionPlan()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference after the step.
property Continuations #
Continuations #public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }
The workflows to start next.
property Deduplication #
Deduplication #public StartWorkflowDeduplication Deduplication { get; init; }
With StartWorkflowDeduplication.and 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.instead of creating one, or, when it cannot, throws WorkflowStoreDuplicateExceptionwith WorkflowOpenBusinessKeySlot..
property InstanceStatus #
InstanceStatus #public string InstanceStatus { get; init; }
The instance status after the start; Open by default.
property PendingSignals #
PendingSignals #public IReadOnlyCollection<WorkflowPendingSignalPlan> PendingSignals { get; init; }
The signals to wait for or send.
property Tasks #
Tasks #public IReadOnlyCollection<WorkflowExecutionTaskPlan> Tasks { get; init; }
The tasks to open.
property WorkflowState #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStartReceipt( | constructor | Creates an instance of WorkflowStartReceipt. |
AssociationGeneration | property | The generation of the association. |
AssociationId | property | The association. |
AssociationSha256 | property | The SHA-256 of the association. |
BusinessReferenceSha256 | property | The SHA-256 of the business reference. |
CallerIdempotencySha256 | property | The SHA-256 of the caller’s idempotency key. |
CanonicalRequestJson | property | The canonical request, as JSON. |
CanonicalResultJson | property | The canonical result, as JSON, once there is one. |
DecidedAtUtc | property | When the decision was taken, in UTC. |
DefinitionCode | property | The workflow definition. |
DefinitionSha256 | property | The SHA-256 of the definition. |
DefinitionVersion | property | The definition version. |
Disposition | property | The start decision. |
ExecutionVersion | property | The execution version the start created. |
FirstEventSequence | property | The sequence of the first history event. |
ResultEventId | property | The result event, once there is one. |
ResultSha256 | property | The SHA-256 of the result. |
RootScopeExecutionId | property | The root scope. |
SafeCode | property | The safe refusal code, when the start was refused. |
StartRequestId | property | The start request. |
StartRequestSha256 | property | The SHA-256 of the start request. |
WorkflowExecutionId | property | The execution (workflow instance). |
constructor WorkflowStartReceipt() #
WorkflowStartReceipt() #public WorkflowStartReceipt()
Creates an instance of WorkflowStartReceipt.
property AssociationGeneration #
AssociationGeneration #public long AssociationGeneration { get; init; }
The generation of the association.
property AssociationId #
AssociationId #public required string AssociationId { get; init; }
The association.
property AssociationSha256 #
AssociationSha256 #public required string AssociationSha256 { get; init; }
The SHA-256 of the association.
property BusinessReferenceSha256 #
BusinessReferenceSha256 #public string? BusinessReferenceSha256 { get; init; }
The SHA-256 of the business reference.
property CallerIdempotencySha256 #
CallerIdempotencySha256 #public string? CallerIdempotencySha256 { get; init; }
The SHA-256 of the caller’s idempotency key.
property CanonicalRequestJson #
CanonicalRequestJson #public string? CanonicalRequestJson { get; init; }
The canonical request, as JSON.
property CanonicalResultJson #
CanonicalResultJson #public string? CanonicalResultJson { get; init; }
The canonical result, as JSON, once there is one.
property DecidedAtUtc #
DecidedAtUtc #public DateTime DecidedAtUtc { get; init; }
When the decision was taken, in UTC.
property DefinitionCode #
DefinitionCode #public string? DefinitionCode { get; init; }
The workflow definition.
property DefinitionSha256 #
DefinitionSha256 #public string? DefinitionSha256 { get; init; }
The SHA-256 of the definition.
property DefinitionVersion #
DefinitionVersion #public string? DefinitionVersion { get; init; }
The definition version.
property Disposition #
Disposition #public required string Disposition { get; init; }
The start decision.
property ExecutionVersion #
ExecutionVersion #public long? ExecutionVersion { get; init; }
The execution version the start created.
property FirstEventSequence #
FirstEventSequence #public long? FirstEventSequence { get; init; }
The sequence of the first history event.
property ResultEventId #
ResultEventId #public string? ResultEventId { get; init; }
The result event, once there is one.
property ResultSha256 #
ResultSha256 #public string? ResultSha256 { get; init; }
The SHA-256 of the result.
property RootScopeExecutionId #
RootScopeExecutionId #public required string RootScopeExecutionId { get; init; }
The root scope.
property SafeCode #
SafeCode #public string? SafeCode { get; init; }
The safe refusal code, when the start was refused.
property StartRequestId #
StartRequestId #public required string StartRequestId { get; init; }
The start request.
property StartRequestSha256 #
StartRequestSha256 #public required string StartRequestSha256 { get; init; }
The SHA-256 of the start request.
property WorkflowExecutionId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStateAssignmentStepDefinition( | constructor | Sets a state value. |
Key | property | The state key. |
OnlyWhenHasValue | property | Whether to set the value only when it is set: not null and not an empty or white-space string. |
ValueExpression | property | The value as an expression, for the canonical definition. |
ValueFactory | property | Computes the value. |
constructor WorkflowStateAssignmentStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, object>, bool) #
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 #
Key #public string Key { get; init; }
The state key.
property OnlyWhenHasValue #
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 #
ValueExpression #public WorkflowExpressionDefinition? ValueExpression { get; init; }
The value as an expression, for the canonical definition.
property ValueFactory #
ValueFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, object?> ValueFactory { get; init; }
Computes the value.
class WorkflowStateJsonPolicy
public sealed class WorkflowStateJsonPolicy : IWorkflowStateJsonPolicy
The state limits of Workflow.
Parameters
options: The limits.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowStateJsonPolicy( | constructor | The state limits of Workflow. |
Validate( | method | Checks a state against the limits. |
Validate( | method | Checks a state against given limits. |
constructor WorkflowStateJsonPolicy(IOptions<WorkflowStateJsonPolicyOptions>) #
WorkflowStateJsonPolicy(IOptions<WorkflowStateJsonPolicyOptions>) #public WorkflowStateJsonPolicy(IOptions<WorkflowStateJsonPolicyOptions> options)
The state limits of Workflow.
Parameters
options: The limits.
method Validate(string) #
Validate(string) #public void Validate(string stateJson)
Checks a state against the limits.
Parameters
stateJson: The state, as JSON.
Exceptions
Invalid: The state breaks a limit; the message is theOperation Exception WORKFLOW_code.STATE_ JSON_ *
method Validate(string, WorkflowStateJsonPolicyOptions) #
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
Invalid: The state breaks a limit; the message is theOperation Exception WORKFLOW_code.STATE_ JSON_ *
class WorkflowStateJsonPolicyOptions
public sealed class WorkflowStateJsonPolicyOptions
Limits of the workflow state JSON (Workflow). A state that breaks one is refused with a WORKFLOW_ code.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowStateJsonPolicyOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: Workflow. |
ForbiddenFragments | property | Property-name fragments that must never reach persisted state. |
MaxArrayItems | property | The most items in one array. |
MaxBytes | property | The largest state, in UTF-8 bytes; a value below 1024 refuses every state. |
MaxDepth | property | The deepest nesting of objects and arrays. |
MaxStringLength | property | The longest string value, in characters. |
constructor WorkflowStateJsonPolicyOptions() #
WorkflowStateJsonPolicyOptions() #public WorkflowStateJsonPolicyOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowRuntime:StateJson"
The configuration section the options bind from: Workflow.
property ForbiddenFragments #
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 #
MaxArrayItems #public int MaxArrayItems { get; set; }
The most items in one array. The default is 256.
property MaxBytes #
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_ setting overrides it.
property MaxDepth #
MaxDepth #public int MaxDepth { get; set; }
The deepest nesting of objects and arrays. The default is 16.
property MaxStringLength #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStepDefinition( | constructor | A step of a workflow, as the builder produces it. |
DisplayName | property | The label of the step in diagrams. |
StepId | property | The stable identifier of the step in the definition, assigned when the definition is built. |
constructor WorkflowStepDefinition(string) #
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 #
DisplayName #public string? DisplayName { get; init; }
The label of the step in diagrams.
property StepId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStepSequence( | constructor | Creates a sequence. |
Empty | property | The empty sequence. |
Steps | property | The steps, run in order. |
constructor WorkflowStepSequence(IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>>) #
WorkflowStepSequence(IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>>) #public WorkflowStepSequence(IReadOnlyCollection<WorkflowStepDefinition<TStartRequest>> steps)
Creates a sequence.
Parameters
steps: The steps, run in order.
property Empty #
Empty #public static WorkflowStepSequence<TStartRequest> Empty { get; }
The empty sequence.
property Steps #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStoreConcurrencyException( | constructor | A durable store refused a write because the row changed since it was read (version or fence mismatch). |
constructor WorkflowStoreConcurrencyException(string, Exception) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowStoreDuplicateException( | constructor | A durable store refused a write because a row with the same key already exists. |
constructor WorkflowStoreDuplicateException(string, Exception) #
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 inresult.lastFailure.Start: Builds the start request of the workflow to run.Workflow Request Factory ResultKey: The key the result is kept under (result.<key>); not kept when not set.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowSubWorkflowStepDefinition( | constructor | Runs another workflow as a child and waits for it. |
FailureHandlers | property | Runs when the child workflow fails or ends in a status other than completed. |
InvocationDeclaration | property | The child workflow, for the canonical definition. |
ResultKey | property | The key the result is kept under (result.<key>); not kept when not set. |
StartWorkflowRequestFactory | property | Builds the start request of the workflow to run. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowSubWorkflowStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest>, string) #
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 inresult.lastFailure.Start: Builds the start request of the workflow to run.Workflow Request Factory ResultKey: The key the result is kept under (result.<key>); not kept when not set.
property FailureHandlers #
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 #
InvocationDeclaration #public WorkflowWorkflowInvocationDeclaration? InvocationDeclaration { get; init; }
The child workflow, for the canonical definition.
property ResultKey #
ResultKey #public string? ResultKey { get; init; }
The key the result is kept under (result.<key>); not kept when not set.
property StartWorkflowRequestFactory #
StartWorkflowRequestFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, StartWorkflowRequest> StartWorkflowRequestFactory { get; init; }
Builds the start request of the workflow to run.
property StepName #
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.
record WorkflowTaskCompletionPlan
public sealed record WorkflowTaskCompletionPlan
What completing a task or resuming an instance does.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowTaskCompletionPlan( | constructor | Creates an instance of Workflow. |
BusinessReference | property | The business reference after the step. |
CancelledTaskTokens | property | Runtime task tokens of open tasks the engine closed because another fork branch ended the fork. |
Continuations | property | The workflows to start next. |
ExpiredTaskTokens | property | Runtime task tokens of open tasks the engine closed because their timeout fired. |
InstanceStatus | property | The instance status after the step; Completed by default. |
NextTasks | property | The tasks to open next. |
PendingSignals | property | The signals to wait for or send. |
WorkflowState | property | The workflow state after the step. |
constructor WorkflowTaskCompletionPlan() #
WorkflowTaskCompletionPlan() #public WorkflowTaskCompletionPlan()
Creates an instance of Workflow.
property BusinessReference #
BusinessReference #public WorkflowBusinessReference? BusinessReference { get; init; }
The business reference after the step.
property CancelledTaskTokens #
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 #
Continuations #public IReadOnlyCollection<WorkflowContinuationPlan> Continuations { get; init; }
The workflows to start next.
property ExpiredTaskTokens #
ExpiredTaskTokens #public IReadOnlyCollection<string> ExpiredTaskTokens { get; init; }
Runtime task tokens of open tasks the engine closed because their timeout fired.
property InstanceStatus #
InstanceStatus #public string InstanceStatus { get; init; }
The instance status after the step; Completed by default.
property NextTasks #
NextTasks #public IReadOnlyCollection<WorkflowExecutionTaskPlan> NextTasks { get; init; }
The tasks to open next.
property PendingSignals #
PendingSignals #public IReadOnlyCollection<WorkflowPendingSignalPlan> PendingSignals { get; init; }
The signals to wait for or send.
property WorkflowState #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowTaskExecutionContext( | constructor | Creates an instance of Workflow. |
CurrentTask | property | The task being completed. |
Definition | property | The definition descriptor. |
Payload | property | The completion payload. |
Registration | property | The workflow registration. |
RuntimeInstanceId | property | The runtime instance. |
RuntimeStateJson | property | The runtime state, as JSON. |
WorkflowInstanceId | property | The instance. |
WorkflowState | property | The workflow state. |
constructor WorkflowTaskExecutionContext() #
WorkflowTaskExecutionContext() #public WorkflowTaskExecutionContext()
Creates an instance of Workflow.
property CurrentTask #
CurrentTask #public required WorkflowTaskSummary CurrentTask { get; init; }
The task being completed.
property Definition #
Definition #public required WorkflowDefinitionDescriptor Definition { get; init; }
The definition descriptor.
property Payload #
Payload #public IReadOnlyDictionary<string, JsonElement> Payload { get; init; }
The completion payload.
property Registration #
Registration #public required WorkflowRegistration Registration { get; init; }
The workflow registration.
property RuntimeInstanceId #
RuntimeInstanceId #public string? RuntimeInstanceId { get; init; }
The runtime instance.
property RuntimeStateJson #
RuntimeStateJson #public string? RuntimeStateJson { get; init; }
The runtime state, as JSON.
property WorkflowInstanceId #
WorkflowInstanceId #public required string WorkflowInstanceId { get; init; }
The instance.
property WorkflowState #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowTerminalInboxEntry( | constructor | Creates an instance of Workflow. |
AckEventId | property | The acknowledgement. |
AckSha256 | property | The SHA-256 of the acknowledgement. |
CanonicalAckJson | property | The canonical acknowledgement, as JSON. |
CanonicalCommandJson | property | The canonical command, as JSON. |
CommandEventId | property | The command. |
CommandSha256 | property | The SHA-256 of the command. |
Disposition | property | How the command was handled. |
ReceivedAtUtc | property | When it was received, in UTC. |
StartRequestId | property | The start request. |
constructor WorkflowTerminalInboxEntry() #
WorkflowTerminalInboxEntry() #public WorkflowTerminalInboxEntry()
Creates an instance of Workflow.
property AckEventId #
AckEventId #public required string AckEventId { get; init; }
The acknowledgement.
property AckSha256 #
AckSha256 #public required string AckSha256 { get; init; }
The SHA-256 of the acknowledgement.
property CanonicalAckJson #
CanonicalAckJson #public required string CanonicalAckJson { get; init; }
The canonical acknowledgement, as JSON.
property CanonicalCommandJson #
CanonicalCommandJson #public required string CanonicalCommandJson { get; init; }
The canonical command, as JSON.
property CommandEventId #
CommandEventId #public required string CommandEventId { get; init; }
The command.
property CommandSha256 #
CommandSha256 #public required string CommandSha256 { get; init; }
The SHA-256 of the command.
property Disposition #
Disposition #public required string Disposition { get; init; }
How the command was handled.
property ReceivedAtUtc #
ReceivedAtUtc #public DateTime ReceivedAtUtc { get; init; }
When it was received, in UTC.
property StartRequestId #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowTerminateForkStepDefinition( | constructor | Ends the fork whose branch reaches it. |
constructor WorkflowTerminateForkStepDefinition() #
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
| Member | Kind | Summary |
|---|---|---|
DefaultTimeoutForServiceTaskCallsSeconds | constant | Default timeout for service task (transport call) steps in seconds. |
DefaultTransportTimeoutSeconds | constant | Default transport-level timeout in seconds, used as fallback when transport options do not specify a timeout. |
constant DefaultTimeoutForServiceTaskCallsSeconds #
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 #
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(), 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., 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
| Member | Kind | Summary |
|---|---|---|
FromValue( | method | Converts the value of a timer delay expression to a delay. |
method FromValue(object) #
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
Invalid: The value is none of the accepted forms.Operation Exception
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 inresult.lastFailure.DelayFactory: Computes the delay.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowTimerStepDefinition( | constructor | Pauses the instance for a delay. |
DelayExpression | property | The delay as an expression, for the canonical definition. |
DelayFactory | property | Computes the delay. |
StepName | property | The step name, shown in diagrams and in result.lastFailure. |
constructor WorkflowTimerStepDefinition(string, Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan>) #
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 inresult.lastFailure.DelayFactory: Computes the delay.
property DelayExpression #
DelayExpression #public WorkflowExpressionDefinition? DelayExpression { get; init; }
The delay as an expression, for the canonical definition.
property DelayFactory #
DelayFactory #public Func<WorkflowSpecExecutionContext<TStartRequest>, TimeSpan> DelayFactory { get; init; }
Computes the delay.
property StepName #
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_ analyzer configuration option.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowTrustedAssemblyAttribute( | constructor | Creates an instance of Workflow. |
constructor WorkflowTrustedAssemblyAttribute() #
WorkflowTrustedAssemblyAttribute() #public WorkflowTrustedAssemblyAttribute()
Creates an instance of Workflow.
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
| Member | Kind | Summary |
|---|---|---|
WorkflowValue( | constructor | One workflow value; converting it to a type it cannot take raises the missing-value error. |
Key | property | The key. |
MissingMessageKey | property | The message id of the error. |
Value | property | The value. |
WorkflowName | property | The workflow, for the error. |
Get< | method | Converts the value. |
constructor WorkflowValue(string, string, string, JsonElement) #
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 #
Key #public string Key { get; init; }
The key.
property MissingMessageKey #
MissingMessageKey #public string MissingMessageKey { get; init; }
The message id of the error.
property Value #
Value #public JsonElement Value { get; init; }
The value.
property WorkflowName #
WorkflowName #public string WorkflowName { get; init; }
The workflow, for the error.
method Get<T>() #
Get<T>() #public T Get<T>()
Converts the value.
Type parameters
T: The target type.
Returns
The converted value.
Exceptions
WorkflowValueNotFoundException: The value cannot be converted.
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
| Member | Kind | Summary |
|---|---|---|
WorkflowValueConditionDefinition( | constructor | Creates the condition. |
CanonicalExpression | property | The condition as an expression, for the canonical definition; none for a delegate. |
ExpectedValue | property | The value to compare with. |
Key | property | The key. |
Source | property | Where the value is read. |
Evaluate( | method | Evaluates the condition. |
constructor WorkflowValueConditionDefinition(WorkflowValueSource, string, object, string) #
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 #
CanonicalExpression #public override WorkflowExpressionDefinition CanonicalExpression { get; }
The condition as an expression, for the canonical definition; none for a delegate.
property ExpectedValue #
ExpectedValue #public object? ExpectedValue { get; }
The value to compare with.
property Key #
Key #public string Key { get; }
The key.
property Source #
Source #public WorkflowValueSource Source { get; }
Where the value is read.
method Evaluate(WorkflowSpecExecutionContext<TStartRequest>) #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowValueDictionary( | constructor | Workflow values by key; a missing key raises an error that names the key and the workflow. |
MissingMessageKey | property | The message id of the error. |
Values | property | The values. |
WorkflowName | property | The workflow, for the error. |
this[string] | indexer | Returns the value of a key. |
constructor WorkflowValueDictionary(IReadOnlyDictionary<string, JsonElement>, string, string) #
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 #
MissingMessageKey #public string MissingMessageKey { get; init; }
The message id of the error.
property Values #
Values #public IReadOnlyDictionary<string, JsonElement> Values { get; init; }
The values.
property WorkflowName #
WorkflowName #public string WorkflowName { get; init; }
The workflow, for the error.
indexer this[string] #
this[string] #public WorkflowValue this[string key] { get; }
Returns the value of a key.
Parameters
key: The key.
Returns
The value.
Exceptions
WorkflowValueNotFoundException: The key is missing.
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
| Member | Kind | Summary |
|---|---|---|
WorkflowValueEqualsConditionDefinition( | constructor | A condition that a payload or state value equals a value. |
CanonicalExpression | property | The condition as an eq expression over payload.<key> or state.<key>. |
DisplayName | property | The label of the step in diagrams. |
ExpectedValue | property | The value to compare with. |
Key | property | The state key. |
Source | property | Where the value is read: the payload or the state. |
constructor WorkflowValueEqualsConditionDefinition(WorkflowValueSource, string, object, string) #
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 #
CanonicalExpression #public WorkflowExpressionDefinition CanonicalExpression { get; }
The condition as an eq expression over payload.<key> or state.<key>.
property DisplayName #
DisplayName #public string DisplayName { get; init; }
The label of the step in diagrams.
property ExpectedValue #
ExpectedValue #public object? ExpectedValue { get; init; }
The value to compare with.
property Key #
Key #public string Key { get; init; }
The state key.
property Source #
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
| Member | Kind | Summary |
|---|---|---|
WorkflowValueNotFoundException( | constructor | Creates the exception. |
MessageKey | property | The message id. |
constructor WorkflowValueNotFoundException(string, params object[]) #
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 #
MessageKey #public string MessageKey { get; }
The message id.
enum WorkflowValueSource
public enum WorkflowValueSource
Where a value condition reads its value.
| Value | Description |
|---|---|
Payload = 1 | The payload being handled. |
State = 2 | The workflow state. |
class WorkflowVersioning
public static class WorkflowVersioning
Parses and compares semantic workflow versions (major.minor.patch).
Members
| Member | Kind | Summary |
|---|---|---|
SemanticComparer | property | Compares version text semantically. |
FormatVersion( | method | Formats a version with build metadata suffix. |
GetBaseVersion( | method | Extracts the base version (without build metadata) from a version string. |
GetBuildIteration( | method | Extracts the build iteration from a version string. |
TryParseSemanticVersion( | method | Parses major.minor.patch version text. |
property SemanticComparer #
SemanticComparer #public static IComparer<string> SemanticComparer { get; }
Compares version text semantically.
method FormatVersion(string, int) #
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) #
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) #
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) #
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
| Member | Kind | Summary |
|---|---|---|
AddWorkflowCanonicalDefinitionApi< | extension method | Registers the workflow canonical definition API. |
AddWorkflowDefinitionDeploymentApi< | extension method | Registers the workflow definition deployment API. |
AddWorkflowDefinitionQueryApi< | extension method | Registers the workflow definition query API. |
AddWorkflowDiagramApi< | extension method | Registers the workflow diagram API. |
AddWorkflowFunctionCatalogApi< | extension method | Registers the workflow function catalog API. |
AddWorkflowRetentionApi< | extension method | Registers the workflow retention API. |
AddWorkflowRuntimeApi< | extension method | Registers a specific workflow webservice API interface. |
AddWorkflowServiceMetadataApi< | extension method | Registers the workflow service metadata API. |
AddWorkflowSignalDeadLetterApi< | extension method | Registers the workflow signal dead-letter API. |
AddWorkflowSignalPumpTelemetryApi< | extension method | Registers the workflow signal pump telemetry API. |
AddWorkflowWebserviceApis< | extension method | Registers all workflow webservice API interfaces using the provided implementation types. |
extension method AddWorkflowCanonicalDefinitionApi<TImplementation>(IServiceCollection) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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) #
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.