Skip to main content

Class: ChildWorkflowResult

coresdk.child_workflow.ChildWorkflowResult

Used by core to resolve child workflow executions.

Properties​

cancelled​

• Optional cancelled: null | $Properties

ChildWorkflowResult cancelled.


completed​

• Optional completed: null | $Properties

ChildWorkflowResult completed.


failed​

• Optional failed: null | $Properties

ChildWorkflowResult failed.


status​

• Optional status: "completed" | "failed" | "cancelled"

ChildWorkflowResult status.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ChildWorkflowResult to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ChildWorkflowResult & $Shape

Creates a new ChildWorkflowResult instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

ChildWorkflowResult & $Shape

ChildWorkflowResult instance

▸ create(properties?): ChildWorkflowResult

Parameters​

NameType
properties?$Properties

Returns​

ChildWorkflowResult


decode​

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

Decodes a ChildWorkflowResult message from the specified reader or buffer.

Parameters​

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

Returns​

ChildWorkflowResult & $Shape

ChildWorkflowResult

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ChildWorkflowResult & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ChildWorkflowResult & $Shape

ChildWorkflowResult

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified ChildWorkflowResult message, length delimited. Does not implicitly coresdk.child_workflow.ChildWorkflowResult.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ChildWorkflowResult

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ChildWorkflowResult

ChildWorkflowResult


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageChildWorkflowResultChildWorkflowResult
options?IConversionOptionsConversion options

Returns​

Object

Plain object