Skip to main content

Class: SignalWorkflow

v1.PostResetOperation.SignalWorkflow

SignalWorkflow represents sending a signal after a workflow reset. Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.

Properties​

• Optional header: null | $Properties

Headers that are passed with the signal to the processing workflow.


input​

• Optional input: null | $Properties

Serialized value(s) to provide with the signal.


• links: $Properties[]

Links to be associated with the WorkflowExecutionSignaled event.


signalName​

• signalName: string

The workflow author-defined name of the signal to send to the workflow.

Methods​

toJSON​

▸ toJSON(): Object

Converts this SignalWorkflow to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): SignalWorkflow & $Shape

Creates a new SignalWorkflow instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

SignalWorkflow & $Shape

SignalWorkflow instance

▸ create(properties?): SignalWorkflow

Parameters​

NameType
properties?$Properties

Returns​

SignalWorkflow


decode​

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

Decodes a SignalWorkflow message from the specified reader or buffer.

Parameters​

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

Returns​

SignalWorkflow & $Shape

SignalWorkflow

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): SignalWorkflow & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

SignalWorkflow & $Shape

SignalWorkflow

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): SignalWorkflow

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

SignalWorkflow

SignalWorkflow


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageSignalWorkflowSignalWorkflow
options?IConversionOptionsConversion options

Returns​

Object

Plain object