Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Users can change the default lifecycle model configuration by editing configurations.xml  file  using the information given below.

File Details

  • File Name: configurations.xml
  • Location: $CARBON_HOME\repository\resources
  • Purpose:

XML Elements  

Make sure to go through the following lifecycle configuration definitions when adding a new custom lifecycle via the ES Management Console. 

Note

WSO2 Enterprise Store uses the lifecycle API provided by WSO2 Governance Registry, but does not support all the lifecycle elements provided by the WSO2 Governance Registry.

XML elements

Click on an element to view its details along with sub-element details if any.

Anchor
Top
Top

  • <aspect>
  •       <configuration>
  •            <lifecycle>
  •                <scxml>
  •                     <state>
  •                          <datamodel>
  •                               <data>
  •                                     <item>
  •                                           <permissions>
  •                                                 <permission>
  •                                           <validations>
  •                                                 <validation>
  •                                                       <parameter>
  •                                     <js>
  •                                           <console>
  •                                                 <script>
  •                                           <server>
  •                                                 <script>
  •                                     <execution>
  •                                           <parameter>
  •                                     <ui>                                     <execution>
  •                                           <parameter>
  •                          <transition>

 

...

...

Anchor
aspect
aspect

<aspect> 

XML Syntax<aspect name="" class="">
DescriptionThis element used defines lifeCycles as aspects.
Type 
Default Value 
Fixed Values 
the various aspects of the lifecycle.
Mandatory/OptionalMandatory
Samples 
Attributes

...

Type 
AttributeDescriptionDefault ValueValuesFixed ValuesMandatory/
Optional
Notes 
nameContains Defines the name of the lifeCyclelifecycle. Governance Registry As ES does not allow you to create two lifeCycles lifecycles with the same name., the name of the lifecycle should be unique.N/A Mandatory 
class

Defines the class that is associated with the

lifeCycle

lifecycle.

 

org.wso2.carbon.governance.

registry.extensions.aspects.

DefaultLifeCycle

 MandatoryA user has the ability to define his/her own class as shown here , but the default class provided with the Governance Registry distribution has the capability to handle any configuration that follows the above template.
Sample Implementations
Note
  • The default class in ES extends the default WSO2 Governance Registry aspect class and includes the ES permission model. Therefore, if you wish to use the ES permission model, it is mandatory to use the default ES class for the aspect.
  • As ES uses the lifecycle API provided by WSO2 Governance Registry, if required you can define your own class, but by doing this you will not have access to the permission model in ES.

org.wso2.jaggery.scxml.aspects.
JaggeryTravellingPermissionLifeCycle

 

 Mandatory
Sample implementations
Code Block
languagehtml/xml
<aspect name="Test" class="org.wso2.carbon.governance.registry.extensionsjaggery.scxml.aspects.DefaultLifeCycleJaggeryTravellingPermissionLifeCycle">

Back to Top ^

...

Anchor
configuration
configuration

<configuration> 

XML Syntax<configuration type="">
DescriptionThis element describes the way of lifecycle configuration is setup
Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalMandatory
Attributes of the Element
in which the lifecycle configurations are setup.
Mandatory/OptionalMandatory
Attributes
Type
AttributeDescriptionDefault ValueFixed ValuesMandatory/
Optional
Notes
typeDefine Defines how the lifecycle configuration options is configured.N/A

literal - If the configuration is setup through the management console

resource - If the configuration is setup through registry.xml

Mandatory 
Sample Implementations

This option depicts that the lifecycle configurations are setup using the ES Management Console.

Mandatory
Sample implementations
Code Block
languagehtml/xml
<configuration type="resourceliteral">

Back to Top ^

...

Anchor
scxml
scxml

<scxml> 

XML Syntax<scxml xmlns="" version="" initialstate=""/>
Description

This is the element that contains the new, SCXML-based configuration. State Chart XML (SCXML is one of many standards supported by the WSO2 Governance Registry. Read more on Supported APIs & Standards for a complete list of standards supported by WSO2 Governance Registry.) is an open standard that ES supports. Up to this point of the configuration, there can be only one of each of the elements described above. They all provide meta data metadata about the lifecycle (name, class, and other information). The elements that appear after this one contain subsequent elements are the actual SCXML configuration.

