Skip to main content

Class: UnpauseActivityRequest

workflowservice.v1.UnpauseActivityRequest

Deprecated. Use UnpauseActivityExecutionRequest.

Properties​

activity​

• Optional activity: "id" | "type" | "unpauseAll"

either activity id or activity type must be provided


execution​

• Optional execution: null | $Properties

Execution info of the workflow which scheduled this activity


id​

• Optional id: null | string

Only the activity with this ID will be unpaused.


identity​

• identity: string

The identity of the client who initiated this request.


jitter​

• Optional jitter: null | $Properties

If set, the activity will start at a random time within the specified jitter duration.


namespace​

• namespace: string

Namespace of the workflow which scheduled this activity.


resetAttempts​

• resetAttempts: boolean

Providing this flag will also reset the number of attempts.


resetHeartbeat​

• resetHeartbeat: boolean

Providing this flag will also reset the heartbeat details.


type​

• Optional type: null | string

Unpause all running activities with of this type.


unpauseAll​

• Optional unpauseAll: null | boolean

Unpause all running activities.

Methods​

toJSON​

▸ toJSON(): Object

Converts this UnpauseActivityRequest to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): UnpauseActivityRequest & $Shape

Creates a new UnpauseActivityRequest instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

UnpauseActivityRequest & $Shape

UnpauseActivityRequest instance

▸ create(properties?): UnpauseActivityRequest

Parameters​

NameType
properties?$Properties

Returns​

UnpauseActivityRequest


decode​

▸ decode(reader, length?): UnpauseActivityRequest & $Shape

Decodes an UnpauseActivityRequest message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

UnpauseActivityRequest & $Shape

UnpauseActivityRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): UnpauseActivityRequest & $Shape

Decodes an UnpauseActivityRequest message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

UnpauseActivityRequest & $Shape

UnpauseActivityRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode​

▸ encode(message, writer?): Writer

Encodes the specified UnpauseActivityRequest message. Does not implicitly temporal.api.workflowservice.v1.UnpauseActivityRequest.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesUnpauseActivityRequest message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified UnpauseActivityRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.UnpauseActivityRequest.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesUnpauseActivityRequest message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): UnpauseActivityRequest

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

UnpauseActivityRequest

UnpauseActivityRequest


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageUnpauseActivityRequestUnpauseActivityRequest
options?IConversionOptionsConversion options

Returns​

Object

Plain object