Skip to main content

Class: ContinueAsNewWorkflowExecution

Continue the workflow as a new execution

Properties​

arguments​

arguments: $Properties[]

Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that typically wouldn't make any sense.


backoffStartInterval?​

optional backoffStartInterval?: $Properties | null

Delay before the first workflow task of the continued run is scheduled.


headers​

headers: object

If set, the new workflow will have these headers. Will not re-use current workflow's headers otherwise.

Index Signature​

[k: string]: $Properties


initialVersioningBehavior​

initialVersioningBehavior: ContinueAsNewVersioningBehavior

Experimental. Optionally decide the versioning behavior that the first task of the new run should use. For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version of the previous run.


memo​

memo: object

If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo

Index Signature​

[k: string]: $Properties


retryPolicy?​

optional retryPolicy?: $Properties | null

If set, the new workflow will have this retry policy. If unset, re-uses the current workflow's retry policy.


searchAttributes?​

optional searchAttributes?: $Properties | null

If set, the new workflow will have these search attributes. If unset, re-uses the current workflow's search attributes.


taskQueue​

taskQueue: string

Task queue for the new workflow execution


versioningIntent​

versioningIntent: VersioningIntent

Whether the continued workflow should run on a worker with a compatible build id or not.


workflowRunTimeout?​

optional workflowRunTimeout?: $Properties | null

Timeout for a single run of the new workflow. Will not re-use current workflow's value.


workflowTaskTimeout?​

optional workflowTaskTimeout?: $Properties | null

Timeout of a single workflow task. Will not re-use current workflow's value.


workflowType​

workflowType: string

The identifier the lang-specific sdk uses to execute workflow code

Methods​

toJSON()​

toJSON(): object

Converts this ContinueAsNewWorkflowExecution to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ContinueAsNewWorkflowExecution & $Properties

Creates a new ContinueAsNewWorkflowExecution instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ContinueAsNewWorkflowExecution & $Properties

ContinueAsNewWorkflowExecution instance

Call Signature​

static create(properties?): ContinueAsNewWorkflowExecution

Creates a new ContinueAsNewWorkflowExecution instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ContinueAsNewWorkflowExecution

ContinueAsNewWorkflowExecution instance


decode()​

static decode(reader, length?): ContinueAsNewWorkflowExecution & $Properties

Decodes a ContinueAsNewWorkflowExecution message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

ContinueAsNewWorkflowExecution & $Properties

ContinueAsNewWorkflowExecution

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ContinueAsNewWorkflowExecution & $Properties

Decodes a ContinueAsNewWorkflowExecution message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ContinueAsNewWorkflowExecution & $Properties

ContinueAsNewWorkflowExecution

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified ContinueAsNewWorkflowExecution message. Does not implicitly coresdk.workflow_commands.ContinueAsNewWorkflowExecution.verify|verify messages.

Parameters​

message​

$Properties

ContinueAsNewWorkflowExecution message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified ContinueAsNewWorkflowExecution message, length delimited. Does not implicitly coresdk.workflow_commands.ContinueAsNewWorkflowExecution.verify|verify messages.

Parameters​

message​

$Properties

ContinueAsNewWorkflowExecution message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ContinueAsNewWorkflowExecution

Creates a ContinueAsNewWorkflowExecution message from a plain object. Also converts values to their respective internal types.

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

ContinueAsNewWorkflowExecution

ContinueAsNewWorkflowExecution


toObject()​

static toObject(message, options?): object

Creates a plain object from a ContinueAsNewWorkflowExecution message. Also converts values to other types if specified.

Parameters​

message​

ContinueAsNewWorkflowExecution

ContinueAsNewWorkflowExecution

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object