Class: NewWorkflowExecutionInfo
NewWorkflowExecutionInfo is a shared message that encapsulates all the required arguments to starting a workflow in different contexts.
Properties
cronSchedule
cronSchedule:
string
See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
header?
optionalheader?:$Properties|null
NewWorkflowExecutionInfo header.
input?
optionalinput?:$Properties|null
Serialized arguments to the workflow.
memo?
optionalmemo?:$Properties|null
NewWorkflowExecutionInfo memo.
priority?
optionalpriority?:$Properties|null
Priority metadata
retryPolicy?
optionalretryPolicy?:$Properties|null
The retry policy for the workflow. Will never exceed workflow_execution_timeout.
searchAttributes?
optionalsearchAttributes?:$Properties|null
NewWorkflowExecutionInfo searchAttributes.
taskQueue?
optionaltaskQueue?:$Properties|null
NewWorkflowExecutionInfo taskQueue.
userMetadata?
optionaluserMetadata?:$Properties|null
Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig for use by user interfaces to display the fixed as-of-start summary and details of the workflow.
versioningOverride?
optionalversioningOverride?:$Properties|null
If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
workflowExecutionTimeout?
optionalworkflowExecutionTimeout?:$Properties|null
Total workflow execution timeout including retries and continue as new.
workflowId
workflowId:
string
NewWorkflowExecutionInfo workflowId.
workflowIdReusePolicy
workflowIdReusePolicy:
WorkflowIdReusePolicy
Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
workflowRunTimeout?
optionalworkflowRunTimeout?:$Properties|null
Timeout of a single workflow run.
workflowTaskTimeout?
optionalworkflowTaskTimeout?:$Properties|null
Timeout of a single workflow task.
workflowType?
optionalworkflowType?:$Properties|null
NewWorkflowExecutionInfo workflowType.
Methods
toJSON()
toJSON():
object
Converts this NewWorkflowExecutionInfo to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):NewWorkflowExecutionInfo&$Shape
Creates a new NewWorkflowExecutionInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
NewWorkflowExecutionInfo & $Shape
NewWorkflowExecutionInfo instance
Call Signature
staticcreate(properties?):NewWorkflowExecutionInfo
Creates a new NewWorkflowExecutionInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
NewWorkflowExecutionInfo
NewWorkflowExecutionInfo instance
decode()
staticdecode(reader,length?):NewWorkflowExecutionInfo&$Shape
Decodes a NewWorkflowExecutionInfo 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
NewWorkflowExecutionInfo & $Shape
NewWorkflowExecutionInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):NewWorkflowExecutionInfo&$Shape
Decodes a NewWorkflowExecutionInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
NewWorkflowExecutionInfo & $Shape
NewWorkflowExecutionInfo
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 NewWorkflowExecutionInfo message. Does not implicitly temporal.api.workflow.v1.NewWorkflowExecutionInfo.verify|verify messages.
Parameters
message
NewWorkflowExecutionInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified NewWorkflowExecutionInfo message, length delimited. Does not implicitly temporal.api.workflow.v1.NewWorkflowExecutionInfo.verify|verify messages.
Parameters
message
NewWorkflowExecutionInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):NewWorkflowExecutionInfo
Creates a NewWorkflowExecutionInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
NewWorkflowExecutionInfo
NewWorkflowExecutionInfo
toObject()
statictoObject(message,options?):object
Creates a plain object from a NewWorkflowExecutionInfo message. Also converts values to other types if specified.
Parameters
message
NewWorkflowExecutionInfo
NewWorkflowExecutionInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object