20 语法完备工作流
syntax-primitives
此工作流对使用大多数可用语言特性的单个工作流建模。
完整 FlowZap 代码
laneA { # Lane A
n1: circle label:"Start 20 Syntax Complete"
n4: rectangle label:"20 Syntax Complete step 4"
n7: circle label:"End 20 Syntax Complete"
n1.handle(bottom) -> laneB.n2.handle(top)
n4.handle(bottom) -> laneB.n5.handle(top)
}
laneB { # Lane B
n2: rectangle label:"20 Syntax Complete step 2"
n5: rectangle label:"20 Syntax Complete step 5"
n2.handle(bottom) -> laneC.n3.handle(top)
n5.handle(bottom) -> laneC.n6.handle(top)
}
laneC { # Lane C
n3: rectangle label:"20 Syntax Complete step 3"
n6: rectangle label:"20 Syntax Complete step 6"
n3.handle(right) -> laneA.n4.handle(left)
n6.handle(right) -> laneA.n7.handle(left)
}