ActivityInfo
in package
FinalYes
ActivityInfo contains information about currently executing activity.
Use Activity::getInfo() to access.
Attributes
- #[Immutable]
Table of Contents
Properties
- $attempt : int
- Attempt starts from 1, and increased by 1 for every retry if retry policy is specified.
- $deadline : DateTimeInterface
- Time of activity timeout
- $heartbeatTimeout : DateInterval
- Maximum time between heartbeats. 0 means no heartbeat needed.
- $id : string
- An ID of the activity. This identifier can be used to complete the activity through `complete` method.
- $priority : Priority
- Return the priority of the activity task.
- $retryOptions : RetryOptions|null
- $scheduledTime : DateTimeInterface
- Time of activity scheduled by a workflow
- $startedTime : DateTimeInterface
- Time of activity start
- $taskQueue : string
- $taskToken : string
- A correlation token that can be used to complete the activity through `complete` method.
- $type : ActivityType
- Type (name) of the activity.
- $workflowExecution : WorkflowExecution|null
- $workflowNamespace : string
- $workflowType : WorkflowType|null
Methods
- __construct() : mixed
- ActivityInfo constructor.
Properties
$attempt
Attempt starts from 1, and increased by 1 for every retry if retry policy is specified.
public
int
$attempt
= 1
Attributes
- #[Marshal]
- $name: 'Attempt'
$deadline
Time of activity timeout
public
DateTimeInterface
$deadline
Attributes
- #[Marshal]
- $name: 'Deadline'
- $type: \Temporal\Internal\Marshaller\Type\DateTimeType::class
$heartbeatTimeout
Maximum time between heartbeats. 0 means no heartbeat needed.
public
DateInterval
$heartbeatTimeout
Attributes
- #[Marshal]
- $name: 'HeartbeatTimeout'
- $type: \Temporal\Internal\Marshaller\Type\DateIntervalType::class
$id
An ID of the activity. This identifier can be used to complete the activity through `complete` method.
public
string
$id
Tags
Attributes
- #[Marshal]
- $name: 'ActivityID'
$priority
Return the priority of the activity task.
public
Priority
$priority
Attributes
- #[Marshal]
- $name: 'Priority'
$retryOptions
public
RetryOptions|null
$retryOptions
= null
Attributes
- #[Marshal]
- $name: 'RetryPolicy'
$scheduledTime
Time of activity scheduled by a workflow
public
DateTimeInterface
$scheduledTime
Attributes
- #[Marshal]
- $name: 'ScheduledTime'
- $type: \Temporal\Internal\Marshaller\Type\DateTimeType::class
$startedTime
Time of activity start
public
DateTimeInterface
$startedTime
Attributes
- #[Marshal]
- $name: 'StartedTime'
- $type: \Temporal\Internal\Marshaller\Type\DateTimeType::class
$taskQueue
public
string
$taskQueue
= \Temporal\Worker\WorkerFactoryInterface::DEFAULT_TASK_QUEUE
Attributes
- #[Marshal]
- $name: 'TaskQueue'
$taskToken
A correlation token that can be used to complete the activity through `complete` method.
public
string
$taskToken
Tags
Attributes
- #[Marshal]
- $name: 'TaskToken'
$type
Type (name) of the activity.
public
ActivityType
$type
Attributes
- #[Marshal]
- $name: 'ActivityType'
- $type: \Temporal\Internal\Marshaller\Type\ObjectType::class
- $of: \Temporal\Activity\ActivityType::class
$workflowExecution
public
WorkflowExecution|null
$workflowExecution
= null
Attributes
- #[Marshal]
- $name: 'WorkflowExecution'
- $type: \Temporal\Internal\Marshaller\Type\NullableType::class
- $of: \Temporal\Workflow\WorkflowExecution::class
$workflowNamespace
public
string
$workflowNamespace
= 'default'
Attributes
- #[Marshal]
- $name: 'WorkflowNamespace'
$workflowType
public
WorkflowType|null
$workflowType
= null
Attributes
- #[Marshal]
- $name: 'WorkflowType'
- $type: \Temporal\Internal\Marshaller\Type\NullableType::class
- $of: \Temporal\Workflow\WorkflowType::class
Methods
__construct()
ActivityInfo constructor.
public
__construct() : mixed