Skip to main content

Class: NewWorkflowExecutionInfo

workflow.v1.NewWorkflowExecutionInfo

NewWorkflowExecutionInfo is a shared message that encapsulates all the required arguments to starting a workflow in different contexts.

Implements

Constructors

constructor

new NewWorkflowExecutionInfo(properties?): NewWorkflowExecutionInfo

Constructs a new NewWorkflowExecutionInfo.

Parameters

NameTypeDescription
properties?INewWorkflowExecutionInfoProperties to set

Returns

NewWorkflowExecutionInfo

Properties

cronSchedule

cronSchedule: string

See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/

Implementation of

INewWorkflowExecutionInfo.cronSchedule


Optional header: null | IHeader

NewWorkflowExecutionInfo header.

Implementation of

INewWorkflowExecutionInfo.header


input

Optional input: null | IPayloads

Serialized arguments to the workflow.

Implementation of

INewWorkflowExecutionInfo.input


memo

Optional memo: null | IMemo

NewWorkflowExecutionInfo memo.

Implementation of

INewWorkflowExecutionInfo.memo


retryPolicy

Optional retryPolicy: null | IRetryPolicy

The retry policy for the workflow. Will never exceed workflow_execution_timeout.

Implementation of

INewWorkflowExecutionInfo.retryPolicy


searchAttributes

Optional searchAttributes: null | ISearchAttributes

NewWorkflowExecutionInfo searchAttributes.

Implementation of

INewWorkflowExecutionInfo.searchAttributes


taskQueue

Optional taskQueue: null | ITaskQueue

NewWorkflowExecutionInfo taskQueue.

Implementation of

INewWorkflowExecutionInfo.taskQueue


workflowExecutionTimeout

Optional workflowExecutionTimeout: null | IDuration

Total workflow execution timeout including retries and continue as new.

Implementation of

INewWorkflowExecutionInfo.workflowExecutionTimeout


workflowId

workflowId: string

NewWorkflowExecutionInfo workflowId.

Implementation of

INewWorkflowExecutionInfo.workflowId


workflowIdReusePolicy

workflowIdReusePolicy: WorkflowIdReusePolicy

Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.

Implementation of

INewWorkflowExecutionInfo.workflowIdReusePolicy


workflowRunTimeout

Optional workflowRunTimeout: null | IDuration

Timeout of a single workflow run.

Implementation of

INewWorkflowExecutionInfo.workflowRunTimeout


workflowTaskTimeout

Optional workflowTaskTimeout: null | IDuration

Timeout of a single workflow task.

Implementation of

INewWorkflowExecutionInfo.workflowTaskTimeout


workflowType

Optional workflowType: null | IWorkflowType

NewWorkflowExecutionInfo workflowType.

Implementation of

INewWorkflowExecutionInfo.workflowType

Methods

toJSON

toJSON(): Object

Converts this NewWorkflowExecutionInfo to JSON.

Returns

Object

JSON object


create

create(properties?): NewWorkflowExecutionInfo

Creates a new NewWorkflowExecutionInfo instance using the specified properties.

Parameters

NameTypeDescription
properties?INewWorkflowExecutionInfoProperties to set

Returns

NewWorkflowExecutionInfo

NewWorkflowExecutionInfo instance


decode

decode(reader, length?): NewWorkflowExecutionInfo

Decodes a NewWorkflowExecutionInfo message from the specified reader or buffer.

Parameters

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

Returns

NewWorkflowExecutionInfo

NewWorkflowExecutionInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NewWorkflowExecutionInfo

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NewWorkflowExecutionInfo

NewWorkflowExecutionInfo

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 NewWorkflowExecutionInfo message. Does not implicitly temporal.api.workflow.v1.NewWorkflowExecutionInfo.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified NewWorkflowExecutionInfo message, length delimited. Does not implicitly temporal.api.workflow.v1.NewWorkflowExecutionInfo.verify|verify messages.

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): NewWorkflowExecutionInfo

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NewWorkflowExecutionInfo

NewWorkflowExecutionInfo


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for NewWorkflowExecutionInfo

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 NewWorkflowExecutionInfo message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageNewWorkflowExecutionInfoNewWorkflowExecutionInfo
options?IConversionOptionsConversion options

Returns

Object

Plain object