All Downloads are FREE. Search and download functionalities are using the official Maven repository.

application.app.global.Queries.xml Maven / Gradle / Ivy

There is a newer version: 0.0.13
Show newest version
<?xml version="1.0" encoding="UTF-8"?>

<!-- Document : Queries.xml Created on : 11 de marzo de 2010, 11:03 Author : Pablo GARCIA Description: AWE Queries File -->
<queries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://aweframework.gitlab.io/awe/docs/schemas/queries.xsd">

  <!-- TESTS !!! -->

  <!-- THIS QUERY IS NEEDED FOR AWE-TEST/WIZARD -->
  <query id="ConUsr" cacheable="true">
    <table id="ope"/>
    <field id="l1_nom" alias="Usr"/>
    <field id="OpeNam" alias="Nom"/>
    <computed format="[Nom] ([Usr])" alias="Val"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="Usr" trim="true"/>
      </and>
    </where>
    <variable id="Usr" type="STRING" session="user"/>
  </query>


  <query id="SimpleGetAll">
    <table id="AweSitModDbs" alias="awe"/>
    <field id="IdeDbs" table="awe" alias="Ide"/>
  </query>

  <query id="SortGetAll">
    <table id="AweSitModDbs" alias="awe"/>
    <field id="IdeSitModDbs" table="awe" alias="id"/>
    <field id="IdeSit" table="awe" alias="site"/>
    <field id="IdeMod" table="awe" alias="module"/>
    <field id="IdeDbs" table="awe" alias="database"/>
    <field id="Ord" table="awe" alias="order"/>
    <order-by field="database" type="ASC"/>
  </query>

  <query id="CheckRollback">
    <table id="HISAweDbs"/>
    <field id="HISope"/>
    <where>
      <and>
        <filter left-field="Des" condition="like" right-variable="variable"/>
      </and>
    </where>
    <variable type="STRINGR" id="variable" value="AWEBOOT-TEST"/>
  </query>

  <query id="SimpleGetManyRecords">
    <table id="HISAweSit" alias="awe"/>
    <field id="IdeSit" table="awe" alias="id"/>
    <field id="Nam" table="awe" alias="name"/>
    <computed alias="prueba" format="[id] - [name]"/>
    <computed alias="prueba2" format="[id]" eval="true" transform="NUMBER" pattern="###,##0.00"/>
  </query>

  <query id="TestScreenTarget" public="true">
    <table id="ope" alias="awe"/>
    <field variable="one" alias="ComponentSelectEnum"/>
    <field variable="one" alias="ComponentSelectQuery"/>
    <field variable="one" alias="ComponentSuggestValue"/>
    <field variable="one" alias="ComponentTextValue"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test"/>
      </and>
    </where>
    <variable id="one" type="INTEGER" value="1"/>
    <variable id="test" type="STRING" value="test"/>
  </query>

  <query id="TestScreenTargetVariable" public="true">
    <table id="ope" alias="awe"/>
    <field variable="three" alias="ComponentSelectEnum"/>
    <field variable="three" alias="ComponentSelectQuery"/>
    <field variable="three" alias="ComponentSuggestVal"/>
    <field variable="three" alias="ComponentSuggestCheckInitial"/>
    <field variable="three" alias="ComponentTextVal"/>
    <field variable="three" alias="ComponentTextStaticVal"/>
    <field variable="three" alias="ComponentTextStaticSessionVal"/>
    <field variable="three" alias="ComponentTextStaticPropertyVal"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test"/>
      </and>
    </where>
    <variable id="three" type="INTEGER" value="3"/>
    <variable id="test" type="STRING" value="test"/>
  </query>

  <query id="TestComponentInitialLoadQuery" public="true">
    <table id="ope" alias="awe"/>
    <field id="IdeOpe" alias="value"/>
    <field id="l1_nom" alias="label"/>
    <order-by field="IdeOpe"/>
  </query>

  <query id="TestComponentInitialLoadValue" public="true">
    <table id="ope" alias="awe"/>
    <field variable="one" alias="kk" transform="NUMBER"/>
    <field variable="one" alias="value2"/>
    <field variable="test" alias="label"/>
    <computed alias="value" format="[value2]" transform="NUMBER_PLAIN"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test"/>
      </and>
    </where>
    <variable id="one" type="INTEGER" value="1"/>
    <variable id="test" type="STRING" value="test"/>
  </query>

  <query id="TestComponentInitialSuggestValue" public="true">
    <table id="ope" alias="awe"/>
    <field id="IdeOpe" alias="value"/>
    <field id="l1_nom" alias="label"/>
    <where>
      <and>
        <filter left-field="IdeOpe" condition="eq" right-variable="test" trim="true"/>
      </and>
    </where>
    <variable id="one" type="INTEGER" value="1"/>
    <variable id="test" type="STRING" name="suggest"/>
  </query>

  <query id="QueryValueInField">
    <table id="AweModPro"/>
    <field id="IdeModPro"/>
    <constant value="1" alias="one"/>
    <order-by field="IdeModPro"/>
  </query>

  <query id="QueryStaticVariableInField">
    <table id="AweModPro"/>
    <field id="IdeModPro"/>
    <field variable="var"/>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="QueryVariableInField">
    <table id="AweModPro"/>
    <field id="IdeModPro"/>
    <field variable="var"/>
    <variable id="var" type="INTEGER" name="variable"/>
  </query>

  <query id="SimpleGetAllNoAlias">
    <table id="AweDbs"/>
    <field id="Drv"/>
  </query>

  <query id="SimpleGetValue">
    <table id="AweSitModDbs"/>
    <field id="IdeSit"/>
    <where>
      <and>
        <filter condition="eq" left-field="IdeSitModDbs" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="2579"/>
  </query>

  <query id="SubqueryInTable">
    <table query="SimpleGetAll" alias="SimpleGetAll"/>
    <field id="Ide" alias="Asdf"/>
  </query>

  <query id="SimpleGetAllUsers">
    <table id="ope"/>
    <field id="IdeOpe" alias="IdeOpe"/>
    <field id="l1_nom" alias="l1_nom"/>
  </query>

  <query id="SubqueryInJoin">
    <table id="ope"/>
    <field id="l1_nom" table="ope" alias="name"/>
    <field id="l1_nom" table="opeAll" alias="nameAll"/>
    <join>
      <table query="SimpleGetAllUsers" alias="opeAll"/>
      <and>
        <filter left-field="IdeOpe" left-table="ope" condition="eq" right-field="IdeOpe" right-table="opeAll"/>
      </and>
    </join>
  </query>

  <query id="TestFieldFunctions">
    <table id="AweSitModDbs" alias="awe"/>
    <field id="IdeSitModDbs" alias="Max" function="MAX"/>
    <field id="IdeSitModDbs" alias="Min" function="MIN"/>
    <field id="IdeDbs" alias="Avg" function="AVG"/>
    <operation operator="MULT" function="ABS" alias="AbsOpe">
      <field id="IdeSitModDbs" function="MAX"/>
      <constant value="-1" type="INTEGER"/>
    </operation>
    <operation function="ABS" operator="ADD" alias="AbsIde">
      <field id="IdeSitModDbs" function="SUM"/>
    </operation>
    <constant value="-1212" type="INTEGER" alias="AbsInteger" function="ABS"/>
    <constant value="-1212.12123" type="DOUBLE" alias="AbsDouble" function="ABS"/>
    <field id="IdeDbs" alias="Cnt" function="CNT"/>
    <field id="Ord" alias="CntDst" function="CNT_DISTINCT"/>
    <field id="Ord" alias="Sum" function="SUM"/>
    <constant value="   as as  daef  " alias="Trim" function="TRIM"/>
  </query>

  <query id="TestFieldGroupByFunctions">
    <table id="AweSitModDbs" alias="awe"/>
    <over alias="First">
      <field id="Ord" function="FIRST_VALUE"/>
      <order-by field="IdeMod"/>
    </over>
    <over alias="Last">
      <field id="Ord" function="LAST_VALUE"/>
      <order-by field="IdeMod"/>
    </over>
  </query>

  <query id="TestFieldDateFunctions">
    <table id="ope" alias="awe"/>
    <field id="dat_mod" table="awe" alias="year" function="YEAR"/>
    <field id="dat_mod" table="awe" alias="month" function="MONTH"/>
    <field id="dat_mod" alias="day" function="DAY"/>
    <field id="dat_mod" alias="hour" function="HOUR"/>
    <field id="dat_mod" alias="minute" function="MINUTE"/>
    <field id="dat_mod" alias="second" function="SECOND"/>
    <where>
      <filter left-field="l1_nom" condition="eq" ignorecase="true">
        <right-operand>
          <constant value="test"/>
        </right-operand>
      </filter>
    </where>
    <order-by field="dat_mod" table="awe" function="YEAR"/>
  </query>

  <query id="SubqueryInField">
    <table id="AweSitModDbs" alias="awe"/>
    <field query="FilterField-Subquery" alias="subquery"/>
  </query>

  <query id="SubqueryInFieldDistinct" distinct="true">
    <table id="AweSitModDbs" alias="awe"/>
    <field query="FilterField-Subquery" alias="subquery"/>
  </query>

  <query id="SimpleUnion">
    <table id="AweDbs"/>
    <field id="Drv" alias="miau"/>
    <union query="SimpleGetAllNoAlias"/>
  </query>

  <query id="SimpleUnionAll">
    <table id="AweDbs"/>
    <field id="Drv"/>
    <union type="ALL" query="SimpleGetAllNoAlias"/>
  </query>

  <query id="SimpleLeftJoin">
    <table id="AweMod"/>
    <field id="Nam" table="AweMod" alias="db_name"/>
    <field id="Nam" table="AweThm" alias="thm_name"/>
    <join type="LEFT">
      <table id="AweThm"/>
      <and>
        <filter left-field="Nam" left-table="AweMod" condition="eq" right-field="Nam" right-table="AweThm"/>
      </and>
    </join>
  </query>

  <query id="SimpleRightJoinWithAlias">
    <table id="AweMod"/>
    <field id="Nam" table="AweMod" alias="db_name"/>
    <field id="Nam" table="miau" alias="thm_name"/>
    <join type="RIGHT">
      <table id="AweThm" alias="miau"/>
      <and>
        <filter left-field="Nam" left-table="AweMod" condition="eq" right-field="Nam" right-table="miau"/>
      </and>
    </join>
  </query>

  <query id="FilterField-Var-Eq">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="eq" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="FilterFieldNoTable-Var-Eq">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" condition="eq" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="FilterField-Var-Ne">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="ne" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="FilterField-Var-Ge">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="ge" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="FilterField-Var-GeDouble">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="ge" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="DOUBLE" value="1.5"/>
  </query>

  <query id="FilterField-Var-GeFloat">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="ge" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="FLOAT" value="1.5"/>
  </query>

  <query id="FilterField-Var-Le">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="le" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="FilterField-Var-Gt">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="gt" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="1"/>
  </query>

  <query id="FilterField-Var-Lt">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="lt" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" value="2"/>
  </query>

  <query id="FilterField-Var-In">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="in" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" name="list"/>
  </query>

  <query id="FilterField-Var-NotIn">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" left-table="AweAppPar" condition="not in" right-variable="var"/>
      </and>
    </where>
    <variable id="var" type="INTEGER" name="list"/>
  </query>

  <query id="FilterField-Var-LikeStringL">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Des" left-table="AweAppPar" condition="like" right-variable="var"/>
      </and>
    </where>
    <order-by field="IdeAweAppPar"/>
    <variable id="var" type="STRINGL" value="s"/>
  </query>

  <query id="FilterField-Var-LikeStringR">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Des" left-table="AweAppPar" condition="like" right-variable="var" ignorecase="true"/>
      </and>
    </where>
    <order-by field="IdeAweAppPar"/>
    <variable id="var" type="STRINGR" value="s"/>
  </query>

  <query id="FilterField-Var-LikeStringB">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Des" left-table="AweAppPar" condition="like" right-variable="var" ignorecase="true"/>
      </and>
    </where>
    <order-by field="IdeAweAppPar"/>
    <variable id="var" type="STRINGB" value="s"/>
  </query>

  <query id="FilterField-Var-LikeStringLIgnoreCase">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Des" left-table="AweAppPar" condition="like" right-variable="var" ignorecase="true"/>
      </and>
    </where>
    <variable id="var" type="STRINGL" value="s"/>
  </query>

  <query id="FilterField-Var-LikeStringRIgnoreCase">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Des" left-table="AweAppPar" condition="like" right-variable="var" ignorecase="true"/>
      </and>
    </where>
    <variable id="var" type="STRINGR" value="s"/>
  </query>

  <query id="FilterField-Var-LikeStringBIgnoreCase">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Des" left-table="AweAppPar" condition="like" right-variable="var" ignorecase="true"/>
      </and>
    </where>
    <variable id="var" type="STRINGB" value="s"/>
  </query>

  <query id="FilterField-IsNull">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="ParVal" left-table="AweAppPar" condition="is null"/>
      </and>
    </where>
    <order-by field="IdeAweAppPar" type="ASC"/>
  </query>

  <query id="FilterField-IsNotNull">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="ParVal" left-table="AweAppPar" condition="is not null"/>
      </and>
    </where>
  </query>

  <query id="FilterField-Field-Eq">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" condition="eq" right-field="Act"/>
      </and>
    </where>
  </query>

  <query id="FilterField-Field-EqCntTable">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <where>
      <and>
        <filter left-field="Cat" condition="eq" right-field="Act" right-table="AweAppPar"/>
      </and>
    </where>
  </query>

  <query id="FilterField-Subquery">
    <table id="AweSit"/>
    <field id="Nam"/>
    <where>
      <and>
        <filter left-field="IdeSit" condition="eq" query="SimpleGetValue"/>
      </and>
    </where>
  </query>

  <query id="QueryTwoTables">
    <table id="AweMod"/>
    <table id="AweModPro"/>
    <field id="Nam"/>
    <field id="IdeModPro"/>
  </query>

  <query id="SimpleOrderBy">
    <table id="AweAppPar"/>
    <field id="Cat"/>
    <field id="ParNam"/>
    <order-by field="Cat" type="ASC"/>
    <order-by field="ParNam" type="DESC"/>
  </query>

  <query id="TransformBoolean">
    <table id="ope"/>
    <field id="l1_act" table="ope" alias="boolean1" transform="BOOLEAN"/>
    <constant value="false" transform="BOOLEAN" alias="boolean2"/>
    <constant value="true" type="BOOLEAN" transform="BOOLEAN" alias="boolean3"/>
    <constant value="{lala: true}" type="OBJECT" transform="BOOLEAN" alias="boolean4"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformNumber">
    <table id="ope"/>
    <field id="IdeOpe" table="ope" alias="number" transform="NUMBER" pattern="###,###.00"/>
    <field id="l1_nom" table="ope" alias="value"/>
    <field id="EmlAdr" table="ope" alias="email"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformNumberPlain">
    <table id="ope"/>
    <field id="IdeOpe" table="ope" alias="number"/>
    <field id="IdeOpe" table="ope" alias="number_transformed" transform="NUMBER_PLAIN"/>
    <field id="l1_nom" table="ope" alias="value"/>
    <field id="EmlAdr" table="ope" alias="email"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformDate">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="DATE"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformDateService" service="getDateList">
    <field id="date1" alias="date1" transform="DATE"/>
    <field id="date2" alias="date2" transform="DATE_MS"/>
    <field id="date3" alias="date3" transform="DATE_RDB"/>
    <field id="date4" alias="date4" transform="JS_TIMESTAMP"/>
    <field id="date5" alias="date5" transform="JS_DATE"/>
    <field id="date7" alias="date6" transform="TIME"/>
    <order-by field="date2" type="DESC"/>
  </query>

  <query id="TransformTimestampService" service="getDateList">
    <field id="date6" alias="date1" transform="TIMESTAMP"/>
    <field id="date6" alias="date2" transform="TIMESTAMP_MS"/>
    <order-by field="date2" type="DESC"/>
  </query>

  <query id="TransformJavascriptDate">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="JS_DATE"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformGenericDate">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="GENERIC_DATE" format-from="dd/MM/yyyy HH:mm:ss"
           format-to="dd/MM/yyyy H:mm"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformElapsedTimeService" service="getElapsedTimeList">
    <field id="ms1" alias="years" transform="ELAPSED_TIME"/>
    <field id="ms2" alias="year" transform="ELAPSED_TIME"/>
    <field id="ms3" alias="months" transform="ELAPSED_TIME"/>
    <field id="ms4" alias="month" transform="ELAPSED_TIME"/>
    <field id="ms5" alias="weeks" transform="ELAPSED_TIME"/>
    <field id="ms6" alias="week" transform="ELAPSED_TIME"/>
    <field id="ms7" alias="days" transform="ELAPSED_TIME"/>
    <field id="ms8" alias="hours" transform="ELAPSED_TIME"/>
    <field id="ms9" alias="minutes" transform="ELAPSED_TIME"/>
    <field id="ms10" alias="seconds" transform="ELAPSED_TIME"/>
    <field id="ms11" alias="milliseconds" transform="ELAPSED_TIME"/>
    <field id="dateSince" alias="dateSince" transform="DATE_SINCE"/>
  </query>


  <query id="TransformDateMilliseconds">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="DATE_MS"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformDateRDB">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="DATE_RDB"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformTime">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="TIME"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformTimestamp">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="TIMESTAMP"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformJavascriptTimestamp">
    <table id="ope"/>
    <field id="l1_psd" alias="fecha" transform="JS_TIMESTAMP"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformEncryptDecrypt">
    <table id="ope"/>
    <field id="l1_nom" alias="nombre"/>
    <field variable="hola" alias="codigo"/>
    <field variable="hola" alias="descodificado" transform="DECRYPT"/>
    <order-by field="l1_nom" type="ASC"/>
    <variable id="hola" type="STRING_ENCRYPT" value="hola"/>
  </query>

  <query id="TransformArrayAndList">
    <table id="ope"/>
    <field id="l1_nom" alias="nombre"/>
    <constant value="1,2,3,4,5,6" alias="lArrayNode" transform="ARRAY" pattern=","/>
    <constant value="1,2,3,4,5,6" alias="lArrayList" transform="LIST" pattern=","/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformTextHtml">
    <table id="ope"/>
    <field id="l1_nom" alias="nombre"/>
    <constant
      value="&lt;a href='tutu'&gt;aaa&lt;/a&gt;\n&lt;a href='tutu'&gt;aaa&lt;/a&gt;\n&lt;a href='tutu'&gt;aaa&lt;/a&gt;"
      alias="text" transform="TEXT_HTML"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformTextPlain">
    <table id="ope"/>
    <field id="l1_nom" alias="nombre"/>
    <constant
      value="&lt;a href='tutu'&gt;aaa&lt;/a&gt;\n&lt;a href='tutu'&gt;aaa&lt;/a&gt;\n&lt;a href='tutu'&gt;aaa&lt;/a&gt;"
      alias="text" transform="TEXT_PLAIN"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TransformTextUniline">
    <table id="ope"/>
    <field id="l1_nom" alias="nombre"/>
    <constant
      value="&lt;a href='tutu'&gt;aaa&lt;/a&gt;\n&lt;a href='tutu'&gt;aaa&lt;/a&gt;\n&lt;a href='tutu'&gt;aaa&lt;/a&gt;"
      alias="text" transform="TEXT_UNILINE"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="TranslateBasic">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <field id="Act" alias="active" translate="Es1Es0"/>
  </query>

  <query id="ComputedBasic">
    <table id="ope"/>
    <field id="l1_nom" table="ope" alias="value"/>
    <field id="EmlAdr" table="ope" alias="email"/>
    <computed format="[value] ([email])" alias="label"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="ComputeAndTranslate">
    <table id="AweThm" alias="a"/>
    <field id="Nam" alias="value"/>
    <field id="Act" alias="Act" table="a"/>
    <computed format="[Act]" alias="ActTxt" translate="Es1Es0"/>
  </query>

  <query id="ComputedEvalString">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="'[value]' == 'adminflare' ? 'Manager':'No manager'" eval="true" alias="label"/>
  </query>

  <query id="ComputedEvalNumber">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="'[value]' == 'adminflare' ? 1 : 0" eval="true" alias="label"/>
  </query>

  <query id="ComputedEvalVariable">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="[variable]" alias="variable"/>
    <computed format="'[variable]' == 'lalala' &amp;&amp; '[value]' == 'adminflare' ? 1 : 0" eval="true" alias="label"/>
    <variable id="variable" type="STRING" name="prueba"/>
  </query>

  <query id="ComputedEvalVariableValue">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="[variable]" alias="variable"/>
    <computed format="'[variable]' == 'prueba' &amp;&amp; '[value]' == 'adminflare' ? 1 : 0" eval="true" alias="label"/>
    <variable id="variable" type="STRING" value="prueba"/>
  </query>

  <query id="ComputedEvalVariableProperty">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="[variable]" alias="variable"/>
    <computed format="'[variable]' == 'awe' &amp;&amp; '[value]' == 'adminflare' ? 1 : 0" eval="true" alias="label"/>
    <variable id="variable" type="STRING" property="module.awe"/>
  </query>

  <query id="ComputedEvalTranslate">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="'[value]' == 'adminflare' ? '1' : '0'" eval="true" alias="label" translate="Es1Es0"/>
  </query>

  <query id="ComputedEvalTransform">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="'[value]' == 'adminflare' ? 123456 : 0.24" eval="true" alias="label" transform="NUMBER"
              pattern="###,##0.00"/>
  </query>

  <query id="ComputedEvalTransformTranslate">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <computed format="'[value]' == 'adminflare' ? 1.0 : 0.0" eval="true" alias="label" transform="NUMBER" pattern="#"
              translate="Es1Es0"/>
  </query>

  <query id="SimplePagination">
    <table id="AweAppPar"/>
    <field id="IdeAweAppPar"/>
    <order-by field="IdeAweAppPar" type="ASC"/>
  </query>

  <query id="SimplePaginationService" service="simplePagination">
    <field id="value"/>
  </query>

  <query id="SimpleManagedPaginationService" service="simpleManagedPagination" managed-pagination="true">
    <field id="value"/>
  </query>

  <query id="CompoundBasic">
    <table id="AweThm"/>
    <field id="Nam" alias="value" noprint="true"/>
    <compound alias="compuesto">
      <computed format="[value]" alias="value"/>
      <computed format="'[value]' == 'adminflare' ? 1.0 : 0.0" eval="true" alias="label" transform="NUMBER" pattern="#"
                translate="Es1Es0"/>
    </compound>
    <order-by field="Nam" type="ASC"/>
  </query>

  <query id="TotalizeTotal" cacheable="true">
    <table query="QrySitModDbsOrd" alias="TotLst"/>
    <field id="IdeSitModDbs" table="TotLst" alias="IdeSitModDbs"/>
    <field id="IdeSit" table="TotLst" alias="IdeSit"/>
    <field id="NamSit" table="TotLst" alias="NamSit"/>
    <field id="IdeMod" table="TotLst" alias="IdeMod"/>
    <field id="NamMod" table="TotLst" alias="NamMod"/>
    <field id="IdeDbs" table="TotLst" alias="IdeDbs"/>
    <field id="Als" table="TotLst" alias="Als3"/>
    <field id="Ord" table="TotLst" alias="Ord3" transform="NUMBER" pattern="###,##0.00"/>
    <totalize function="SUM" label="Total" field="Als3" style="TOTAL">
      <totalize-field field="Ord3"/>
    </totalize>
    <order-by field="IdeSitModDbs" type="ASC"/>
  </query>

  <query id="TotalizeSubtotal" cacheable="true">
    <table query="QrySitModDbsOrd" alias="TotLst"/>
    <field id="IdeSitModDbs" table="TotLst" alias="IdeSitModDbs"/>
    <field id="IdeSit" table="TotLst" alias="IdeSit"/>
    <field id="NamSit" table="TotLst" alias="NamSit"/>
    <field id="IdeMod" table="TotLst" alias="IdeMod"/>
    <field id="NamMod" table="TotLst" alias="NamMod"/>
    <field id="IdeDbs" table="TotLst" alias="IdeDbs"/>
    <field id="Als" table="TotLst" alias="Als3"/>
    <field id="Ord" table="TotLst" alias="Ord3" transform="NUMBER" pattern="###,##0.00"/>
    <totalize function="SUM" label="Subtotal" field="NamMod" style="SUBTOTAL">
      <totalize-field field="Ord3"/>
      <totalize-by field="IdeMod"/>
    </totalize>
    <order-by field="IdeDbs" type="ASC"/>
    <order-by field="IdeSitModDbs" type="DESC"/>
  </query>

  <query id="TotalizeTotalSubtotal" cacheable="true">
    <table query="QrySitModDbsOrd" alias="TotLst"/>
    <field id="IdeSitModDbs" table="TotLst" alias="IdeSitModDbs"/>
    <field id="IdeSit" table="TotLst" alias="IdeSit"/>
    <field id="NamSit" table="TotLst" alias="NamSit"/>
    <field id="IdeMod" table="TotLst" alias="IdeMod"/>
    <field id="NamMod" table="TotLst" alias="NamMod"/>
    <field id="IdeDbs" table="TotLst" alias="IdeDbs"/>
    <field id="Als" table="TotLst" alias="Als3"/>
    <field id="Ord" table="TotLst" alias="Ord3" transform="NUMBER" pattern="###,##0.00"/>
    <totalize function="SUM" label="Subtotal" field="NamMod" style="SUBTOTAL">
      <totalize-field field="Ord3"/>
      <totalize-by field="IdeMod"/>
    </totalize>
    <totalize function="SUM" label="Total" field="Als3" style="TOTAL">
      <totalize-field field="Ord3"/>
    </totalize>
    <order-by field="IdeDbs" type="ASC"/>
    <order-by field="IdeSitModDbs" type="DESC"/>
  </query>

  <query id="VariableStringNull">
    <table id="AweThm"/>
    <field id="Nam" alias="value"/>
    <where>
      <and>
        <filter left-field="IdeThm" condition="ne" right-variable="string-null"/>
      </and>
    </where>
    <variable id="string-null" type="STRINGN" name="stringNull"/>
  </query>

  <query id="VariableStringHash">
    <table id="ope"/>
    <field id="l1_nom"/>
    <field variable="hashPbk" alias="hashPbk"/>
    <field variable="hashRipemd" alias="hashRipemd"/>
    <field variable="hashSha" alias="hashSha"/>
    <field variable="hashEncrypt" alias="hashEncrypt"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test" trim="true"/>
      </and>
    </where>
    <variable id="test" type="STRING" value="test"/>
    <variable id="hashPbk" type="STRING_HASH_PBKDF_2_W_HMAC_SHA_1" value="prueba"/>
    <variable id="hashRipemd" type="STRING_HASH_RIPEMD160" value="prueba"/>
    <variable id="hashSha" type="STRING_HASH_SHA" value="prueba"/>
    <variable id="hashEncrypt" type="STRING_ENCRYPT" value="prueba"/>
  </query>

  <query id="VariableDate" distinct="true">
    <table id="HISAweDbs"/>
    <field id="Als"/>
    <field variable="date" alias="date" transform="DATE"/>
    <field variable="dateParameter" alias="dateParameter" transform="DATE"/>
    <field variable="sessionDateParameter" alias="sessionDate" transform="DATE"/>
    <field variable="timestamp" alias="timestamp" transform="TIMESTAMP"/>
    <where>
      <and>
        <filter condition="like" ignorecase="true">
          <left-operand>
            <field id="HISope"/>
          </left-operand>
          <right-operand>
            <constant value="test" type="STRINGB"/>
          </right-operand>
        </filter>
        <filter left-field="HISdat" condition="lt">
          <right-operand>
            <field variable="dateParameter"/>
          </right-operand>
        </filter>
      </and>
    </where>
    <variable id="date" type="DATE" value="23/10/1978"/>
    <variable id="dateParameter" type="DATE" name="date"/>
    <variable id="sessionDateParameter" type="DATE" session="date"/>
    <variable id="timestamp" type="TIMESTAMP" value="23/10/1978 15:03:01.000"/>
  </query>

  <query id="VariableDateList" service="replaceColumns">
    <field id="GrdMus-newColumn1" alias="date" transform="DATE"/>
    <variable id="fechas" type="DATE" name="FilDat"/>
    <variable id="fecha" type="DATE" value="23/10/1978"/>
  </query>

  <query id="VariableSystemDate">
    <table id="ope"/>
    <field id="l1_nom"/>
    <field variable="date" alias="date" transform="DATE"/>
    <field variable="time" alias="time" transform="TIME"/>
    <field variable="timestamp" alias="timestamp" transform="TIMESTAMP_MS"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test" trim="true"/>
      </and>
    </where>
    <variable id="test" type="STRING" value="test"/>
    <variable id="date" type="SYSTEM_DATE"/>
    <variable id="time" type="SYSTEM_TIME"/>
    <variable id="timestamp" type="SYSTEM_DATE"/>
  </query>

  <query id="VariableNull">
    <table id="ope"/>
    <field id="l1_nom"/>
    <field variable="null" alias="null"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test" trim="true"/>
      </and>
    </where>
    <variable id="test" type="STRING" value="test"/>
    <variable id="null" type="NULL"/>
  </query>

  <query id="OperationNullIf">
    <table id="AweThm"/>
    <field id="Nam"/>
    <operation operator="NULLIF" alias="null">
      <field id="Nam"/>
      <constant value="sunset"/>
    </operation>
    <where>
      <and>
        <filter left-field="Nam" condition="in">
          <right-operand>
            <constant value="sunset,sunny,default,purple-hills" type="STRING"/>
          </right-operand>
        </filter>
      </and>
    </where>
  </query>

  <query id="VariableObject">
    <table id="ope"/>
    <field id="l1_nom"/>
    <field variable="object" alias="object"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test" trim="true"/>
      </and>
    </where>
    <variable id="test" type="STRING" value="test"/>
    <variable id="object" type="OBJECT" name="object"/>
  </query>

  <query id="VariableProperty">
    <table id="ope"/>
    <field id="l1_nom"/>
    <field variable="property" alias="property"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="eq" right-variable="test" trim="true"/>
      </and>
    </where>
    <variable id="test" type="STRING" value="test"/>
    <variable id="property" type="STRING" property="module.app"/>
  </query>

  <query id="VariableOptional">
    <table id="ope"/>
    <field id="l1_nom"/>
    <where>
      <and>
        <filter left-field="IdeOpe" condition="eq" right-variable="var1" optional="true"/>
        <filter left-field="IdeOpe" condition="eq" right-variable="var2" optional="true"/>
      </and>
    </where>
    <variable id="var1" type="INTEGER" name="var1"/>
    <variable id="var2" type="INTEGER" name="var2"/>
  </query>

  <query id="VariableList">
    <table id="ope"/>
    <field id="l1_nom"/>
    <where>
      <and>
        <filter left-field="IdeOpe" condition="in" right-variable="var1" optional="true"/>
        <filter left-field="IdeOpe" condition="in" right-variable="var2" optional="true"/>
        <filter left-field="IdeOpe" condition="in" right-variable="var3" optional="true"/>
        <filter left-field="IdeOpe" condition="in" right-variable="var4"/>
      </and>
    </where>
    <variable id="var1" type="INTEGER" name="list1"/>
    <variable id="var2" type="INTEGER" name="list2"/>
    <variable id="var3" type="INTEGER" name="list3"/>
    <variable id="var4" type="INTEGER" name="list4"/>
  </query>

  <query id="FilterInSubQuery">
    <table id="ope"/>
    <field id="l1_nom"/>
    <where>
      <and>
        <filter left-field="IdeOpe" condition="in" query="FilterSubQuery"/>
      </and>
    </where>
  </query>

  <query id="FilterSubQuery">
    <table id="ope"/>
    <field id="IdeOpe"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="in" right-variable="var4"/>
      </and>
    </where>
    <variable id="var4" type="STRING" name="test"/>
  </query>

  <query id="SimpleEnum" enumerated="Es1Es0">
    <field id="value"/>
    <field id="label"/>
  </query>

  <query id="SimpleEnumPub" enumerated="Es1Es0" public="true">
    <field id="value"/>
    <field id="label"/>
  </query>

  <query id="LongerEnum" enumerated="ScrCnfAtrTyp">
    <field id="value"/>
    <field id="label"/>
  </query>

  <query id="DatalistNoParams" service="returnDatalistNoParams">
    <field id="value"/>
  </query>

  <query id="StringArrayNoParams" service="returnStringArrayNoParams">
    <field id="value"/>
  </query>

  <query id="StringArrayNumberParam" service="returnStringArrayNumberParam">
    <field id="value"/>
    <variable id="variable" type="INTEGER" value="10"/>
  </query>

  <query id="StringArrayLongParam" service="returnStringArrayLongParam">
    <field id="value"/>
    <variable id="variable" type="LONG" value="10"/>
  </query>

  <query id="StringArrayDoubleParam" service="returnStringArrayDoubleParam">
    <field id="value"/>
    <variable id="variable" type="DOUBLE" value="10.0"/>
  </query>

  <query id="StringArrayFloatParam" service="returnStringArrayFloatParam">
    <field id="value"/>
    <variable id="variable" type="FLOAT" value="10.0"/>
  </query>

  <query id="StringArrayBooleanParam" service="returnStringArrayBooleanParam">
    <field id="value"/>
    <variable id="variable" type="BOOLEAN" value="true"/>
  </query>

  <!-- TEST QUERIES -->
  <query id="SelMulLst" distinct="true" cacheable="true">
    <table id="GutEmlGrp" alias="Grp"/>
    <table id="ope"/>
    <field id="Usr" table="Grp" alias="value"/>
    <field id="EmlAdr" table="ope" alias="Eml"/>
    <computed format="[value] ([Eml])" alias="label"/>
    <where>
      <and>
        <filter left-field="Grp" left-table="Grp" condition="in" right-variable="Grp" trim="true"/>
        <filter left-field="l1_nom" left-table="ope" condition="eq" right-field="Usr" right-table="Grp" optional="true"
                trim="true"/>
      </and>
    </where>
    <variable id="Grp" type="STRING" name="SelMul"/>
  </query>

  <!-- TEST HAVING -->
  <query id="HavTst" public="true">
    <table id="HisAweEmlSrv"/>
    <field id="HISact" alias="typ"/>
    <field variable="one" function="SUM" alias="act"/>
    <group-by field="HISact"/>
    <having>
      <and>
        <filter left-variable="one" left-function="SUM" condition="gt" right-variable="top"/>
      </and>
    </having>
    <order-by field="HISact"/>
    <variable id="top" type="INTEGER" value="1"/>
    <variable id="one" type="INTEGER" value="1"/>
  </query>

  <!-- TEST HAVING FOR UNIT TEST -->
  <query id="HavTstUni" public="true">
    <table id="AweThm"/>
    <field id="act" alias="act"/>
    <field variable="one" function="SUM" alias="sumAct"/>
    <group-by field="act"/>
    <having>
      <and>
        <filter left-variable="one" left-function="SUM" condition="gt" right-variable="top"/>
      </and>
    </having>
    <order-by field="act"/>
    <variable id="top" type="INTEGER" value="1"/>
    <variable id="one" type="INTEGER" value="1"/>
  </query>

  <!-- Test matrix with totalizer -->
  <query id="QrySitModDbsOrd" cacheable="true">
    <table id="AweSitModDbs" alias="sitModDbs"/>
    <field id="IdeSitModDbs" table="sitModDbs" alias="IdeSitModDbs"/>
    <field id="IdeSit" table="sitModDbs" alias="IdeSit"/>
    <field id="Nam" table="sit" alias="NamSit"/>
    <field id="IdeMod" table="sitModDbs" alias="IdeMod"/>
    <field id="Nam" table="mod" alias="NamMod"/>
    <field id="IdeDbs" table="sitModDbs" alias="IdeDbs"/>
    <field id="Als" table="dbs" alias="Als"/>
    <field id="Ord" table="sitModDbs" alias="Ord"/>
    <join>
      <table id="AweDbs" alias="dbs"/>
      <and>
        <filter left-field="IdeDbs" left-table="sitModDbs" condition="eq" right-field="IdeDbs" right-table="dbs"/>
      </and>
    </join>
    <join>
      <table id="AweMod" alias="mod"/>
      <and>
        <filter left-field="IdeMod" left-table="sitModDbs" condition="eq" right-field="IdeMod" right-table="mod"/>
      </and>
    </join>
    <join>
      <table id="AweSit" alias="sit"/>
      <and>
        <filter left-field="IdeSit" left-table="sitModDbs" condition="eq" right-field="IdeSit" right-table="sit"/>
      </and>
    </join>
  </query>

  <!-- Test matrix with totalizer -->
  <query id="QrySitModDbsOrdTot" cacheable="true">
    <table query="QrySitModDbsOrd" alias="TotLst"/>
    <field id="IdeSitModDbs" table="TotLst" alias="IdeSitModDbs"/>
    <field id="IdeSit" table="TotLst" alias="IdeSit"/>
    <field id="NamSit" table="TotLst" alias="NamSit"/>
    <field id="IdeMod" table="TotLst" alias="IdeMod"/>
    <field id="NamMod" table="TotLst" alias="NamMod"/>
    <field id="IdeDbs" table="TotLst" alias="IdeDbs"/>
    <field id="Als" table="TotLst" alias="Als3"/>
    <field id="Ord" table="TotLst" alias="Ord3" transform="NUMBER"/>
    <totalize function="SUM" label="Subtotal" field="NamMod" style="SUBTOTAL">
      <totalize-field field="Ord3"/>
      <totalize-by field="IdeMod"/>
    </totalize>
    <totalize function="SUM" label="Total" field="Als3" style="TOTAL">
      <totalize-field field="Ord3"/>
    </totalize>
    <order-by field="IdeDbs" type="ASC"/>
    <order-by field="IdeSitModDbs" type="DESC"/>
  </query>

  <!-- Test service -->
  <query id="QrySitModDbsOrdTotSrv" cacheable="true" service="getQueryDataTotalize">
    <field id="IdeSitModDbs" alias="IdeSitModDbs"/>
    <field id="IdeSit" alias="IdeSit"/>
    <field id="NamSit" alias="NamSitSrv"/>
    <field id="IdeMod" alias="IdeMod"/>
    <field id="NamMod" alias="NamModSrv"/>
    <field id="IdeDbs" alias="IdeDbs"/>
    <field id="Als" alias="AlsSrv"/>
    <field id="Ord" alias="OrdSrv"/>
    <totalize function="SUM" label="Subtotal" field="NamModSrv" style="SUBTOTAL">
      <totalize-field field="OrdSrv"/>
      <totalize-by field="IdeMod"/>
    </totalize>
    <totalize function="SUM" label="Total" field="AlsSrv" style="TOTAL">
      <totalize-field field="OrdSrv"/>
    </totalize>
    <variable id="query" type="STRING" value="QrySitModDbsOrd"/>
  </query>

  <!-- Test matrix with totalizer -->
  <query id="ServiceQueryTwoParams" service="returnStringArrayTwoStringParams">
    <field id="Param1" alias="IdeSitModDbsSrv"/>
    <field id="Param2" alias="IdeSitSrv"/>
    <variable id="qryNam" type="STRING" value="QrySitModDbsOrd"/>
    <variable id="fldLst" type="STRING" value="IdeSitModDbs,IdeSit,NamSit,IdeMod,NamMod,IdeDbs,Als,Ord"/>
  </query>

  <!-- Union query -->
  <query id="QryUniTst">
    <table id="AweDbs" alias="dbs"/>
    <field id="Als" table="dbs" alias="Als"/>
    <field id="Als" table="dbs" alias="Als1"/>
    <field id="Als" table="dbs" alias="Als2"/>
    <field id="Als" table="dbs" alias="Als3"/>
    <field id="Als" table="dbs" alias="Als4"/>
    <field id="Als" table="dbs" alias="Als5"/>
    <field id="Als" table="dbs" alias="Als6"/>
    <field id="Als" table="dbs" alias="Als7"/>
    <field id="Als" table="dbs" alias="Als8"/>
    <field id="Als" table="dbs" alias="Als9"/>
    <field id="Als" table="dbs" alias="Als10"/>
    <field id="Als" table="dbs" alias="Als11"/>
    <field id="Als" table="dbs" alias="Als12"/>
    <field id="Als" table="dbs" alias="Als13"/>
    <field id="Als" table="dbs" alias="Als14"/>
    <field id="Als" table="dbs" alias="Als15"/>
    <field id="Als" table="dbs" alias="Als16"/>
    <field id="Als" table="dbs" alias="Als17"/>
    <field id="Als" table="dbs" alias="Als18"/>
    <field id="Des" table="dbs" alias="Des"/>
    <field id="Des" table="dbs" alias="Des1"/>
    <field id="Des" table="dbs" alias="Des2"/>
    <field id="Des" table="dbs" alias="Des3"/>
    <constant value="123456" alias="MulNum" transform="NUMBER" pattern="###,###.00"/>
    <computed alias="Prg" format="parseInt(Math.random()*100,10)" eval="true"/>
    <computed alias="Prg1" format="parseInt(Math.random()*100,10)" eval="true"/>
    <computed format="[Als] - [Des]" alias="DesTxt"/>
  </query>
  <query id="QryUniTstId">
    <table query="QryUniTst" alias="testQuery"/>
    <field id="Als" table="testQuery" alias="id"/>
    <field id="Als" table="testQuery" alias="Als"/>
    <field id="Als" table="testQuery" alias="Als1"/>
    <field id="Als" table="testQuery" alias="Als2"/>
    <field id="Als" table="testQuery" alias="Als3"/>
    <field id="Als" table="testQuery" alias="Als4"/>
    <field id="Als" table="testQuery" alias="Als5"/>
    <field id="Als" table="testQuery" alias="Als6"/>
    <field id="Als" table="testQuery" alias="Als7"/>
    <field id="Als" table="testQuery" alias="Als8"/>
    <field id="Als" table="testQuery" alias="Als9"/>
    <field id="Als" table="testQuery" alias="Als10"/>
    <field id="Als" table="testQuery" alias="Als11"/>
    <field id="Als" table="testQuery" alias="Als12"/>
    <field id="Als" table="testQuery" alias="Als13"/>
    <field id="Als" table="testQuery" alias="Als14"/>
    <field id="Als" table="testQuery" alias="Als15"/>
    <field id="Als" table="testQuery" alias="Als16"/>
    <field id="Als" table="testQuery" alias="Als17"/>
    <field id="Als" table="testQuery" alias="Als18"/>
    <field id="Des" table="testQuery" alias="Des"/>
    <field id="Des" table="testQuery" alias="Des1"/>
    <field id="Des" table="testQuery" alias="Des2"/>
    <field id="Des" table="testQuery" alias="Des3"/>
    <compound alias="DwnFil">
      <computed alias="label" format="[Des]"/>
      <computed alias="value" format="d2ViYXBwLnJhciB8IDk2MjI5MDkgfCBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW0%3D"/>
    </compound>
    <constant value="123456" alias="MulNum" transform="NUMBER" pattern="###,###.00"/>
    <computed alias="PrgVal" format="Math.round(Math.random()*100)" eval="true"/>
    <compound alias="Prg">
      <computed alias="value" format="[PrgVal]"/>
      <computed alias="label" format="[PrgVal]%"/>
    </compound>
    <computed alias="Prg1" format="parseInt(Math.random()*100,10)" eval="true"/>
    <computed alias="Prg2" format="parseInt(Math.random()*100,10) - 50" eval="true"/>
    <compound alias="TxtViw">
      <computed alias="icon" format="[Prg2] &lt; 0 ? 'exclamation' : null" eval="true"/>
      <computed alias="style" format="[Prg2] &lt; 0 ? 'text-danger' : ''" eval="true"/>
      <computed alias="label" format="[Prg2]" transform="NUMBER" pattern="###,##0.00"/>
      <computed alias="value" format="[Prg2]"/>
    </compound>
    <compound alias="TxtSty">
      <computed alias="cell-style" format="[Prg2] &lt; 0 ? 'text-danger' : ''" eval="true"/>
      <computed alias="label" format="[Prg2]" transform="NUMBER" pattern="###,##0.00"/>
      <computed alias="value" format="[Prg2]" transform="NUMBER" pattern="###,##0.00"/>
    </compound>
    <computed format="**[Als]** - [Des]" alias="DesTxt" transform="MARKDOWN_HTML"/>
  </query>
  <query id="QryChkPrg">
    <table id="AweDbs" alias="dbs"/>
    <field id="IdeDbs" table="dbs" alias="MaxId" function="MAX"/>
    <computed alias="value" format="Math.round(Math.random()*100)" eval="true"/>
    <computed alias="label" format="[value]%"/>
  </query>

  <!-- TreeGrid example -->
  <query id="ProModTrePro" distinct="true" cacheable="true">
    <table query="ProModTreProBas" alias="FullTree"/>
    <field id="id" table="FullTree" alias="id"/>
    <field id="parent" table="FullTree" alias="parentValue" noprint="true"/>
    <field id="isLeaf" table="FullTree" alias="isLeaf"/>
    <field id="Nam" table="FullTree" alias="Nam"/>
    <field id="Lev" table="FullTree" alias="Lev"/>
    <computed format="[id]" alias="TreGrd_id"/>
    <computed format="'[parentValue]' === 'null' ? '' : '[parentValue]'" eval="true" alias="parent" nullValue="null"/>
    <computed format="'[parentValue]' === 'null' ? '' : '[parentValue]'" eval="true" alias="TreGrd_parent"
              nullValue="null"/>
    <computed format="[Nam]" alias="TreGrd_Nam"/>
    <computed format="[id]" alias="TreGrdEdi_id"/>
    <computed format="'[parentValue]' === 'null' ? '' : '[parentValue]'" eval="true" alias="TreGrdEdi_parent"
              nullValue="null"/>
    <computed format="[Nam]" alias="TreGrdEdi_Nam"/>
    <compound alias="TreGrd_lev">
      <computed format="[Lev]" alias="value"/>
      <computed format="[Lev]" alias="label"/>
      <computed format="'[Lev]' == 1 ? 'text-danger' : '[Lev]' == 2 ? 'text-success' : ''" eval="true" alias="style"/>
    </compound>
    <computed format="[Lev]" alias="TreGrd_lev"/>
    <computed format="[Lev]" alias="TreGrdEdi_lev"/>
    <order-by field="id" table="FullTree"/>
  </query>
  <query id="ProModTreProLoa" distinct="true" cacheable="true">
    <table query="ProModTreProBas" alias="FullTree"/>
    <field id="id" table="FullTree" alias="id"/>
    <field id="parent" table="FullTree" alias="parentValue" noprint="true"/>
    <field id="isLeaf" table="FullTree" alias="isLeaf"/>
    <field id="Nam" table="FullTree" alias="Nam"/>
    <computed format="[id]" alias="TreGrdLoa_id"/>
    <computed format="'[parentValue]' === 'null' ? '' : '[parentValue]'" eval="true" alias="parent" nullValue="null"/>
    <computed format="'[parentValue]' === 'null' ? '' : '[parentValue]'" eval="true" alias="TreGrdLoa_parent"
              nullValue="null"/>
    <computed format="[Nam]" alias="TreGrdLoa_Nam"/>
    <computed format="[id]" alias="TreGrdLoaEdi_id"/>
    <computed format="'[parentValue]' === 'null' ? '' : '[parentValue]'" eval="true" alias="TreGrdLoaEdi_parent"
              nullValue="null"/>
    <computed format="[Nam]" alias="TreGrdLoaEdi_Nam"/>
    <computed format="2" alias="TreGrdLoa_lev"/>
    <computed format="4" alias="TreGrdEdiLoa_lev"/>
    <where>
      <or>
        <filter left-field="parent" left-table="FullTree" condition="eq" right-variable="parent"/>
        <and>
          <filter left-variable="parentEmpty" condition="eq" right-variable="empty"/>
          <filter left-field="parent" left-table="FullTree" condition="eq" right-variable="empty"/>
        </and>
      </or>
    </where>
    <variable id="parent" type="STRINGN" name="expandingBranch"/>
    <variable id="parentEmpty" type="STRING" name="expandingBranch"/>
    <variable id="empty" type="STRING" name=""/>
    <order-by field="id" table="FullTree"/>
  </query>
  <query id="ProModTreProBas" distinct="true" cacheable="true">
    <table id="AweModPro" alias="modpro"/>
    <operation operator="CONCAT" alias="id">
      <constant value="Pro"/>
      <field id="Nam" table="pro"/>
    </operation>
    <constant value="" alias="parent"/>
    <constant value="false" type="BOOLEAN" alias="isLeaf"/>
    <field id="Nam" table="pro" alias="Nam"/>
    <constant value="1" type="INTEGER" alias="Lev"/>
    <computed format="'[parent]' === 'null' ? '' : '[parent]'" eval="true" nullValue="null" alias="parent"/>
    <join>
      <table id="AwePro" alias="pro"/>
      <and>
        <filter left-field="IdePro" left-table="modpro" condition="eq" right-field="IdePro" right-table="pro"/>
      </and>
    </join>
    <union query="ProModTreMod"/>
    <union query="ProSitTreMod"/>
    <variable id="empty" type="STRING" value=""/>
  </query>
  <query id="ProModTreMod" distinct="true" cacheable="true">
    <table id="AweModPro" alias="modpro"/>
    <operation operator="CONCAT" alias="id">
      <constant value="Pro"/>
      <field id="Nam" table="pro"/>
      <constant value="-Mod"/>
      <field id="Nam" table="mod"/>
    </operation>
    <operation operator="CONCAT" alias="parent">
      <constant value="Pro"/>
      <field id="Nam" table="pro"/>
    </operation>
    <constant value="false" type="BOOLEAN" alias="isLeaf"/>
    <field id="Nam" table="mod" alias="Nam"/>
    <constant value="2" type="INTEGER" alias="Lev"/>
    <join>
      <table id="AwePro" alias="pro"/>
      <and>
        <filter left-field="IdePro" left-table="modpro" condition="eq" right-field="IdePro" right-table="pro"/>
      </and>
    </join>
    <join>
      <table id="AweMod" alias="mod"/>
      <and>
        <filter left-field="IdeMod" left-table="modpro" condition="eq" right-field="IdeMod" right-table="mod"/>
      </and>
    </join>
    <where>
      <and>
        <filter condition="eq" right-variable="parent" optional="true">
          <left-operand>
            <operation operator="CONCAT">
              <constant value="Pro"/>
              <field id="Nam" table="pro"/>
            </operation>
          </left-operand>
        </filter>
      </and>
    </where>
    <variable id="parent" type="STRING" name="expandingBranch" optional="true"/>
  </query>
  <query id="ProSitTreMod" distinct="true" cacheable="true">
    <table id="AweModPro" alias="modpro"/>
    <operation operator="CONCAT" alias="id">
      <constant value="Pro"/>
      <field id="Nam" table="pro"/>
      <constant value="-Mod"/>
      <field id="Nam" table="mod"/>
      <constant value="-Sit"/>
      <field id="Nam" table="sit"/>
    </operation>
    <operation operator="CONCAT" alias="parent">
      <constant value="Pro"/>
      <field id="Nam" table="pro"/>
      <constant value="-Mod"/>
      <field id="Nam" table="mod"/>
    </operation>
    <constant value="true" type="BOOLEAN" alias="isLeaf"/>
    <field id="Nam" table="sit" alias="Nam"/>
    <constant value="3" type="INTEGER" alias="Lev"/>
    <join>
      <table id="AwePro" alias="pro"/>
      <and>
        <filter left-field="IdePro" left-table="modpro" condition="eq" right-field="IdePro" right-table="pro"/>
      </and>
    </join>
    <join>
      <table id="AweMod" alias="mod"/>
      <and>
        <filter left-field="IdeMod" left-table="modpro" condition="eq" right-field="IdeMod" right-table="mod"/>
      </and>
    </join>
    <join>
      <table id="AweSitModDbs" alias="sitmod"/>
      <and>
        <filter left-field="IdeMod" left-table="modpro" condition="eq" right-field="IdeMod" right-table="sitmod"/>
      </and>
    </join>
    <join>
      <table id="AweSit" alias="sit"/>
      <and>
        <filter left-field="IdeSit" left-table="sitmod" condition="eq" right-field="IdeSit" right-table="sit"/>
      </and>
    </join>
    <where>
      <and>
        <filter condition="eq" right-variable="parent" optional="true">
          <left-operand>
            <operation operator="CONCAT">
              <constant value="Pro"/>
              <field id="Nam" table="pro"/>
              <constant value="-Mod"/>
              <field id="Nam" table="mod"/>
            </operation>
          </left-operand>
        </filter>
      </and>
    </where>
    <variable id="parent" type="STRING" name="expandingBranch" optional="true"/>
  </query>
  <query id="ModProMaxId">
    <table id="AweModPro" alias="modpro"/>
    <field id="IdeModPro" table="modpro" alias="IdeModPro" function="MAX"/>
  </query>

  <!-- QUERY EDITABLE LIST -->
  <query id="QryEdiTst" managed-pagination="true">
    <table id="AweThm" alias="acc1"/>
    <field id="Nam" alias="Txt"/>
    <field id="Nam" alias="Txt1"/>
    <computed alias="Num" format="Math.random() * 50000" eval="true"/>
    <computed alias="Num1" format="Math.random() * 30000" eval="true"/>
    <computed alias="Num2" format="Math.random() * 20000" eval="true"/>
    <computed format="" alias="Dat"/>
    <computed format="" alias="Dat1"/>
    <computed format="" alias="FilDat"/>
    <computed format="" alias="FilDat1"/>
    <computed format="" alias="Tim"/>
    <computed format="" alias="Tim1"/>
    <computed format="" alias="Col"/>
    <computed format="" alias="Col1"/>
    <field id="IdeThm" alias="IdeThm" transform="NUMBER"/>
    <field id="IdeThm" alias="IdeThm1" transform="NUMBER"/>
    <field id="IdeThm" alias="IdeThmNum"/>
    <compound alias="Sug">
      <computed alias="label" format="Prueba - [Txt]"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="download"/>
      <computed alias="unit" format="[IdeThmNum]" transform="NUMBER"/>
    </compound>
    <compound alias="Sug1">
      <computed alias="label" format="Prueba - [Txt]"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="[Sel]" transform="NUMBER"/>
    </compound>
    <field id="Act" alias="Sel"/>
    <field id="Act" alias="Sel1"/>
    <field id="Nam" alias="Tar"/>
    <field id="Nam" alias="Tar1"/>
    <computed format="" alias="Upl"/>
    <computed format="" alias="Upl1"/>
    <!-- <computed alias="ChkBox" format="Math.random() > 0.5 ? 1 : 0" eval="true" /> <computed alias="ChkBox1" format="Math.random() > 0.5 ? 1 : 0" eval="true" /> -->
    <computed alias="ChkBox" format="1"/>
    <computed alias="ChkBox1" format="1"/>
    <compound alias="Dialog">
      <computed alias="icon" format="fa-list-alt"/>
    </compound>
    <order-by field="Nam" table="acc1" type="ASC"/>
  </query>

  <!-- QUERY EDITABLE LIST -->
  <query id="QryEdiTstChk" managed-pagination="true">
    <table id="AweThm" alias="acc1"/>
    <field id="Nam" alias="Txt"/>
    <field id="Nam" alias="Txt1"/>
    <computed alias="Num" format="(Math.random()*1000) * (Math.random()*100) * ((Math.random()*10) - 5)" eval="true"/>
    <computed alias="Num1" format="(Math.random()*1000) * (Math.random()*100) * ((Math.random()*10) - 5)" eval="true"/>
    <computed alias="Num2" format="(Math.random()*1000) * (Math.random()*100) * ((Math.random()*10) - 5)" eval="true"/>
    <computed format="" alias="Dat"/>
    <computed format="" alias="Dat1"/>
    <computed format="" alias="FilDat"/>
    <computed format="" alias="FilDat1"/>
    <computed format="" alias="Tim"/>
    <computed format="" alias="Tim1"/>
    <computed format="" alias="Col"/>
    <computed format="" alias="Col1"/>
    <field id="IdeThm" alias="IdeThm" transform="NUMBER"/>
    <field id="IdeThm" alias="IdeThm1" transform="NUMBER"/>
    <field id="IdeThm" alias="IdeThmNum"/>
    <compound alias="NumTxt">
      <computed alias="label" format="[Num]" transform="NUMBER" pattern="###,###.00"/>
      <computed alias="value" format="[Num]" eval="true"/>
    </compound>
    <compound alias="Sug">
      <computed alias="label" format="Prueba - [Txt]"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="[Sel]" transform="NUMBER"/>
    </compound>
    <compound alias="Sug1">
      <computed alias="label" format="Prueba - [Txt]"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="[Sel]" transform="NUMBER"/>
    </compound>
    <compound alias="Ico">
      <computed alias="label" format="fa-rebel"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="fa-rebel"/>
      <computed alias="style" format="text-warning"/>
    </compound>
    <field id="Act" alias="Sel"/>
    <field id="Act" alias="Sel1"/>
    <field id="Nam" alias="Tar"/>
    <field id="Nam" alias="Tar1"/>
    <computed format="" alias="Upl"/>
    <computed format="" alias="Upl1"/>
    <computed alias="ChkBox" format="Math.random() > 0.5 ? 1 : 0" eval="true"/>
    <computed alias="ChkBox1" format="Math.random() > 0.5 ? 1 : 0" eval="true"/>
    <compound alias="Dialog">
      <computed alias="icon" format="fa-list-alt"/>
    </compound>
    <order-by field="Nam" table="acc1" type="ASC"/>
  </query>

  <!-- QUERY EDITABLE LIST (public, for testing) -->
  <query id="QryEdiTstChkPub" managed-pagination="true" public="true">
    <table id="AweThm" alias="acc1"/>
    <field id="Nam" alias="Txt"/>
    <field id="Nam" alias="Txt1"/>
    <computed alias="Num" format="(Math.random()*1000) * (Math.random()*100) * ((Math.random()*10) - 5)" eval="true"/>
    <computed alias="Num1" format="(Math.random()*1000) * (Math.random()*100) * ((Math.random()*10) - 5)" eval="true"/>
    <computed alias="Num2" format="(Math.random()*1000) * (Math.random()*100) * ((Math.random()*10) - 5)" eval="true"/>
    <computed format="" alias="Dat"/>
    <computed format="" alias="Dat1"/>
    <computed format="" alias="FilDat"/>
    <computed format="" alias="FilDat1"/>
    <computed format="" alias="Tim"/>
    <computed format="" alias="Tim1"/>
    <computed format="" alias="Col"/>
    <computed format="" alias="Col1"/>
    <field id="IdeThm" alias="IdeThm" transform="NUMBER"/>
    <field id="IdeThm" alias="IdeThm1" transform="NUMBER"/>
    <field id="IdeThm" alias="IdeThmNum"/>
    <compound alias="NumTxt">
      <computed alias="label" format="[Num]" transform="NUMBER" pattern="###,###.00"/>
      <computed alias="value" format="[Num]" eval="true"/>
    </compound>
    <compound alias="Sug">
      <computed alias="label" format="Prueba - [Txt]"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="[Sel]" transform="NUMBER"/>
    </compound>
    <compound alias="Sug1">
      <computed alias="label" format="Prueba - [Txt]"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="[Sel]" transform="NUMBER"/>
    </compound>
    <compound alias="Ico">
      <computed alias="label" format="fa-rebel"/>
      <computed alias="value" format="[IdeThmNum]" transform="NUMBER"/>
      <computed alias="icon" format="fa-rebel"/>
      <computed alias="style" format="text-warning"/>
    </compound>
    <field id="Act" alias="Sel"/>
    <field id="Act" alias="Sel1"/>
    <field id="Nam" alias="Tar"/>
    <field id="Nam" alias="Tar1"/>
    <computed format="" alias="Upl"/>
    <computed format="" alias="Upl1"/>
    <computed alias="ChkBox" format="Math.random() > 0.5 ? 1 : 0" eval="true"/>
    <computed alias="ChkBox1" format="Math.random() > 0.5 ? 1 : 0" eval="true"/>
    <compound alias="Dialog">
      <computed alias="icon" format="fa-list-alt"/>
    </compound>
    <order-by field="Nam" table="acc1" type="ASC"/>
  </query>

  <!-- QUERY EDITABLE SUGGEST -->
  <query id="QryEdiSug" cacheable="true">
    <table id="AweThm"/>
    <field id="IdeThm" alias="value"/>
    <field id="Nam" alias="name"/>
    <computed alias="label" format="Prueba - [name]"/>
    <where>
      <or>
        <filter left-field="Nam" condition="like" right-variable="Nam" ignorecase="true"/>
      </or>
    </where>
    <variable id="Nam" type="STRINGB" name="suggest"/>
  </query>

  <query id="CrtTstDat">
    <table id="AwePro" alias="acc1"/>
    <field id="Nam" alias="value" noprint="true"/>
    <constant value="1000000.12123" alias="TxtRea" transform="NUMBER_PLAIN"/>
  </query>

  <!-- QUERY EDITABLE SUGGEST -->
  <query id="QryEdiSugPub" cacheable="true">
    <table id="AweThm"/>
    <field id="IdeThm" alias="value"/>
    <field id="Nam" alias="name"/>
    <computed alias="label" format="Prueba - [name]"/>
    <where>
      <or>
        <filter left-field="Nam" condition="like" right-variable="Nam" ignorecase="true"/>
      </or>
    </where>
    <variable id="Nam" type="STRINGB" name="suggest"/>
  </query>

  <!-- Filtered calendar dates sample -->
  <query id="FilCalDat" distinct="true">
    <table id="ope" alias="acc1"/>
    <field id="l1_dat" alias="value" transform="DATE" function="TRUNCDATE"/>
    <field id="l1_dat" alias="label" transform="DATE" function="TRUNCDATE"/>
    <order-by field="value" type="DESC"/>
  </query>

  <!-- Filtered calendar dates sample (public for testing) -->
  <query id="FilCalDatPub" distinct="true" public="true">
    <table id="ope" alias="acc1"/>
    <field id="l1_dat" alias="value" transform="DATE" function="TRUNCDATE"/>
    <field id="l1_dat" alias="label" transform="DATE" function="TRUNCDATE"/>
    <order-by field="value" type="DESC"/>
  </query>

  <!-- USER SUGGEST (TEST) -->
  <query id="TstUsrSug" cacheable="true">
    <table id="ope"/>
    <field id="l1_nom" alias="value"/>
    <field id="OpeNam" alias="nom"/>
    <computed format="[value] ([nom])" alias="label"/>
    <where>
      <and>
        <or>
          <filter left-field="OpeNam" condition="like" right-variable="Usr" ignorecase="true"/>
          <filter left-field="l1_nom" condition="like" right-variable="Usr" ignorecase="true"/>
        </or>
      </and>
    </where>
    <variable id="Usr" type="STRINGB" name="suggest"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <!-- USER SUGGEST WITH DELAY (TEST) -->
  <query id="TstUsrSugDelay" service="delayedSuggest">
    <variable id="queryName" type="STRING" value="TstUsrSug"/>
  </query>

  <!-- ID USER SUGGEST (TEST) -->
  <query id="TstUsrSugIde" cacheable="true">
    <table id="ope"/>
    <field id="IdeOpe" alias="value"/>
    <field id="IdeOpe" alias="label"/>
    <where>
      <and>
        <or>
          <filter left-field="IdeOpe" condition="like" right-variable="SugNum"/>
        </or>
      </and>
    </where>
    <order-by field="IdeOpe" type="ASC"/>
    <variable id="SugNum" type="STRINGB" name="suggest"/>
  </query>

  <!-- USER GET (TEST) -->
  <query id="TstUsrSel" cacheable="true">
    <table id="ope"/>
    <field id="l1_nom" alias="value"/>
    <field id="OpeNam" alias="nom"/>
    <computed format="[value] ([nom])" alias="label"/>
    <where>
      <and>
        <or>
          <filter left-field="l1_nom" condition="eq" right-variable="Usr" ignorecase="true"/>
        </or>
      </and>
    </where>
    <variable id="Usr" type="STRING" name="suggest"/>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <!-- GET ONE DATA SERIE WITH DATES -->
  <query id="TstChrOneDatSrc" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" alias="serie1_1" transform="DATE" function="TRUNCDATE"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_2" transform="NUMBER_PLAIN"/>
    <order-by field="serie1_1" type="ASC"/>
  </query>

  <!-- GET ONE DATA SERIE WITH DATES -->
  <query id="TstChrOneDatSrcPagination" distinct="true" managed-pagination="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" alias="serie1_1" transform="DATE" function="TRUNCDATE"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_2" transform="NUMBER_PLAIN"/>
    <order-by field="serie1_1" type="ASC"/>
  </query>


  <!-- GET TWO DATA SERIES WITH DATES -->
  <query id="TstChrTwoDatSrc" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" alias="serie1_1" transform="DATE" function="TRUNCDATE"/>
    <field id="HISdat" alias="serie2_1" transform="DATE" function="TRUNCDATE"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_2" transform="NUMBER_PLAIN"/>
    <computed format="parseInt(Math.random()*10,10)+2" eval="true" alias="serie2_2" transform="NUMBER_PLAIN"/>
    <order-by field="serie1_1" type="ASC"/>
  </query>

  <!-- GET TWO DATA SERIES WITH DATES -->
  <query id="TstChrTwoDatSrcPagination" distinct="true" managed-pagination="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" alias="serie1_1" transform="DATE" function="TRUNCDATE"/>
    <field id="HISdat" alias="serie2_1" transform="DATE" function="TRUNCDATE"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_2" transform="NUMBER_PLAIN"/>
    <computed format="parseInt(Math.random()*10,10)+2" eval="true" alias="serie2_2" transform="NUMBER_PLAIN"/>
    <order-by field="serie1_1" type="ASC"/>
  </query>

  <!-- GET THREE DATA SERIES WITH DATES -->
  <query id="TstChrThrDatSrc" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" transform="DATE_MS" function="TRUNCDATE" alias="dates"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1" transform="NUMBER_PLAIN"/>
    <computed format="(parseInt(Math.random()*10,10)+1)+2" eval="true" alias="serie2" transform="NUMBER_PLAIN"/>
    <computed format="((parseInt(Math.random()*10,10)+1)*2)-4" eval="true" alias="serie3" transform="NUMBER_PLAIN"/>
    <!--<field id="Nam" alias="serie1_1"/> <field id="Nam" alias="serie2_1"/> <field id="Nam" alias="serie3_1"/> -->
    <order-by field="dates" type="ASC"/>
  </query>

  <!-- GET THREE DATA SERIES WITH DATES (horizontal) -->
  <query id="TstChrThrDatSrcHor" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" transform="DATE_MS" function="TRUNCDATE" alias="dates"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1"/>
    <computed format="(parseInt(Math.random()*10,10)+1)+2" eval="true" alias="serie2"/>
    <order-by field="dates" type="ASC"/>
  </query>

  <!-- GET THREE DATA SERIES WITH DATES -->
  <query id="TstChrThrDatSrcZom" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" alias="labelx" transform="DATE" function="TRUNCDATE"/>
    <!--<field id="HISdat" alias="serie2_1" transform="DATE" function="ROUND"/> <field id="HISdat" alias="serie3_1" transform="DATE" function="ROUND"/> <table id="AweThm"/> -->
    <!--<computed format="aaa" alias="serie2_1"/> <computed format="aaa" alias="serie3_1"/> -->
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_1" transform="NUMBER_PLAIN"/>
    <!--<field id="Nam" alias="serie1_1"/> <field id="Nam" alias="serie2_1"/> <field id="Nam" alias="serie3_1"/> -->
    <order-by field="labelx" type="ASC"/>
  </query>

  <!-- GET ONE DATA SERIE 3 AXIS -->
  <query id="TstChrOneSrcThrAxs" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" function="TRUNCDATE" alias="Ord" transform="DATE_MS"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10000" eval="true" alias="serie1_1"
              transform="NUMBER_PLAIN"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_2" transform="NUMBER_PLAIN"/>
    <order-by field="Ord" type="ASC"/>
  </query>

  <!-- GET ONE DATA SERIE -->
  <query id="TstChrOneSrc">
    <table id="AweSitModDbs"/>
    <field id="Ord" noprint="true" alias="Ord"/>
    <computed format="(1/[Ord])*10" eval="true" alias="serie1_1" transform="NUMBER_PLAIN"/>
  </query>

  <!-- GET EMPTY DATA -->
  <query id="TstChrEmpDat">
    <table id="AweSitModDbs"/>
    <field id="Ord" noprint="true" alias="Ord"/>
    <computed format="(1/[Ord])*10" eval="true" alias="serie1_1" transform="NUMBER_PLAIN"/>
    <where>
      <and>
        <filter left-field="Ord" condition="eq" right-variable="Ord"/>
      </and>
    </where>
    <variable id="Ord" type="INTEGER" name="-1"/>
  </query>

  <!-- GET TWO DATA SERIES -->
  <query id="TstChrTwoSrc" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" function="TRUNCDATE" alias="dates" transform="DATE_MS"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10000" eval="true" alias="serie1" transform="NUMBER_PLAIN"/>
    <computed format="parseInt(Math.random()*10,10)+2000" eval="true" alias="serie2" transform="NUMBER_PLAIN"/>
    <order-by field="dates" type="ASC"/>
  </query>

  <!-- GET TWO DATA SERIES WITH A LABEL -->
  <query id="TstChrTwoSrcLab" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" function="TRUNCDATE" alias="dates" transform="DATE_MS"/>
    <computed format="parseInt(Math.random()*10,10)+2" eval="true" alias="serie1" transform="NUMBER_PLAIN"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie2" transform="NUMBER_PLAIN"/>
    <order-by field="dates" type="ASC"/>
    <where>
      <and>
        <filter left-field="HISdat" condition="ge" right-variable="MinDat"/>
      </and>
    </where>
    <variable id="MinDat" type="DATE" value="14/05/2013"/>
  </query>

  <!-- GET THREE DATA SERIES -->
  <query id="TstChrThrSrc" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISdat" alias="labelx" transform="JS_TIMESTAMP" function="TRUNCDATE"/>
    <!--<table id="AweThm"/> <field id="Nam" alias="labeler"/> <table id="AweSitModDbs"/> <field id="Ord" noprint="true" alias="labeler"/> <table id="HISAweDbs"/> <field id="HISope" alias="labeler"/> -->
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="serie1_1" transform="NUMBER_PLAIN"/>
    <computed format="(parseInt(Math.random()*10,10)+1)+2" eval="true" alias="serie2_1" transform="NUMBER_PLAIN"/>
    <computed format="((parseInt(Math.random()*10,10)+1)*2)-4" eval="true" alias="serie3_1" transform="NUMBER_PLAIN"/>
    <order-by field="labelx" type="ASC"/>
  </query>

  <!-- Numeric matrix test -->
  <query id="NumTstLst" distinct="true">
    <table id="HISAweDbs"/>
    <field id="HISope" alias="Ope"/>
    <field id="HISdat" alias="Dat" transform="DATE_MS"/>
    <field id="HISact" alias="Act"/>
    <computed format="[Dat]" eval="true" alias="Num"/>
    <computed format="[Dat]" eval="true" alias="Num01"/>
    <computed format="[Dat]" eval="true" alias="Num02"/>
    <computed format="[Dat]" eval="true" alias="Num03"/>
    <computed format="[Dat]" eval="true" alias="Num04"/>
    <computed format="[Dat]" eval="true" alias="Num05"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num1"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num2"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num3"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num4"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num5"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num6"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num7"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num8"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num9"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num10"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num11"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num12"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num13"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num14"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num15"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num16"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num17"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num18"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num19"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num20"/>
  </query>

  <!-- Numeric matrix test -->
  <query id="NumTstLstPrf" distinct="true" public="true">
    <table id="HISAweDbs"/>
    <field id="HISope" alias="Ope"/>
    <field id="HISdat" alias="Dat" transform="DATE_MS"/>
    <field id="HISact" alias="Act"/>
    <computed format="[Dat]" eval="true" alias="Num"/>
    <computed format="[Dat]" eval="true" alias="Num01"/>
    <computed format="[Dat]" eval="true" alias="Num02"/>
    <computed format="[Dat]" eval="true" alias="Num03"/>
    <computed format="[Dat]" eval="true" alias="Num04"/>
    <computed format="[Dat]" eval="true" alias="Num05"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num1"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num2"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num3"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num4"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num5"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num6"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num7"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num8"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num9"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num10"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num11"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num12"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num13"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num14"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num15"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num16"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num17"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num18"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num19"/>
    <computed format="(1/(parseInt(Math.random()*10,10)+1))*10" eval="true" alias="Num20"/>
  </query>

  <!-- Suggest matrix test -->
  <query id="SugTstLst">
    <table id="HISAweDbs"/>
    <field id="Als" alias="Sug"/>
    <compound alias="Sug1">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug2">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug3">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug4">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug5">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug6">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug7">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug8">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug9">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug10">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug11">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug12">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug13">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug14">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug15">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug16">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug17">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug18">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug19">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug20">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
  </query>

  <!-- Suggest matrix test -->
  <query id="SugTstLstPagination" managed-pagination="true">
    <table id="HISAweDbs"/>
    <field id="Als" alias="Sug"/>
    <compound alias="Sug1">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug2">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug3">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug4">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug5">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug6">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug7">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug8">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug9">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug10">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug11">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug12">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug13">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug14">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug15">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug16">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug17">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug18">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug19">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
    <compound alias="Sug20">
      <computed format="[Sug]" alias="value"/>
      <computed format="[Sug]" alias="label"/>
    </compound>
  </query>

  <!-- GET PIE DATA -->
  <query id="TstChrPieDrillSrc" distinct="true">
    <table id="AweThm"/>
    <field id="Nam" alias="names"/>
    <computed format="parseInt(Math.random()*100,10)" eval="true" alias="serie1" transform="NUMBER_PLAIN"/>
    <computed format="(parseInt(Math.random()*100,10))+2" eval="true" alias="subserie1" transform="NUMBER_PLAIN"/>
  </query>
  <query id="TstChrPieSrc" distinct="true">
    <table id="AweThm"/>
    <field id="Nam" alias="names"/>
    <computed format="parseInt(Math.random()*100,10)" eval="true" alias="serie1" transform="NUMBER_PLAIN"/>
  </query>
  <query id="GetUsrTotCol">
    <field id="red" alias="red"/>
    <field id="green" alias="green"/>
    <field id="blue" alias="blue"/>
    <table id="Color"/>
    <computed alias="ColTot" format="[red]-[green]-[blue]"/>
    <where>
      <and>
        <filter left-field="type" condition="eq" right-variable="Typ"/>
        <filter left-field="usr" condition="eq" right-variable="Usr"/>
      </and>
    </where>
    <variable id="Typ" type="STRING" value="PrnTxtTot"/>
    <variable id="Usr" type="STRING" session="user"/>
  </query>
  <query id="GetUsrTotBkg">
    <field id="red" alias="red"/>
    <field id="green" alias="green"/>
    <field id="blue" alias="blue"/>
    <table id="Color"/>
    <computed alias="BkgTot" format="[red]-[green]-[blue]"/>
    <where>
      <and>
        <filter left-field="type" condition="eq" right-variable="Typ"/>
        <filter left-field="usr" condition="eq" right-variable="Usr"/>
      </and>
    </where>
    <variable id="Typ" type="STRING" value="PrnBkgTot"/>
    <variable id="Usr" type="STRING" session="user"/>
  </query>
  <query id="GetUsrSubCol">
    <field id="red" alias="red"/>
    <field id="green" alias="green"/>
    <field id="blue" alias="blue"/>
    <table id="Color"/>
    <computed alias="ColSub" format="[red]-[green]-[blue]"/>
    <where>
      <and>
        <filter left-field="type" condition="eq" right-variable="Typ"/>
        <filter left-field="usr" condition="eq" right-variable="Usr"/>
      </and>
    </where>
    <variable id="Typ" type="STRING" value="PrnTxt4"/>
    <variable id="Usr" type="STRING" session="user"/>
  </query>
  <query id="GetUsrSubBkg">
    <field id="red" alias="red"/>
    <field id="green" alias="green"/>
    <field id="blue" alias="blue"/>
    <table id="Color"/>
    <computed alias="BkgSub" format="[red]-[green]-[blue]"/>
    <where>
      <and>
        <filter left-field="type" condition="eq" right-variable="Typ"/>
        <filter left-field="usr" condition="eq" right-variable="Usr"/>
      </and>
    </where>
    <variable id="Typ" type="STRING" value="PrnBkg4"/>
    <variable id="Usr" type="STRING" session="user"/>
  </query>

  <!-- Test: Fill a criterion with a wrapper values -->
  <query id="TstSynQueWrpTxt" queue="SynQueWrpTxt">
    <!-- Input parameters -->
    <variable id="CrtVen" type="INTEGER" value="4"/>
    <variable id="CrtPue" type="INTEGER" value="2"/>

    <!-- Output parameters -->
    <field id="OutFld1" alias="value"/>
    <field id="OutFld2" alias="label"/>
  </query>

  <!-- Test queues -->
  <query id="TstGrdQue" queue="TstGrdQue" cacheable="true">
    <!-- Input parameters -->
    <!--<variable id="CrtNam" type="STRING" name="CrtNam"/> -->

    <!-- Output parameters -->
    <field id="OutFld1" alias="ColGrp"/>
    <field id="OutFld2" alias="ColEml"/>
    <field id="OutFld3" alias="ColNam"/>
    <field id="OutFld4" alias="ColTut"/>
  </query>

  <!-- GET TWO DATA SERIES FROM QUEUE SUBSCRIPTION -->
  <query id="TstChrTwoSrcQue" queue="TstSubChr">
    <field id="date" alias="date" transform="DATE_MS"/>
    <field id="serie1" alias="serie1"/>
    <field id="serie2" alias="serie2"/>
  </query>

  <!-- AweKey Query for Chart test -->
  <query id="GetAweKey">
    <table id="AweKey" alias="AweKey"/>
    <field id="KeyNam" alias="Nam"/>
    <field id="KeyVal" alias="Val"/>
  </query>
  <query id="getFileInfo" service="getFileInfo">
    <field id="value" alias="value"/>
    <field id="label" alias="label"/>
    <variable id="fileName" type="STRING" name="Upl"/>
  </query>

  <!-- USER EMAIL ADDRESS -->
  <query id="UsrEmlLstTstSug" distinct="true" cacheable="true">
    <table id="ope"/>
    <field id="l1_nom" alias="value"/>
    <field id="EmlAdr" alias="Eml"/>
    <computed format="[value] ([Eml])" alias="label"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="like" right-variable="Usr" ignorecase="true"/>
        <filter left-field="EmlAdr" condition="is not null"/>
      </and>
    </where>
    <variable id="Usr" type="STRINGB" name="suggest"/>
  </query>

  <!-- USER SUGGEST WITH DELAY (TEST) -->
  <query id="UsrEmlLstTstSugDelay" service="delayedSuggest">
    <variable id="queryName" type="STRING" value="UsrEmlLstTstSug"/>
  </query>

  <!-- Modal dialog -->
  <query id="ModalDialog" service="modalDialog">
    <variable id="num" type="FLOAT" name="Num.selected"/>
  </query>

  <!-- ValidateBankAccount (TEST) -->
  <query id="ValidateBankAccount" service="ValidateBankAccount">
    <variable id="BankAccount" type="STRING" name="TxtVal"/>
  </query>

  <!-- Rest target -->
  <query id="QtyTst">
    <table id="ope" alias="o"/>
    <field id="IdeOpe" table="o" alias="CrtTst"/>
    <where>
      <and>
        <filter left-field="l1_nom" condition="like" right-variable="val"/>
      </and>
    </where>
    <variable id="val" type="STRINGB" value="test"/>
  </query>

  <query id="QtyTst1">
    <table id="ope" alias="o"/>
    <field id="IdeOpe" table="o" alias="CrtTst"/>
    <where>
      <and>
        <filter left-field="IdeOpe" condition="eq" right-variable="val"/>
      </and>
    </where>
    <variable id="val" type="STRING" name="value"/>
  </query>

  <!-- Dynamic series chart: replace series -->
  <query id="TstReplaceSeriesChart" service="replaceSeriesChart">
    <variable id="CrtUsrLst" type="STRING" name="CrtUsrLst"/>
  </query>

  <!-- Dynamic series chart: add series -->
  <query id="TstAddSeriesToChart" service="addSeriesChart">
    <variable id="CrtUsrLst" type="STRING" name="CrtUsrLst"/>
  </query>

  <!-- Dynamic series chart: remove series -->
  <query id="TstRemoveSeriesOfChart" service="removeSeriesChart">
    <variable id="CrtUsrLst" type="STRING" name="CrtUsrLst"/>
  </query>

  <!-- Load user Json file -->
  <query id="QrySrvLoadJsonFile" service="loadUserJsonFile">
    <field id="id" alias="id"/>
    <field id="name" alias="name"/>
    <field id="gender" alias="gender"/>
    <field id="age" alias="age"/>
    <field id="state" alias="state"/>
    <field id="city" alias="city"/>
  </query>

  <!-- Load tree Json file -->
  <query id="loadTreeJsonFile" service="loadTreeJsonFile"/>

  <query id="TestSimpleGETMicroservice" service="simpleGETMicroservice"/>

  <query id="TestSimpleGETMicroservice2" service="simpleGETMicroservice2">
  </query>

  <query id="TestSimpleGETMicroserviceWithWrapper" service="simpleGETMicroserviceWithWrapper">
  </query>

  <query id="TestSimpleGETMicroserviceWithParameter" service="simpleGETMicroserviceWithParameter">
    <variable id="param1" type="STRING" name="var1"/>
  </query>

  <query id="TestSimpleGETMicroserviceWithWildcard" service="simpleGETMicroserviceWithWildcard">
    <variable id="param1" type="STRING" name="var1"/>
  </query>

  <query id="TestSimpleGETMicroserviceWithWildcardAndParameter" service="simpleGETMicroserviceWithWildcardAndParameter">
    <variable id="param1" type="STRING" name="var1"/>
    <variable id="param2" type="STRING" name="var2"/>
  </query>

  <query id="TestSimplePOSTMicroserviceWithParameters" service="simplePOSTMicroserviceWithParameters">
    <variable id="param1" type="STRING" name="var1"/>
    <variable id="param2" type="STRING" name="var2"/>
  </query>

  <query id="TestSimplePUTMicroserviceWithParameters" service="simplePUTMicroserviceWithParameters">
    <variable id="param1" type="STRING" name="var1"/>
    <variable id="param2" type="STRING" name="var2"/>
  </query>

  <query id="TestSimpleDELETEMicroserviceWithWildcard" service="simpleDELETEMicroserviceWithWildcard">
    <variable id="param1" type="STRING" name="var1"/>
  </query>
  <query id="sendMail" service="sendMail"/>

  <query id="TestSimpleRestGet" service="testSimpleRestGet"/>
  <query id="TestSimpleRestPost" service="testSimpleRestPost"/>

  <query id="TestComplexRestGet" service="testComplexRestGet"/>
  <query id="TestComplexRestGetParameters" service="testComplexRestGetParameters">
    <variable id="name" type="STRING" name="value"/>
    <variable id="value" type="STRING" name="value"/>
  </query>

  <query id="TestExternalRestApi" service="testExternalRest">
    <variable id="planet" type="STRING" name="value"/>
    <variable id="format" type="STRING" value="json"/>
  </query>

  <query id="TestExternalRestApiWithSecurity" service="testExternalRestSecurity"/>

  <query id="TestPostmanRestApi" service="testPostman"/>

  <query id="CallAluMicroservice" service="aluGetKey">
    <variable id="Ken" type="STRING" value="prueba"/>
    <variable id="Nbk" type="INTEGER" value="1"/>
  </query>

  <query id="CallAnotherMicroservice" service="simpleMicroservice2"/>

  <query id="CallAnotherMicroserviceWithParameters" service="simpleMicroservice2WithParameters">
    <field id="date" alias="dateFormatted" transform="DATE"/>
    <field id="float" alias="floatFormatted" transform="NUMBER"/>
    <field id="double" alias="doubleFormatted" transform="NUMBER"/>
    <field id="integer" alias="integerFormatted" transform="NUMBER"/>
    <field id="long" alias="longFormatted" transform="NUMBER"/>
    <field id="text" alias="text"/>
    <field id="null" alias="null"/>
    <variable id="param1" type="STRING" value="prueba"/>
    <variable id="param2" type="DATE" name="tutu"/>
    <variable id="param3" type="INTEGER" name="lala"/>
    <variable id="param4" type="STRING" name="erre"/>
    <variable id="param5" type="STRINGN" name="queErre"/>
    <variable id="param6" type="STRINGN" name="yQueErre"/>
  </query>

  <query id="CallAnotherMoreMicroservice" service="simpleMicroservice3"/>

  <query id="CallOverWriteMicroserviceName" service="simpleMicroservice4"/>


  <query id="CallAluMicroserviceWithoutParameters" service="aluGetKeyNoParam"/>

  <query id="CallAluAsRest" service="aluGetKeyRest">
    <variable id="Ken" type="STRING" value="prueba"/>
    <variable id="Nbk" type="INTEGER" value="1"/>
  </query>

  <query id="testCaseWhenElseDistinct">
    <table query="testCaseWhenElseDistinctSubquery" alias="t"/>
    <field id="value" table="t"/>
    <field id="label" table="t"/>
    <field id="other" table="t"/>
    <field id="another" table="t"/>
    <order-by field="value" table="t" type="ASC" nulls="FIRST"/>
  </query>

  <query id="testCaseWhenElseDistinctSubquery" distinct="true">
    <table id="AweThm"/>
    <case alias="value">
      <when left-field="Nam" condition="like" right-variable="sunset">
        <then>
          <field variable="1"/>
        </then>
      </when>
      <when left-field="Nam" condition="like" right-variable="sunny">
        <then>
          <field variable="2"/>
        </then>
      </when>
      <when left-field="Nam" condition="eq" right-variable="purple-hills">
        <then>
          <field variable="3"/>
        </then>
      </when>
      <else>
        <constant value="null" type="NULL"/>
      </else>
    </case>
    <case alias="label">
      <when left-field="Nam" condition="like" right-variable="sunset">
        <then>
          <constant value="SUNSET"/>
        </then>
      </when>
      <when left-field="Nam" condition="like" right-variable="sunny">
        <then>
          <constant value="3333" type="INTEGER" cast="STRING"/>
        </then>
      </when>
      <when left-field="Nam" condition="eq" right-variable="purple-hills">
        <then>
          <constant value="PURPLE-HILLS"/>
        </then>
      </when>
    </case>
    <case alias="other">
      <else>
        <constant value="3" type="INTEGER"/>
      </else>
    </case>
    <case alias="another">
      <when left-field="Nam" condition="like" right-variable="sunset">
        <then>
          <field id="Nam" table="AweThm"/>
        </then>
      </when>
      <else>
        <constant value="purple-hills"/>
      </else>
    </case>
    <variable id="sunset" type="STRINGL" value="sunset"/>
    <variable id="sunny" type="STRINGR" value="sunny"/>
    <variable id="purple-hills" type="STRING" value="purple-hills"/>
    <variable id="sunset-mays" type="STRING" value="SUNSET"/>
    <variable id="sunny-mays" type="STRING" value="SUNNY"/>
    <variable id="purple-hills-mays" type="STRING" value="PURPLE-HILLS"/>
    <variable id="1" type="INTEGER" value="1"/>
    <variable id="2" type="INTEGER" value="2"/>
    <variable id="3" type="INTEGER" value="3"/>
    <variable id="null" type="NULL"/>
  </query>

  <query id="testCaseWhenElse">
    <table id="AweThm"/>
    <case alias="value">
      <when left-field="Nam" condition="eq" right-variable="sunset">
        <then>
          <field variable="1"/>
        </then>
      </when>
      <when left-field="Nam" condition="eq" right-variable="sunny">
        <then>
          <field variable="2"/>
        </then>
      </when>
      <when left-field="Nam" condition="eq" right-variable="purple-hills">
        <then>
          <field variable="3"/>
        </then>
      </when>
      <else>
        <constant value="0" type="INTEGER"/>
      </else>
    </case>
    <case alias="label">
      <when condition="eq">
        <left-operand>
          <field id="Nam"/>
        </left-operand>
        <right-operand>
          <field variable="sunset"/>
        </right-operand>
        <then>
          <constant value="SUNSET"/>
        </then>
      </when>
      <when condition="eq">
        <left-operand>
          <field id="Nam"/>
        </left-operand>
        <right-operand>
          <field variable="sunny"/>
        </right-operand>
        <then>
          <constant value="SUNNY"/>
        </then>
      </when>
      <when condition="eq">
        <left-operand>
          <field id="Nam"/>
        </left-operand>
        <right-operand>
          <field variable="purple-hills"/>
        </right-operand>
        <then>
          <constant value="PURPLE-HILLS"/>
        </then>
      </when>
      <else>
        <constant value="other"/>
      </else>
    </case>
    <order-by field="Nam" type="ASC" nulls="FIRST"/>
    <variable id="sunset" type="STRING" value="sunset"/>
    <variable id="sunny" type="STRING" value="sunny"/>
    <variable id="purple-hills" type="STRING" value="purple-hills"/>
    <variable id="1" type="INTEGER" value="1"/>
    <variable id="2" type="INTEGER" value="2"/>
    <variable id="3" type="INTEGER" value="3"/>
  </query>

  <query id="testCaseWhenElseInFilter">
    <table id="AweThm"/>
    <case alias="value">
      <when left-field="Nam" condition="eq" right-variable="sunset">
        <then>
          <field variable="1"/>
        </then>
      </when>
      <when left-field="Nam" condition="eq" right-variable="sunny">
        <then>
          <field variable="2"/>
        </then>
      </when>
      <when left-field="Nam" condition="eq" right-variable="purple-hills">
        <then>
          <field variable="3"/>
        </then>
      </when>
      <else>
        <constant value="0" type="INTEGER"/>
      </else>
    </case>
    <case alias="label">
      <when condition="eq">
        <left-operand>
          <field id="Nam"/>
        </left-operand>
        <right-operand>
          <field variable="sunset"/>
        </right-operand>
        <then>
          <constant value="SUNSET"/>
        </then>
      </when>
      <when condition="eq">
        <left-operand>
          <field id="Nam"/>
        </left-operand>
        <right-operand>
          <field variable="sunny"/>
        </right-operand>
        <then>
          <constant value="SUNNY"/>
        </then>
      </when>
      <when condition="eq">
        <left-operand>
          <field id="Nam"/>
        </left-operand>
        <right-operand>
          <field variable="purple-hills"/>
        </right-operand>
        <then>
          <constant value="PURPLE-HILLS"/>
        </then>
      </when>
      <else>
        <constant value=""/>
      </else>
    </case>
    <where>
      <and>
        <filter condition="eq">
          <left-operand>
            <case>
              <when condition="eq">
                <left-operand>
                  <field id="Nam"/>
                </left-operand>
                <right-operand>
                  <field variable="sunset"/>
                </right-operand>
                <then>
                  <constant value="SUNSET"/>
                </then>
              </when>
              <when condition="eq">
                <left-operand>
                  <field id="Nam"/>
                </left-operand>
                <right-operand>
                  <field variable="sunny"/>
                </right-operand>
                <then>
                  <constant value="SUNNY"/>
                </then>
              </when>
              <when condition="eq">
                <left-operand>
                  <field id="Nam"/>
                </left-operand>
                <right-operand>
                  <field variable="purple-hills"/>
                </right-operand>
                <then>
                  <constant value="PURPLE-HILLS"/>
                </then>
              </when>
              <else>
                <constant value=""/>
              </else>
            </case>
          </left-operand>
          <right-operand>
            <constant value="SUNSET"/>
          </right-operand>
        </filter>
      </and>
    </where>
    <variable id="sunset" type="STRING" value="sunset"/>
    <variable id="sunny" type="STRING" value="sunny"/>
    <variable id="purple-hills" type="STRING" value="purple-hills"/>
    <variable id="1" type="INTEGER" value="1"/>
    <variable id="2" type="INTEGER" value="2"/>
    <variable id="3" type="INTEGER" value="3"/>
  </query>

  <query id="testServiceByQualifier" service="testServiceByQualifier"/>

  <query id="testRowNumber">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <over alias="rowNumber">
      <field function="ROW_NUMBER"/>
    </over>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testCaseOver">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <case alias="value">
      <when left-field="IdeOpe" condition="eq">
        <right-operand>
          <over>
            <field function="ROW_NUMBER"/>
          </over>
        </right-operand>
        <then>
          <constant value="1" type="INTEGER"/>
        </then>
      </when>
      <when left-field="IdeOpe" condition="eq">
        <right-operand>
          <constant value="1" type="INTEGER"/>
        </right-operand>
        <then>
          <constant value="2" type="INTEGER"/>
        </then>
      </when>
      <else>
        <constant value="0" type="INTEGER"/>
      </else>
    </case>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testNullIf">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="NULLIF" function="MAX" alias="nullif">
      <field id="l1_nom"/>
      <constant value="test"/>
    </operation>
    <group-by field="l1_nom"/>
    <order-by field="l1_nom"/>
  </query>

  <query id="testSum1">
    <table id="AweThm"/>
    <constant value="1" type="LONG" function="SUM" alias="sum1"/>
    <constant value="1" type="LONG" function="SUM" alias="sum1"/>
    <group-by field="Nam"/>
  </query>

  <query id="testOverPartitionOrder">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <over alias="rowNumber">
      <operation operator="NULLIF" function="MAX">
        <field id="l1_nom"/>
        <constant value="test"/>
      </operation>
      <partition-by field="l1_nom"/>
      <order-by field="l1_nom" type="ASC"/>
    </over>
    <over alias="rankValue">
      <field function="RANK"/>
      <partition-by field="l1_nom"/>
      <order-by field="l1_nom" type="ASC"/>
    </over>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testOverPartitionOrderOperation">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="MULT" alias="rowNumber">
      <constant value="2" type="INTEGER"/>
      <over>
        <field function="ROW_NUMBER"/>
        <order-by field="l1_nom" type="ASC"/>
      </over>
    </operation>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testRowNumberWithOperation">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="ADD" alias="rowNumber">
      <constant value="1" type="INTEGER"/>
      <over>
        <field function="ROW_NUMBER"/>
      </over>
    </operation>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testPowerOfFieldOperation">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="POWER" alias="powerField">
      <constant value="2" type="INTEGER"/>
      <over>
        <field function="ROW_NUMBER"/>
      </over>
    </operation>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testDiffDates">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="DIFF_SECONDS" alias="diffSeconds">
      <constant type="TIMESTAMP" value="28/10/1978 05:12:33.000"/>
      <constant type="TIMESTAMP" value="28/10/1978 12:03:21.000"/>
    </operation>
    <operation operator="DIFF_DAYS" alias="diffDays">
      <constant type="DATE" value="22/10/1978"/>
      <constant type="DATE" value="28/10/1978"/>
    </operation>
    <operation operator="DIFF_WEEKS" alias="diffWeeks">
      <constant type="DATE" value="22/10/1978"/>
      <constant type="DATE" value="28/01/1979"/>
    </operation>
    <operation operator="DIFF_MONTHS" alias="diffMonths">
      <constant type="DATE" value="22/10/1978"/>
      <constant type="DATE" value="28/10/1999"/>
    </operation>
    <operation operator="DIFF_YEARS" alias="diffYears">
      <constant type="DATE" value="22/10/1978"/>
      <constant type="DATE" value="28/10/2012"/>
    </operation>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testServiceBeanParameter" service="testServiceBeanParameter">
    <variable id="name" type="STRING" name="name"/>
    <variable id="rotationPeriod" type="STRING" name="rotationPeriod"/>
    <variable id="orbitalPeriod" type="STRING" name="orbitalPeriod"/>
    <variable id="diameter" type="STRING" name="diameter"/>
    <variable id="climate" type="STRING" name="climate"/>
    <variable id="gravity" type="STRING" name="gravity"/>
    <variable id="terrain" type="STRING" name="terrain"/>
    <variable id="population" type="LONG" name="population"/>
    <variable id="created" type="DATE" name="created"/>
    <variable id="edited" type="DATE" name="edited"/>
    <variable id="url" type="STRING" name="url"/>
  </query>

  <query id="testServiceBeanParameterList" service="testServiceBeanParameterList">
    <variable id="name" type="STRING" name="name"/>
    <variable id="rotationPeriod" type="STRING" name="rotationPeriod"/>
    <variable id="orbitalPeriod" type="STRING" name="orbitalPeriod"/>
    <variable id="diameter" type="STRING" name="diameter"/>
    <variable id="climate" type="STRING" name="climate"/>
    <variable id="gravity" type="STRING" name="gravity"/>
    <variable id="terrain" type="STRING" name="terrain"/>
    <variable id="population" type="LONG" name="population"/>
    <variable id="created" type="DATE" name="created"/>
    <variable id="edited" type="DATE" name="edited"/>
    <variable id="url" type="STRING" name="url"/>
  </query>

  <query id="testServiceBeanListParameter" service="testServiceBeanListParameter">
    <variable id="nameList" type="STRING" name="nameList"/>
    <variable id="populationList" type="LONG" name="populationList"/>
  </query>

  <query id="testServiceJsonBeanParameter" service="testServiceJsonBeanParameter">
    <variable id="value" type="OBJECT" name="value"/>
  </query>

  <query id="testServiceJsonParameter" service="testServiceJsonParameter">
    <variable id="value" type="OBJECT" name="value"/>
  </query>

  <query id="testExistsOK">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <constant value="-1" type="INTEGER" alias="abs" function="ABS"/>
    <where>
      <filter condition="exists" query="testExistsSubqueryOK"/>
    </where>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testExistsKO">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <where>
      <filter condition="exists">
        <left-operand>
          <field query="testExistsSubqueryKO"/>
        </left-operand>
      </filter>
    </where>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testNotExistsOK">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <where>
      <filter condition="not exists" query="testExistsSubqueryKO"/>
    </where>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testNotExistsKO">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <where>
      <filter condition="not exists">
        <right-operand>
          <field query="testExistsSubqueryOK"/>
        </right-operand>
      </filter>
    </where>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testExistsSubqueryOK">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <where>
      <filter left-field="l1_nom" condition="is not null"/>
    </where>
  </query>

  <query id="testExistsSubqueryKO">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <where>
      <filter left-field="l1_nom" condition="is null"/>
    </where>
  </query>

  <query id="testCoalesce">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="COALESCE" alias="nameNotNull">
      <field id="l1_trt"/>
      <constant type="NULL"/>
      <field id="l1_nom"/>
    </operation>
    <where>
      <filter condition="eq" ignorecase="true">
        <left-operand>
          <field id="l1_nom"/>
        </left-operand>
        <right-operand>
          <constant value="test"/>
        </right-operand>
      </filter>
    </where>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testCastToNumber">
    <table id="ope"/>
    <field id="l1_nom" alias="name"/>
    <operation operator="ADD" alias="castToInteger">
      <constant value="12" cast="INTEGER"/>
      <constant value="2" type="INTEGER"/>
      <field id="IdeOpe"/>
      <constant value="4" type="DOUBLE" cast="INTEGER"/>
    </operation>
    <operation operator="MULT" alias="castToLong">
      <constant value="12" cast="LONG"/>
      <constant value="2" type="INTEGER" cast="LONG"/>
      <field id="IdeOpe" cast="LONG"/>
      <constant value="4" type="LONG"/>
    </operation>
    <operation operator="DIV" alias="castToFloat">
      <constant value="12" cast="FLOAT"/>
      <constant value="2" type="INTEGER" cast="FLOAT"/>
      <field id="IdeOpe" cast="FLOAT"/>
      <constant value="4" type="FLOAT"/>
    </operation>
    <operation operator="SUB" alias="castToDouble">
      <constant value="12" cast="DOUBLE"/>
      <constant value="2" type="INTEGER" cast="DOUBLE"/>
      <field id="IdeOpe" cast="DOUBLE"/>
      <constant value="4.1" type="DOUBLE"/>
    </operation>
    <operation operator="CONCAT" alias="castToString">
      <constant value="12" type="INTEGER" cast="STRING"/>
      <constant value="-2" type="INTEGER" cast="STRING"/>
      <field id="IdeOpe" cast="STRING"/>
    </operation>
    <where>
      <filter condition="eq" ignorecase="true">
        <left-operand>
          <field id="l1_nom"/>
        </left-operand>
        <right-operand>
          <constant value="test"/>
        </right-operand>
      </filter>
    </where>
    <order-by field="l1_nom" type="ASC"/>
  </query>

  <query id="testQueryWithOutTables">
    <operation alias="Sum" operator="ADD">
      <constant value="1" type="INTEGER"/>
      <constant value="1" type="INTEGER"/>
    </operation>
  </query>

  <query id="testQueryWithOutPostProcess" service="getDataListWithOutPostProcessed" post-process="false">
    <field id="value"/>
  </query>

  <query id="RadioButtonInitialValue">
    <constant value="Radio1" alias="RadBoxGrp1"/>
    <constant value="Radio2" alias="RadBoxButGrp"/>
  </query>

  <query id="dynamicScreen" service="dynamicScreen"/>

  <query id="getProfiles" cacheable="true">
    <table id="AwePro"/>
    <field id="Nam" alias="name"/>
    <field id="IdePro" alias="value"/>
  </query>

</queries>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy