Skip to main content

Class: WorkflowExecutionContinuedAsNewEventAttributes

history.v1.WorkflowExecutionContinuedAsNewEventAttributes

Represents a WorkflowExecutionContinuedAsNewEventAttributes.

Implements

Constructors

constructor

new WorkflowExecutionContinuedAsNewEventAttributes(properties?): WorkflowExecutionContinuedAsNewEventAttributes

Constructs a new WorkflowExecutionContinuedAsNewEventAttributes.

Parameters

NameTypeDescription
properties?IWorkflowExecutionContinuedAsNewEventAttributesProperties to set

Returns

WorkflowExecutionContinuedAsNewEventAttributes

Properties

backoffStartInterval

Optional backoffStartInterval: null | IDuration

TODO: How and is this used?

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.backoffStartInterval


failure

Optional failure: null | IFailure

TODO: David are these right? Deprecated. If a workflow's retry policy would cause a new run to start when the current one has failed, this field would be populated with that failure. Now (when supported by server and sdk) the final event will be WORKFLOW_EXECUTION_FAILED with new_execution_run_id set.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.failure


Optional header: null | IHeader

WorkflowExecutionContinuedAsNewEventAttributes header.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.header


initiator

initiator: ContinueAsNewInitiator

WorkflowExecutionContinuedAsNewEventAttributes initiator.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.initiator


input

Optional input: null | IPayloads

WorkflowExecutionContinuedAsNewEventAttributes input.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.input


lastCompletionResult

Optional lastCompletionResult: null | IPayloads

TODO: Is this the result of this workflow as it continued-as-new?

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.lastCompletionResult


memo

Optional memo: null | IMemo

WorkflowExecutionContinuedAsNewEventAttributes memo.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.memo


newExecutionRunId

newExecutionRunId: string

The run ID of the new workflow started by this continue-as-new

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.newExecutionRunId


searchAttributes

Optional searchAttributes: null | ISearchAttributes

WorkflowExecutionContinuedAsNewEventAttributes searchAttributes.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.searchAttributes


taskQueue

Optional taskQueue: null | ITaskQueue

WorkflowExecutionContinuedAsNewEventAttributes taskQueue.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.taskQueue


useCompatibleVersion

useCompatibleVersion: boolean

If this is set, the workflow executing this command wishes to continue as new using a version compatible with the version that this workflow most recently ran on.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.useCompatibleVersion


workflowRunTimeout

Optional workflowRunTimeout: null | IDuration

Timeout of a single workflow run.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.workflowRunTimeout


workflowTaskCompletedEventId

workflowTaskCompletedEventId: Long

The WORKFLOW_TASK_COMPLETED event which this command was reported with

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.workflowTaskCompletedEventId


workflowTaskTimeout

Optional workflowTaskTimeout: null | IDuration

Timeout of a single workflow task.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.workflowTaskTimeout


workflowType

Optional workflowType: null | IWorkflowType

WorkflowExecutionContinuedAsNewEventAttributes workflowType.

Implementation of

IWorkflowExecutionContinuedAsNewEventAttributes.workflowType

Methods

toJSON

toJSON(): Object

Converts this WorkflowExecutionContinuedAsNewEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): WorkflowExecutionContinuedAsNewEventAttributes

Creates a new WorkflowExecutionContinuedAsNewEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?IWorkflowExecutionContinuedAsNewEventAttributesProperties to set

Returns

WorkflowExecutionContinuedAsNewEventAttributes

WorkflowExecutionContinuedAsNewEventAttributes instance


decode

decode(reader, length?): WorkflowExecutionContinuedAsNewEventAttributes

Decodes a WorkflowExecutionContinuedAsNewEventAttributes message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

WorkflowExecutionContinuedAsNewEventAttributes

WorkflowExecutionContinuedAsNewEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WorkflowExecutionContinuedAsNewEventAttributes

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WorkflowExecutionContinuedAsNewEventAttributes

WorkflowExecutionContinuedAsNewEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified WorkflowExecutionContinuedAsNewEventAttributes message. Does not implicitly temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.verify|verify messages.

Parameters

NameTypeDescription
messageIWorkflowExecutionContinuedAsNewEventAttributesWorkflowExecutionContinuedAsNewEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified WorkflowExecutionContinuedAsNewEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.verify|verify messages.

Parameters

NameTypeDescription
messageIWorkflowExecutionContinuedAsNewEventAttributesWorkflowExecutionContinuedAsNewEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): WorkflowExecutionContinuedAsNewEventAttributes

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WorkflowExecutionContinuedAsNewEventAttributes

WorkflowExecutionContinuedAsNewEventAttributes


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WorkflowExecutionContinuedAsNewEventAttributes

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageWorkflowExecutionContinuedAsNewEventAttributesWorkflowExecutionContinuedAsNewEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object