Skip to main content

Class: WorkflowExecutionPauseInfo

workflow.v1.WorkflowExecutionPauseInfo

WorkflowExecutionPauseInfo contains the information about a workflow execution pause.

Properties​

identity​

• identity: string

The identity of the client who paused the workflow execution.


pausedTime​

• Optional pausedTime: null | $Properties

The time when the workflow execution was paused.


reason​

• reason: string

The reason for pausing the workflow execution.

Methods​

toJSON​

▸ toJSON(): Object

Converts this WorkflowExecutionPauseInfo to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): WorkflowExecutionPauseInfo & $Properties

Creates a new WorkflowExecutionPauseInfo instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

WorkflowExecutionPauseInfo & $Properties

WorkflowExecutionPauseInfo instance

▸ create(properties?): WorkflowExecutionPauseInfo

Parameters​

NameType
properties?$Properties

Returns​

WorkflowExecutionPauseInfo


decode​

▸ decode(reader, length?): WorkflowExecutionPauseInfo & $Properties

Decodes a WorkflowExecutionPauseInfo message from the specified reader or buffer.

Parameters​

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

Returns​

WorkflowExecutionPauseInfo & $Properties

WorkflowExecutionPauseInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): WorkflowExecutionPauseInfo & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

WorkflowExecutionPauseInfo & $Properties

WorkflowExecutionPauseInfo

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): WorkflowExecutionPauseInfo

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

WorkflowExecutionPauseInfo

WorkflowExecutionPauseInfo


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageWorkflowExecutionPauseInfoWorkflowExecutionPauseInfo
options?IConversionOptionsConversion options

Returns​

Object

Plain object