Class: PendingWorkflowTaskInfo
Represents a PendingWorkflowTaskInfo.
Properties
attempt
attempt:
number
PendingWorkflowTaskInfo attempt.
originalScheduledTime?
optionaloriginalScheduledTime?:$Properties|null
original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat. Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds some threshold, the workflow task will be forced timeout.
scheduledTime?
optionalscheduledTime?:$Properties|null
PendingWorkflowTaskInfo scheduledTime.
startedTime?
optionalstartedTime?:$Properties|null
PendingWorkflowTaskInfo startedTime.
state
state:
PendingWorkflowTaskState
PendingWorkflowTaskInfo state.
Methods
toJSON()
toJSON():
object
Converts this PendingWorkflowTaskInfo to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):PendingWorkflowTaskInfo&$Properties
Creates a new PendingWorkflowTaskInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PendingWorkflowTaskInfo & $Properties
PendingWorkflowTaskInfo instance
Call Signature
staticcreate(properties?):PendingWorkflowTaskInfo
Creates a new PendingWorkflowTaskInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PendingWorkflowTaskInfo
PendingWorkflowTaskInfo instance
decode()
staticdecode(reader,length?):PendingWorkflowTaskInfo&$Properties
Decodes a PendingWorkflowTaskInfo 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
PendingWorkflowTaskInfo & $Properties
PendingWorkflowTaskInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):PendingWorkflowTaskInfo&$Properties
Decodes a PendingWorkflowTaskInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
PendingWorkflowTaskInfo & $Properties
PendingWorkflowTaskInfo
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 PendingWorkflowTaskInfo message. Does not implicitly temporal.api.workflow.v1.PendingWorkflowTaskInfo.verify|verify messages.
Parameters
message
PendingWorkflowTaskInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified PendingWorkflowTaskInfo message, length delimited. Does not implicitly temporal.api.workflow.v1.PendingWorkflowTaskInfo.verify|verify messages.
Parameters
message
PendingWorkflowTaskInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):PendingWorkflowTaskInfo
Creates a PendingWorkflowTaskInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PendingWorkflowTaskInfo
PendingWorkflowTaskInfo
toObject()
statictoObject(message,options?):object
Creates a plain object from a PendingWorkflowTaskInfo message. Also converts values to other types if specified.
Parameters
message
PendingWorkflowTaskInfo
PendingWorkflowTaskInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object