Skip to main content

Class: ResolveActivity

coresdk.workflow_activation.ResolveActivity

Notify a workflow that an activity has been resolved

Implements#

Constructors#

constructor#

new ResolveActivity(properties?)

Constructs a new ResolveActivity.

Parameters#

NameType
properties?IResolveActivity

Properties#

result#

Optional result: null | IActivityResult

ResolveActivity result.

Implementation of#

IResolveActivity.result


seq#

seq: number

Sequence number as provided by lang in the corresponding ScheduleActivity command

Implementation of#

IResolveActivity.seq

Methods#

toJSON#

toJSON(): Object

Converts this ResolveActivity to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ResolveActivity

Decodes a ResolveActivity message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

ResolveActivity

ResolveActivity


decodeDelimited#

Static decodeDelimited(reader): ResolveActivity

Decodes a ResolveActivity message from the specified reader or buffer, length delimited.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

ResolveActivity

ResolveActivity


encode#

Static encode(message, writer?): Writer

Encodes the specified ResolveActivity message. Does not implicitly {@link coresdk.workflow_activation.ResolveActivity.verify|verify} messages.

Parameters#

NameTypeDescription
messageIResolveActivityResolveActivity message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified ResolveActivity message, length delimited. Does not implicitly {@link coresdk.workflow_activation.ResolveActivity.verify|verify} messages.

Parameters#

NameTypeDescription
messageIResolveActivityResolveActivity message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ResolveActivity

Creates a ResolveActivity message from a plain object. Also converts values to their respective internal types.

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ResolveActivity

ResolveActivity


toObject#

Static toObject(message, options?): Object

Creates a plain object from a ResolveActivity message. Also converts values to other types if specified.

Parameters#

NameTypeDescription
messageResolveActivityResolveActivity
options?IConversionOptions-

Returns#

Object

Plain object