Skip to main content

Class: PauseActivityRequest

workflowservice.v1.PauseActivityRequest

Deprecated. Use PauseActivityExecutionRequest.

Properties​

activity​

• Optional activity: "id" | "type"

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 paused.


identity​

• identity: string

The identity of the client who initiated this request.


namespace​

• namespace: string

Namespace of the workflow which scheduled this activity.


reason​

• reason: string

Reason to pause the activity.


requestId​

• requestId: string

Used to de-dupe pause requests.


type​

• Optional type: null | string

Pause all running activities of this type. Note: Experimental - the behavior of pause by activity type might change in a future release.

Methods​

toJSON​

▸ toJSON(): Object

Converts this PauseActivityRequest to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): PauseActivityRequest & $Shape

Creates a new PauseActivityRequest instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

PauseActivityRequest & $Shape

PauseActivityRequest instance

▸ create(properties?): PauseActivityRequest

Parameters​

NameType
properties?$Properties

Returns​

PauseActivityRequest


decode​

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

Decodes a PauseActivityRequest message from the specified reader or buffer.

Parameters​

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

Returns​

PauseActivityRequest & $Shape

PauseActivityRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): PauseActivityRequest & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

PauseActivityRequest & $Shape

PauseActivityRequest

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 PauseActivityRequest message. Does not implicitly temporal.api.workflowservice.v1.PauseActivityRequest.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): PauseActivityRequest

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

PauseActivityRequest

PauseActivityRequest


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messagePauseActivityRequestPauseActivityRequest
options?IConversionOptionsConversion options

Returns​

Object

Plain object