Class: ResolveActivity
Notify a workflow that an activity has been resolved
Properties
isLocal
isLocal:
boolean
Set to true if the resolution is for a local activity. This is used internally by Core and lang does not need to care about it.
result?
optionalresult?:$Properties|null
ResolveActivity result.
seq
seq:
number
Sequence number as provided by lang in the corresponding ScheduleActivity command
Methods
toJSON()
toJSON():
object
Converts this ResolveActivity to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ResolveActivity&$Shape
Creates a new ResolveActivity instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ResolveActivity & $Shape
ResolveActivity instance
Call Signature
staticcreate(properties?):ResolveActivity
Creates a new ResolveActivity instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ResolveActivity
ResolveActivity instance
decode()
staticdecode(reader,length?):ResolveActivity&$Shape
Decodes a ResolveActivity 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
ResolveActivity & $Shape
ResolveActivity
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ResolveActivity&$Shape
Decodes a ResolveActivity message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ResolveActivity & $Shape
ResolveActivity
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 ResolveActivity message. Does not implicitly coresdk.workflow_activation.ResolveActivity.verify|verify messages.
Parameters
message
ResolveActivity message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ResolveActivity message, length delimited. Does not implicitly coresdk.workflow_activation.ResolveActivity.verify|verify messages.
Parameters
message
ResolveActivity message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):ResolveActivity
Creates a ResolveActivity message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
ResolveActivity
ResolveActivity
toObject()
statictoObject(message,options?):object
Creates a plain object from a ResolveActivity message. Also converts values to other types if specified.
Parameters
message
ResolveActivity
ResolveActivity
options?
IConversionOptions
Conversion options
Returns
object
Plain object