Type 
Default Value 
Fixed Values 
Mandatory/OptionalMandatory/OptionalMandatory
Attributes

...

Type 
AttributeDescriptionDefault ValueFixed ValuesMandatory/OptionalNotes
xmlnsState Chart XML (SCXML) specification. 
http://www.w3.org/2005/07/scxml
Mandatory 
versionVersion number of the State Chart XML (SCXML).  1.0 Optional  
initialstate

Defines the initial state of the lifecycle. The initial state does not have to be the first state of the configuration. AlsoFurthermore, by changing the value of this attribute, a user you can quickly easily modify the initial state and the flow of the lifeCycleyour lifecycle.

     
Sample

...

implementations
Code Block
languagehtml/xml
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initialstate="">

Back to Top ^

...

...

Anchor
state
state

<state> 

XML Syntax<state id="">
Description

The state element defines Defines the states of the lifecycle. A lifecycle can have multiple states , and in the configuration, if needed, you can define more than one state element can be given.

Type 
Default ValueN/A
Fixed Values 

in the configuration.

Mandatory/OptionalMandatory
Attributes

...

Type
AttributeDescriptionDefault ValueFixed ValuesMandatory/
Optional
Notes
idThe id attribute of the state element defines the

Defines the name of

that

the lifecycle state.

 N/A Mandatory 
Sample Implementations
Note

ES does not support multiple lifecycle states with the same name. Therefore, make sure to have unique names for all the state names within a lifecycle.

N/A Mandatory
Sample implementations
Governance Registry does not support multiple states with the same name and, therefore, all the state names of a lifecycle should be unique.
Code Block
languagehtml/xml
<state id="Development"></state>
Info

 

Back to Top ^

...

...

Anchor
datamodel
datamodel

<datamodel> 

XML Syntax<datamodel>
Description

This element contains all the custom elements, which are defined in the lifeCycles lifecycle model. The Based on the SCXML specification allows users to , you can define a data model to a lifecycle state and you can use this extension is used to define custom elements.

Type

 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional

This element has no attributes.

Back to Top ^

...

...

Anchor
data
data

<data> 

XML Syntax<data name=""/>
Description

Custom data elements (according to the SCXML specification) serve to define check items , transition permission, transition validations, transition scripts, transition executions, and transition UIsand transition executions. This element describes the data of its child elements.

Type 

Mandatory/OptionalOptional
Attributes
Optional
AttributeDescriptionDefault ValueN/A
Fixed Values 
Fixed ValuesMandatory/
Optional
Attributes of the Element
checkItems - If the user is
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
name

Transition Validators, Transition Executors, Transition User Interfaces and Transition Scripts are one of many well-defined extension points supported by the WSO2 Governance Registry. Read more on Supported Extension Points for a complete list of extension points supported by WSO2 Governance Registry.

The user can define only one such element of each kind, since the underline implementation will ignore multiple elements and take name

Defines the extension point (e.g., Transition Executors) that is used in the lifecycle.

You can define only one extension point of a kind, because the underlined implementation ignores multiple elements and takes only one into consideration.

For transitionApproval, the following rules apply regarding roles and votes:

    • roles="" - Any user can vote
    • roles="admin" - Only users with an admin role can vote
    • votes="2" - Two votes are required for approval.
  

 
  • checkItems - If the user is defining check items as its child elements.
  • transitionValidations transitionExecution - If the data element defines transition validations.
  • transitionPermission - If the data element defines transition permissions.
  • transitionScripts - If the data element describes the transition scripts.
  • transitionExecution - If the data element defines programmable executions for transitions.
  • transitionUI - If the data element defines custom UIs accepting user input for transitions.
  • transitionApproval - If the data element defines lifecycle transition need user approvals.
Mandatory 
Sample Implementations

 

...

languagehtml/xml

...

  • programmable executions for transitions.
