Create message and handler for canceling stale workflows

This commit is contained in:
2024-08-12 11:44:31 +02:00
committed by Julien Fastré
parent 860ae5cedf
commit 34edb02cd0
2 changed files with 38 additions and 11 deletions

View File

@@ -4,12 +4,12 @@ namespace Chill\MainBundle\Service\Workflow;
class CancelStaleWorkflow
{
public function __construct(public array $workflowIds)
public function __construct(public int $workflowId)
{
}
public function getWorkflowIds(): array
public function getWorkflowId(): int
{
return $this->workflowIds;
return $this->workflowId;
}
}