...
<aspect>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <aspect name="" class=""> |
Description | This element used defines lifeCycles as aspects. |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Mandatory |
Samples |
...
<configuration>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <configuration type=""> |
Description | This element describes the way of lifecycle configuration is setup |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Mandatory |
...
...
<scxml>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <scxml xmlns="" version="" initialstate=""/> |
Description | This is the element that contains the new, SCXML-based configuration. 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. Up to this point of the configuration, there can be only one of each of the elements described above. They all provide meta data about the lifecycle (name, class, and other information). The elements that appear after this one contain the actual configuration. |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Mandatory |
...
...
<state>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <state id=""> |
Description | The |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Mandatory |
...
<datamodel>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <datamodel> |
Description | This element contains all the custom elements which are defined in the lifeCycles model. The SCXML specification allows users to define a data model to a state and this extension is used to define custom elements. |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
...
<data>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <data name=""/> |
Description | Custom |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
...
<item>
Anchor | ||||
---|---|---|---|---|
|
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 Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<permissions>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <permissions> |
Description | The |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Optional |
...
<permission>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <permission roles=""/> |
Description | This element is a child element of the |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<validations>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | |
Description | Defines the validations that need to be completed for each action. This element can contain one or more |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<validation>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <validation forEvent="" class=""/> |
Description | Validations are an important part of lifeCycles. The |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Optional |
...
<parameter>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <parameter name="" value=""/> |
Description | The |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Optional |
...
...
<js>
Anchor | ||||
---|---|---|---|---|
|
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 |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<console>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <console function=""/> |
Description | Defines the JavaScript function that needs to be executed on the client side. |
Type | |
Default Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<script>
Anchor | ||||
---|---|---|---|---|
|
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 Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<server>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <server function=""/> |
Description | This is the same as the |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Optional |
...
<Execution>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <execution forEvent="" class=""/> |
Description | An executor is business logic that is executed once a state transition happens in a lifecycle. The |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional | Optional |
...
<parameter>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <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/Optional | Optional |
...
...
<ui>
Anchor | ||||
---|---|---|---|---|
|
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 Value | N/A |
Fixed Values | |
Mandatory/Optional | Optional |
...
<transition>
Anchor | ||||
---|---|---|---|---|
|
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 Value | N/A |
Fixed Values | |
Mandatory/Optional | Mandatory |
...