Difference between revisions of "ExecutionPlan Variables"

From Gcube Wiki
Jump to: navigation, search
(Reflectable To Template)
(Reflectable To Template)
Line 323: Line 323:
 
   <item type="array" token="[execprfBeginToken]StringArrayPayload[execprfEndToken]">
 
   <item type="array" token="[execprfBeginToken]StringArrayPayload[execprfEndToken]">
 
     <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]StringArrayPayload[execprfEndToken]">
 
     <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]StringArrayPayload[execprfEndToken]">
       <ax21:stringPyload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]StringArrayPayload[execprfEndToken]</ax21:stringPyload>
+
       <ax21:stringPayload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]StringArrayPayload[execprfEndToken]</ax21:stringPayload>
 
     </item>
 
     </item>
 
   </item>
 
   </item>
 
   <item type="array" token="[execprfBeginToken]IntArrayPayload[execprfEndToken]">
 
   <item type="array" token="[execprfBeginToken]IntArrayPayload[execprfEndToken]">
 
     <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]IntArrayPayload[execprfEndToken]">
 
     <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]IntArrayPayload[execprfEndToken]">
       <ax21:intPyload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]IntArrayPayload[execprfEndToken]</ax21:intPyload>
+
       <ax21:intPayload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]IntArrayPayload[execprfEndToken]</ax21:intPayload>
 
     </item>
 
     </item>
 
   </item>
 
   </item>
Line 334: Line 334:
 
     <item type="refl" token="[execprfBeginToken]Cont3[execprfEndToken]">
 
     <item type="refl" token="[execprfBeginToken]Cont3[execprfEndToken]">
 
       <refl>
 
       <refl>
         <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]BooleanClassField[execprfEndToken]--
+
         <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                       [execprfBeginToken]BooleanPrimitiveField[execprfEndToken]--
+
                                                                       [execprfBeginToken]tok2[execprfEndToken]--
                                                                       [execprfBeginToken]DoubleClassField[execprfEndToken]--
+
                                                                       [execprfBeginToken]tok3[execprfEndToken]--
                                                                       [execprfBeginToken]DoublePrimitiveField[execprfEndToken]--
+
                                                                       [execprfBeginToken]tok4[execprfEndToken]--
                                                                       [execprfBeginToken]FloatClassField[execprfEndToken]--
+
                                                                       [execprfBeginToken]tok5[execprfEndToken]">
                                                                      [execprfBeginToken]FloatPrimitiveField[execprfEndToken]--
+
                                                                      [execprfBeginToken]IntegerClassField[execprfEndToken]--
+
                                                                      [execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
+
                                                                      [execprfBeginToken]StringField[execprfEndToken]\">
+
 
           <ax21:cont3 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
 
           <ax21:cont3 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
             <ax21:booleanClassField>[execprfBeginToken]BooleanClassField[execprfEndToken]</ax21:booleanClassField>
+
             <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
             <ax21:booleanPrimitiveField>[execprfBeginToken]BooleanPrimitiveField[execprfEndToken]</ax21:booleanPrimitiveField>
+
             <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
             <ax21:doubleClassField>[execprfBeginToken]DoubleClassField[execprfEndToken]</ax21:doubleClassField>
+
             <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
             <ax21:doublePrimitiveField>[execprfBeginToken]DoublePrimitiveField[execprfEndToken]</ax21:doublePrimitiveField>
+
             <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
            <ax21:floatClassField>[execprfBeginToken]FloatClassField[execprfEndToken]</ax21:floatClassField>
+
             <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
            <ax21:floatPrimitiveField>[execprfBeginToken]FloatPrimitiveField[execprfEndToken]</ax21:floatPrimitiveField>
+
            <ax21:integerClassField>[execprfBeginToken]IntegerClassField[execprfEndToken]</ax21:integerClassField>
+
            <ax21:integerPrimitiveField>[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]</ax21:integerPrimitiveField>
+
             <ax21:stringField>[execprfBeginToken]StringField[execprfEndToken]</ax21:stringField>
+
 
           </ax21:cont3>
 
           </ax21:cont3>
 
         </item>
 
         </item>
Line 360: Line 352:
 
   <item type="refl" token="[execprfBeginToken]Cont1[execprfEndToken]">
 
   <item type="refl" token="[execprfBeginToken]Cont1[execprfEndToken]">
 
     <refl>
 
     <refl>
       <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]BooleanClassField[execprfEndToken]--
