Skip to main content

Class: SearchAttributePayloadConverter

common.SearchAttributePayloadConverter

Converts Search Attribute values using JsonPayloadConverter

Implements

Constructors

constructor

new SearchAttributePayloadConverter()

Properties

jsonConverter

jsonConverter: JsonPayloadConverter


validNonDateTypes

validNonDateTypes: string[]

Methods

fromPayload

fromPayload<T>(payload): T

Datetime Search Attribute values are converted to Dates

Type parameters

Name
T

Parameters

NameType
payloadIPayload

Returns

T

Implementation of

PayloadConverter.fromPayload


toPayload

toPayload(values): IPayload

Converts a value to a Payload.

Parameters

NameTypeDescription
valuesunknownThe value to convert. Example values include the Workflow args sent from the Client and the values returned by a Workflow or Activity.

Returns

IPayload

The Payload.

Should throw ValueError if unable to convert.

Implementation of

PayloadConverter.toPayload