server/instances/2/properties.xml in cpee-1.3.142 vs server/instances/2/properties.xml in cpee-1.3.143
- old
+ new
@@ -1,79 +1,226 @@
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
- <info>Enter info here</info>
- <state>finished</state>
+ <info>asdads</info>
+ <state>ready</state>
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
<positions/>
- <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>
+ <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 :a1, :json, { :label => "Get JSON", :method => "get", :parameters => nil }, <<-end
-data.json = result
-data.json_lv = result['lv']
-data.json_lvnr = result['lv']['lvnr']
+ <dsl>call :a58, :timeout, { :label => "A", :method => nil, :type => "serviceTask", :mid => "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters => { :timeout => 1 } }, <<-end
+data.a += 1
end
-call :a2, :xml, { :label => "Get XML", :method => "get", :parameters => nil }, <<-end
-data.xml_lv = result.find('string(/data/lv)')
-data.xml_lvnr = result.find('string(/data/lv/@id)')
+call :a61, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters => { :timeout => 1 } }
+loop pre_test{true} do
+ choose :exclusive do
+ alternative "data.a >= 3 && data.a < 6" do
+ call :a62, :timeout, { :label => "D", :method => nil, :type => "serviceTask", :mid => "sid-0937F905-A975-4DB2-A8C9-CD523611AEF5", :parameters => { :timeout => 1 } }
+ call :a58, :timeout, { :label => "A", :method => nil, :type => "serviceTask", :mid => "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters => { :timeout => 1 } }, <<-end
+data.a += 1
+ end
+ call :a61, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters => { :timeout => 1 } }
+ end
+ alternative "data.a < 3" do
+ call :a60, :timeout, { :label => "C", :method => nil, :type => "serviceTask", :mid => "sid-7E70A0D7-660E-4C1B-B377-64387F99BD87", :parameters => { :timeout => 1 } }
+ call :a61, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters => { :timeout => 1 } }
+ end
+ otherwise do
+ break
+ end
+ end
end
</dsl>
<dslx>
<description xmlns="http://cpee.org/ns/description/1.0">
- <call id="a1" endpoint="json" svg-label="Get JSON">
+ <call id="a58" endpoint="timeout">
<parameters>
- <label>Get JSON</label>
- <method>get</method>
- <parameters/>
+ <label>A</label>
+ <method/>
+ <type>serviceTask</type>
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
+ <parameters>
+ <timeout>1</timeout>
+ </parameters>
</parameters>
- <manipulate>data.json = result
-data.json_lv = result['lv']
-data.json_lvnr = result['lv']['lvnr']</manipulate>
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
</call>
- <call id="a2" endpoint="xml">
+ <call id="a61" endpoint="timeout">
<parameters>
- <label>Get XML</label>
- <method>get</method>
- <parameters/>
+ <label>B</label>
+ <method/>
+ <type>serviceTask</type>
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
+ <parameters>
+ <timeout>1</timeout>
+ </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 >= 3 && data.a < 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 < 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="a1" endpoint="json" svg-label="Get JSON">
+ <call id="a58" endpoint="timeout">
<parameters>
- <label>Get JSON</label>
- <method>get</method>
- <parameters/>
+ <label>A</label>
+ <method/>
+ <type>serviceTask</type>
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
+ <parameters>
+ <timeout>1</timeout>
+ </parameters>
</parameters>
- <manipulate>data.json = result
-data.json_lv = result['lv']
-data.json_lvnr = result['lv']['lvnr']</manipulate>
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
</call>
- <call id="a2" endpoint="xml">
+ <call id="a61" endpoint="timeout">
<parameters>
- <label>Get XML</label>
- <method>get</method>
- <parameters/>
+ <label>B</label>
+ <method/>
+ <type>serviceTask</type>
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
+ <parameters>
+ <timeout>1</timeout>
+ </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 >= 3 && data.a < 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 < 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