搬迁协助工作流
hr
此工作流模拟帮助员工搬迁。
完整 FlowZap 代码
employee { # Employee
n1: circle label:"Start Relocation Assistance"
n2: diamond label:"Receive Relocation Assistance request"
n4: rectangle label:"Make Relocation Assistance decision"
n7: rectangle label:"Continue Relocation Assistance process"
n10: circle label:"End Relocation Assistance"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> hr_system.n3.handle(top) [label="Yes/Approved"]
n4.handle(bottom) -> manager.n5.handle(top)
n7.handle(bottom) -> manager.n8.handle(top)
n2.handle(top) -> n4.handle(top) [label="No/Rejected"]
}
manager { # Manager
n5: rectangle label:"Update records for Relocation Assistance"
n8: rectangle label:"Continue Relocation Assistance process"
n5.handle(bottom) -> hr_system.n6.handle(top)
n8.handle(bottom) -> hr_system.n9.handle(top)
}
hr_system { # Hr_System
n3: rectangle label:"Review Relocation Assistance details"
n6: rectangle label:"Continue Relocation Assistance process"
n9: rectangle label:"Continue Relocation Assistance process"
n9.handle(right) -> employee.n10.handle(bottom)
n6.handle(right) -> employee.n7.handle(left)
n3.handle(right) -> manager.n5.handle(left)
}