server/instances/15/properties.xml in cpee-1.3.201 vs server/instances/15/properties.xml in cpee-1.3.202

- old
+ new

@@ -1,114 +1,69 @@ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0"> <attributes> - <info>Enter info here</info> + <uuid>59eb91b1-2be0-45bd-acdf-acffc9f10c7a</uuid> + <info>Lego Plate</info> <modeltype>CPEE</modeltype> - <theme>default</theme> - <uuid>43ed5278-2932-4648-82ba-a9d0a2908475</uuid> </attributes> - <state>ready</state> + <state>stopped</state> <handlerwrapper>DefaultHandlerWrapper</handlerwrapper> <positions> - <a1>after</a1> + <a1>at</a1> </positions> <dataelements> - <x/> + <i>0</i> </dataelements> <endpoints> <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout> + <move>http://plate.wst.univie.ac.at:9200/go-next</move> </endpoints> - <dsl>call :a1, :timeout, parameters: { :label =&gt; nil, :method =&gt; :get, :arguments =&gt; {:timeout =&gt; 2} }, finalize: &lt;&lt;-END, update: &lt;&lt;-END - data.x += "a1," -END -call :a2, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 4} }, finalize: &lt;&lt;-END - data.x += "a2," -END -call :a3, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 4} }, finalize: &lt;&lt;-END - data.x += "a3," -END + <dsl>loop pre_test{data.i&lt;2} do + call :a1, :move, parameters: { :label =&gt; "Move to next station", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END + i + data.i= data.i + 1 + END +end </dsl> <dslx> <description xmlns="http://cpee.org/ns/description/1.0"> - <!--{{{--> - <call id="a1" endpoint="timeout"> - <parameters> - <label/> - <method>:get</method> - <arguments> - <timeout>2</timeout> - </arguments> - </parameters> - <finalize output="result"> data.x += "a1,"</finalize> - <update output="result"/> - </call> - <call id="a2" endpoint="timeout" svg-label=""> - <parameters> - <!--{{{--> - <method>:post</method> - <arguments> - <timeout>4</timeout> - </arguments> - </parameters> - <!--}}}--> - <finalize output="result"> data.x += "a2,"</finalize> - </call> - <call id="a3" endpoint="timeout" svg-label=""> - <parameters> - <!--{{{--> - <method>:post</method> - <arguments> - <timeout>4</timeout> - </arguments> - </parameters> - <!--}}}--> - <finalize output="result"> data.x += "a3,"</finalize> - </call> + <loop mode="pre_test" condition="data.i&lt;2"> + <call id="a1" endpoint="move"> + <parameters> + <label>Move to next station</label> + <method>:post</method> + <arguments/> + </parameters> + <finalize output="result">i +data.i= data.i + 1 +</finalize> + <update output="result"/> + </call> + </loop> </description> </dslx> <status> <id>0</id> <message>undefined</message> </status> <description> <description xmlns="http://cpee.org/ns/description/1.0"> - <!--{{{--> - <call id="a1" endpoint="timeout"> - <parameters> - <label/> - <method>:get</method> - <arguments> - <timeout>2</timeout> - </arguments> - </parameters> - <finalize output="result"> data.x += "a1,"</finalize> - <update output="result"/> - </call> - <call id="a2" endpoint="timeout" svg-label=""> - <parameters> - <!--{{{--> - <method>:post</method> - <arguments> - <timeout>4</timeout> - </arguments> - </parameters> - <!--}}}--> - <finalize output="result"> data.x += "a2,"</finalize> - </call> - <call id="a3" endpoint="timeout" svg-label=""> - <parameters> - <!--{{{--> - <method>:post</method> - <arguments> - <timeout>4</timeout> - </arguments> - </parameters> - <!--}}}--> - <finalize output="result"> data.x += "a3,"</finalize> - </call> + <loop mode="pre_test" condition="data.i&lt;2"> + <call id="a1" endpoint="move"> + <parameters> + <label>Move to next station</label> + <method>:post</method> + <arguments/> + </parameters> + <finalize output="result">i +data.i= data.i + 1 +</finalize> + <update output="result"/> + </call> + </loop> </description> </description> <transformation> <description type="copy"/> - <dataelements type="rest"/> - <endpoints type="rest"/> + <dataelements type="none"/> + <endpoints type="none"/> </transformation> </properties> \ No newline at end of file