mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: Illegal nested workflow node
This commit is contained in:
parent
3923937f6c
commit
2e1c585b5e
@ -32,7 +32,10 @@ public class NestedWorkflowNodeValidator implements NodeValidator {
|
||||
|
||||
@Override
|
||||
public void complexValidate(WorkflowNodeInfoDO node, WorkflowDAG dag) {
|
||||
// do nothing
|
||||
// 这里检查是否循环嵌套(自身引用自身)
|
||||
if (Objects.equals(node.getJobId(), node.getWorkflowId())) {
|
||||
throw new PowerJobException("Illegal nested workflow node,Prohibit circular references!" + node.getNodeName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user