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:
@ -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
|
||||
|
Reference in New Issue
Block a user