-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvar_client_service.puml
53 lines (39 loc) · 1.3 KB
/
var_client_service.puml
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
49
50
51
52
53
@startuml
hide empty description
scale max 800 width
<style>
stateDiagram {
LineColor black
}
</style>
skinparam state {
BackgroundColor #white
BackgroundColor<<LongTime>> #9F9
BorderColor #black
}
Title Клиентское приложение
state VarClientService {
state WaitConfiguration <<LongTime>>
state WaitConnectedEvent <<LongTime>>
state SendInitInfoToRouter <<LongTime>>
state WaitEvents <<LongTime>>
state WaitDisconnectedEvent <<LongTime>>
[*] -[#blue]-> WaitConfiguration : start
WaitConfiguration -[#green]-> ApplyConfiguration : new_conf
WaitConfiguration -[#blue]-> [*] : stop
ApplyConfiguration -[#green]-> WaitConnectedEvent : ok
ApplyConfiguration -[#red]-> WaitConfiguration : error
WaitConnectedEvent -[#green]-> SendInitInfoToRouter : connected
WaitConnectedEvent -[#blue]-> [*] : stop
SendInitInfoToRouter -[#green]-> WaitEvents : ok
SendInitInfoToRouter -up[#red]-> Disconnect : error
SendInitInfoToRouter -[#green]-> SendInitInfoToRouter : new_msg
Disconnect -up-> WaitDisconnectedEvent : ok
WaitDisconnectedEvent -up-> ApplyConfiguration : disconnected
WaitEvents -[#red]-> ApplyConfiguration : disconnected
WaitEvents -[#blue]-> [*] : stop
WaitEvents -[#green]-> ProcessMsg : new_msg
ProcessMsg -[#green]-> WaitEvents : ok
ProcessMsg -[#red]-> WaitEvents : error
}
@enduml