Skip to main content

Class: ContinueAsNewWorkflowExecution

coresdk.workflow_commands.ContinueAsNewWorkflowExecution

will re-use the issuing workflow's values.

Implements#

Constructors#

constructor#

new ContinueAsNewWorkflowExecution(properties?)

Constructs a new ContinueAsNewWorkflowExecution.

Parameters#

NameType
properties?IContinueAsNewWorkflowExecution

Properties#

arguments#

arguments: IPayload[]

typically wouldn't make any sense.

Implementation of#

IContinueAsNewWorkflowExecution.arguments


header#

header: Object

Header fields

Index signature#

▪ [k: string]: IPayload

Implementation of#

IContinueAsNewWorkflowExecution.header


memo#

memo: Object

Memo fields

Index signature#

▪ [k: string]: IPayload

Implementation of#

IContinueAsNewWorkflowExecution.memo


searchAttributes#

searchAttributes: Object

Search attributes

Index signature#

▪ [k: string]: IPayload

Implementation of#

IContinueAsNewWorkflowExecution.searchAttributes


taskQueue#

taskQueue: string

Task queue for the new workflow execution

Implementation of#

IContinueAsNewWorkflowExecution.taskQueue


workflowRunTimeout#

Optional workflowRunTimeout: null | IDuration

Timeout for a single run of the new workflow.

Implementation of#

IContinueAsNewWorkflowExecution.workflowRunTimeout


workflowTaskTimeout#

Optional workflowTaskTimeout: null | IDuration

Timeout of a single workflow task.

Implementation of#

IContinueAsNewWorkflowExecution.workflowTaskTimeout


workflowType#

workflowType: string

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

Implementation of#

IContinueAsNewWorkflowExecution.workflowType

Methods#

toJSON#

toJSON(): Object

Converts this ContinueAsNewWorkflowExecution to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ContinueAsNewWorkflowExecution

Decodes a ContinueAsNewWorkflowExecution message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

ContinueAsNewWorkflowExecution

ContinueAsNewWorkflowExecution


decodeDelimited#

Static decodeDelimited(reader): ContinueAsNewWorkflowExecution

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

ContinueAsNewWorkflowExecution

ContinueAsNewWorkflowExecution


encode#

Static encode(message, writer?): Writer

Encodes the specified ContinueAsNewWorkflowExecution message. Does not implicitly {@link coresdk.workflow_commands.ContinueAsNewWorkflowExecution.verify|verify} messages.

Parameters#

NameTypeDescription
messageIContinueAsNewWorkflowExecutionContinueAsNewWorkflowExecution message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

NameTypeDescription
messageIContinueAsNewWorkflowExecutionContinueAsNewWorkflowExecution message or plain object to encode
writer?Writer-

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#

NameTypeDescription
objectObjectPlain 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#

NameTypeDescription
messageContinueAsNewWorkflowExecutionContinueAsNewWorkflowExecution
options?IConversionOptions-

Returns#

Object

Plain object