Configuration reference
Every configuration key the Workflow packages read, with its default. Keys are read from the host’s IConfiguration, so any source works: appsettings.json, environment variables, user secrets, a secret store such as Vault. In an environment variable, : becomes __ (WorkflowRuntime__DefaultProvider). Each section names the options classes its keys bind to; their pages in the .NET API reference list the properties with their types.
Engine and runtime
Options classes: WorkflowRuntimeOptions, WorkflowStateJsonPolicyOptionsand WorkflowEngineOptions.
Read by AddWorkflowEngineCoreServices.
| Key | Default | Meaning |
|---|---|---|
WorkflowRuntime: | Stella. | The runtime provider: Stella. or Stella.. Stella. runs no fork, map, external activity, timer, external signal or task deadline; the host checks the choice at start (Hosting) |
WorkflowRuntime: | empty (all) | When not empty, only these providers may run |
WorkflowRuntime: | 8 | The highest concurrency of a map (1 to 64, checked at start) |
WorkflowRuntime: | 512 | The most items of a map (1 to 10000, checked at start) |
WORKFLOW_, WORKFLOW_ | none | Override the two keys above |
WorkflowRuntime: | 262144 | The largest workflow state (16384 to 1048576, checked at start) |
WORKFLOW_ | none | Overrides MaxBytes |
WorkflowRuntime: | 16 | The deepest nesting of the state |
WorkflowRuntime: | 256 | The longest array in the state |
WorkflowRuntime: | 4096 | The longest string in the state |
WorkflowRuntime: | secret, ciphertext, accesstoken, bearertoken, presignedurl, temporaryurl, mapitems, attempthistory | State property names that contain one of these fragments are refused. Configured values are added to the defaults; a default cannot be removed |
WorkflowEngine: | processor count | Signal pump workers |
WorkflowEngine: | none (off) | A timeout for one start, completion or resume |
WorkflowEngine: | 30 | The time the pump gets to finish at shutdown |
WorkflowEngine: | 10 | The longest wait in a request for work that continues at once; 0 or less does not wait |
Store selection
Options classes: WorkflowBackendOptionsand WorkflowSignalDriverOptions.
| Key | Default | Meaning |
|---|---|---|
WorkflowBackend: | Postgres | Postgres or Mongo |
WorkflowSignalDriver: | Native | Native or Redis |
ValidateWorkflowProviderRegistrations fails the start when the selected store or driver was not registered.
PostgreSQL store
Options class: PostgresWorkflowBackendOptions.
Read by AddWorkflowPostgresDataStore when the provider is Postgres.
| Key | Default | Meaning |
|---|---|---|
STELLAOPS_ | none (required) | The connection string. The host stops at start without it |
WorkflowBackend: | stellaops-workflow | The application name of the connections |
WorkflowBackend: | true | Connection pooling |
WorkflowBackend: | 1 | |
WorkflowBackend: | 100 | |
WorkflowBackend: | 300 | |
WorkflowBackend: | workflow_ | The LISTEN/ channel of signals |
WorkflowBackend: | workflow_ | The channel of the wake outbox |
WorkflowBackend: | 60 | The lease of a claimed signal |
WorkflowBackend: | 30 | The longest wait for a wake-up |
Code options (AddWorkflowPostgresDataStore(configuration, options => ...)): ApplyMigrationsOnStartup (true), RegisterDefinitionStore (true), RegisterWakeOutbox (true).
MongoDB store
Options class: WorkflowStoreMongoOptions.
Read by AddWorkflowMongoDataStore when the provider is Mongo.
| Key | Default | Meaning |
|---|---|---|
WorkflowBackend: | WorkflowMongo | The name under ConnectionStrings |
ConnectionStrings: | none (required) | The connection string |
WorkflowBackend: | stellaops_ | The database |
WorkflowBackend: | 60 | The lease of a claimed signal |
WorkflowBackend: | 30 | The longest wait for a wake-up |
WorkflowBackend: | workflow_ | Each collection name, for example InstancesCollectionName (workflow_), TasksCollectionName (workflow_), DefinitionsCollectionName (workflow_), FirstSeenWorkflowsCollectionName (workflow_) |
Redis signal driver
Options class: RedisWorkflowSignalDriverOptions.
Read by AddWorkflowRedisSignaling when the driver is Redis. The host registers the IConnectionMultiplexer (Persistence and signals).
| Key | Default | Meaning |
|---|---|---|
WorkflowSignalDriver: | stellaops: | The Redis channel |
WorkflowSignalDriver: | 30 | The longest wait for a wake-up |
Signal pump
Options class: WorkflowAqOptions.
| Key | Default | Meaning |
|---|---|---|
WorkflowAq: | 10 | Deliveries before a signal is dead-lettered (at least 1), counted by the store across all nodes and restarts (Persistence and signals) |
WorkflowAq: | WORKFLOW_ | The consumer name in signal claims; each worker adds -<, the same on every node |
The pump’s wait for a signal is the BlockingWaitSeconds of the store or of the Redis driver, above.
Retention
Options classes: WorkflowRetentionOptionsand WorkflowRetentionHostedJobOptions.
| Key | Default | Meaning |
|---|---|---|
WorkflowRetention: | 30 | Days after which an inactive open instance is marked stale |
WorkflowRetention: | 180 | Days after completion before an instance is purged |
WorkflowRetentionHostedJob: | true | Run the retention job |
WorkflowRetentionHostedJob: | false | Run it once at start |
WorkflowRetentionHostedJob: | 00: | The delay before the first run, when not at start |
WorkflowRetentionHostedJob: | 1. | The interval between runs |
WorkflowRetentionHostedJob: | workflow. | The host lock that keeps one node at a time |
WorkflowRetentionHostedJob: | 02: | The lease of that lock |
Actor claims
Options class: WorkflowActorClaimOptions.
Read by AddWorkflowAuthorization.
| Key | Default | Meaning |
|---|---|---|
WorkflowAuthorization: | sub, then the name identifier claim | Claim types read for the actor ID of a task action, in order |
WorkflowAuthorization: | the role claim and role | Claim types whose values are the actor’s roles |
Task permissions
Options class: GenericAssignmentPermissionOptions.
| Key | Default | Meaning |
|---|---|---|
GenericAssignmentPermissions: | empty | Roles that may perform every task action |
GenericAssignmentPermissions: | false | The current assignee may complete without one of the task’s roles |
Transports
HTTP and endpoint
Options classes: WorkflowHttpTransportOptions, WorkflowHttpTargetOptionsand WorkflowEndpointTransportOptions.
Read by AddWorkflowHttpTransport, once at registration.
| Key | Default | Meaning |
|---|---|---|
WorkflowHttpTransport: | 30 | One attempt; the whole call gets three times this value |
WorkflowHttpTransport: | 3 | Retries, exponential from one second with jitter |
WorkflowHttpTransport: | none | The base URL of an http target |
WorkflowHttpTransport: | none | Headers of every request to the target |
WorkflowEndpointTransport: | none | The base URL of an endpoint service |
WorkflowEndpointTransport: | none | Headers of every request to the service |
Target and service names are not case-sensitive.
GraphQL
Options classes: WorkflowGraphqlTransportOptionsand WorkflowGraphqlTargetOptions.
Read by AddWorkflowGraphqlTransport, once at registration.
| Key | Default | Meaning |
|---|---|---|
WorkflowGraphqlTransport: | 30 | One attempt; the whole call gets three times this value |
WorkflowGraphqlTransport: | 3 | Retries |
WorkflowGraphqlTransport: | none | The GraphQL endpoint (target names are case-sensitive) |
WorkflowGraphqlTransport: | none | Headers |
RabbitMQ transport
Options classes: WorkflowRabbitTransportOptionsand WorkflowRabbitTlsOptions.
Read by AddWorkflowRabbitTransport, once at registration.
| Key | Default | Meaning |
|---|---|---|
WorkflowRabbitTransport: | none (required for a call) | The broker |
WorkflowRabbitTransport: | 5672 | |
WorkflowRabbitTransport: | / | |
WorkflowRabbitTransport:, Password | none: the RabbitMQ client’s default user applies | Credentials; set both |
WorkflowRabbitTransport: | stellaops-workflow | The connection name shown by the broker |
WorkflowRabbitTransport: | false | TLS to the broker |
WorkflowRabbitTransport: | the host name | The name the certificate must carry |
WorkflowRabbitTransport:, ClientCertificatePassphrase | none | A client certificate |
WorkflowRabbitTransport: | 30 | The wait for the broker’s publisher confirm |
WorkflowRabbitTransport: | 30 | The wait for a command reply |
WorkflowRabbitTransport: | DirectReplyTo | DirectReplyTo or ExclusiveQueue |
WorkflowRabbitTransport: | 8 | Channels per host |
WorkflowRabbitTransport: | command | Header framing: the header with the command name |
WorkflowRabbitTransport:, EnvelopeCorrelationIdField, EnvelopePayloadField | command, correlationId, payload | Envelope framing: the field names |
WorkflowRabbitTransport:, ReplyErrorField, ReplyErrorHeaderName | payload, error, error | The reply’s payload and error |
Rendering
Options class: WorkflowRenderingOptions.
| Key | Default | Meaning |
|---|---|---|
WorkflowRendering: | ElkSharp | The layout engine of diagrams |
Licence
Options class: WorkflowComponentLicenceOptions.
| Key | Default | Meaning |
|---|---|---|
StellaOps: | none | A licence file, or a directory of licence files |
StellaOps: | none | The same signed record as one base64 line; set either Path or Key |
StellaOps: | none | The Installation identifier the licence record names |
STELLAOPS_ (environment) | none | A directory with a vendor trust-root set that replaces the embedded published root, for key rotation |
An invalid value never stops the host (Licensing).
Durable execution
Options classes: WorkflowDurableStartOptions, WorkflowRegisteredSignalOptions, WorkflowExternalActivityRegistryOptions, WorkflowDurableMaintenanceOptionsand WorkflowConsoleOptions.
Read by AddWorkflowEngineDurableServices and, for the registry, AddWorkflowEngineCoreServices.
| Key | Default | Meaning |
|---|---|---|
WorkflowDurableStart: | empty | The audience allowed to start the definition durably |
WorkflowRegisteredSignals: | empty | The audience of an authenticated service subject |
WorkflowRegisteredSignals: | empty | The only audience that may wait for and raise the signal |
WorkflowExternalActivityRegistry: or ManifestJson | none | The signed activity registry; without it the registry is empty |
WorkflowExternalActivityRegistry: | none | The SHA-256 of the canonical manifest (required with a manifest) |
WorkflowExternalActivityRegistry: or SignatureBase64 | none | The signature |
WorkflowExternalActivityRegistry: or PublicKeyPem | none | The public key; a relative path is resolved against the application directory |
WorkflowMaintenance: | 30 | Retention of delivered outbox and inbox rows (7 to 3650) |
WorkflowConsole: | status, currentStage, progress, outcome, safeCode | State keys the execution console shows |
WorkflowConsole: | secret, token, password, prompt, documentBody, signedUrl, bearer | Fragments the console redacts |
For WorkflowConsole:SafeStateKeys and TechnicalRedactedFragments, configured values are added to the defaults; a default cannot be removed.
Publisher
Options class: WorkflowPublisherOptions.
Bound by AddWorkflowPublisher; AddWorkflowPublisher(section, assemblies) reads another section instead. The options of an enabled publisher are checked when the host starts: Endpoint an absolute http or https URL (unless DryRun), CommandPath starting with /, Timeout positive, MaxRetriesPerWorkflow and RetryBaseDelay not negative; an option outside these rules stops the host (Governed activation and publishing).
| Key | Default |
|---|---|
Enabled | true |
Endpoint | none |
CommandPath | / |
ServiceName, AuthToken | none |
Timeout | 00: |
MaxRetriesPerWorkflow, RetryBaseDelay | 3, 00: |
FailOnError, DryRun | false, false |
A complete example
{
"WorkflowBackend": { "Provider": "Postgres", "Postgres": { "MaxPoolSize": 50 } },
"WorkflowSignalDriver": { "Provider": "Native" },
"WorkflowRuntime": { "DefaultProvider": "Stella.Engine" },
"WorkflowRetention": { "OpenStaleAfterDays": 60, "CompletedPurgeAfterDays": 365 },
"GenericAssignmentPermissions": { "AdminRoles": [ "workflow-admin" ] },
"WorkflowEndpointTransport": { "Services": { "fulfilment": { "Url": "<base URL of the fulfilment service>" } } },
"WorkflowHttpTransport": { "Targets": { "payments": { "Url": "<base URL of the payments API>" } } },
"StellaOps": { "ComponentLicence": { "Path": "<licence file or directory>" } }
}
STELLAOPS_POSTGRES_WORKFLOW_CONNECTION="Host=db.contoso.example;Database=workflow;Username=workflow_app;Password=<password>"
WorkflowHttpTransport__Targets__payments__Headers__Authorization="Bearer <token>"