server/instances/33/properties.xml in cpee-1.4.1 vs server/instances/33/properties.xml in cpee-1.4.2
- old
+ new
@@ -1,156 +1,142 @@
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
<attributes>
- <uuid>709db925-816d-4a9b-b043-3594786fc2fb</uuid>
- <info>Enter info here</info>
+ <uuid>e793168e-4d46-493a-9fc0-659c699c8722</uuid>
+ <info>Plain Instance</info>
<modeltype>CPEE</modeltype>
<theme>default</theme>
</attributes>
<state>finished</state>
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
<positions/>
- <dataelements>
- <persons>0</persons>
- <card>Visa_12345</card>
- <airline>American Airlines</airline>
- <hotels>["Mariott","Mariott","Ibis"]</hotels>
- <from>Vienna</from>
- <to>Prague</to>
- <costs>1150.0</costs>
- </dataelements>
+ <dataelements/>
<endpoints>
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
</endpoints>
- <dsl>call :a1, :bookAir, parameters: { :label => "Book Airline", :method => :post, :arguments => [⭐(:name => :from, :value => data.from), ⭐(:name => :to, :value => data.to), ⭐(:name => :persons, :value => data.persons)] }, finalize: <<-END
- data.airline = result.value('id')
- data.costs += result.value('costs').to_f
- status.update 1, 'Hotel'
+ <dsl>manipulate :a1, { :label => "tester" }, <<-END
+ puts "hallo"
END
-parallel do
- loop pre_test{data.persons > 0} do
- parallel_branch data.persons do |p|
- call :a2, :bookHotel, parameters: { :label => "Book Hotel", :method => :post, :arguments => [⭐(:name => :to, :value => data.to)] }, finalize: <<-END
- data.hotels << result.value('id')
- data.costs += result.value('costs').to_f
- END
- end
- manipulate :a3, <<-END
- data.persons -= 1
- END
+choose :exclusive do
+ alternative test{true} do
+ terminate
end
-end
-choose :inclusive do
- alternative test{data.costs > 700} do
- call :a4, :approve, parameters: { :label => "Approve Hotel", :method => :post, :arguments => [⭐(:name => :costs, :value => data.costs)] }
+ alternative test{} do
+ call :a3, nil, parameters: { :label => "", :method => :post, :arguments => nil }
+ stop
end
end
+call :a2, :timeout, parameters: { :label => "", :method => :post, :arguments => nil }
</dsl>
<dslx>
<description xmlns="http://cpee.org/ns/description/1.0">
- <call id="a1" endpoint="bookAir">
- <parameters>
- <label>Book Airline</label>
- <method>:post</method>
- <arguments>
- <from>data.from</from>
- <to>data.to</to>
- <persons>data.persons</persons>
- </arguments>
- </parameters>
- <finalize output="result">data.airline = result.value('id')
-data.costs += result.value('costs').to_f
-status.update 1, 'Hotel'</finalize>
- </call>
- <parallel>
- <loop mode="pre_test" condition="data.persons > 0">
- <parallel_branch pass="data.persons" local="p">
- <call id="a2" endpoint="bookHotel">
- <parameters>
- <label>Book Hotel</label>
- <method>:post</method>
- <arguments>
- <to>data.to</to>
- </arguments>
- </parameters>
- <finalize output="result">data.hotels << result.value('id')
-data.costs += result.value('costs').to_f</finalize>
- </call>
- </parallel_branch>
- <manipulate id="a3">data.persons -= 1</manipulate>
- </loop>
- </parallel>
- <choose mode="inclusive">
- <alternative condition="data.costs > 700">
- <call id="a4" endpoint="approve">
+ <manipulate id="a1" label="tester">puts "hallo"</manipulate>
+ <choose mode="exclusive">
+ <alternative condition="true">
+ <terminate/>
+ </alternative>
+ <alternative condition="">
+ <call id="a3" endpoint="">
<parameters>
- <label>Approve Hotel</label>
+ <label/>
<method>:post</method>
- <arguments>
- <costs>data.costs</costs>
- </arguments>
+ <arguments/>
</parameters>
+ <finalize output="result"/>
+ <update output="result"/>
+ <_timing>
+ <_timing_min/>
+ <_timing_max/>
+ <_timing_avg/>
+ </_timing>
+ <_notes>
+ <_notes_general/>
+ <_notes_output/>
+ <_attachments/>
+ </_notes>
</call>
+ <stop/>
</alternative>
+ <otherwise/>
</choose>
+ <call id="a2" endpoint="timeout">
+ <parameters>
+ <label/>
+ <method>:post</method>
+ <arguments/>
+ </parameters>
+ <finalize output="result"/>
+ <update output="result"/>
+ <_timing>
+ <_timing_min/>
+ <_timing_max/>
+ <_timing_avg/>
+ </_timing>
+ <_notes>
+ <_notes_general/>
+ <_notes_output/>
+ <_attachments/>
+ </_notes>
+ </call>
</description>
</dslx>
<status>
<id>0</id>
<message>undefined</message>
</status>
<description>
<description xmlns="http://cpee.org/ns/description/1.0">
- <call id="a1" endpoint="bookAir">
- <parameters>
- <label>Book Airline</label>
- <method>:post</method>
- <arguments>
- <from>data.from</from>
- <to>data.to</to>
- <persons>data.persons</persons>
- </arguments>
- </parameters>
- <finalize output="result">data.airline = result.value('id')
-data.costs += result.value('costs').to_f
-status.update 1, 'Hotel'</finalize>
- </call>
- <parallel>
- <loop mode="pre_test" condition="data.persons > 0">
- <parallel_branch pass="data.persons" local="p">
- <call id="a2" endpoint="bookHotel">
- <parameters>
- <label>Book Hotel</label>
- <method>:post</method>
- <arguments>
- <to>data.to</to>
- </arguments>
- </parameters>
- <finalize output="result">data.hotels << result.value('id')
-data.costs += result.value('costs').to_f</finalize>
- </call>
- </parallel_branch>
- <manipulate id="a3">data.persons -= 1</manipulate>
- </loop>
- </parallel>
- <choose mode="inclusive">
- <alternative condition="data.costs > 700">
- <call id="a4" endpoint="approve">
+ <manipulate id="a1" label="tester">puts "hallo"</manipulate>
+ <choose mode="exclusive">
+ <alternative condition="true">
+ <terminate/>
+ </alternative>
+ <alternative condition="">
+ <call id="a3" endpoint="">
<parameters>
- <label>Approve Hotel</label>
+ <label/>
<method>:post</method>
- <arguments>
- <costs>data.costs</costs>
- </arguments>
+ <arguments/>
</parameters>
+ <finalize output="result"/>
+ <update output="result"/>
+ <_timing>
+ <_timing_min/>
+ <_timing_max/>
+ <_timing_avg/>
+ </_timing>
+ <_notes>
+ <_notes_general/>
+ <_notes_output/>
+ <_attachments/>
+ </_notes>
</call>
+ <stop/>
</alternative>
+ <otherwise/>
</choose>
+ <call id="a2" endpoint="timeout">
+ <parameters>
+ <label/>
+ <method>:post</method>
+ <arguments/>
+ </parameters>
+ <finalize output="result"/>
+ <update output="result"/>
+ <_timing>
+ <_timing_min/>
+ <_timing_max/>
+ <_timing_avg/>
+ </_timing>
+ <_notes>
+ <_notes_general/>
+ <_notes_output/>
+ <_attachments/>
+ </_notes>
+ </call>
</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