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

Duplicate Node Ids Workflow

edge-cases

This workflow models the same node IDs reused in different lanes.

Full FlowZap Code

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)
}

Related templates