blob: bf65ccb2a4ba363c3d511be19446efebc4d312f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace Temporal\Tests\Workflow;
use Temporal\Activity\ActivityOptions;
use Temporal\Common\RetryOptions;
use Temporal\Tests\Activity\SimpleActivity;
use Temporal\Workflow;
use Temporal\Workflow\WorkflowMethod;
#[Workflow\WorkflowInterface]
class ComplexExceptionalWorkflow
{
#[WorkflowMethod(name: 'ComplexExceptionalWorkflow')]
public function handler()
{
$child = Workflow::newChildWorkflowStub(
ExceptionalActivityWorkflow::class,
Workflow\ChildWorkflowOptions::new()->withRetryOptions(
(new RetryOptions())->withMaximumAttempts(1)
)
);
return yield $child->handler();
}
}
|