Mandatory
Sample implementations
Code Block
<data name="checkItems">
   <item name="Effective Inspection Completed" forEvent="" />
   <item name="Test Cases Passed" forEvent="" />
   	<item name="WSDL,Smoke SchemaTest CreatedPassed" forEvent="" />
</data>

<data name="transitionValidationtransitionExecution">
 	<validation  <execution forEvent="Promote" class="org.wso2.jaggery.scxml.generic.GenericExecutor">
		
      <parameter name="PERMISSION:get" value="http://www.wso2.org/projects/registry/actions/get" />
	</validation>
</data>
      <data<parameter name="transitionPermissionPERMISSION:add"> 	<permission forEvent="" roles=""/>
</data>

<data name="transitionScripts">value="http://www.wso2.org/projects/registry/actions/add" />
      <parameter <js forEventname="PERMISSION:delete">
        <console function="" value="http://www.wso2.org/projects/registry/actions/delete" />
      <parameter      <script type="text/javascript"name="PERMISSION:authorize" value="authorize" />
      <parameter      </script>
        </console>name="STATE_RULE1:Created" value="Internal/private_{asset_author}:+get,+add,+delete,+authorize" />
      <parameter  <server function=""name="STATE_RULE2:Created" value="Internal/reviewer:-get,-add,-delete,-authorize" />
            <script type="text/javascript"></script>
        </server>
<parameter name="STATE_RULE3:Created" value="Internal/everyone:-get,-add,-delete,-authorize" />
   </js>execution>
</data>

<data 

Back to Top ^

...

Anchor
item
item

<item> 

XML Syntax<item name="

...

"

...

forEvent="

...

 

Back to Top ^

...

XML Syntax<item name="" forEvent=""/>
Description

These elements contain the check items for each state. There can be more than one of these elements.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
nameDefines the name of the check item.

Governance Registry allows to define check items for each transition.

 N/A Optional 
forEventDefines whether the check item is required for a specific transition. A check item can be required for more than one event, in which case, a user can give a comma (",") separated list for the forEvent attribute. Null : Keeping the forEvent attribute empty means that a specific check item is not required for any transition event. OptionalThe forEvent value is defined under the <transition> element with the "event"  attribute.
Sample Implementations
Code Block
languagehtml/xml
<data name="checkItems">
    <item name="Effective Inspection Completed" forEvent=""></item>
     <item name="Test Cases Passed" forEvent=""></item>
    <item name="Smoke Test Passed" forEvent=""></item>
</data>

 

Back to Top ^

...

XML Syntax<permissions>
Description

The permissions element defines permissions for that specified action and hold more than one child element which defines permissions. Under check items, the permissions element defines the users that have the capability of checking (check/uncheck) that check item. If a user does not have permissions to check a check item, then the management console will display that specific item in disabled mode. The idea behind this is to let the user know that there are some more check items in that state, but that he or she does not have permission to check them (so as to avoid user confusion).

Type 
Default Value 
Fixed Values 
Mandatory/OptionalOptional

This element doesn't have any attributes.

Back to Top ^

...

XML Syntax<permission roles=""/>
Description

This element is a child element of the permissions element and will define the roles that have permissions to do the specified action. Here, the attribute roles accepts a comma (",") separated list and these roles should be present in Governance Registry.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
rolesDefines the name of the user role to do the specified action.   MandatoryMultiple user roles can be define here with comma (",") separated
Sample Implementations
Code Block
languagehtml/xml
<permission roles="admin,manager"/>

 

Back to Top ^

...

XML Syntax 
Description

Defines the validations that need to be completed for each action. This element can contain one or more validation elements. Check Item Validators are one of many well-defined extension points supported by the WSO2 Governance Registry. Read more on Supported Extension Points for a complete list of extension points supported by WSO2 Governance Registry.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional

This element doesn't have any attributes.

Back to Top ^

...

XML Syntax<validation forEvent="" class=""/>
Description

Validations are an important part of lifeCycles. The validation element defines the event and the validation class that has to be invoked at runtime.

Type 
Default Value 
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
forEvent

