forked from siemens/wfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwfx.workflow.dau.phased.yml
159 lines (126 loc) · 3.39 KB
/
wfx.workflow.dau.phased.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# SPDX-FileCopyrightText: 2023 Siemens AG
# SPDX-License-Identifier: Apache-2.0
---
name: wfx.workflow.dau.phased
description: a workflow for device artifact updates requiring confirmation steps
groups:
- name: OPEN
description: regular workflow-advancing states
states:
- DOWNLOAD
- DOWNLOADING
- DOWNLOADED
- INSTALL
- INSTALLING
- INSTALLED
- ACTIVATE
- ACTIVATING
- name: CLOSED
description: a successful update's terminal states
states:
- ACTIVATED
- name: FAILED
description: a failed update's terminal states
states:
- TERMINATED
states:
- name: CREATED
description: initial state
- name: DOWNLOAD
description: instruct client to start download
- name: DOWNLOADING
description: download progress update from client
- name: DOWNLOADED
description: client signaled download success
- name: INSTALL
description: instruct client to start installation
- name: INSTALLING
description: installation progress update from client
- name: INSTALLED
description: client signaled installation success
- name: ACTIVATE
description: instruct client to start activation
- name: ACTIVATING
description: client activates update
- name: ACTIVATED
description: client signaled activation success
- name: TERMINATED
description: client aborted update with error
transitions:
- from: CREATED
to: CREATED
eligible: WFX
description: Update job definition fields
- from: CREATED
to: DOWNLOAD
eligible: WFX
description: Job is ready for execution
- from: DOWNLOAD
to: DOWNLOADING
eligible: CLIENT
description: Download preparation successful
- from: DOWNLOAD
to: TERMINATED
eligible: CLIENT
description: Download preparation failed
- from: DOWNLOADING
to: DOWNLOADING
eligible: CLIENT
description: Download in progress
- from: DOWNLOADING
to: TERMINATED
eligible: CLIENT
description: Download failed
- from: DOWNLOADING
to: DOWNLOADED
eligible: CLIENT
description: Download has been successful
- from: DOWNLOADED
to: INSTALL
eligible: WFX
description: Continue with installation stage
- from: INSTALL
to: INSTALLING
eligible: CLIENT
description: Installation preparation successful
- from: INSTALL
to: TERMINATED
eligible: CLIENT
description: Installation preparation failed
- from: INSTALLING
to: INSTALLING
eligible: CLIENT
description: Installation in progress
- from: INSTALLING
to: TERMINATED
eligible: CLIENT
description: Update installation failed
- from: INSTALLING
to: INSTALLED
eligible: CLIENT
description: Update installation has been successful
- from: INSTALLED
to: ACTIVATE
eligible: WFX
action: IMMEDIATE
description: Continue with activation stage
- from: ACTIVATE
to: ACTIVATING
eligible: CLIENT
description: Activation preparation successful
- from: ACTIVATE
to: TERMINATED
eligible: CLIENT
description: Activation preparation failed
- from: ACTIVATING
to: ACTIVATING
eligible: CLIENT
description: Activation in progress
- from: ACTIVATING
to: TERMINATED
eligible: CLIENT
description: Update activation failed
- from: ACTIVATING
to: ACTIVATED
eligible: CLIENT
description: Update activation has been successful