Skip to main content

Class: SignalWorkflow

coresdk.workflow_activation.SignalWorkflow

Send a signal to a workflow

Properties

headers

headers: Object

Headers attached to the signal

Index signature

▪ [k: string]: $Properties


identity

identity: string

Identity of the sender of the signal


input

input: $Properties[]

SignalWorkflow input.


signalName

signalName: string

SignalWorkflow signalName.

Methods

toJSON

toJSON(): Object

Converts this SignalWorkflow to JSON.

Returns

Object

JSON object


create

create(properties?): SignalWorkflow & $Properties

Creates a new SignalWorkflow instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

SignalWorkflow & $Properties

SignalWorkflow instance

create(properties?): SignalWorkflow

Parameters

NameType
properties?$Properties

Returns

SignalWorkflow


decode

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

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 & $Properties

SignalWorkflow

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): SignalWorkflow & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

SignalWorkflow & $Properties

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 coresdk.workflow_activation.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 coresdk.workflow_activation.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