Class: WorkflowType
Represents the identifier used by a workflow author to define the workflow. Typically, the name of a function. This is sometimes referred to as the workflow's "name"
Properties
name
name:
string
WorkflowType name.
Methods
toJSON()
toJSON():
object
Converts this WorkflowType to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):WorkflowType&$Properties
Creates a new WorkflowType instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowType & $Properties
WorkflowType instance
Call Signature
staticcreate(properties?):WorkflowType
Creates a new WorkflowType instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowType
WorkflowType instance
decode()
staticdecode(reader,length?):WorkflowType&$Properties
Decodes a WorkflowType message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
WorkflowType & $Properties
WorkflowType
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):WorkflowType&$Properties
Decodes a WorkflowType message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
WorkflowType & $Properties
WorkflowType
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified WorkflowType message. Does not implicitly temporal.api.common.v1.WorkflowType.verify|verify messages.
Parameters
message
WorkflowType message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified WorkflowType message, length delimited. Does not implicitly temporal.api.common.v1.WorkflowType.verify|verify messages.
Parameters
message
WorkflowType message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):WorkflowType
Creates a WorkflowType message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
WorkflowType
WorkflowType
toObject()
statictoObject(message,options?):object
Creates a plain object from a WorkflowType message. Also converts values to other types if specified.
Parameters
message
WorkflowType
WorkflowType
options?
IConversionOptions
Conversion options
Returns
object
Plain object