-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathapp-fsm.txt
49 lines (30 loc) · 1.03 KB
/
app-fsm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@startuml
title app FSM
scale 350 width
[*] --> Candidate: scan apps in space
state NotEnrolled {
state Candidate {
}
Candidate --> Enrolled: [auto-enrollment period tick \n && qualifies ]
NotEnrolled --> Enrolled: [bind request]
state OptedOut {
}
}
NotEnrolled: onEntry: release any queued traffic \n& unregister-route-service if any
state Enrolled {
state Active {
Started --> Stopping : [inactivity threshold met] \n/ register-route-service && stop
Starting --> Starting: [incoming traffic received]\n / queue-traffic
Starting --> Started: [start complete]\n / release queued traffic & unregister-route-service
}
state Sleeping {
state Stopping {
}
Stopping --> Stopped: [stop completes]
Stopped --> Starting: [incoming traffic received] / \n queue-traffic & start
Stopped --> Starting: [start request]
}
}
Enrolled --> Candidate: [unbind request\n && forced-enrollment]
Enrolled --> OptedOut: [unbind request\n && standard-enrollment]
@enduml