server/instances/15/properties.xml in cpee-1.3.174 vs server/instances/15/properties.xml in cpee-1.3.175

- old
+ new

@@ -1,44 +1,330 @@ -<?xml version="1.0"?> -<!-- - This file is part of CPEE. - - CPEE is free software: you can redistribute it and/or modify it under the terms - of the GNU General Public License as published by the Free Software Foundation, - either version 3 of the License, or (at your option) any later version. - - CPEE is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - PARTICULAR PURPOSE. See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along with - CPEE (file COPYING in the main directory). If not, see - <http://www.gnu.org/licenses/>. ---> - <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0"> - <info/> + <info>Enter info here</info> <properties/> <state>ready</state> <handlerwrapper>DefaultHandlerWrapper</handlerwrapper> - <positions/> - <dataelements/> + <positions> + <a2>after</a2> + </positions> + <dataelements> + <name>Milos</name> + <vnr>3456</vnr> + <email>a1346963@unet.univie.ac.at</email> + <garage>SCbCeO36t6</garage> + <schadensumme>136</schadensumme> + <schaden>gering</schaden> + <versicherungssumme>dummy</versicherungssumme> + <historie>dummy</historie> + <entscheidung>dummy</entscheidung> + </dataelements> <endpoints> <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout> + <a>http://wwwlab.cs.univie.ac.at/~a1100570/a.php</a> + <b>http://wwwlab.cs.univie.ac.at/~a1100570/b.php</b> + <c>http://wwwlab.cs.univie.ac.at/~a1100570/c.php</c> + <d>http://wwwlab.cs.univie.ac.at/~a1100570/d.php</d> + <e>http://wwwlab.cs.univie.ac.at/~a1100570/e.php</e> + <f>http://wwwlab.cs.univie.ac.at/~a1100570/f.php</f> + <g>http://wwwlab.cs.univie.ac.at/~a1100570/g.php</g> </endpoints> - <dsl/> + <dsl>call :a1, :a, { :label =&gt; "Schadenmeldung registrieren", :method =&gt; :get, :parameters =&gt; nil }, &lt;&lt;-end +data.name=result['name'] +data.vnr=result['vnr'] +data.email=result['email'] +data.garage=result['garage'] +data.schadensumme=result['schadensumme'] +end +call :a2, :b, { :label =&gt; "Schadenmeldung klassifizieren", :method =&gt; :post, :parameters =&gt; {:name =&gt; data.name} }, &lt;&lt;-end +data.schaden=result['groesse'] +end +choose :exclusive do + alternative "data.schaden='gering'" do + parallel do + parallel_branch do + call :a3, :c, { :label =&gt; "Versicherungssumme ermitteln", :method =&gt; :post, :parameters =&gt; {:schadengroesse =&gt; data.schadensumme} }, &lt;&lt;-end +data.versicherungssumme=result['versicherungssumme'] + end + end + parallel_branch do + call :a4, :d, { :label =&gt; "Garage kontaktieren", :method =&gt; :post, :parameters =&gt; {:garage =&gt; data.garage, :email =&gt; data.email, :name =&gt; data.name} } + end + end + end + otherwise do + call :a5, :c, { :label =&gt; "Versicherungssumme ermitteln", :method =&gt; :post, :parameters =&gt; {:schadengroesse =&gt; data.schadensumme} }, &lt;&lt;-end +data.versicherungssumme=result['versicherungssumme'] + end + call :a6, :e, { :label =&gt; "Versicherungshistorie ermitteln", :method =&gt; :post, :parameters =&gt; {:schaden =&gt; data.schaden} }, &lt;&lt;-end +data.historie=result['text'] + end + call :a7, :d, { :label =&gt; "Garage kontaktieren", :method =&gt; :post, :parameters =&gt; {:garage =&gt; data.garage, :name =&gt; data.name, :email =&gt; data.email} } + end +end +call :a8, :f, { :label =&gt; "Entscheidung treffen", :method =&gt; :get, :parameters =&gt; nil }, &lt;&lt;-end +data.entscheidung=result['ok'] +end +choose :exclusive do + alternative "entscheidung='OK'" do + call :a10, :timeout, { :label =&gt; "Zahlen", :method =&gt; :post, :parameters =&gt; {:timeout =&gt; 3} } + end + otherwise do + end +end +call :a9, :g, { :label =&gt; "Entscheidung mitteilen", :method =&gt; :post, :parameters =&gt; {:name =&gt; data.name, :email =&gt; data.email, :body =&gt; data.entscheidung} } +</dsl> <dslx> - <description xmlns="http://cpee.org/ns/description/1.0"/> - </dslx> + <description xmlns="http://cpee.org/ns/description/1.0"> + <call id="a1" endpoint="a" svg-label="Schadenmeldung registrieren"> + <parameters> + <label>"Schadenmeldung registrieren"</label> + <method>:get</method> + <parameters/> + </parameters> + <manipulate>data.name=result['name'] +data.vnr=result['vnr'] +data.email=result['email'] +data.garage=result['garage'] +data.schadensumme=result['schadensumme']</manipulate> + </call> + <call id="a2" endpoint="b" svg-label="Schadenmeldung klassifizieren"> + <parameters> + <label>"Schadenmeldung klassifizieren"</label> + <method>:post</method> + <parameters> + <name>data.name</name> + </parameters> + </parameters> + <manipulate>data.schaden=result['groesse']</manipulate> + </call> + <choose mode="exclusive" svg-label=""> + <alternative condition="data.schaden='gering'" svg-label=""> + <parallel svg-label=""> + <parallel_branch svg-label=""> + <call id="a3" endpoint="c" svg-label="Versicherungssumme ermitteln"> + <parameters> + <label>"Versicherungssumme ermitteln"</label> + <method>:post</method> + <parameters> + <schadengroesse>data.schadensumme</schadengroesse> + </parameters> + </parameters> + <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate> + </call> + </parallel_branch> + <parallel_branch svg-label=""> + <call id="a4" endpoint="d" svg-label="Garage kontaktieren"> + <parameters> + <label>"Garage kontaktieren"</label> + <method>:post</method> + <parameters> + <garage>data.garage</garage> + <email>data.email</email> + <name>data.name</name> + </parameters> + </parameters> + </call> + </parallel_branch> + </parallel> + </alternative> + <otherwise svg-label=""> + <call id="a5" endpoint="c" svg-label="Versicherungssumme ermitteln"> + <parameters> + <label>"Versicherungssumme ermitteln"</label> + <method>:post</method> + <parameters> + <schadengroesse>data.schadensumme</schadengroesse> + </parameters> + </parameters> + <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate> + </call> + <call id="a6" endpoint="e" svg-label="Versicherungshistorie ermitteln"> + <parameters> + <label>"Versicherungshistorie ermitteln"</label> + <method>:post</method> + <parameters> + <schaden>data.schaden</schaden> + </parameters> + </parameters> + <manipulate>data.historie=result['text']</manipulate> + </call> + <call id="a7" endpoint="d" svg-label="Garage kontaktieren"> + <parameters> + <label>"Garage kontaktieren"</label> + <method>:post</method> + <parameters> + <garage>data.garage</garage> + <name>data.name</name> + <email>data.email</email> + </parameters> + </parameters> + </call> + </otherwise> + </choose> + <call id="a8" endpoint="f"> + <parameters> + <label>"Entscheidung treffen"</label> + <method>:get</method> + <parameters/> + </parameters> + <manipulate>data.entscheidung=result['ok']</manipulate> + </call> + <choose mode="exclusive" svg-label=""> + <alternative condition="entscheidung='OK'" svg-label=""> + <call id="a10" endpoint="timeout" svg-label="Zahlen"> + <parameters> + <label>"Zahlen"</label> + <method>:post</method> + <parameters> + <timeout>3</timeout> + </parameters> + </parameters> + </call> + </alternative> + <otherwise svg-label=""/> + </choose> + <call id="a9" endpoint="g" svg-label="Entscheidung mitteilen"> + <parameters> + <label>"Entscheidung mitteilen"</label> + <method>:post</method> + <parameters> + <name>data.name</name> + <email>data.email</email> + <body>data.entscheidung</body> + </parameters> + </parameters> + </call> + </description> + </dslx> <status> <id>0</id> <message>undefined</message> </status> <description> - <description xmlns="http://cpee.org/ns/description/1.0"/> + <description xmlns="http://cpee.org/ns/description/1.0"> + <call id="a1" endpoint="a" svg-label="Schadenmeldung registrieren"> + <parameters> + <label>"Schadenmeldung registrieren"</label> + <method>:get</method> + <parameters/> + </parameters> + <manipulate>data.name=result['name'] +data.vnr=result['vnr'] +data.email=result['email'] +data.garage=result['garage'] +data.schadensumme=result['schadensumme']</manipulate> + </call> + <call id="a2" endpoint="b" svg-label="Schadenmeldung klassifizieren"> + <parameters> + <label>"Schadenmeldung klassifizieren"</label> + <method>:post</method> + <parameters> + <name>data.name</name> + </parameters> + </parameters> + <manipulate>data.schaden=result['groesse']</manipulate> + </call> + <choose mode="exclusive" svg-label=""> + <alternative condition="data.schaden='gering'" svg-label=""> + <parallel svg-label=""> + <parallel_branch svg-label=""> + <call id="a3" endpoint="c" svg-label="Versicherungssumme ermitteln"> + <parameters> + <label>"Versicherungssumme ermitteln"</label> + <method>:post</method> + <parameters> + <schadengroesse>data.schadensumme</schadengroesse> + </parameters> + </parameters> + <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate> + </call> + </parallel_branch> + <parallel_branch svg-label=""> + <call id="a4" endpoint="d" svg-label="Garage kontaktieren"> + <parameters> + <label>"Garage kontaktieren"</label> + <method>:post</method> + <parameters> + <garage>data.garage</garage> + <email>data.email</email> + <name>data.name</name> + </parameters> + </parameters> + </call> + </parallel_branch> + </parallel> + </alternative> + <otherwise svg-label=""> + <call id="a5" endpoint="c" svg-label="Versicherungssumme ermitteln"> + <parameters> + <label>"Versicherungssumme ermitteln"</label> + <method>:post</method> + <parameters> + <schadengroesse>data.schadensumme</schadengroesse> + </parameters> + </parameters> + <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate> + </call> + <call id="a6" endpoint="e" svg-label="Versicherungshistorie ermitteln"> + <parameters> + <label>"Versicherungshistorie ermitteln"</label> + <method>:post</method> + <parameters> + <schaden>data.schaden</schaden> + </parameters> + </parameters> + <manipulate>data.historie=result['text']</manipulate> + </call> + <call id="a7" endpoint="d" svg-label="Garage kontaktieren"> + <parameters> + <label>"Garage kontaktieren"</label> + <method>:post</method> + <parameters> + <garage>data.garage</garage> + <name>data.name</name> + <email>data.email</email> + </parameters> + </parameters> + </call> + </otherwise> + </choose> + <call id="a8" endpoint="f"> + <parameters> + <label>"Entscheidung treffen"</label> + <method>:get</method> + <parameters/> + </parameters> + <manipulate>data.entscheidung=result['ok']</manipulate> + </call> + <choose mode="exclusive" svg-label=""> + <alternative condition="entscheidung='OK'" svg-label=""> + <call id="a10" endpoint="timeout" svg-label="Zahlen"> + <parameters> + <label>"Zahlen"</label> + <method>:post</method> + <parameters> + <timeout>3</timeout> + </parameters> + </parameters> + </call> + </alternative> + <otherwise svg-label=""/> + </choose> + <call id="a9" endpoint="g" svg-label="Entscheidung mitteilen"> + <parameters> + <label>"Entscheidung mitteilen"</label> + <method>:post</method> + <parameters> + <name>data.name</name> + <email>data.email</email> + <body>data.entscheidung</body> + </parameters> + </parameters> + </call> + </description> </description> <transformation> - <description type='copy'/> - <dataelements type='none'/> - <endpoints type='none'/> + <description type="copy"/> + <dataelements type="xslt"/> + <endpoints type="xslt"/> </transformation> -</properties> +</properties> \ No newline at end of file