Merge "Invalid states for Action Plan in the glossary"
This commit is contained in:
@@ -361,6 +361,28 @@ State Machine diagrams
|
|||||||
Audit State Machine
|
Audit State Machine
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
An :ref:`Audit <audit_definition>` has a life-cycle and its current state may
|
||||||
|
be one of the following:
|
||||||
|
|
||||||
|
- **PENDING** : a request for an :ref:`Audit <audit_definition>` has been
|
||||||
|
submitted (either manually by the
|
||||||
|
:ref:`Administrator <administrator_definition>` or automatically via some
|
||||||
|
event handling mechanism) and is in the queue for being processed by the
|
||||||
|
:ref:`Watcher Decision Engine <watcher_decision_engine_definition>`
|
||||||
|
- **ONGOING** : the :ref:`Audit <audit_definition>` is currently being
|
||||||
|
processed by the
|
||||||
|
:ref:`Watcher Decision Engine <watcher_decision_engine_definition>`
|
||||||
|
- **SUCCEEDED** : the :ref:`Audit <audit_definition>` has been executed
|
||||||
|
successfully and at least one solution was found
|
||||||
|
- **FAILED** : an error occured while executing the
|
||||||
|
:ref:`Audit <audit_definition>`
|
||||||
|
- **DELETED** : the :ref:`Audit <audit_definition>` is still stored in the
|
||||||
|
:ref:`Watcher database <watcher_database_definition>` but is not returned
|
||||||
|
any more through the Watcher APIs.
|
||||||
|
- **CANCELLED** : the :ref:`Audit <audit_definition>` was in **PENDING** or
|
||||||
|
**ONGOING** state and was cancelled by the
|
||||||
|
:ref:`Administrator <administrator_definition>`
|
||||||
|
|
||||||
The following diagram shows the different possible states of an
|
The following diagram shows the different possible states of an
|
||||||
:ref:`Audit <audit_definition>` and what event makes the state change to a new
|
:ref:`Audit <audit_definition>` and what event makes the state change to a new
|
||||||
value:
|
value:
|
||||||
@@ -373,6 +395,31 @@ value:
|
|||||||
Action Plan State Machine
|
Action Plan State Machine
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
An :ref:`Action Plan <action_plan_definition>` has a life-cycle and its current
|
||||||
|
state may be one of the following:
|
||||||
|
|
||||||
|
- **RECOMMENDED** : the :ref:`Action Plan <action_plan_definition>` is waiting
|
||||||
|
for a validation from the :ref:`Administrator <administrator_definition>`
|
||||||
|
- **PENDING** : a request for an :ref:`Action Plan <action_plan_definition>`
|
||||||
|
has been submitted (due to an
|
||||||
|
:ref:`Administrator <administrator_definition>` executing an
|
||||||
|
:ref:`Audit <audit_definition>`) and is in the queue for
|
||||||
|
being processed by the :ref:`Watcher Applier <watcher_applier_definition>`
|
||||||
|
- **ONGOING** : the :ref:`Action Plan <action_plan_definition>` is currently
|
||||||
|
being processed by the :ref:`Watcher Applier <watcher_applier_definition>`
|
||||||
|
- **SUCCEEDED** : the :ref:`Action Plan <action_plan_definition>` has been
|
||||||
|
executed successfully (i.e. all :ref:`Actions <action_definition>` that it
|
||||||
|
contains have been executed successfully)
|
||||||
|
- **FAILED** : an error occured while executing the
|
||||||
|
:ref:`Action Plan <action_plan_definition>`
|
||||||
|
- **DELETED** : the :ref:`Action Plan <action_plan_definition>` is still
|
||||||
|
stored in the :ref:`Watcher database <watcher_database_definition>` but is
|
||||||
|
not returned any more through the Watcher APIs.
|
||||||
|
- **CANCELLED** : the :ref:`Action Plan <action_plan_definition>` was in
|
||||||
|
**PENDING** or **ONGOING** state and was cancelled by the
|
||||||
|
:ref:`Administrator <administrator_definition>`
|
||||||
|
|
||||||
|
|
||||||
The following diagram shows the different possible states of an
|
The following diagram shows the different possible states of an
|
||||||
:ref:`Action Plan <action_plan_definition>` and what event makes the state
|
:ref:`Action Plan <action_plan_definition>` and what event makes the state
|
||||||
change to a new value:
|
change to a new value:
|
||||||
|
|||||||
@@ -49,24 +49,9 @@ standard workflow model description formats such as
|
|||||||
`Business Process Model and Notation 2.0 (BPMN 2.0) <http://www.omg.org/spec/BPMN/2.0/>`_
|
`Business Process Model and Notation 2.0 (BPMN 2.0) <http://www.omg.org/spec/BPMN/2.0/>`_
|
||||||
or `Unified Modeling Language (UML) <http://www.uml.org/>`_.
|
or `Unified Modeling Language (UML) <http://www.uml.org/>`_.
|
||||||
|
|
||||||
An :ref:`Action Plan <action_plan_definition>` has a life-cycle and its current
|
To see the life-cycle and description of
|
||||||
state may be one of the following:
|
:ref:`Action Plan <action_plan_definition>` states, visit :ref:`the Action Plan state
|
||||||
|
machine <action_plan_state_machine>`.
|
||||||
- **RECOMMENDED** : the :ref:`Action Plan <action_plan_definition>` is waiting
|
|
||||||
for a validation from the :ref:`Administrator <administrator_definition>`
|
|
||||||
- **ONGOING** : the :ref:`Action Plan <action_plan_definition>` is currently
|
|
||||||
being processed by the :ref:`Watcher Applier <watcher_applier_definition>`
|
|
||||||
- **SUCCEEDED** : the :ref:`Action Plan <action_plan_definition>` has been
|
|
||||||
executed successfully (i.e. all :ref:`Actions <action_definition>` that it
|
|
||||||
contains have been executed successfully)
|
|
||||||
- **FAILED** : an error occured while executing the
|
|
||||||
:ref:`Action Plan <action_plan_definition>`
|
|
||||||
- **DELETED** : the :ref:`Action Plan <action_plan_definition>` is still
|
|
||||||
stored in the :ref:`Watcher database <watcher_database_definition>` but is
|
|
||||||
not returned any more through the Watcher APIs.
|
|
||||||
- **CANCELLED** : the :ref:`Action Plan <action_plan_definition>` was in
|
|
||||||
**PENDING** or **ONGOING** state and was cancelled by the
|
|
||||||
:ref:`Administrator <administrator_definition>`
|
|
||||||
""" # noqa
|
""" # noqa
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|||||||
@@ -25,28 +25,8 @@ on a given :ref:`Cluster <cluster_definition>`.
|
|||||||
For each :ref:`Audit <audit_definition>`, the Watcher system generates an
|
For each :ref:`Audit <audit_definition>`, the Watcher system generates an
|
||||||
:ref:`Action Plan <action_plan_definition>`.
|
:ref:`Action Plan <action_plan_definition>`.
|
||||||
|
|
||||||
An :ref:`Audit <audit_definition>` has a life-cycle and its current state may
|
To see the life-cycle and description of an :ref:`Audit <audit_definition>`
|
||||||
be one of the following:
|
states, visit :ref:`the Audit State machine <audit_state_machine>`.
|
||||||
|
|
||||||
- **PENDING** : a request for an :ref:`Audit <audit_definition>` has been
|
|
||||||
submitted (either manually by the
|
|
||||||
:ref:`Administrator <administrator_definition>` or automatically via some
|
|
||||||
event handling mechanism) and is in the queue for being processed by the
|
|
||||||
:ref:`Watcher Decision Engine <watcher_decision_engine_definition>`
|
|
||||||
- **ONGOING** : the :ref:`Audit <audit_definition>` is currently being
|
|
||||||
processed by the
|
|
||||||
:ref:`Watcher Decision Engine <watcher_decision_engine_definition>`
|
|
||||||
- **SUCCEEDED** : the :ref:`Audit <audit_definition>` has been executed
|
|
||||||
successfully (note that it may not necessarily produce a
|
|
||||||
:ref:`Solution <solution_definition>`).
|
|
||||||
- **FAILED** : an error occured while executing the
|
|
||||||
:ref:`Audit <audit_definition>`
|
|
||||||
- **DELETED** : the :ref:`Audit <audit_definition>` is still stored in the
|
|
||||||
:ref:`Watcher database <watcher_database_definition>` but is not returned
|
|
||||||
any more through the Watcher APIs.
|
|
||||||
- **CANCELLED** : the :ref:`Audit <audit_definition>` was in **PENDING** or
|
|
||||||
**ONGOING** state and was cancelled by the
|
|
||||||
:ref:`Administrator <administrator_definition>`
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|||||||
Reference in New Issue
Block a user