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
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties
RequestCancelExternalWorkflowExecutionCommandAttributes instance
▸ create(properties?): RequestCancelExternalWorkflowExecutionCommandAttributes
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
RequestCancelExternalWorkflowExecutionCommandAttributes
decode
▸ decode(reader, length?): RequestCancelExternalWorkflowExecutionCommandAttributes & $Properties
Decodes a RequestCancelExternalWorkflowExecutionCommandAttributes message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message 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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader 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
| Name | Type | Description |
|---|---|---|
message | $Properties | RequestCancelExternalWorkflowExecutionCommandAttributes message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | $Properties | RequestCancelExternalWorkflowExecutionCommandAttributes message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain 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
| Name | Type | Description |
|---|---|---|
message | RequestCancelExternalWorkflowExecutionCommandAttributes | RequestCancelExternalWorkflowExecutionCommandAttributes |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object