+
       <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                     [execprfBeginToken]BooleanPrimitiveField[execprfEndToken]--
+
                                                                     [execprfBeginToken]tok2[execprfEndToken]--
                                                                     [execprfBeginToken]DoubleClassField[execprfEndToken]--
+
                                                                     [execprfBeginToken]tok3[execprfEndToken]--
                                                                     [execprfBeginToken]DoublePrimitiveField[execprfEndToken]--
+
                                                                     [execprfBeginToken]tok4[execprfEndToken]--
                                                                     [execprfBeginToken]FloatClassField[execprfEndToken]--
+
                                                                     [execprfBeginToken]tok5[execprfEndToken]">
                                                                    [execprfBeginToken]FloatPrimitiveField[execprfEndToken]--
+
                                                                    [execprfBeginToken]IntegerClassField[execprfEndToken]--
+
                                                                    [execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
+
                                                                    [execprfBeginToken]StringField[execprfEndToken]">
+
 
         <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
 
         <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
           <ax21:booleanClassField>[execprfBeginToken]BooleanClassField[execprfEndToken]</ax21:booleanClassField>
+
           <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
           <ax21:booleanPrimitiveField>[execprfBeginToken]BooleanPrimitiveField[execprfEndToken]</ax21:booleanPrimitiveField>
+
           <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
           <ax21:doubleClassField>[execprfBeginToken]DoubleClassField[execprfEndToken]</ax21:doubleClassField>
+
           <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
           <ax21:doublePrimitiveField>[execprfBeginToken]DoublePrimitiveField[execprfEndToken]</ax21:doublePrimitiveField>
+
           <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
          <ax21:floatClassField>[execprfBeginToken]FloatClassField[execprfEndToken]</ax21:floatClassField>
+
           <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
          <ax21:floatPrimitiveField>[execprfBeginToken]FloatPrimitiveField[execprfEndToken]</ax21:floatPrimitiveField>
+
          <ax21:integerClassField>[execprfBeginToken]IntegerClassField[execprfEndToken]</ax21:integerClassField>
+
          <ax21:integerPrimitiveField>[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]</ax21:integerPrimitiveField>
+
           <ax21:stringField>[execprfBeginToken]StringField[execprfEndToken]</ax21:stringField>
+
 
         </ax21:cont1>
 
         </ax21:cont1>
 
       </item>
 
       </item>
Line 384: Line 368:
 
   </item>
 
   </item>
 
   <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]PlainStringField[execprfEndToken]">
 
   <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]PlainStringField[execprfEndToken]">
     <ax21:plainStringPyload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]PlainStringField[execprfEndToken]</ax21:plainStringPyload>
+
     <ax21:plainStringPayload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]PlainStringField[execprfEndToken]</ax21:plainStringPayload>
 
   </item>
 
   </item>
 
   <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
 
   <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
Line 393: Line 377:
 
       <item type="refl" token="[execprfBeginToken]Cont1[execprfEndToken]">
 
       <item type="refl" token="[execprfBeginToken]Cont1[execprfEndToken]">
 
         <refl>
 
         <refl>
           <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]BooleanClassField[execprfEndToken]--
+
           <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                         [execprfBeginToken]BooleanPrimitiveField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok2[execprfEndToken]--
                                                                         [execprfBeginToken]DoubleClassField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok3[execprfEndToken]--
                                                                         [execprfBeginToken]DoublePrimitiveField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok4[execprfEndToken]--
                                                                         [execprfBeginToken]FloatClassField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok5[execprfEndToken]">
                                                                        [execprfBeginToken]FloatPrimitiveField[execprfEndToken]--
