Skip to main content

Class: OnConflictOptions

common.v1.OnConflictOptions

When starting an execution with a conflict policy that uses an existing execution and there is already an existing running execution, OnConflictOptions defines actions to be taken on the existing running execution.

Properties​

attachCompletionCallbacks​

• attachCompletionCallbacks: boolean

Attaches the completion callbacks to the running execution.


• attachLinks: boolean

Attaches the links to the running execution.


attachRequestId​

• attachRequestId: boolean

Attaches the request ID to the running execution.

Methods​

toJSON​

▸ toJSON(): Object

Converts this OnConflictOptions to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): OnConflictOptions & $Properties

Creates a new OnConflictOptions instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

OnConflictOptions & $Properties

OnConflictOptions instance

▸ create(properties?): OnConflictOptions

Parameters​

NameType
properties?$Properties

Returns​

OnConflictOptions


decode​

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

Decodes an OnConflictOptions message from the specified reader or buffer.

Parameters​

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

Returns​

OnConflictOptions & $Properties

OnConflictOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): OnConflictOptions & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

OnConflictOptions & $Properties

OnConflictOptions

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): OnConflictOptions

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

OnConflictOptions

OnConflictOptions


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageOnConflictOptionsOnConflictOptions
options?IConversionOptionsConversion options

Returns​

Object

Plain object