server/instances/2/properties.xml in cpee-1.3.139 vs server/instances/2/properties.xml in cpee-1.3.140

- old
+ new

@@ -1,226 +1,79 @@ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0"> - <info>asdads</info> - <state>ready</state> + <info>Enter info here</info> + <state>finished</state> <handlerwrapper>DefaultHandlerWrapper</handlerwrapper> <positions/> - <dataelements/> + <dataelements> + <json>{"lv":"Workflow Technologies","id":{"lvnr":"050311","gruppe":1}}</json> + <json_lv>Workflow Technologies</json_lv> + <json_lvnr/> + <xml_lv>Workflow Technologies</xml_lv> + <xml_lvnr>050311</xml_lvnr> + </dataelements> <endpoints> <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout> + <json>http://cpee.org/services/json.php</json> + <xml>http://cpee.org/services/xml.php</xml> </endpoints> - <dsl>call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end -data.a += 1 + <dsl>call :a1, :json, { :label =&gt; "Get JSON", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end +data.json = result +data.json_lv = result['lv'] +data.json_lvnr = result['lv']['lvnr'] end -call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } } -loop pre_test{true} do - choose :exclusive do - alternative "data.a &gt;= 3 &amp;&amp; data.a &lt; 6" do - call :a62, :timeout, { :label =&gt; "D", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-0937F905-A975-4DB2-A8C9-CD523611AEF5", :parameters =&gt; { :timeout =&gt; 1 } } - call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end -data.a += 1 - end - call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } } - end - alternative "data.a &lt; 3" do - call :a60, :timeout, { :label =&gt; "C", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-7E70A0D7-660E-4C1B-B377-64387F99BD87", :parameters =&gt; { :timeout =&gt; 1 } } - call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } } - end - otherwise do - break - end - end +call :a2, :xml, { :label =&gt; "Get XML", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end +data.xml_lv = result.find('string(/data/lv)') +data.xml_lvnr = result.find('string(/data/lv/@id)') end </dsl> <dslx> <description xmlns="http://cpee.org/ns/description/1.0"> - <call id="a58" endpoint="timeout"> + <call id="a1" endpoint="json" svg-label="Get JSON"> <parameters> - <label>A</label> - <method/> - <type>serviceTask</type> - <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid> - <parameters> - <timeout>1</timeout> - </parameters> + <label>Get JSON</label> + <method>get</method> + <parameters/> </parameters> - <manipulate output="result" language="application/javascript">data.a += 1</manipulate> + <manipulate>data.json = result +data.json_lv = result['lv'] +data.json_lvnr = result['lv']['lvnr']</manipulate> </call> - <call id="a61" endpoint="timeout"> + <call id="a2" endpoint="xml"> <parameters> - <label>B</label> - <method/> - <type>serviceTask</type> - <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid> - <parameters> - <timeout>1</timeout> - </parameters> + <label>Get XML</label> + <method>get</method> + <parameters/> </parameters> + <manipulate>data.xml_lv = result.find('string(/data/lv)') +data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate> </call> - <loop pre_test="true"> - <choose mode="exclusive"> - <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript"> - <call id="a62" endpoint="timeout"> - <parameters> - <label>D</label> - <method/> - <type>serviceTask</type> - <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - <call id="a58" endpoint="timeout"> - <parameters> - <label>A</label> - <method/> - <type>serviceTask</type> - <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - <manipulate output="result" language="application/javascript">data.a += 1</manipulate> - </call> - <call id="a61" endpoint="timeout"> - <parameters> - <label>B</label> - <method/> - <type>serviceTask</type> - <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - </alternative> - <alternative condition="data.a &lt; 3" language="text/javascript"> - <call id="a60" endpoint="timeout"> - <parameters> - <label>C</label> - <method/> - <type>serviceTask</type> - <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - <call id="a61" endpoint="timeout"> - <parameters> - <label>B</label> - <method/> - <type>serviceTask</type> - <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - </alternative> - <otherwise> - <break/> - </otherwise> - </choose> - </loop> </description> </dslx> <status> <id>0</id> <message>undefined</message> </status> <description> <description xmlns="http://cpee.org/ns/description/1.0"> - <call id="a58" endpoint="timeout"> + <call id="a1" endpoint="json" svg-label="Get JSON"> <parameters> - <label>A</label> - <method/> - <type>serviceTask</type> - <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid> - <parameters> - <timeout>1</timeout> - </parameters> + <label>Get JSON</label> + <method>get</method> + <parameters/> </parameters> - <manipulate output="result" language="application/javascript">data.a += 1</manipulate> + <manipulate>data.json = result +data.json_lv = result['lv'] +data.json_lvnr = result['lv']['lvnr']</manipulate> </call> - <call id="a61" endpoint="timeout"> + <call id="a2" endpoint="xml"> <parameters> - <label>B</label> - <method/> - <type>serviceTask</type> - <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid> - <parameters> - <timeout>1</timeout> - </parameters> + <label>Get XML</label> + <method>get</method> + <parameters/> </parameters> + <manipulate>data.xml_lv = result.find('string(/data/lv)') +data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate> </call> - <loop pre_test="true"> - <choose mode="exclusive"> - <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript"> - <call id="a62" endpoint="timeout"> - <parameters> - <label>D</label> - <method/> - <type>serviceTask</type> - <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - <call id="a58" endpoint="timeout"> - <parameters> - <label>A</label> - <method/> - <type>serviceTask</type> - <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - <manipulate output="result" language="application/javascript">data.a += 1</manipulate> - </call> - <call id="a61" endpoint="timeout"> - <parameters> - <label>B</label> - <method/> - <type>serviceTask</type> - <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - </alternative> - <alternative condition="data.a &lt; 3" language="text/javascript"> - <call id="a60" endpoint="timeout"> - <parameters> - <label>C</label> - <method/> - <type>serviceTask</type> - <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - <call id="a61" endpoint="timeout"> - <parameters> - <label>B</label> - <method/> - <type>serviceTask</type> - <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid> - <parameters> - <timeout>1</timeout> - </parameters> - </parameters> - </call> - </alternative> - <otherwise> - <break/> - </otherwise> - </choose> - </loop> </description> </description> <transformation> <description type="copy"/> <dataelements type="xslt"/> \ No newline at end of file