Table of Contents

Class WorkflowDefinitionOptions

Namespace
Temporalio.Workflows
Assembly
Temporalio.dll

Additional options for a workflow definition that may be returned by a function annotated with WorkflowDynamicOptionsAttribute.

public class WorkflowDefinitionOptions : ICloneable
Inheritance
WorkflowDefinitionOptions
Implements
Inherited Members

Properties

FailureExceptionTypes

Gets or sets the types of exceptions that, if a workflow-thrown exception extends, will cause the workflow/update to fail instead of suspending the workflow via task failure. These are applied in addition to WorkflowFailureExceptionTypes for the overall worker. If typeof(Exception) is set, it effectively will fail a workflow/update in all user exception cases.

public Type[]? FailureExceptionTypes { get; set; }

Property Value

Type[]

Remarks

If set, overrides any value set on FailureExceptionTypes.

VersioningBehavior

Gets or sets the versioning behavior to use for this workflow.

public VersioningBehavior VersioningBehavior { get; set; }

Property Value

VersioningBehavior

Remarks

If set to a non-unspecified value, overrides any value set on VersioningBehavior.

Methods

Clone()

Create a shallow copy of these options.

public object Clone()

Returns

object

A shallow copy of these options and any transitive options fields.