Defines the event for which this validation should be performed. This gives user the flexibility to define validations for each event. The user has the ability to define validations for check items, which makes it easy to validate different things at different levels.

 N/A MandatoryThe forEvent value is defined under the <transition> element with the "event"  attribute.
classDefines the class that needs to be executed at runtime to perform the validation. A user must give the full, qualified name of a class that implements the CustomValidations interface, as the value of the attribute class. N/A Mandatory 
Sample Implementations
Code Block
languagehtml/xml
<validation forEvent="" class=""></validation>

Back to Top ^

...

XML Syntax<parameter name="" value=""/>
Description

The parameter elements are used to give parameters to the validation and execution classes. It is up to the user to define the name value pairs, and the parameter element has attributes to define these values. A validation element or an execution element can have more than one parameter element and it is up to the user code to handle this. The underline implementation of the DefaultLifeCycle class will pass all the parameters in a map object.

Type 
Default Value 
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
name

User defined value to identify the parameter.

 N/A Mandatory 
valueDefines the value of user defined parameter. N/A Mandatory 
Sample Implementations
Code Block
languagehtml/xml
 <parameter name="endpoint.mediatype" value="application/vnd.wso2.endpoint"/>

Back to Top ^

...

XML Syntax 
Description

Governance Registry lifeCycle configuration has the ability to allow JavaScript functions to execute on both the server side and the client side. The js element defines the scripts that need to be executed for different events.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
forEvent

 Defines the transition action where this JavaScript function needs to be executed.

   MandatoryThe forEvent value is defined under the <transition> element with the "event"  attribute.
Sample Implementations
Code Block
languagehtml/xml
<js forEvent="">
     <console function="">....</console>
     <server function="">....</server>
</js>

 

Back to Top ^

...

XML Syntax<console function=""/>
Description

Defines the JavaScript function that needs to be executed on the client side.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
function

Defines the name of the function which will be executed at a transition from one state to another.

   Mandatory 
Sample Implementations
Code Block
languagehtml/xml
<console function="">
	<script type="text/javascript"> </script>
</console>

Back to Top ^

...

XML Syntax<script type="text/javascript"/>
Description

Contains the actual JavaScript code segment. A user has the ability to define any code segment here.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
type

Governance Registry supports scripting language.

  Set to text/javascript because, at the time of this writing, Governance Registry only supports JavaScript as a scripting language.Mandatory 
Sample Implementations
Code Block
languagehtml/xml
<script type="text/javascript"></script>

Back to Top ^

...

XML Syntax<server function=""/>
Description

This is the same as the console function and the only difference is that this element defines the scripts that need to be executed on the server side.

Type 
Default Value 
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
function

Defines the name of the function which will be executed at a transition from one state to another.

   MandatoryFucntion should be Governance Registry supports scripting language.
Sample Implementations
Code Block
languagehtml/xml
<server function="">
	<script type="text/javascript"></script>
</server>

 

Back to Top ^

...

">
Description

These elements contain the check items for each state. There can be more than one of these elements.

Mandatory/OptionalOptional
Attributes
AttributeDescriptionDefault ValueFixed ValuesMandatory/
Optional
nameDefines the name of the check item. ES allows you to define check items for each transition.N/A Optional
forEvent

Defines whether the check item is required for a specific transition. A check item may be needed for more than one event, in which case, you can provide a comma separated list for the forEvent attribute.

Info

The forEvent value is defined under the <transition> element with the event attribute.

Null - Keeping the forEvent attribute empty means that a specific check item is not required for any transition event. Optional
Sample implementations
Code Block
languagehtml/xml
<data name="checkItems">
   <item name="Effective Inspection Completed" forEvent="" />
   <item name="Test Cases Passed" forEvent="" />
   <item name="Smoke Test Passed" forEvent="" />
</data>

The above code snippet based on checkItems renders as follows in the Publisher:

Image Added

Back to Top ^

...

Anchor
execution
execution

<execution> 

XML Syntax<execution forEvent="" class=""/>
Description

An executor is business logic that is executed once a state transition happens takes place in a lifecycle. The execution element defines the event and the execution class that will be is invoked at runtime.

