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>
  •                                                       <parameter>
  •                                     <js>
  •                                           <console>
  •                                                 <script>
  •                                           <server>
  •                                                 <script type="text/javascript">                                    <execution forEvent="" class=""> <script>
  •                                     <execution>
  •                                           <parameter name="" value=""/> <parameter>
  •                                     <ui forEvent="" href=""/>
  •                          <transition event="" target=""/>

...

Sample Implementations

 

Back to Top ^

...

<Execution>
Anchor

...

execution

...

execution

XML Syntax<server function<execution forEvent="" class=""/>
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 sideAn executor is business logic that is executed once a state transition happens in a lifecycle. The execution element defines the event and the execution class that will be invoked at runtime.

Type 
Default Value 
Fixed Values 
Mandatory/Optional 

...

 
AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotesfunction
forEvent

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

     
classDefines the class that needs to be executed at runtime. A user must give the full, qualified name of a class that implements the Execution interface, as the value of the attribute class.     
Sample Implementations

 

Back to Top ^

...

<Execution>
Anchor
execution
execution

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

An executor is business logic that is executed once a state transition happens in a lifecycle. The execution element defines the event and

...

the execution class that will be invoked at runtime.

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

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

...

     
classDefines the class that needs to be executed at runtime. A user must give the full, qualified name of a class that implements the Execution interface, as the value of the attribute class.     
Sample Implementations

 

Back to Top ^

 

 

<ui forEvent="" href=""/>

...