Class: Link
Link can be associated with history events. It might contain information about an external entity related to the history event. For example, workflow A makes a Nexus call that starts workflow B: in this case, a history event in workflow A could contain a Link to the workflow started event in workflow B, and vice-versa.
Properties
activity?
optionalactivity?:$Properties|null
Link activity.
batchJob?
optionalbatchJob?:$Properties|null
Link batchJob.
callback?
optionalcallback?:$Properties|null
Link callback.
nexusOperation?
optionalnexusOperation?:$Properties|null
Link nexusOperation.
variant?
optionalvariant?:"workflowEvent"|"batchJob"|"activity"|"nexusOperation"|"workflow"|"callback"
Link variant.
workflow?
optionalworkflow?:$Properties|null
Link workflow.
workflowEvent?
optionalworkflowEvent?:$Properties|null
Link workflowEvent.
Methods
toJSON()
toJSON():
object
Converts this Link to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):Link&$Shape
Creates a new Link instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Link & $Shape
Link instance
Call Signature
staticcreate(properties?):Link
Creates a new Link instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Link
Link instance
decode()
staticdecode(reader,length?):Link&$Shape
Decodes a Link 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
Link & $Shape
Link
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):Link&$Shape
Decodes a Link message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
Link & $Shape
Link
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 Link message. Does not implicitly temporal.api.common.v1.Link.verify|verify messages.
Parameters
message
Link message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Link message, length delimited. Does not implicitly temporal.api.common.v1.Link.verify|verify messages.
Parameters
message
Link message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):Link
Creates a Link message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
Link
Link
toObject()
statictoObject(message,options?):object
Creates a plain object from a Link message. Also converts values to other types if specified.
Parameters
message
Link
Link
options?
IConversionOptions
Conversion options
Returns
object
Plain object