aboutsummaryrefslogtreecommitdiffstats
path: root/docs/drools/feature_lifecycle.rst
blob: ca8921310d523a46b089eeca71b5c49586095e31 (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
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

******************
Feature: Lifecycle
******************

.. contents::
    :depth: 3

Summary
^^^^^^^

The "lifecycle" feature enables a PDP-D to work with the Dublin Release Policy architectural framework.

The lifecycle feature maintains three states: TERMINATED, PASSIVE, and ACTIVE.
The PAP (Dublin style) interacts with the lifecycle feature to put a PDP-D in PASSIVE or ACTIVE states.
The PASSIVE state allows for Tosca Operational policies to be deployed.
Policy execution is enabled when the PDP-D transitions to the ACTIVE state.

This feature can coexist side by side with the legacy mode of operation that predates the Dublin release.

Usage
^^^^^

The feature is enabled by default.
The lifecycle "enabled" property  can be toggled with the "features" command line tool available in PDP-D containers.

    .. code-block:: bash
       :caption: PDPD Features Command

        policy stop

        features disable lifecycle     # enable/disable toggles the activation of the feature.

        policy start

End of Document