Class: WorkflowEvent
Represents a WorkflowEvent.
Properties
eventRef?
optionaleventRef?:$Properties|null
WorkflowEvent eventRef.
namespace
namespace:
string
WorkflowEvent namespace.
reference?
optionalreference?:"eventRef"|"requestIdRef"
Additional information about the workflow event. Eg: the caller workflow can send the history event details that made the Nexus call.
requestIdRef?
optionalrequestIdRef?:$Properties|null
WorkflowEvent requestIdRef.
runId
runId:
string
WorkflowEvent runId.
workflowId
workflowId:
string
WorkflowEvent workflowId.
Methods
toJSON()
toJSON():
object
Converts this WorkflowEvent to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):WorkflowEvent&$Shape
Creates a new WorkflowEvent instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowEvent & $Shape
WorkflowEvent instance
Call Signature
staticcreate(properties?):WorkflowEvent
Creates a new WorkflowEvent instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowEvent
WorkflowEvent instance
decode()
staticdecode(reader,length?):WorkflowEvent&$Shape
Decodes a WorkflowEvent 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
WorkflowEvent & $Shape
WorkflowEvent
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):WorkflowEvent&$Shape
Decodes a WorkflowEvent message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
WorkflowEvent & $Shape
WorkflowEvent
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 WorkflowEvent message. Does not implicitly temporal.api.common.v1.Link.WorkflowEvent.verify|verify messages.
Parameters
message
WorkflowEvent message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified WorkflowEvent message, length delimited. Does not implicitly temporal.api.common.v1.Link.WorkflowEvent.verify|verify messages.
Parameters
message
WorkflowEvent message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):WorkflowEvent
Creates a WorkflowEvent message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
WorkflowEvent
WorkflowEvent
toObject()
statictoObject(message,options?):object
Creates a plain object from a WorkflowEvent message. Also converts values to other types if specified.
Parameters
message
WorkflowEvent
WorkflowEvent
options?
IConversionOptions
Conversion options
Returns
object
Plain object