Class: ActivityResolution
Used to report activity resolutions to lang. IE: This is what the activities are resolved with in the workflow.
Properties
backoff?
optionalbackoff?:$Properties|null
ActivityResolution backoff.
cancelled?
optionalcancelled?:$Properties|null
ActivityResolution cancelled.
completed?
optionalcompleted?:$Properties|null
ActivityResolution completed.
failed?
optionalfailed?:$Properties|null
ActivityResolution failed.
status?
optionalstatus?:"completed"|"failed"|"cancelled"|"backoff"
ActivityResolution status.
Methods
toJSON()
toJSON():
object
Converts this ActivityResolution to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ActivityResolution&$Shape
Creates a new ActivityResolution instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActivityResolution & $Shape
ActivityResolution instance
Call Signature
staticcreate(properties?):ActivityResolution
Creates a new ActivityResolution instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActivityResolution
ActivityResolution instance
decode()
staticdecode(reader,length?):ActivityResolution&$Shape
Decodes an ActivityResolution 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
ActivityResolution & $Shape
ActivityResolution
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ActivityResolution&$Shape
Decodes an ActivityResolution message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ActivityResolution & $Shape
ActivityResolution
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 ActivityResolution message. Does not implicitly coresdk.activity_result.ActivityResolution.verify|verify messages.
Parameters
message
ActivityResolution message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ActivityResolution message, length delimited. Does not implicitly coresdk.activity_result.ActivityResolution.verify|verify messages.
Parameters
message
ActivityResolution message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):ActivityResolution
Creates an ActivityResolution message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
ActivityResolution
ActivityResolution
toObject()
statictoObject(message,options?):object
Creates a plain object from an ActivityResolution message. Also converts values to other types if specified.
Parameters
message
ActivityResolution
ActivityResolution
options?
IConversionOptions
Conversion options
Returns
object
Plain object