空泳道工作流
edge-cases
此工作流建模一个没有任何节点的泳道。
完整 FlowZap 代码
laneA { # Lanea
n1: circle label:"Start Empty Lane"
n4: rectangle label:"Empty Lane step 4"
n7: rectangle label:"Empty Lane step 7"
n10: circle label:"End Empty Lane"
n1.handle(bottom) -> laneB.n2.handle(top) [label="Success"]
n4.handle(bottom) -> laneB.n5.handle(top) [label="Valid"]
n7.handle(bottom) -> laneB.n8.handle(top) [label="Next"]
}
laneB { # Laneb
n2: rectangle label:"Empty Lane step 2"
n5: rectangle label:"Empty Lane step 5"
n8: rectangle label:"Empty Lane step 8"
n2.handle(bottom) -> laneC.n3.handle(top)
n5.handle(bottom) -> laneC.n6.handle(top)
n8.handle(bottom) -> laneC.n9.handle(top)
}
laneC { # Lanec
n3: diamond label:"Empty Lane step 3"
n6: rectangle label:"Empty Lane step 6"
n9: rectangle label:"Empty Lane step 9"
n3.handle(bottom) -> laneA.n4.handle(top)
n3.handle(right) -> laneB.n2.handle(right) [label="Retry/Rejected"]
n6.handle(bottom) -> laneA.n7.handle(top)
n9.handle(bottom) -> laneA.n10.handle(top)
}