Skip to main content

Class: WorkflowActivationCompletion

coresdk.workflow_completion.WorkflowActivationCompletion

Result of a single workflow activation, reported from lang to core

Implements

Constructors

constructor

new WorkflowActivationCompletion(properties?): WorkflowActivationCompletion

Constructs a new WorkflowActivationCompletion.

Parameters

NameTypeDescription
properties?IWorkflowActivationCompletionProperties to set

Returns

WorkflowActivationCompletion

Properties

failed

Optional failed: null | IFailure

WorkflowActivationCompletion failed.

Implementation of

IWorkflowActivationCompletion.failed


runId

runId: string

The run id from the workflow activation you are completing

Implementation of

IWorkflowActivationCompletion.runId


status

Optional status: "failed" | "successful"

WorkflowActivationCompletion status.


successful

Optional successful: null | ISuccess

WorkflowActivationCompletion successful.

Implementation of

IWorkflowActivationCompletion.successful

Methods

toJSON

toJSON(): Object

Converts this WorkflowActivationCompletion to JSON.

Returns

Object

JSON object


create

create(properties?): WorkflowActivationCompletion

Creates a new WorkflowActivationCompletion instance using the specified properties.

Parameters

NameTypeDescription
properties?IWorkflowActivationCompletionProperties to set

Returns

WorkflowActivationCompletion

WorkflowActivationCompletion instance


decode

decode(reader, length?): WorkflowActivationCompletion

Decodes a WorkflowActivationCompletion message from the specified reader or buffer.

Parameters

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

Returns

WorkflowActivationCompletion

WorkflowActivationCompletion

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WorkflowActivationCompletion

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WorkflowActivationCompletion

WorkflowActivationCompletion

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 WorkflowActivationCompletion message. Does not implicitly coresdk.workflow_completion.WorkflowActivationCompletion.verify|verify messages.

Parameters

NameTypeDescription
messageIWorkflowActivationCompletionWorkflowActivationCompletion message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified WorkflowActivationCompletion message, length delimited. Does not implicitly coresdk.workflow_completion.WorkflowActivationCompletion.verify|verify messages.

Parameters

NameTypeDescription
messageIWorkflowActivationCompletionWorkflowActivationCompletion message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): WorkflowActivationCompletion

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WorkflowActivationCompletion

WorkflowActivationCompletion


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WorkflowActivationCompletion

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageWorkflowActivationCompletionWorkflowActivationCompletion
options?IConversionOptionsConversion options

Returns

Object

Plain object