Type

 
Default Value 
Fixed Values 
Mandatory/OptionalOptional
Attributes

...

Type with "event"  attribute.
AttributeDescriptionDefault ValueFixed ValuesMandatory/
Optional
Notes
forEvent

Defines the event for which this execution should be is performed. This gives user you the flexibility to define executions for each event.

   Mandatory

The forEvent value is defined under the <transition> element

using the

event attribute. 

  Mandatory
classDefines the class that needs to be is executed at runtime. A user must give the full, qualified name of a class that implements the Execution interface, as the value of the class attribute class.
   MandatoryThis class defines the business logic that is executed when the specified event is taken takes place. This class manipulates the current and target environment of the underlying artifact when the state transition is performed on it.   Mandatory
Sample

...

implementations
Code Block
<execution forEvent="Promote" class="org.wso2.carbonjaggery.governance.registry.extensions.executors.ServiceVersionExecutorscxml.generic.GenericExecutor">

 

Back to Top ^

...

Anchor

...

parameter

...

parameter

...

<parameter> 

XML Syntax

...

Sample Implementations
Code Block
<data name="transitionExecution">
 <execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.ServiceVersionExecutor">
 <parameter name="currentEnvironment" value="/_system/governance/trunk/{@resourcePath}/{@resourceName}"/>
 <parameter name="targetEnvironment" value="/_system/governance/branches/testing/{@resourcePath}/{@version}/{@resourceName}"/>
 <parameter name="service.mediatype" value="application/vnd.wso2-service+xml"/>
 <parameter name="wsdl.mediatype" value="application/wsdl+xml"/>
 <parameter name="endpoint.mediatype" value="application/vnd.wso2.endpoint"/>
 </execution> 
 </data>

 

Back to Top ^

...

XML Syntax<ui forEvent="" href=""/>
Description

A UI element is a mechanism to associate a user interface with a particular event during a given transition. This provides a convenient way for a user to pass input that would be utilized when performing a transition. Note that, for the value of href, it will not accept any external reference link for the value. It is required to provide a relative path in the carbon server as the value of href.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
forEvent

Defines the event for which this UI will be presented.

 N/A OptionalThe forEvent value is defined under the <transition> element with the "event"  attribute.
hrefDefines the hyperlink that will be opened and presented to the user, when a lifecycle transition operation is performed from the Management Console. N/A Optional 
Sample Implementations
Code Block
languagehtml/xml
<ui forEvent="Promote" href="../lifecycles/pre_invoke_aspect_ajaxprocessor.jsp?currentEnvironment=/_system/governance/branches/testing/"/>

See also Transition UI Sample.

 

Back to Top ^

...

XML Syntax<transition event="" target=""/>
Description

Defines the transitions of a state. In Governance Registry 4.1.1 onwards, users are allowed to define the transitions (the name and the target state) instead of using static transitions.

Previously, the configuration did not have a direct method of defining the transition event names or, most importantly, the target of the transition. There were only two transitions that were supported by default.

With the new, SCXML-based configuration model, any number of transitions from one state are supported. Also, this model has the capacity to define the target state of the transition and the name of the event as well.

Type 
Default ValueN/A
Fixed Values 
Mandatory/OptionalMandatory
Attributes of the Element
Type
AttributeDescription<parameter name="" value=""/>
Description

The name attribute defines the name of the parameter and value attribute defines that the value hold by the parameter. This parameter element defined under the <execution>  element.

Type 
Default Value 
Fixed Values 
Mandatory/OptionalOptional
Attributes of the Element

...

The name attribute defines the name of the parameter.  This parameter element defined under the <execution>  element.

...

""/>
Description

The name attribute defines the name of the parameter and value attribute defines the corresponding value of the parameter. This parameter element is defined under the <execution> element.

Mandatory/OptionalOptional
Attributes
AttributeDescriptionDefault ValueFixed ValuesMandatory/
Optional
name

