summaryrefslogtreecommitdiff
path: root/tests/temporal/Workflow/ExceptionalWorkflow.php
blob: 9a3e907fd5fb11b025df7d20d8478cd4b8bfb360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace Temporal\Tests\Workflow;

use Temporal\Activity\ActivityOptions;
use Temporal\Tests\Activity\SimpleActivity;
use Temporal\Workflow;
use Temporal\Workflow\WorkflowMethod;

#[Workflow\WorkflowInterface]
class ExceptionalWorkflow
{
    #[WorkflowMethod(name: 'ExceptionalWorkflow')]
    public function handler()
    {
        throw new \RuntimeException("workflow error");
    }
}