Skip to main content

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?​

optional result?: $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​

static create(properties?): ResolveActivity & $Shape

Creates a new ResolveActivity instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

ResolveActivity & $Shape

ResolveActivity instance

Call Signature​

static create(properties?): ResolveActivity

Creates a new ResolveActivity instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ResolveActivity

ResolveActivity instance


decode()​

static decode(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()​

static decodeDelimited(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()​

static encode(message, writer?): Writer

Encodes the specified ResolveActivity message. Does not implicitly coresdk.workflow_activation.ResolveActivity.verify|verify messages.

Parameters​

message​

$Properties

ResolveActivity message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

ResolveActivity message or plain object to encode

writer?​

Writer

Writer to encode to

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​

object​

{[k: string]: any; }

Plain 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​

message​

ResolveActivity

ResolveActivity

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object