库存接收工作流
logistics
库存接收工作流,包括ASN验证、PO匹配、数量计数、损坏检查和WMS库存更新。
完整 FlowZap 代码
Receiving { # Receiving Dock
n1: circle label:"Start"
n2: rectangle label:"Truck arrives at dock"
n3: rectangle label:"Verify PO number"
n4: diamond label:"PO exists?"
n5: rectangle label:"Unload shipment"
n6: rectangle label:"Reject delivery"
n7: circle label:"End"
n1.handle(right) -> n2.handle(left)
n2.handle(right) -> n3.handle(left)
n3.handle(right) -> n4.handle(left)
n4.handle(right) -> n5.handle(left) [label="Yes"]
n4.handle(bottom) -> n6.handle(top) [label="No"]
n5.handle(bottom) -> QualityInspection.n8.handle(top) [label="Inspect"]
n6.handle(right) -> n7.handle(left)
}
QualityInspection { # Quality Inspection
n8: rectangle label:"Count received items"
n9: diamond label:"Quantity matches PO?"
n10: rectangle label:"Inspect for damage"
n11: rectangle label:"Log quantity variance"
n12: diamond label:"Quality acceptable?"
n13: rectangle label:"Accept goods"
n14: rectangle label:"Quarantine items"
n8.handle(right) -> n9.handle(left)
n9.handle(right) -> n10.handle(left) [label="Yes"]
n9.handle(bottom) -> n11.handle(top) [label="No"]
n10.handle(right) -> n12.handle(left)
n11.handle(right) -> n10.handle(top)
n12.handle(right) -> n13.handle(left) [label="Yes"]
n12.handle(bottom) -> n14.handle(top) [label="No"]
n13.handle(bottom) -> Putaway.n15.handle(top) [label="Store"]
n14.handle(bottom) -> Putaway.n20.handle(top) [label="Hold"]
}
Putaway { # Putaway Process
n15: rectangle label:"Generate putaway task"
n16: rectangle label:"Assign storage location"
n17: rectangle label:"Move to bin location"
n18: rectangle label:"Scan bin and item"
n19: rectangle label:"Update inventory system"
n20: rectangle label:"Move to quarantine zone"
n21: rectangle label:"Create vendor claim"
n15.handle(right) -> n16.handle(left)
n16.handle(right) -> n17.handle(left)
n17.handle(right) -> n18.handle(left)
n18.handle(right) -> n19.handle(left)
n19.handle(top) -> Receiving.n7.handle(bottom) [label="Complete"]
n20.handle(right) -> n21.handle(left)
n21.handle(top) -> Receiving.n7.handle(bottom) [label="Claim filed"]
}