+
                                                                        [execprfBeginToken]IntegerClassField[execprfEndToken]--
+
                                                                        [execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
+
                                                                        [execprfBeginToken]StringField[execprfEndToken]">
+
 
             <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
 
             <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
               <ax21:booleanClassField>[execprfBeginToken]BooleanClassField[execprfEndToken]</ax21:booleanClassField>
+
               <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
               <ax21:booleanPrimitiveField>[execprfBeginToken]BooleanPrimitiveField[execprfEndToken]</ax21:booleanPrimitiveField>
+
               <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
               <ax21:doubleClassField>[execprfBeginToken]DoubleClassField[execprfEndToken]</ax21:doubleClassField>
+
               <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
               <ax21:doublePrimitiveField>[execprfBeginToken]DoublePrimitiveField[execprfEndToken]</ax21:doublePrimitiveField>
+
               <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
              <ax21:floatClassField>[execprfBeginToken]FloatClassField[execprfEndToken]</ax21:floatClassField>
+
               <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
              <ax21:floatPrimitiveField>[execprfBeginToken]FloatPrimitiveField[execprfEndToken]</ax21:floatPrimitiveField>
+
              <ax21:integerClassField>[execprfBeginToken]IntegerClassField[execprfEndToken]</ax21:integerClassField>
+
              <ax21:integerPrimitiveField>[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]</ax21:integerPrimitiveField>
+
               <ax21:stringField>[execprfBeginToken]StringField[execprfEndToken]</ax21:stringField>
+
 
             </ax21:cont1>
 
             </ax21:cont1>
 
           </item>
 
           </item>
Line 418: Line 394:
 
       <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
 
       <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
 
         <refl>
 
         <refl>
           <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]BooleanClassField[execprfEndToken]--
+
           <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                         [execprfBeginToken]BooleanPrimitiveField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok2[execprfEndToken]--
                                                                         [execprfBeginToken]DoubleClassField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok3[execprfEndToken]--
                                                                         [execprfBeginToken]DoublePrimitiveField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok4[execprfEndToken]--
                                                                         [execprfBeginToken]FloatClassField[execprfEndToken]--
+
                                                                         [execprfBeginToken]tok5[execprfEndToken]">
                                                                        [execprfBeginToken]FloatPrimitiveField[execprfEndToken]--
+
                                                                        [execprfBeginToken]IntegerClassField[execprfEndToken]--
