Lifecycle Management of all the applications is handled by the
<lifecycle> element. This section describes how to create a lifecycle that needs to be applied for the applications. The lifecycle includes the stages that are associated with the application, the configurations for switching between stages when promoting or demoting the application, the conditions and validations for promotion and demotion etc.
For this, add the new life cycle stage declaration inside the
<lifecycle> element in
Following sample code explains how to add a life cycle stage called Testing between existing Development and Staging life cycle stages. Assume the Testing stage has two checklists as 'Smoke Test Passed*' and 'Test Cases Passed*' . These checklists ensure that certain standards and policies are satisfied before moving the application to the next stage. This stage also has
Promote as possible transition states.
The elements of the sample configuration are explained below. You can use this information to edit the file according to you requirements.
XML Elements of the Sample Code
|Property Name||Description||Type||Default Value||Fixed Values||Mandatory/Optional|
state - New life cycle is stated using <state> tag.
id - Defines the name of the state.
Datamodel specifies logics for given life cycle. It contains 3 data elements that defines:
Define data model.
checkItems: defines that this element contains the set of check items. It is required to be set to 'checkItems'
transitionExecution: Specify transition states for a given lifecycle.
transitionScripts: Currently App Factory is not using above code block. Therefore keep as it is during new lifecycle.
name - Defines the check item name
|<execution> defines, which life cycle executor class has to execute when a specific transition state has clicked.|
|This attribute specifies the scripting language of the element's contents and overrides the default scripting language.|
|Event specify which life cycle stage has to move when a given transition state has clicked.|
|Define target life cycle.|