WSO2 Governance Registry - User Guide [ Documentation Index ]

WSO2 Governance Registry - User Guide

Life Cycle Management

Life Cycle Management(LCM) acts a major role in SOA Governance. The default LCM supported by WSO2 Governance Registry allows users to promote, demote life cycle states of a given resource. Furthermore, it can be configured to use checklists as well.

User Interface

Associating a lifecycle to a resource

In the resource browser view, use the "Lifecycle" portlat to associate a lifecycle from the drop down menu.

Figure 19 : Lifecycle Panel

Figure 20 : Adding a Lifecycle

Promote, Demote and Checklists

Figure 21 : Checklist and Promoting lifecycle

Once a life cycle is associated to the resouce, user is allowed to promote once all checklist items are clicked, if available.

Configuration

Life cycle configuaration could be done either through the <registry-bin-dir>/conf/registry.xml or through a resource. Following configuration specifies the aspect "ServiceLifeCycle" in the registry.

Configuration through registry.xml

<aspect name="ServiceLifeCycle" class="org.wso2.carbon.governance.registry.extensions.aspects.ChecklistLifeCycle">

<configuration type="literal">

<lifecycle>

<state name="Initialize" location="/environment/init">

<checkitem>Requirements Gathered</checkitem> <checkitem>Architecture Finalized</checkitem>

<checkitem>High Level Design Completed</checkitem>

</state>

<state name="Designed" location="/environment/design">

<checkitem>Code Completed</checkitem>

<checkitem>WSDL, Schema Created</checkitem>

<checkitem>QoS Created</checkitem>

</state>

<state name="Created" location="/environment/development">

<checkitem>Effective Inspection Completed</checkitem>

<checkitem>Test Cases Passed</checkitem>

<checkitem>Smoke Test Passed</checkitem>

</state>

<state name="Tested" location="/environment/qa">

<checkitem>Service Configuration</checkitem>

</state>

<state name="Deployed" location="/environment/prod">

<checkitem>Service Configuration</checkitem>

</state>

<state name="Deprecated" location="/environment/support">

</state>

</lifecycle>

</configuration>

</aspect>

Configuration through a resource

Following should appear in the registry.xml file...

<aspect name="ServiceLifeCycle" class="org.wso2.carbon.governance.registry.extensions.aspects.ChecklistLifeCycle">

<configuration type="resource">/configurations/checklist</configuration>

</aspect>

and following should be the content of /configuration/checklist resource...

<lifecycle>

<state name="Initialize" location="/environment/init">

<checkitem>Requirements Gathered</checkitem> <checkitem>Architecture Finalized</checkitem>

<checkitem>High Level Design Completed</checkitem>

</state>

<state name="Designed" location="/environment/design">

<checkitem>Code Completed</checkitem>

<checkitem>WSDL, Schema Created</checkitem>

<checkitem>QoS Created</checkitem>

</state>

<state name="Created" location="/environment/development">

<checkitem>Effective Inspection Completed</checkitem>

<checkitem>Test Cases Passed</checkitem>

<checkitem>Smoke Test Passed</checkitem>

</state>

<state name="Tested" location="/environment/qa">

<checkitem>Service Configuration</checkitem>

</state>

<state name="Deployed" location="/environment/prod">

<checkitem>Service Configuration</checkitem>

</state>

<state name="Deprecated" location="/environment/support">

</state>

</lifecycle>