fix(process): 修复自定义配置 required 不生效
This commit is contained in:
@@ -63,7 +63,7 @@ class StorageOutNode extends AbstractProcessNode
|
||||
|
||||
// 检查前置步骤要求:必须在库中才能出库
|
||||
$validSteps = ['内镜放入', '结束'];
|
||||
if (!in_array($context->getCurrentStep(), $validSteps)) {
|
||||
if (!$this->isRequiredNode($context->getCurrentStep(), $validSteps)) {
|
||||
Logger::debug('[StorageOutNode] 当前步骤 {} 不符合出库条件', [$context->getCurrentStep()]);
|
||||
return CanHandleResult::cannotHandle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user