forked from ahochsteger/gmail-processor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gmail2gdrive.puml
65 lines (46 loc) · 1.66 KB
/
gmail2gdrive.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
54
55
56
57
58
59
60
61
62
63
64
65
@startuml gmail2gdrive
' For more information about plantuml see:
' - http://plantuml.com/sequence-diagram
' - https://www.planttext.com/
-> "Gmail2GDrive()": time-based trigger
activate "Gmail2GDrive()"
"Gmail2GDrive()" -> "processRule()": iterate rules
activate "processRule()"
"processRule()" -> "processRule()": search threads
activate "processRule()"
deactivate "processRule()"
"processRule()" -> "processThread()": iterate threads
activate "processThread()"
"processThread()" -> "processMessage()": iterate messages
activate "processMessage()"
"processMessage()" -> "processAttachment()": iterate attachments
activate "processAttachment()"
"processAttachment()" -> "processAttachment()": getOrCreateFolder()
activate "processAttachment()"
deactivate "processAttachment()"
"processAttachment()" -> "processAttachment()": create file
activate "processAttachment()"
deactivate "processAttachment()"
"processAttachment()" -> "processAttachment()": sleep
activate "processAttachment()"
deactivate "processAttachment()"
"processMessage()" <- "processAttachment()"
deactivate "processAttachment()"
"processThread()" <- "processMessage()"
deactivate "processMessage()"
"processThread()" -> "processThread()": generate PDF
activate "processThread()"
deactivate "processThread()"
"processThread()" -> "processThread()": mark as processed
activate "processThread()"
deactivate "processThread()"
"processThread()" -> "processThread()": archive
activate "processThread()"
deactivate "processThread()"
"processRule()" <- "processThread()"
deactivate "processThread()"
"Gmail2GDrive()" <- "processRule()"
deactivate "processRule()"
<- "Gmail2GDrive()"
deactivate "Gmail2GDrive()"
@enduml