summaryrefslogtreecommitdiffstats
path: root/docs/clamp/acm/acm-states.rst
blob: a6cfc2e1981d719684bcfb543a1c0d73db7b79e9 (plain)
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
.. This work is licensed under a Creative Commons Attribution 4.0 International License.

.. _acm-states-label:

ACM States
##########

.. contents::
    :depth: 4

Automation Composition Management manages a number of states of various types to manage the lifecycle of compositions. Those states are described here. Please also see the ACM System Level Dialogues page to see the system dialogues that change states and how states interrelate in detail. Please also see ITU Recommendation X.731, which is reflected in the states of AC Element Instances.

Participant Replica State
=========================
Any participant could have more than one replica.
Participant replica states are NOT managed by ACM but the state of a participant replica is recorded and supervised by ACM.

.. image:: images/acm-states/ParticipantStates.png


Automation Composition Type State
=================================
The states that an Automation Composition Type can have, are shown in the diagram below.

.. image:: images/acm-states/AcTypeStates.png

Automation Composition Element Type State
=========================================
The states that an Automation Composition Element Type can have on ACM Runtime are shown in the diagram below.

.. image:: images/acm-states/AcElementTypeStatesOnRuntime.png

The states that an Automation Composition Element Type can have on a Participant are shown in the diagram below.

.. image:: images/acm-states/AcElementTypeStatesOnPpnt.png

The states diagram below, shows the fail and timeout scenario.
In that diagram the state is presented using this combination [ Composition Element Type State : Composition Type State : StateChangeResult ].

.. image:: images/acm-states/AcTypeStatesFail.png

Automation Composition Instance State
=====================================
The states that an Automation Composition Instance can have are shown in the diagram below.

.. image:: images/acm-states/AcInstanceStates.png

Automation Composition Element Instance State
=============================================
The states that an Automation Composition Element Instance can have on ACM Runtime are shown in the diagram below.

.. image:: images/acm-states/AcElementInstanceStatesOnRuntime.png

The states that an Automation Composition Element Instance can have on a Participant are shown in the diagram below.

.. image:: images/acm-states/AcElementInstanceStatesOnPpnt.png

Automation Composition State with fail and timeout
==================================================
The states that an Automation Composition Element Instance can have for each flow, are shown in the diagrams below.
For each diagram the state is presented using this combination [ Instance Element State : Instance State : StateChangeResult ].

Deploy
------

.. image:: images/acm-states/AcInstanceStatesDeploy.png

Update
------

.. image:: images/acm-states/AcInstanceStatesUpdate.png

Migrate
-------

.. image:: images/acm-states/AcInstanceStatesMigrate.png

Delete
------

.. image:: images/acm-states/AcInstanceStatesDelete.png

How State are saved in DB
=========================
Any state will be saved in DB as number:

Participant Replica State
-------------------------

+--------------------+------------+
|  ParticipantState  |  Database  |
+====================+============+
|  ON_LINE           |         0  |
+--------------------+------------+
|  OFF_LINE          |         1  |
+--------------------+------------+


Automation Composition Type State
---------------------------------

+----------------+------------+
|  AcTypeState   |  Database  |
+================+============+
|  COMMISSIONED  |         0  |
+----------------+------------+
|  PRIMING       |         1  |
+----------------+------------+
|  PRIMED        |         2  |
+----------------+------------+
|  DEPRIMING     |         3  |
+----------------+------------+

Automation Composition Instance State
=====================================

+---------------+------------+
|  DeployState  |  Database  |
+===============+============+
|  DEPLOYED     |         0  |
+---------------+------------+
|  DEPLOYING    |         1  |
+---------------+------------+
|  UNDEPLOYED   |         2  |
+---------------+------------+
|  UNDEPLOYING  |         3  |
+---------------+------------+
|  DELETING     |         4  |
+---------------+------------+
|  DELETED      |         5  |
+---------------+------------+
|  UPDATING     |         6  |
+---------------+------------+
|  MIGRATING    |         7  |
+---------------+------------+


End of Document