Welcome to FlowZap, the App to diagram with Speed, Clarity and Control.

重复节点 ID 工作流

edge-cases

此工作流建模在不同泳道中重复使用相同节点 ID 的情况。

完整 FlowZap 代码

laneA { # Lanea
  n1: circle label:"Start Duplicate Node Ids"
  n2: rectangle label:"Duplicate Node Ids step 4"
  n1: rectangle label:"Duplicate Node Ids step 7"
  n2: circle label:"End Duplicate Node Ids"

  n1.handle(bottom) -> laneB.n2.handle(top) [label="Success"]
  n2.handle(bottom) -> laneB.n1.handle(top) [label="Valid"]
  n1.handle(bottom) -> laneB.n2.handle(top) [label="Next"]
}
laneB { # Laneb
  n2: rectangle label:"Duplicate Node Ids step 2"
  n1: rectangle label:"Duplicate Node Ids step 5"
  n2: diamond label:"Duplicate Node Ids step 8"

  n2.handle(bottom) -> laneC.n1.handle(top)
  n1.handle(bottom) -> laneC.n2.handle(top)
  n2.handle(bottom) -> laneC.n1.handle(top)
  n2.handle(right) -> laneA.n1.handle(right) [label="Retry/Rejected"]
}
laneC { # Lanec
  n1: rectangle label:"Duplicate Node Ids step 3"
  n2: rectangle label:"Duplicate Node Ids step 6"
  n1: rectangle label:"Duplicate Node Ids step 9"

  n1.handle(bottom) -> laneA.n2.handle(top)
  n2.handle(bottom) -> laneA.n1.handle(top)
  n1.handle(bottom) -> laneA.n2.handle(top)
}

相关模板