Class WorkflowOptions
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
public class WorkflowOptions : ICloneable
- Inheritance
-
WorkflowOptions
- Implements
- Inherited Members
Constructors
WorkflowOptions()
Initializes a new instance of the WorkflowOptions class.
public WorkflowOptions()
WorkflowOptions(string, string)
Initializes a new instance of the WorkflowOptions class.
public WorkflowOptions(string id, string taskQueue)
Parameters
Properties
CronSchedule
Gets or sets the cron schedule for the workflow.
public string? CronSchedule { get; set; }
Property Value
ExecutionTimeout
Gets or sets the total workflow execution timeout including retries and continue as new.
public TimeSpan? ExecutionTimeout { get; set; }
Property Value
ID
Gets or sets the unique workflow identifier. This is required.
public string? ID { get; set; }
Property Value
IDReusePolicy
Gets or sets how already-existing IDs are treated. Default is AllowDuplicate.
public WorkflowIdReusePolicy IDReusePolicy { get; set; }
Property Value
Memo
Gets or sets the memo for the workflow. Values for the memo cannot be null.
public IReadOnlyDictionary<string, object>? Memo { get; set; }
Property Value
RetryPolicy
Gets or sets the retry policy for the workflow. If unset, workflow never retries.
public RetryPolicy? RetryPolicy { get; set; }
Property Value
Rpc
Gets or sets RPC options for starting the workflow.
public RpcOptions? Rpc { get; set; }
Property Value
RunTimeout
Gets or sets the timeout of a single workflow run.
public TimeSpan? RunTimeout { get; set; }
Property Value
StartSignal
Gets or sets the start signal for the workflow. If this is non-null, a signal-with-start is used instead of a traditional workflow start. This means the workflow will only be created if it does not already exist, then a signal will be sent.
public string? StartSignal { get; set; }
Property Value
StartSignalArgs
Gets or sets the arguments for the start signal. This cannot be set if StartSignal is not set.
public IReadOnlyCollection<object?>? StartSignalArgs { get; set; }
Property Value
TaskQueue
Gets or sets the task queue to run the workflow on. This is required.
public string? TaskQueue { get; set; }
Property Value
TaskTimeout
Gets or sets the timeout of a single workflow task.
public TimeSpan? TaskTimeout { get; set; }
Property Value
TypedSearchAttributes
Gets or sets the search attributes for the workflow.
public SearchAttributeCollection? TypedSearchAttributes { get; set; }
Property Value
Methods
Clone()
Create a shallow copy of these options.
public virtual object Clone()
Returns
- object
A shallow copy of these options and any transitive options fields.