This attribute defines the name of the parameter. 

  • If you use the org.wso2.jaggery.scxml.generic.GenericExecutor executor, it is mandatory to specify the following default permissions as it is needed for the ES permission model.
    • PERMISSION:get
    • PERMISSION:add

    • PERMISSION:delete

    • PERMISSION:authorize

  • In addition, you can specify custom rules for specific user roles that are executed when various state transitions take place.
 
  • ES permission model related values
    • PERMISSION:get
    • PERMISSION:add

    • PERMISSION:delete

    • PERMISSION:authorize

The first four parameters are mandatory.
valueThis attribute defines the value held by the parameter.
  • If you use the org.wso2.jaggery.scxml.generic.GenericExecutor executor, it is mandatory to specify the following default permissions names together with their corresponding values as it is needed for the ES permission model.
    • PERMISSION:get
    • PERMISSION:add

    • PERMISSION:delete

    • PERMISSION:authorize

  • In addition, you can specify custom rules for specific user roles that are executed when various state transitions take place. In each of these rules you can specify as to which permission is added or removed when the state transition takes place. Permissions are added and removed in the following manner:
    • + <PERMISSION>
      For example,  + delete means that the delete permission is added when the lifecycle state transition occurs.
    • - <PERMISSION>
      For example,  - delete means that the delete permission is removed when the lifecycle state transition occurs.  

 For example:

    • Code Block
      <parameter name="STATE_RULE1:Created" value="Internal/private_{asset_author}:+get,+add,+delete,+authorize" />

      This means that when the lifecycle state changes to Created, the get, add, delete and authorize permissions are added to the private_{asset_author} user permission.

    • Code Block
      <parameter name="STATE_RULE2:Created" value="Internal/reviewer:-get,-add,-delete,-authorize" />

      This means that when the lifecycle state changes to Created, the get, add, delete and authorize permissions are removed from the Internal/reviewer user permission.

    • Code Block
      <parameter name="STATE_RULE3:Created" value="Internal/everyone:-get,-add,-delete,-authorize" />

      This means that when the lifecycle state changes to Created, the get, add, delete and authorize permissions are removed from the Internal/everyone user permission.

 
 
  • ES permission model related values

    • http://www.wso2.org/projects/registry/actions/get

    • http://www.wso2.org/projects/registry/actions/add

    • http://www.wso2.org/projects/registry/actions/delete

    • authorize

 
Sample implementations
Code Block
<data name="transitionExecution">
   <execution forEvent="Promote" class="org.wso2.jaggery.scxml.generic.GenericExecutor">
      <parameter name="PERMISSION:get" value="http://www.wso2.org/projects/registry/actions/get" />
      <parameter name="PERMISSION:add" value="http://www.wso2.org/projects/registry/actions/add" />
      <parameter name="PERMISSION:delete" value="http://www.wso2.org/projects/registry/actions/delete" />
      <parameter name="PERMISSION:authorize" value="authorize" />
      <parameter name="STATE_RULE1:Created" value="Internal/private_{asset_author}:+get,+add,+delete,+authorize" />
      <parameter name="STATE_RULE2:Created" value="Internal/reviewer:-get,-add,-delete,-authorize" />
      <parameter name="STATE_RULE3:Created" value="Internal/everyone:-get,-add,-delete,-authorize" />
   </execution>
</data>

Back to Top ^

...

Anchor
transition
transition

<transition> 

XML Syntax<transition event="" target=""/>
Description

Defines the transitions, by specifying the name of the lifecycle state and the target lifecycle state. Any number of transitions for one lifecycle state are supported.

Mandatory/OptionalMandatory
Attributes
Mandatory
AttributeDescriptionDefault ValueFixed ValuesMandatory/
Optional
Notes
event

Defines the transition event name , for example, to "Promote" or "Demote" (e.g., Promote, Demote or any name that the user specifies.

 N/A 

you wish to specify).

This event name is used in the forEvent to trigger a specific event, before this transition this going on.

N/A Mandatory
targetDefines the target state of the transition. N/A Mandatory 
Sample

...

implementations
Code Block
languagehtml/xml
<transition event="Promote" target="Tested"/>

Back to Top ^

...

hiddentrue

...