Versions Compared

Key

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

...

  • <aspect>
  •       <configuration>
  •            <lifecycle>
  •                <scxml>
  •                     <state>
  •                          <datamodel>
  •                               <data>
  •                                     <item>
  •                                           <permissions>
  •                                                 <permission>
  •                                           <validations>
  •                                                 <validation forEvent="" class="">
  •                                                       <parameter>
  •                                     <js forEvent="">
  •                                           <console function="">
  •                                                 <script type="text/javascript">
  •                                           <server function="">
  •                                                 <script type="text/javascript">
  •                                     <execution forEvent="" class="">
  •                                           <parameter name="" value=""/>
  •                                     <ui forEvent="" href=""/>
  •                          <transition event="" target=""/>

...

Sample Implementations

 

Back to Top ^

...

<validations> 
Anchor

...

validations

...

validations

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 RegistryDefines 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 Value 
Fixed Values 
Mandatory/Optional 

This element doesn't have any attributes.

Back to Top ^

...

<validation> 
Anchor
validation
validation

XML Syntax 
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/Optional 

...

roles
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
forEvent      
class      
Sample Implementations

 

Back to Top ^

 

<validations>
Info
iconfalse

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.

The validations element defines the validations that need to be completed for each action. This element can contain one or more validation elements (see below). 

<validation forEvent="" class="">

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

  • The forEvent attribute - 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.
  • The class attribute - Defines 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.

...