+
                                                                        [execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
+
                                                                        [execprfBeginToken]StringField[execprfEndToken]">
+
 
             <ax21:cont2 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
 
             <ax21:cont2 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
               <ax21:booleanClassField>[execprfBeginToken]BooleanClassField[execprfEndToken]</ax21:booleanClassField>
+
               <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
               <ax21:booleanPrimitiveField>[execprfBeginToken]BooleanPrimitiveField[execprfEndToken]</ax21:booleanPrimitiveField>
+
               <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
               <ax21:doubleClassField>[execprfBeginToken]DoubleClassField[execprfEndToken]</ax21:doubleClassField>
+
               <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
               <ax21:doublePrimitiveField>[execprfBeginToken]DoublePrimitiveField[execprfEndToken]</ax21:doublePrimitiveField>
+
               <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
              <ax21:floatClassField>[execprfBeginToken]FloatClassField[execprfEndToken]</ax21:floatClassField>
+
               <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
              <ax21:floatPrimitiveField>[execprfBeginToken]FloatPrimitiveField[execprfEndToken]</ax21:floatPrimitiveField>
+
              <ax21:integerClassField>[execprfBeginToken]IntegerClassField[execprfEndToken]</ax21:integerClassField>
+
              <ax21:integerPrimitiveField>[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]</ax21:integerPrimitiveField>
+
               <ax21:stringField>[execprfBeginToken]StringField[execprfEndToken]</ax21:stringField>
+
 
             </ax21:cont2>
 
             </ax21:cont2>
 
           </item>
 
           </item>
Line 443: Line 411:
 
       <item type="literal" isxml="false" tokenSeparator="--" tokens="[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
 
       <item type="literal" isxml="false" tokenSeparator="--" tokens="[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
 
                                                                     [execprfBeginToken]StringField[execprfEndToken]">
 
                                                                     [execprfBeginToken]StringField[execprfEndToken]">
         &lt;ax21:intPyload&gt;[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]&lt;/ax21:intPyload&gt;
+
         &lt;ax21:intPayload&gt;[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]&lt;/ax21:intPayload&gt;
         &lt;ax21:stringPyload&gt;[execprfBeginToken]StringField[execprfEndToken]&lt;/ax21:stringPyload&gt;
+
         &lt;ax21:stringPayload&gt;[execprfBeginToken]StringField[execprfEndToken]&lt;/ax21:stringPayload&gt;
 
         &lt;/ax21:cont2&gt;
 
         &lt;/ax21:cont2&gt;
 
       </item>
 
       </item>

Revision as of 15:36, 11 February 2010

Variables

While in the process of executing an ExecutionPlan, the two main actors, are the elements that represent an execution step, either by controlling the flow of execution or by invoking some processing actor, and the second is the data that are provided to the actors as well as the results produced by these actors. This data is usually also the target of the execution. The data is stored as typed structures using the engine available Data Types.

Wherever a plan element needs to define some association with some data stored in such a Data Type it references it using a unique name. Data Types are generally encapsulated as Named Data Types. This encapsulation provides some additional metadata on the Data Type. This metadata include a unique name by which the data are referenced. Additionally a grouping tag can be applied to a data type which can be used by some Filters that operate on this data. Finally, a flag indicating that the data is available for usage is also included so that while in execution, no element will try to use some data that is not yet available.

Named Data Types are considered as the Variables of a running execution plan. One of the ExecutionPlan's root elements is a collection of Variables. These provide a global placeholder for all Plan Elements to retrieve data from as well as to store data so that they are later on used by either a different Plan Element or to be returned to the client. Access to this global collection is moderately supervised. This means that while the underlying data structures are protected from concurrent modifications, the actual synchronization is performed mainly by the access and timeplan dictated by the ExecutionPlan's execution tree.

This for example means that if two Plan Elements share a variable, having one of the elements produce a value that is placed in the variable and the second element accessing it, the correct access to the variable is mainly enforced by the execution path that connects the two elements. If the the producing element is defined in the plan as a child of a Sequence node, and the consuming element is also a child of this element or some other element that preserves this ordering, the access will be safe. In the case though that for example the two elements are direct children of a Flow element, there is nothing ensuring that the consuming element will access the variable after the producing element. As a last line of defense, the engine provides the above mentioned flag indicating that some variable is initialized and populated. This way some cases of mis-usage can be avoided and the execution stopped before corrupt data are used.

XML definition

<variables>
  <ndt available="..." name="..." token="...">
    <dt .../>
  </ndt>
  ...
</variables>

Parameters

Access to Variables and their underlying Data Types is never performed directly from the Plan Elements. Access is always performed through Parameters. Parameters are distinguished based on their direction and the processing they are performing on the Variable and underlying Data Type before storing or accessing the actual data.

Based on the direction, Parameters can be separated to:

  • In parameter
    Data can be retrieved using this parameter
  • Out parameter
    Data can be stored using this parameter
  • InOut parameter
    Data can be retrieved and stored using this parameter

Based on the processing, Parameters can be separated to:

  • Simple
    Direct access to the underlying data is enabled
  • Filter
    Before retrieving, or storing, the parameter will apply a number of Filters

Filter parameters contain an ordered list of Filters. Every time such a parameter is requested to retrieve or store some data, it goes through the list of filters. After all the filtering steps are completed, the value is retrieved or stored depending on the parameter direction. At every intermediate filtering step intermediate data are produced which depending on the definition of the filter may also be stored.

XML definition

<param direction="In" process="Simple">
  <variable name="variable name"/>
</param>"
...
<param direction="Out" process="Simple">
  <variable name="variable name"/>
</param>"
...
<param direction="InOut" process="Simple">
  <variable name="variable name"/>
</param>"
...
<param direction="In" process="Filter">
  <filter .../>
  ...
</param>"
...
<param direction="Out" process="Filter">
  <updateVar name="variable name"/>
  <filter .../>
  ...
</param>"
...
<param direction="InOut" process="Filter">
  <updateVar name="variable name"/>
  <filter .../>
  ...
</param>"

Filters

One of the constructs that make the Execution Plan versatile and allows for generic Data Type transformations are the Filters described in this section. These filters can be used to compose filtered input and or output Parameters. This provides for on the fly transformations of Variables to be used by any Plan Element or for bulk "off line" processing using Processing Elements. The available filters come in a long range of complexity and applicability. These filters are presented in this section.

All the filters described bellow offer two common properties other than the additional ones each one of them provide. Firstly, they have the notion of order, in the sence that they can be composed in an ordered list to be sequentially executed. This way two or more filters can be composed to create more complex filters which can be found in filtered Parameters. Secondly, as will become evident from the following listing, in some of the filters, the attributes of Name and Token as presented in Variables and Data Types are utilized during the filtering process. There is an option to override the meaning of some of these Names and Tokens to alter the outcome of these filters. More will be presented in the filters that this feature can be utilized.

XSLT

The XSLT filter is the simpler and most powerful filter offering the possibility to apply a provided XSLT trasnformation on some Variables's payload. The outcome of the transformation is available at runtime and can also be requested to be stored in some Variable.

XML definition

<filter type="XSLT" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <expressionVariable>...</expressionVariable>
  <tokenMap/>
</filter>

XPath

The XPath filter is another simple filter offering the possibility to apply an XPath expression on some Variables's payload. The outcome of the evaluation is available at runtime and can also be requested to be stored in some Variable. The outcome of the evaluation can be declared of being either a primitive value to be interpreted directly as a string literal or an XML fragment which in order to be stored needs to be serialized.

XML definition

<filter type="XPath" order="..." storeOutput="true/false" storeOutputName="...">
  <queryResultType>String/Node</queryResultType>
  <filteredVariable>...</filteredVariable>
  <expressionVariable>...</expressionVariable>
  <tokenMap/>
</filter>

Object Convertable

The Object Convertable filter is applicable only to Variables of Data Type Convertable or Array with a component type of Convertable. In the former case, the respective converter is loaded and the Object that corresponds to the serialization stored in the provided Variable is inflated and retrieved. In the later case, an array with a component type of the respective inflated Object is created with as many dimensions as dictated by the Array Data Type. Every position of the generated array is filled with the Object inflated by the Convertable in the corresponding Array position.

XML definition

<filter type="ObjectConvertable" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <tokenMap/>
</filter>

Object Reflectable

The Object Reflectable filter is applicable only to Variables of Data Type Reflectable or Array with a component type of Reflectable. In the former case, the serialization provided as the values source is processed to be used along with the target Object type that is to be populated with these values. The target Object type is provided also as an input Variable of type String containing the qualified type name. The respective Object is inflated, populated and retrieved. In the later case, an array with a component type of the respective inflated Object is created with as many dimensions as dictated by the Array Data Type. Every position of the generated array is filled with the Object inflated by the Reflectable in the corresponding Array position.

The way the processing is performed to inflate the target Object is sketched at the Data Types section. The token mapping facility is utilized byt this filter ad affects the process described there. The inflation process described finds a member of the inflated object named using the common part of matching getter and setters. If at the populating Variable an item with the respective name is found, that it6em is used to set the respective value. In case a token mapping set is defined, this mapping will be used to replace the name of the Object's member with tha target name defined in the mapping if one exists for that name.

XML definition

<filter type="ObjectReflectable" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <targetReflectableVariable>...</targetReflectableVariable>
  <tokenMap>
    <map key="source name" value="target name"/>
    ...
  </tokenMap>
</filter>

XSLT From 1D Array

The XSLT From 1D Array filter bases its operation in XSLT transformations. A default transformation is available, but it can be overridden to offer different functionality. The default functionality aims at transforming an input Variable of Data Type Array to an xml serialization that can be presented as an array of values with an element name of the set of values as the one provided.

This filter is applicable in the following cases:

  • If the default transformation is used and
    • Source is array and target is set and not array
    • Source is array and target is set and is array
    • Source is array and target is not set
  • If the default transformation is overridden and
    • Source is array and target is set and not array
    • Source is array and target is set and is array
    • Source is array and target is not set
    • Source is not array target is set and is array

In the following cases the filter cannot be applied:

  • Source is not array and target is set and is not array
  • Source is not array and target is not set

The default XSLT is the following:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <xsl:for-each select="dt/value/array/item/dt/value">
      <$$tagValue$$><xsl:value-of select="."/><$$tagValue$$>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>

XML definition

<filter type="XsltFrom1DArray" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <expressionVariable>...</expressionVariable> <!-- optional overriding XSLT -->
  <valueTagVariableName>...</valueTagVariableName>
  <tokenMap/>
</filter>

XSLT To 1D Array

The XSLT To 1D Array filter bases its operation in XSLT transformations. A default transformation is available, but it can be overridden to offer different functionality. The default functionality aims at transforming an input Variable containing an xml serialization that can be presented as an array of values to a Data Type of type Array. The component type of the target Array cannot be Reflectable while only one dimensional arrays are supported.

This filter is applicable in the following cases:

  • If the default transformation is used and
    • Source is array and target is set and not array
    • Source is array and target is not set
  • If the default transformation is overridden and
    • Source is array and target is set and not array
    • Source is array and target is not set
    • Source is array and target is set and is array
    • Source is not array and target is set and is array

In the following cases the filter cannot be applied:

  • Source is not array and target is set and is not array
  • Source is not array and target is not set

The default XSLT is the following:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <dt type="Array+">
      <value>
        <array code="$$target array code$$">
          <xsl:for-each select="$$valueIteration$$">
            <item>
              <dt type="$$target array component type$$">
                <value>
                  <xsl:value-of select="$$valueSelection$$"/>
                </value>
              </dt>
            </item>
          </xsl:for-each>
        </array>
      </value>
    </dt>
  </xsl:template>
</xsl:stylesheet>

XML definition

<filter type="XsltT1DoArray" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <expressionVariable>...</expressionVariable> <!-- optional overriding XSLT -->
  <selectionVariableName>...</selectionVariableName>
  <iterationVariableName>...</iterationVariableName>
  <tokenMap/>
</filter>

Serialization

The Serialization filter is another simple filter offering the possibility to enrich an already available serialization with additional values based on token replacement. An input Variable acts as the template to enrich and a set of value providers are iterated and their values are used to populate the template based on their tokens. The set of token mappings can be used to override the token values of the value providers so that when they are iterated to match tokens, the target value is used if a mapping exists for their original token value.

XML definition

<filter type="Serialization" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <tokenProviders>
    <var name="..."/>
  </tokenProviders>
  <tokenMap>
    <map key="initial name" value="target name"/>
    ...
  </tokenMap>
</filter>

Reflectable To Template

The Reflectable To Template filter can be applied to an input Variable of Data Type Reflectable or a Data Type Array of component type Reflectable. In the former case the Reflectable is processed using the provided template to serialize it in the way the template defines. In the later case, each item stored in the input Array will be processed as before and the results are concatenated.

The template follows a schema that is depicted in the following examples:

<refl>" +
  <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                [execprfBeginToken]tok2[execprfEndToken]--
                                                                [execprfBeginToken]tok3[execprfEndToken]--
                                                                [execprfBeginToken]tok4[execprfEndToken]--
                                                                [execprfBeginToken]tok5[execprfEndToken]">
    <ax21:cont xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
      <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
      <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
      <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
      <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
      <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
    </ax21:cont>
  </item>
</refl>
<refl>
  <item type="literal" isxml="false">
    &lt;ax21:cont xmlns:ax21=&quot;http://reflectable.test.callables.madgik.di.uoa.gr/xsd&quot; type=&quot;gr.uoa.di.madgik.callables.test.reflectable.RemoteContainerOfPrimitiveContainers&quot;&gt;
  </item>
  <item type="refl" token=\"[execprfBeginToken]Cont1[execprfEndToken]\">
    <refl>
      <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                    [execprfBeginToken]tok2[execprfEndToken]--
                                                                    [execprfBeginToken]tok3[execprfEndToken]--
                                                                    [execprfBeginToken]tok4[execprfEndToken]--
                                                                    [execprfBeginToken]tok5[execprfEndToken]">
        <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
          <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
          <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
          <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
          <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
          <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
        </ax21:cont1>
      </item>
    </refl>
  </item>
  <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
    <refl>
      <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                    [execprfBeginToken]tok2[execprfEndToken]--
                                                                    [execprfBeginToken]tok3[execprfEndToken]--
                                                                    [execprfBeginToken]tok4[execprfEndToken]--
                                                                    [execprfBeginToken]tok5[execprfEndToken]">
        <ax21:cont2 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
          <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
          <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
          <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
          <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
          <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
        </ax21:cont2>
      </item>
    </refl>
  </item>
  <item type="literal" isxml="false" tokenSeparator="--" tokens="[execprfBeginToken]tok6[execprfEndToken]--
                                                                 [execprfBeginToken]tok7[execprfEndToken]">
    &lt;ax21:intPayload&gt;[execprfBeginToken]tok6[execprfEndToken]&lt;/ax21:intPayload&gt;
    &lt;ax21:stringPayload&gt;[execprfBeginToken]tok7&lt;/ax21:stringPayload&gt;
    &lt;/ax21:cont&gt;
  </item>
</refl>
<refl>
  <item type="literal" isxml="false">
    &lt;ax21:cont xmlns:ax21=&quot;http://reflectable.test.callables.madgik.di.uoa.gr/xsd&quot; type=&quot;gr.uoa.di.madgik.callables.test.reflectable.RemoteContainerOfArraysOfPrimitiveContainers&quot;&gt;
  </item>
  <item type="array" token="[execprfBeginToken]StringArrayPayload[execprfEndToken]">
    <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]StringArrayPayload[execprfEndToken]">
      <ax21:stringPayload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]StringArrayPayload[execprfEndToken]</ax21:stringPayload>
    </item>
  </item>
  <item type="array" token="[execprfBeginToken]IntArrayPayload[execprfEndToken]">
    <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]IntArrayPayload[execprfEndToken]">
      <ax21:intPayload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]IntArrayPayload[execprfEndToken]</ax21:intPayload>
    </item>
  </item>
  <item type="array" token="[execprfBeginToken]Cont3[execprfEndToken]">
    <item type="refl" token="[execprfBeginToken]Cont3[execprfEndToken]">
      <refl>
        <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                      [execprfBeginToken]tok2[execprfEndToken]--
                                                                      [execprfBeginToken]tok3[execprfEndToken]--
                                                                      [execprfBeginToken]tok4[execprfEndToken]--
                                                                      [execprfBeginToken]tok5[execprfEndToken]">
          <ax21:cont3 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
            <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
            <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
            <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
            <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
            <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
          </ax21:cont3>
        </item>
      </refl>
    </item>
  </item>
  <item type="refl" token="[execprfBeginToken]Cont1[execprfEndToken]">
    <refl>
      <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                    [execprfBeginToken]tok2[execprfEndToken]--
                                                                    [execprfBeginToken]tok3[execprfEndToken]--
                                                                    [execprfBeginToken]tok4[execprfEndToken]--
                                                                    [execprfBeginToken]tok5[execprfEndToken]">
        <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
          <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
          <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
          <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
          <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
          <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
        </ax21:cont1>
      </item>
    </refl>
  </item>
  <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]PlainStringField[execprfEndToken]">
    <ax21:plainStringPayload xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd">[execprfBeginToken]PlainStringField[execprfEndToken]</ax21:plainStringPayload>
  </item>
  <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
    <refl>
      <item type="literal" isxml="false">
        &lt;ax21:cont2 xmlns:ax21=&quot;http://reflectable.test.callables.madgik.di.uoa.gr/xsd&quot; type=&quot;gr.uoa.di.madgik.callables.test.reflectable.RemoteContainerOfPrimitiveContainers&quot;&gt;
      </item>
      <item type="refl" token="[execprfBeginToken]Cont1[execprfEndToken]">
        <refl>
          <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                        [execprfBeginToken]tok2[execprfEndToken]--
                                                                        [execprfBeginToken]tok3[execprfEndToken]--
                                                                        [execprfBeginToken]tok4[execprfEndToken]--
                                                                        [execprfBeginToken]tok5[execprfEndToken]">
            <ax21:cont1 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
              <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
              <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
              <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
              <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
              <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
            </ax21:cont1>
          </item>
        </refl>
      </item>
      <item type="refl" token="[execprfBeginToken]Cont2[execprfEndToken]">
        <refl>
          <item type="literal" isxml="true" tokenSeparator="--" tokens="[execprfBeginToken]tok1[execprfEndToken]--
                                                                        [execprfBeginToken]tok2[execprfEndToken]--
                                                                        [execprfBeginToken]tok3[execprfEndToken]--
                                                                        [execprfBeginToken]tok4[execprfEndToken]--
                                                                        [execprfBeginToken]tok5[execprfEndToken]">
            <ax21:cont2 xmlns:ax21="http://reflectable.test.callables.madgik.di.uoa.gr/xsd" type="gr.uoa.di.madgik.callables.test.reflectable.RemotePrimitiveContainer">
              <ax21:booleanField>[execprfBeginToken]tok1[execprfEndToken]</ax21:booleanField>
              <ax21:doubleField>[execprfBeginToken]tok2[execprfEndToken]</ax21:doubleField>
              <ax21:floatField>[execprfBeginToken]tok3[execprfEndToken]</ax21:floatField>
              <ax21:integerField>[execprfBeginToken]tok4[execprfEndToken]</ax21:integerField>
              <ax21:stringField>[execprfBeginToken]tok5[execprfEndToken]</ax21:stringField>
            </ax21:cont2>
          </item>
        </refl>
      </item>
      <item type="literal" isxml="false" tokenSeparator="--" tokens="[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]--
                                                                     [execprfBeginToken]StringField[execprfEndToken]">
        &lt;ax21:intPayload&gt;[execprfBeginToken]IntegerPrimitiveField[execprfEndToken]&lt;/ax21:intPayload&gt;
        &lt;ax21:stringPayload&gt;[execprfBeginToken]StringField[execprfEndToken]&lt;/ax21:stringPayload&gt;
        &lt;/ax21:cont2&gt;
      </item>
    </refl>
  </item>
  <item type="literal" isxml="false">
    &lt;/ax21:cont&gt;
  </item>
</refl>

The set of token mappings can be used to override the token values of the input Reflectables so that when they are iterated to match the template, the target value is used if a mapping exists for their original token value.

XML definition

<filter type="ReflectableToTemplate" order="..." storeOutput="true/false" storeOutputName="...">
  <filteredVariable>...</filteredVariable>
  <templateVariable>...</templateVariable>
  <tokenMap>
    <map key="initial name" value="target name"/>
    ...
  </tokenMap>
</filter>

Reflectable From Template

Compose

Decompose

External