Welcome to FlowZap, the App to diagram with Speed, Clarity and Control.

授权流程工作流程

patterns

此工作流程模拟在操作运行前检查用户权限。

完整 FlowZap 代码

user { # User
  n1: circle label:"Start Authorization Flow"
  n4: rectangle label:"Execute Authorization Flow action"
  n7: rectangle label:"Monitor Authorization Flow status"
  n10: circle label:"End Authorization Flow"
  n1.handle(bottom) -> app.n2.handle(top)
  n4.handle(bottom) -> app.n5.handle(top)
  n7.handle(bottom) -> app.n8.handle(top)
}

app { # App
  n2: rectangle label:"Receive Authorization Flow event"
  n5: rectangle label:"Record Authorization Flow outcome"
  n8: rectangle label:"Monitor Authorization Flow status"
  n2.handle(bottom) -> service.n3.handle(top) [label="Next"]
  n5.handle(bottom) -> service.n6.handle(top) [label="Done"]
  n8.handle(bottom) -> service.n9.handle(top) [label="Processed"]
}

service { # Service
  n3: diamond label:"Validate Authorization Flow conditions"
  n6: rectangle label:"Monitor Authorization Flow status"
  n9: rectangle label:"Monitor Authorization Flow status"
  n9.handle(right) -> user.n10.handle(left)
  n6.handle(right) -> user.n7.handle(left)
  n3.handle(left) -> app.n2.handle(left) [label="Retry/Rejected"]
  n3.handle(right) -> user.n4.handle(left)
}

相关模板