Allow custom validation for all step types
[MAILPOET-4659]
This commit is contained in:
@ -44,12 +44,9 @@ class ValidStepValidationRule implements WorkflowNodeVisitor {
|
||||
}
|
||||
|
||||
try {
|
||||
if ($registryStep instanceof Action) {
|
||||
$subjects = $this->collectSubjects($workflow, $node->getParents());
|
||||
$args = new StepValidationArgs($workflow, $step, $subjects);
|
||||
$registryStep->validate($args);
|
||||
}
|
||||
|
||||
$subjects = $this->collectSubjects($workflow, $node->getParents());
|
||||
$args = new StepValidationArgs($workflow, $step, $subjects);
|
||||
$registryStep->validate($args);
|
||||
} catch (Throwable $e) {
|
||||
$this->errors[$step->getId()] = [
|
||||
'step_id' => $step->getId(),
|
||||
|
Reference in New Issue
Block a user