Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

StartWorkflowAction extends ScheduleAction
in package
uses CloneWith

FinalYes

Start a new Workflow execution.

Tags
psalm-import-type

DateIntervalValue from DateInterval

see
NewWorkflowExecutionInfo

Table of Contents

Properties

$header  : HeaderInterface
Header
$input  : ValuesInterface
Argument list to the workflow
$memo  : EncodedCollection
Memo
$retryPolicy  : RetryOptions
The retry policy for the workflow. Will never exceed {@see self::$workflowExecutionTimeout}.
$searchAttributes  : EncodedCollection
Search Attributes.
$taskQueue  : TaskQueue
Task queue
$workflowExecutionTimeout  : DateInterval
Total workflow execution timeout including retries and continue as new
$workflowId  : string
Workflow ID
$workflowIdReusePolicy  : IdReusePolicy
Default {@see IdReusePolicy::AllowDuplicate}
$workflowRunTimeout  : DateInterval
Timeout of a single workflow run
$workflowTaskTimeout  : DateInterval
Timeout of a single workflow task
$workflowType  : WorkflowType
Workflow type

Methods

new()  : self
withHeader()  : self
Header
withInput()  : self
Arguments to the workflow
withMemo()  : self
Memo
withRetryPolicy()  : self
The retry policy for the workflow. Will never exceed {@see self::$workflowExecutionTimeout}
withSearchAttributes()  : self
Search attributes
withStaticDetails()  : self
General fixed details for this workflow execution that will appear in UI/CLI.
withStaticSummary()  : self
Single-line fixed summary for this workflow execution that will appear in UI/CLI.
withTaskQueue()  : self
withWorkflowExecutionTimeout()  : self
Total workflow execution timeout including retries and continue as new
withWorkflowId()  : self
withWorkflowIdReusePolicy()  : self
withWorkflowRunTimeout()  : self
Timeout of a single workflow run
withWorkflowTaskTimeout()  : self
Timeout of a single workflow task
withWorkflowType()  : self
__construct()  : mixed
createWorkflowType()  : WorkflowType

Properties

$header read-only

Header

public HeaderInterface $header
Attributes
#[Marshal]
$type: \Temporal\Internal\Marshaller\Type\EncodedCollectionType::class
$of: \Temporal\Api\Common\V1\Header::class

$input read-only

Argument list to the workflow

public ValuesInterface $input
Attributes
#[Marshal]
$type: \Temporal\Internal\Marshaller\Type\ObjectType::class
$of: \Temporal\DataConverter\EncodedValues::class

$memo read-only

Memo

public EncodedCollection $memo
Attributes
#[Marshal]
$name: 'memo'
$type: \Temporal\Internal\Marshaller\Type\EncodedCollectionType::class
$of: \Temporal\Api\Common\V1\Memo::class

$retryPolicy read-only

The retry policy for the workflow. Will never exceed {@see self::$workflowExecutionTimeout}.

public RetryOptions $retryPolicy
Attributes
#[Marshal]
$name: 'retry_policy'

$searchAttributes read-only

Search Attributes.

public EncodedCollection $searchAttributes

For supported operations on different server versions see

Attributes
#[Marshal]
$name: 'search_attributes'
$type: \Temporal\Internal\Marshaller\Type\EncodedCollectionType::class
$of: \Temporal\Api\Common\V1\SearchAttributes::class

$workflowExecutionTimeout read-only

Total workflow execution timeout including retries and continue as new

public DateInterval $workflowExecutionTimeout
Attributes
#[Marshal]
$name: 'workflow_execution_timeout'
$of: \Google\Protobuf\Duration::class

$workflowId read-only

Workflow ID

public string $workflowId
Attributes
#[Marshal]
$name: 'workflow_id'

$workflowIdReusePolicy read-only

Default {@see IdReusePolicy::AllowDuplicate}

public IdReusePolicy $workflowIdReusePolicy
Attributes
#[Marshal]
$name: 'workflow_id_reuse_policy'

$workflowRunTimeout read-only

Timeout of a single workflow run

public DateInterval $workflowRunTimeout
Attributes
#[Marshal]
$name: 'workflow_run_timeout'
$of: \Google\Protobuf\Duration::class

$workflowTaskTimeout read-only

Timeout of a single workflow task

public DateInterval $workflowTaskTimeout
Attributes
#[Marshal]
$name: 'workflow_task_timeout'
$of: \Google\Protobuf\Duration::class

Methods

withRetryPolicy()

The retry policy for the workflow. Will never exceed {@see self::$workflowExecutionTimeout}

public withRetryPolicy(RetryOptions $retryPolicy) : self
Parameters
$retryPolicy : RetryOptions
Return values
self

withStaticDetails()

General fixed details for this workflow execution that will appear in UI/CLI.

public withStaticDetails(string $details) : self

This can be in Temporal Markdown format and can span multiple lines. This is a fixed value on the workflow that cannot be updated.

Parameters
$details : string
Return values
self

withStaticSummary()

Single-line fixed summary for this workflow execution that will appear in UI/CLI.

public withStaticSummary(string $summary) : self

This can be in single-line Temporal Markdown format.

Parameters
$summary : string
Return values
self

withWorkflowExecutionTimeout()

Total workflow execution timeout including retries and continue as new

public withWorkflowExecutionTimeout(DateIntervalValue $timeout) : self
Parameters
$timeout : DateIntervalValue
Return values
self

withWorkflowId()

public withWorkflowId(string $workflowId) : self
Parameters
$workflowId : string
Return values
self

withWorkflowRunTimeout()

Timeout of a single workflow run

public withWorkflowRunTimeout(DateIntervalValue $timeout) : self
Parameters
$timeout : DateIntervalValue
Return values
self

withWorkflowTaskTimeout()

Timeout of a single workflow task

public withWorkflowTaskTimeout(DateIntervalValue $timeout) : self
Parameters
$timeout : DateIntervalValue
Return values
self
On this page

Search results