Query a workflow in a specific version in the StepHandler

The StepHandler must run a specific version of a workflow. Therefore, we need to
query this specific Workflow.

[MAILPOET-4430]
This commit is contained in:
David Remer
2022-08-09 15:27:01 +03:00
committed by Veljko V
parent 9f2ae81835
commit 0d1b51c7ba

View File

@ -90,9 +90,9 @@ class StepHandler {
throw Exceptions::workflowRunNotRunning($workflowRunId, $workflowRun->getStatus());
}
$workflow = $this->workflowStorage->getWorkflow($workflowRun->getWorkflowId());
$workflow = $this->workflowStorage->getWorkflow($workflowRun->getWorkflowId(), $workflowRun->getVersionId());
if (!$workflow) {
throw Exceptions::workflowNotFound($workflowRun->getWorkflowId());
throw Exceptions::workflowVersionNotFound($workflowRun->getWorkflowId(), $workflowRun->getVersionId());
}
// complete workflow run