Class ChildWorkflowOptions
- Namespace
- Temporalio.Workflows
- Assembly
- Temporalio.dll
Options for starting a child workflow.
public class ChildWorkflowOptions : ICloneable
- Inheritance
-
ChildWorkflowOptions
- Implements
- Inherited Members
Properties
CancellationToken
Gets or sets the cancellation token for this child. If unset, defaults to the workflow cancellation token.
public CancellationToken? CancellationToken { get; set; }
Property Value
CancellationType
Gets or sets how the workflow will send/wait for cancellation of the child. Default is WaitCancellationCompleted.
public ChildWorkflowCancellationType CancellationType { get; set; }
Property Value
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 workflow ID. If unset, default will be a deterministic-random identifier.
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
ParentClosePolicy
Gets or sets how the child is treated when the parent is closed. Default is Terminate.
public ParentClosePolicy ParentClosePolicy { get; set; }
Property Value
RetryPolicy
Gets or sets the retry policy. Default is no retries.
public RetryPolicy? RetryPolicy { get; set; }
Property Value
RunTimeout
Gets or sets the timeout of a single workflow run.
public TimeSpan? RunTimeout { get; set; }
Property Value
TaskQueue
Gets or sets the task queue. If unset, default will be the parent workflow task queue.
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
VersioningIntent
Gets or sets whether this Child Workflow should run on a worker with a compatible Build Id or not when using the Worker Versioning feature.
public VersioningIntent VersioningIntent { 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.