Skip to main content

Class: RequestCancelExternalWorkflowExecutionCommandAttributes

command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes

Represents a RequestCancelExternalWorkflowExecutionCommandAttributes.

Properties

childWorkflowOnly

childWorkflowOnly: boolean

Set this to true if the workflow being cancelled is a child of the workflow originating this command. The request will be rejected if it is set to true and the target workflow is not a child of the requesting workflow.


control

control: string

Deprecated.


namespace

namespace: string

Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.


reason

reason: string

Reason for requesting the cancellation


runId

runId: string

RequestCancelExternalWorkflowExecutionCommandAttributes runId.


workflowId

workflowId: string

RequestCancelExternalWorkflowExecutionCommandAttributes workflowId.

Methods

toJSON

toJSON(): Object

Converts this RequestCancelExternalWorkflowExecutionCommandAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties

Creates a new RequestCancelExternalWorkflowExecutionCommandAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties

RequestCancelExternalWorkflowExecutionCommandAttributes instance

create(properties?): RequestCancelExternalWorkflowExecutionCommandAttributes

Parameters

NameType
properties?$Properties

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes


decode

decode(reader, length?): RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties

Decodes a RequestCancelExternalWorkflowExecutionCommandAttributes message from the specified reader or buffer.

Parameters

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

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties

RequestCancelExternalWorkflowExecutionCommandAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties

RequestCancelExternalWorkflowExecutionCommandAttributes

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): RequestCancelExternalWorkflowExecutionCommandAttributes

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes

RequestCancelExternalWorkflowExecutionCommandAttributes


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageRequestCancelExternalWorkflowExecutionCommandAttributesRequestCancelExternalWorkflowExecutionCommandAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object