Class: WorkflowExecutionContinuedAsNewEventAttributes
Represents a WorkflowExecutionContinuedAsNewEventAttributes.
Properties
backoffStartInterval?
optionalbackoffStartInterval?:$Properties|null
How long the server will wait before scheduling the first workflow task for the new run. Used for cron, retry, and other continue-as-new cases that server may enforce some minimal delay between new runs for system protection purpose.
failure?
optionalfailure?:$Properties|null
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.
header?
optionalheader?:$Properties|null
WorkflowExecutionContinuedAsNewEventAttributes 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.
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.
initiator
initiator:
ContinueAsNewInitiator
WorkflowExecutionContinuedAsNewEventAttributes initiator.
input?
optionalinput?:$Properties|null
WorkflowExecutionContinuedAsNewEventAttributes input.
lastCompletionResult?
optionallastCompletionResult?:$Properties|null
The result from the most recent completed run of this workflow. The SDK surfaces this to the
new run via APIs such as GetLastCompletionResult.
memo?
optionalmemo?:$Properties|null
WorkflowExecutionContinuedAsNewEventAttributes memo.
newExecutionRunId
newExecutionRunId:
string
The run ID of the new workflow started by this continue-as-new
searchAttributes?
optionalsearchAttributes?:$Properties|null
WorkflowExecutionContinuedAsNewEventAttributes searchAttributes.
taskQueue?
optionaltaskQueue?:$Properties|null
WorkflowExecutionContinuedAsNewEventAttributes taskQueue.
workflowRunTimeout?
optionalworkflowRunTimeout?:$Properties|null
Timeout of a single workflow run.
workflowTaskCompletedEventId
workflowTaskCompletedEventId:
Long
The WORKFLOW_TASK_COMPLETED event which this command was reported with
workflowTaskTimeout?
optionalworkflowTaskTimeout?:$Properties|null
Timeout of a single workflow task.
workflowType?
optionalworkflowType?:$Properties|null
WorkflowExecutionContinuedAsNewEventAttributes workflowType.
Methods
toJSON()
toJSON():
object
Converts this WorkflowExecutionContinuedAsNewEventAttributes to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):WorkflowExecutionContinuedAsNewEventAttributes&$Shape
Creates a new WorkflowExecutionContinuedAsNewEventAttributes instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowExecutionContinuedAsNewEventAttributes & $Shape
WorkflowExecutionContinuedAsNewEventAttributes instance
Call Signature
staticcreate(properties?):WorkflowExecutionContinuedAsNewEventAttributes
Creates a new WorkflowExecutionContinuedAsNewEventAttributes instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowExecutionContinuedAsNewEventAttributes
WorkflowExecutionContinuedAsNewEventAttributes instance
decode()
staticdecode(reader,length?):WorkflowExecutionContinuedAsNewEventAttributes&$Shape
Decodes a WorkflowExecutionContinuedAsNewEventAttributes 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
WorkflowExecutionContinuedAsNewEventAttributes & $Shape
WorkflowExecutionContinuedAsNewEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):WorkflowExecutionContinuedAsNewEventAttributes&$Shape
Decodes a WorkflowExecutionContinuedAsNewEventAttributes message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
WorkflowExecutionContinuedAsNewEventAttributes & $Shape
WorkflowExecutionContinuedAsNewEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified WorkflowExecutionContinuedAsNewEventAttributes message. Does not implicitly temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.verify|verify messages.
Parameters
message
WorkflowExecutionContinuedAsNewEventAttributes message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified WorkflowExecutionContinuedAsNewEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.verify|verify messages.
Parameters
message
WorkflowExecutionContinuedAsNewEventAttributes message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):WorkflowExecutionContinuedAsNewEventAttributes
Creates a WorkflowExecutionContinuedAsNewEventAttributes message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
WorkflowExecutionContinuedAsNewEventAttributes
WorkflowExecutionContinuedAsNewEventAttributes
toObject()
statictoObject(message,options?):object
Creates a plain object from a WorkflowExecutionContinuedAsNewEventAttributes message. Also converts values to other types if specified.
Parameters
message
WorkflowExecutionContinuedAsNewEventAttributes
WorkflowExecutionContinuedAsNewEventAttributes
options?
IConversionOptions
Conversion options
Returns
object
Plain object