LoopingTest.xaction 6.19 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
<action-sequence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <name>LoopingTest.xaction</name>
  <title>Component Test</title>
  <version>1</version>
  <logging-level>DEBUG</logging-level>
  <documentation>
    <author>Doug Moran</author>
    <description>Test of the Multiple Test Component Sequence with multiple loops</description>
    <help>still just testing...</help>
  </documentation>

  <inputs>
    <a-map type="property-map-list">
      <default-value type="property-map-list">
        <property-map>
          <entry key="apple">Good</entry>
          <entry key="orange">Sweet</entry>
          <entry key="grapefruit">Sour</entry>
          <entry key="pomegranate">Funny</entry>
        </property-map>
        <property-map>
          <entry key="carrot">Good</entry>
          <entry key="cucumber">Long</entry>
          <entry key="potato">Dimply</entry>
          <entry key="broccoli">Flowery</entry>
          <entry key="zucchini">Funny</entry>
        </property-map>
        <property-map>
          <entry key="big mac">Sloppy</entry>
          <entry key="whopper">Lame</entry>
          <entry key="taco">Greasy</entry>
        </property-map>
      </default-value>
			<sources>
				<runtime>runtime-a</runtime> 
			</sources>
    </a-map>
    
    <b-map type="property-map-list">
      <default-value type="property-map-list">
        <property-map>
          <entry key="name">orange</entry>
          <entry key="color">orange</entry>
          <entry key="shape">sphere</entry>
          <entry key="texture">dimply</entry>
        </property-map>
        <property-map>
          <entry key="name">grapefruit</entry>
          <entry key="color">Yellow</entry>
          <entry key="shape">sphere</entry>
          <entry key="texture">dimply</entry>
        </property-map>
        <property-map>
          <entry key="name">carrot</entry>
          <entry key="color">orange</entry>
          <entry key="shape">cone</entry>
          <entry key="texture">bumpy</entry>
        </property-map>
        <property-map>
          <entry key="name">cucumber</entry>
          <entry key="color">green</entry>
          <entry key="shape">ellipsoid</entry>
          <entry key="texture">smooth</entry>
        </property-map>
        <property-map>
          <entry key="name">zucchini</entry>
          <entry key="color">green</entry>
          <entry key="shape">ellipsoid</entry>
          <entry key="texture">semi-smooth</entry>
        </property-map>
        <property-map>
          <entry key="name">taco</entry>
          <entry key="color">brown</entry>
          <entry key="shape">saddle</entry>
          <entry key="texture">rough</entry>
        </property-map>
      </default-value>
			<sources>
				<runtime>runtime-a</runtime> 
			</sources>
    </b-map>
    
    <c-string type="string">
      <default-value type="string">name</default-value>    
    </c-string>
  </inputs>
  
  <outputs>
    <z-out type="property-map-list"/>
  </outputs>
  
  <actions loop-on="a-map">
    <action-definition>
      <action-name>Action 1</action-name>
      <component-name>TestComponent</component-name>

      <action-inputs>
        <a-map type="property-map"/>
        <b-map type="property-map-list"/>
        <c-string type="string"/>
      </action-inputs>

      <action-outputs>
        <action1-out type="property-map-list"/>
      </action-outputs>

      <component-definition>
        <test>merge</test>
        <p1>a-map</p1>
        <p2>b-map</p2>
        <p3>c-string</p3>
        <newname>action1-out</newname>
      </component-definition>
    </action-definition>

   <actions loop-on="action1-out">
      <action-definition>
        <action-name>Action 2</action-name>
        <component-name>TestComponent</component-name>

        <action-inputs>
          <action1-out type="property-map"/>
        </action-inputs>

        <action-outputs>
          <action2-out type="string-list"/>
        </action-outputs>
        
        <component-definition>
          <test>getkeys</test>
          <p1>action1-out</p1>
          <newname>action2-out</newname>
        </component-definition>
      </action-definition>

      <action-definition>
        <action-name>Action 3</action-name>
        <component-name>TestComponent</component-name>

        <action-inputs>
          <action2-out type="string-list"/>
        </action-inputs>

        <action-outputs>
          <z-out type="string-list" append="true"/>
        </action-outputs>
        
        <component-definition>
          <test>rename</test>
          <p1>action2-out</p1>
          <newname>z-out</newname>
        </component-definition>
      </action-definition>
      
      <actions loop-on="z-out">
         <action-definition>
            <action-name>Action 4</action-name>
            <component-name>TestComponent</component-name>
      
            <action-inputs>
              <z-out type="string"/>
            </action-inputs>
      
            <action-outputs>
              <msg type="string"/>
            </action-outputs>
      
            <component-definition>
              <test>format</test>
              <p1>This is a formatted message -{0}</p1>
              <p2>z-out</p2>
              <p3>z-out</p3>
              <newname>msg</newname>
            </component-definition>
          </action-definition>
          
         <action-definition>
            <action-name>Action 5</action-name>
            <component-name>TestComponent</component-name>
      
            <action-inputs>
              <msg type="string-list"/>
            </action-inputs>
      
            <action-outputs>
            </action-outputs>
      
            <component-definition>
              <test>print</test>
              <p1>msg</p1>
            </component-definition>
          </action-definition>      
          
      </actions>
   </actions> 

   <action-definition>
      <action-name>Action 6</action-name>
      <component-name>TestComponent</component-name>

      <action-inputs>
        <z-out type="string-list"/>
      </action-inputs>

      <action-outputs>
      </action-outputs>

      <component-definition>
        <test>print</test>
        <p1>z-out</p1>
      </component-definition>
    </action-definition>


  </actions>
</action-sequence>