Class: WorkflowExecutionContinuedAsNewEventAttributes
history.v1.WorkflowExecutionContinuedAsNewEventAttributes
Represents a WorkflowExecutionContinuedAsNewEventAttributes.
Implements
Constructors
constructor
• new WorkflowExecutionContinuedAsNewEventAttributes(properties?): WorkflowExecutionContinuedAsNewEventAttributes
Constructs a new WorkflowExecutionContinuedAsNewEventAttributes.
Parameters
| Name | Type | Description | 
|---|---|---|
| properties? | IWorkflowExecutionContinuedAsNewEventAttributes | Properties 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
header
• Optional header: null | IHeader
WorkflowExecutionContinuedAsNewEventAttributes header.
Implementation of
IWorkflowExecutionContinuedAsNewEventAttributes.header
inheritBuildId
• inheritBuildId: boolean
If this is set, the new execution inherits the Build ID of the current execution. Otherwise, the assignment rules will be used to independently assign a Build ID to the new execution. Deprecated. Only considered for versioning v0.2.
Implementation of
IWorkflowExecutionContinuedAsNewEventAttributes.inheritBuildId
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
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
| Name | Type | Description | 
|---|---|---|
| properties? | IWorkflowExecutionContinuedAsNewEventAttributes | Properties to set | 
Returns
WorkflowExecutionContinuedAsNewEventAttributes
WorkflowExecutionContinuedAsNewEventAttributes instance
decode
▸ decode(reader, length?): WorkflowExecutionContinuedAsNewEventAttributes
Decodes a WorkflowExecutionContinuedAsNewEventAttributes message from the specified reader or buffer.
Parameters
| Name | Type | Description | 
|---|---|---|
| reader | Uint8Array|Reader | Reader or buffer to decode from | 
| length? | number | Message 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
| Name | Type | Description | 
|---|---|---|
| reader | Uint8Array|Reader | Reader 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
| Name | Type | Description | 
|---|---|---|
| message | IWorkflowExecutionContinuedAsNewEventAttributes | WorkflowExecutionContinuedAsNewEventAttributes message or plain object to encode | 
| writer? | Writer | Writer 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
| Name | Type | Description | 
|---|---|---|
| message | IWorkflowExecutionContinuedAsNewEventAttributes | WorkflowExecutionContinuedAsNewEventAttributes message or plain object to encode | 
| writer? | Writer | Writer 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
| Name | Type | Description | 
|---|---|---|
| object | Object | Plain object | 
Returns
WorkflowExecutionContinuedAsNewEventAttributes
WorkflowExecutionContinuedAsNewEventAttributes
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for WorkflowExecutionContinuedAsNewEventAttributes
Parameters
| Name | Type | Description | 
|---|---|---|
| typeUrlPrefix? | string | your 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
| Name | Type | Description | 
|---|---|---|
| message | WorkflowExecutionContinuedAsNewEventAttributes | WorkflowExecutionContinuedAsNewEventAttributes | 
| options? | IConversionOptions | Conversion options | 
Returns
Object
Plain object