watcher.objects.action_plan
Module¶An Action Plan is a flow of Actions that should be executed in order to satisfy a given Goal.
An Action Plan is generated by Watcher when an Audit is successful which implies that the Strategy which was used has found a Solution to achieve the Goal of this Audit.
In the default implementation of Watcher, an Action Plan is only composed of successive Actions (i.e., a Workflow of Actions belonging to a unique branch).
However, Watcher provides abstract interfaces for many of its components, allowing other implementations to generate and handle more complex Action Plan(s) composed of two types of Action Item(s):
An Action Plan may be described using standard workflow model description formats such as Business Process Model and Notation 2.0 (BPMN 2.0) or Unified Modeling Language (UML).
An Action Plan has a life-cycle and its current state may be one of the following:
watcher.objects.action_plan.
ActionPlan
(context=None, **kwargs)[source]¶Bases: watcher.objects.base.WatcherPersistentObject
, watcher.objects.base.WatcherObject
, watcher.objects.base.WatcherObjectDictCompat
create
(*args, **kwargs)[source]¶Create an ActionPlan
record in the DB.
Returns: | An ActionPlan object. |
---|
get
(context, *args, **kwargs)[source]¶Find a action_plan based on its id or uuid and return a Action object.
Parameters: |
|
---|---|
Returns: | a |
get_by_id
(context, *args, **kwargs)[source]¶Find a action_plan based on its integer id and return a ActionPlan object.
Parameters: |
|
---|---|
Returns: | a |
get_by_uuid
(context, *args, **kwargs)[source]¶Find a action_plan based on uuid and return a ActionPlan
object.
Parameters: |
|
---|---|
Returns: | a |
list
(context, *args, **kwargs)[source]¶Return a list of ActionPlan objects.
Parameters: |
|
---|---|
Returns: | a list of |
refresh
(*args, **kwargs)[source]¶Loads updates for this Action plan.
Loads a action_plan with the same uuid from the database and checks for updated attributes. Updates are applied from the loaded action_plan column by column, if there are any updates. :param eager: Load object fields if True (Default: False)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.