事故根因与预防工作流
事故处理工作流:记录当前状态、追溯根因、验证控制措施,并在结案前制定预防方案。
完整 FlowZap 代码
将以下 FlowZap 代码复制并粘贴到您的 FlowZap 账户的项目中,即可查看此模板图。
InitialIncident { # InitialIncident
n1: circle label:"Incident Detected"
n2: rectangle label:"Document Current State"
n3: diamond label:"Root Cause Identified?"
n4: rectangle label:"Conduct Root Cause Analysis"
n5: rectangle label:"Create Prevention Protocol"
n6: rectangle label:"Monitor Implementation"
n3.handle(right) -> n5.handle(left) [label="Yes - Proceed"]
n1.handle(right) -> n2.handle(left)
n2.handle(right) -> n3.handle(left)
n5.handle(right) -> n6.handle(left)
n6.handle(right) -> PreventionImplementation.n7.handle(left)
n3.handle(top) -> n4.handle(left) [label="No - Investigate"]
n4.handle(bottom) -> n5.handle(top)
}
PreventionImplementation { # PreventionImplementation
n7: rectangle label:"Update Standard Procedures"
n8: rectangle label:"Train Affected Staff"
n9: diamond label:"Controls Effective?"
n10: circle label:"Incident Prevented"
n9.handle(right) -> n10.handle(left) [label="Yes"]
n7.handle(right) -> n8.handle(left)
n9.handle(bottom) -> n7.handle(bottom) [label="No - Revise"]
n8.handle(right) -> n9.handle(left)
}
安装 MCP 包npm install -g flowzap-mcpMCP 文档