Skip to content

Commit 2801ff6

Browse files
committed
Merge branch 'feature/core' of https://github.com/solutionforest/workflow-engine-laravel into feature/core
* 'feature/core' of https://github.com/solutionforest/workflow-engine-laravel: Fix styling # Conflicts: # packages/workflow-engine-core/src/Events/WorkflowCancelled.php # packages/workflow-engine-core/src/Events/WorkflowCompletedEvent.php # packages/workflow-engine-core/src/Events/WorkflowFailedEvent.php
2 parents e670a28 + 0acab8d commit 2801ff6

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace SolutionForest\WorkflowEngine\Events;
4+
5+
class WorkflowCancelled
6+
{
7+
public function __construct(
8+
public readonly string $workflowId,
9+
public readonly string $name,
10+
public readonly string $reason = ''
11+
) {}
12+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace SolutionForest\WorkflowEngine\Events;
4+
5+
use SolutionForest\WorkflowEngine\Core\WorkflowInstance;
6+
7+
class WorkflowCompletedEvent
8+
{
9+
public WorkflowInstance $instance;
10+
11+
public function __construct(WorkflowInstance $instance)
12+
{
13+
$this->instance = $instance;
14+
}
15+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace SolutionForest\WorkflowEngine\Events;
4+
5+
use SolutionForest\WorkflowEngine\Core\WorkflowInstance;
6+
7+
class WorkflowFailedEvent
8+
{
9+
public WorkflowInstance $instance;
10+
11+
public \Exception $exception;
12+
13+
public function __construct(WorkflowInstance $instance, \Exception $exception)
14+
{
15+
$this->instance = $instance;
16+
$this->exception = $exception;
17+
}
18+
}

0 commit comments

Comments
 (0)