cpee 1.3.174 → 1.3.175

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +0 -6
  3. data/cockpit/js/instance.js +15 -0
  4. data/cpee.gemspec +1 -1
  5. data/lib/cpee/controller.rb +9 -0
  6. data/lib/cpee/handler_properties.rb +2 -0
  7. data/server/instances/1/properties.xml +101 -69
  8. data/server/instances/10/properties.xml +70 -106
  9. data/server/instances/11/properties.xml +73 -133
  10. data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret +1 -0
  11. data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret +1 -0
  12. data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml +6 -0
  13. data/server/instances/12/properties.xml +0 -1
  14. data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret +1 -0
  15. data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret +1 -0
  16. data/server/instances/{14/notifications/5bcce90b170116a77fb25aea4e133acc → 13/notifications/4ff0cde5161c44dae49b263cbc12eaf8}/subscription.xml +0 -0
  17. data/server/instances/14/properties.xml +160 -160
  18. data/server/instances/15/properties.xml +314 -28
  19. data/server/instances/16/properties.xml +249 -28
  20. data/server/instances/17/properties.xml +130 -28
  21. data/server/instances/18/properties.xml +2 -3
  22. data/server/instances/19/properties.xml +1 -0
  23. data/server/instances/2/properties.xml +44 -191
  24. data/server/instances/3/properties.xml +44 -70
  25. data/server/instances/4/properties.xml +68 -28
  26. data/server/instances/5/properties.xml +70 -10
  27. data/server/instances/6/properties.xml +55 -175
  28. data/server/instances/7/properties.xml +52 -118
  29. data/server/instances/8/properties.xml +50 -112
  30. data/server/instances/9/properties.xml +47 -115
  31. metadata +117 -131
  32. data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret +0 -1
  33. data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret +0 -1
  34. data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml +0 -27
  35. data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/consumer-secret +0 -1
  36. data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/producer-secret +0 -1
  37. data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/subscription.xml +0 -33
  38. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +0 -1
  39. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +0 -1
  40. data/server/instances/20/properties.xml +0 -46
  41. data/server/instances/21/properties.xml +0 -46
  42. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +0 -1
  43. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +0 -1
  44. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +0 -23
  45. data/server/instances/22/properties.xml +0 -112
  46. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +0 -1
  47. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +0 -1
  48. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +0 -23
  49. data/server/instances/23/properties.xml +0 -148
  50. data/server/server.pid +0 -1
@@ -1,93 +1,62 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>Enter info here</info>
3
- <state>stopped</state>
2
+ <info/>
3
+ <state>ready</state>
4
4
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
- <positions/>
6
- <dataelements/>
5
+ <positions>
6
+ <a1>after</a1>
7
+ </positions>
8
+ <dataelements>
9
+ <x/>
10
+ </dataelements>
7
11
  <endpoints>
8
12
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
9
13
  </endpoints>
10
- <dsl>choose :exclusive do
11
- alternative "true", :sim_probability =&gt; "40.0" do
12
- call :a6, nil, { :label =&gt; "da", :type =&gt; :unknown, :mid =&gt; "_5902507A-504A-4F1E-AEE3-8860BEF374B6", :parameters =&gt; nil }
13
- end
14
- otherwise :sim_probability =&gt; "60.0" do
15
- call :a5, nil, { :label =&gt; "db", :type =&gt; :unknown, :mid =&gt; "_6F6A6FEE-57EB-459D-96FB-1AA736CD6465", :parameters =&gt; nil }
16
- end
14
+ <dsl>call :a1, :timeout, { :method =&gt; "post", :parameters =&gt; { :timeout =&gt; 2 } }, &lt;&lt;-end
15
+ data.x += "a1,"
17
16
  end
18
- loop pre_test("true"), :sim_probability =&gt; "100.0" do
19
- call :a2, :ADVENTURE_CORRELATION_push, { :label =&gt; "Receive", :type =&gt; :smartobject, :sim_min_time =&gt; "1m", :sim_max_time =&gt; "1m", :sim_avg_time =&gt; "1m", :mid =&gt; "_A0C7F27E-5FF6-4443-9966-A370F20E1D6F", :parameters =&gt; {:SensorID =&gt; "14"} }, &lt;&lt;-end
20
- data.defectid = result.SensorData;
21
- end
22
- call :a1, :MailCO_mail, { :label =&gt; "Deliver Mail", :type =&gt; :externalManufacturingTask, :sim_min_time =&gt; "1m", :sim_max_time =&gt; "1m", :sim_avg_time =&gt; "1m", :mid =&gt; "_5F7422FB-B4A2-49CB-8071-E0FF99F0A834", :parameters =&gt; {:to =&gt; "juergen.mangler@univie.ac.at", :subject =&gt; "Defect Part", :body =&gt; "data.defectid"} }
23
- call :a3, :ADVENTURE_SPAWN, { :label =&gt; "Spawn self", :type =&gt; :spawn, :mid =&gt; "_DEF002B1-0593-4693-8AD7-48B983E5AFAE", :parameters =&gt; {:instance =&gt; "53cd4af1e4b0207100d2266e"} }
17
+ call :a2, :timeout, { :method =&gt; "post", :parameters =&gt; { :timeout =&gt; 4 } }, &lt;&lt;-end
18
+ data.x += "a2,"
19
+ end
20
+ call :a3, :timeout, { :method =&gt; "post", :parameters =&gt; { :timeout =&gt; 4 } }, &lt;&lt;-end
21
+ data.x += "a3,"
24
22
  end
25
23
  </dsl>
26
24
  <dslx>
27
25
  <description xmlns="http://cpee.org/ns/description/1.0">
28
- <choose mode="exclusive">
29
- <alternative condition="true" language="text/javascript" sim_probability="40.0">
30
- <call id="a6" endpoint="">
31
- <parameters>
32
- <label>"da"</label>
33
- <type>:unknown</type>
34
- <mid>"_5902507A-504A-4F1E-AEE3-8860BEF374B6"</mid>
35
- <parameters/>
36
- </parameters>
37
- </call>
38
- </alternative>
39
- <otherwise sim_probability="60.0">
40
- <call id="a5" endpoint="">
41
- <parameters>
42
- <label>"db"</label>
43
- <type>:unknown</type>
44
- <mid>"_6F6A6FEE-57EB-459D-96FB-1AA736CD6465"</mid>
45
- <parameters/>
46
- </parameters>
47
- </call>
48
- </otherwise>
49
- </choose>
50
- <loop pre_test="true" language="text/javascript" sim_probability="100.0">
51
- <call id="a2" endpoint="ADVENTURE_CORRELATION_push">
26
+ <!--{{{-->
27
+ <call id="a1" endpoint="timeout">
28
+ <parameters>
29
+ <!--{{{-->
30
+ <method>post</method>
52
31
  <parameters>
53
- <label>"Receive"</label>
54
- <type>:smartobject</type>
55
- <sim_min_time>"1m"</sim_min_time>
56
- <sim_max_time>"1m"</sim_max_time>
57
- <sim_avg_time>"1m"</sim_avg_time>
58
- <mid>"_A0C7F27E-5FF6-4443-9966-A370F20E1D6F"</mid>
59
- <parameters>
60
- <SensorID>"14"</SensorID>
61
- </parameters>
32
+ <timeout>2</timeout>
62
33
  </parameters>
63
- <manipulate output="result" language="text/javascript">data.defectid = result.SensorData;</manipulate>
64
- </call>
65
- <call id="a1" endpoint="MailCO_mail">
34
+ </parameters>
35
+ <!--}}}-->
36
+ <manipulate output="result"> data.x += "a1,"</manipulate>
37
+ </call>
38
+ <call id="a2" endpoint="timeout">
39
+ <parameters>
40
+ <!--{{{-->
41
+ <method>post</method>
66
42
  <parameters>
67
- <label>"Deliver Mail"</label>
68
- <type>:externalManufacturingTask</type>
69
- <sim_min_time>"1m"</sim_min_time>
70
- <sim_max_time>"1m"</sim_max_time>
71
- <sim_avg_time>"1m"</sim_avg_time>
72
- <mid>"_5F7422FB-B4A2-49CB-8071-E0FF99F0A834"</mid>
73
- <parameters>
74
- <to>"juergen.mangler@univie.ac.at"</to>
75
- <subject>"Defect Part"</subject>
76
- <body>"data.defectid"</body>
77
- </parameters>
43
+ <timeout>4</timeout>
78
44
  </parameters>
79
- </call>
80
- <call id="a3" endpoint="ADVENTURE_SPAWN">
45
+ </parameters>
46
+ <!--}}}-->
47
+ <manipulate output="result"> data.x += "a2,"</manipulate>
48
+ </call>
49
+ <call id="a3" endpoint="timeout">
50
+ <parameters>
51
+ <!--{{{-->
52
+ <method>post</method>
81
53
  <parameters>
82
- <label>"Spawn self"</label>
83
- <type>:spawn</type>
84
- <mid>"_DEF002B1-0593-4693-8AD7-48B983E5AFAE"</mid>
85
- <parameters>
86
- <instance>"53cd4af1e4b0207100d2266e"</instance>
87
- </parameters>
54
+ <timeout>4</timeout>
88
55
  </parameters>
89
- </call>
90
- </loop>
56
+ </parameters>
57
+ <!--}}}-->
58
+ <manipulate output="result"> data.x += "a3,"</manipulate>
59
+ </call>
91
60
  </description>
92
61
  </dslx>
93
62
  <status>
@@ -96,74 +65,45 @@ end
96
65
  </status>
97
66
  <description>
98
67
  <description xmlns="http://cpee.org/ns/description/1.0">
99
- <choose mode="exclusive">
100
- <alternative condition="true" language="text/javascript" sim_probability="40.0">
101
- <call id="a6" endpoint="">
102
- <parameters>
103
- <label>"da"</label>
104
- <type>:unknown</type>
105
- <mid>"_5902507A-504A-4F1E-AEE3-8860BEF374B6"</mid>
106
- <parameters/>
107
- </parameters>
108
- </call>
109
- </alternative>
110
- <otherwise sim_probability="60.0">
111
- <call id="a5" endpoint="">
112
- <parameters>
113
- <label>"db"</label>
114
- <type>:unknown</type>
115
- <mid>"_6F6A6FEE-57EB-459D-96FB-1AA736CD6465"</mid>
116
- <parameters/>
117
- </parameters>
118
- </call>
119
- </otherwise>
120
- </choose>
121
- <loop pre_test="true" language="text/javascript" sim_probability="100.0">
122
- <call id="a2" endpoint="ADVENTURE_CORRELATION_push">
68
+ <!--{{{-->
69
+ <call id="a1" endpoint="timeout">
70
+ <parameters>
71
+ <!--{{{-->
72
+ <method>post</method>
123
73
  <parameters>
124
- <label>"Receive"</label>
125
- <type>:smartobject</type>
126
- <sim_min_time>"1m"</sim_min_time>
127
- <sim_max_time>"1m"</sim_max_time>
128
- <sim_avg_time>"1m"</sim_avg_time>
129
- <mid>"_A0C7F27E-5FF6-4443-9966-A370F20E1D6F"</mid>
130
- <parameters>
131
- <SensorID>"14"</SensorID>
132
- </parameters>
74
+ <timeout>2</timeout>
133
75
  </parameters>
134
- <manipulate output="result" language="text/javascript">data.defectid = result.SensorData;</manipulate>
135
- </call>
136
- <call id="a1" endpoint="MailCO_mail">
76
+ </parameters>
77
+ <!--}}}-->
78
+ <manipulate output="result"> data.x += "a1,"</manipulate>
79
+ </call>
80
+ <call id="a2" endpoint="timeout">
81
+ <parameters>
82
+ <!--{{{-->
83
+ <method>post</method>
137
84
  <parameters>
138
- <label>"Deliver Mail"</label>
139
- <type>:externalManufacturingTask</type>
140
- <sim_min_time>"1m"</sim_min_time>
141
- <sim_max_time>"1m"</sim_max_time>
142
- <sim_avg_time>"1m"</sim_avg_time>
143
- <mid>"_5F7422FB-B4A2-49CB-8071-E0FF99F0A834"</mid>
144
- <parameters>
145
- <to>"juergen.mangler@univie.ac.at"</to>
146
- <subject>"Defect Part"</subject>
147
- <body>"data.defectid"</body>
148
- </parameters>
85
+ <timeout>4</timeout>
149
86
  </parameters>
150
- </call>
151
- <call id="a3" endpoint="ADVENTURE_SPAWN">
87
+ </parameters>
88
+ <!--}}}-->
89
+ <manipulate output="result"> data.x += "a2,"</manipulate>
90
+ </call>
91
+ <call id="a3" endpoint="timeout">
92
+ <parameters>
93
+ <!--{{{-->
94
+ <method>post</method>
152
95
  <parameters>
153
- <label>"Spawn self"</label>
154
- <type>:spawn</type>
155
- <mid>"_DEF002B1-0593-4693-8AD7-48B983E5AFAE"</mid>
156
- <parameters>
157
- <instance>"53cd4af1e4b0207100d2266e"</instance>
158
- </parameters>
96
+ <timeout>4</timeout>
159
97
  </parameters>
160
- </call>
161
- </loop>
98
+ </parameters>
99
+ <!--}}}-->
100
+ <manipulate output="result"> data.x += "a3,"</manipulate>
101
+ </call>
162
102
  </description>
163
103
  </description>
164
104
  <transformation>
165
105
  <description type="copy"/>
166
- <dataelements type="xslt"/>
167
- <endpoints type="xslt"/>
106
+ <dataelements type="rest"/>
107
+ <endpoints type="rest"/>
168
108
  </transformation>
169
109
  </properties>
@@ -0,0 +1,6 @@
1
+ <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/1/events">
2
+ <topic id="running">
3
+ <vote>syncing_before</vote>
4
+ <vote>syncing_after</vote>
5
+ </topic>
6
+ </subscription>
@@ -17,7 +17,6 @@
17
17
 
18
18
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
19
  <info/>
20
- <properties/>
21
20
  <state>ready</state>
22
21
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
23
22
  <positions/>
@@ -1,194 +1,197 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <info>Enter info here</info>
3
3
  <properties/>
4
- <state>ready</state>
4
+ <state>stopped</state>
5
5
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
6
- <positions/>
6
+ <positions>
7
+ <a2>after</a2>
8
+ </positions>
7
9
  <dataelements>
8
- <persons>3</persons>
9
- <card>Visa_12345</card>
10
- <airline>null</airline>
11
- <hotels>[]</hotels>
12
- <from>Vienna</from>
13
- <to>Prague</to>
14
- <costs>0</costs>
10
+ <name>Milos</name>
11
+ <vnr>3456</vnr>
12
+ <email>a1346963@unet.univie.ac.at</email>
13
+ <garage>TaCfQzDhNF</garage>
14
+ <schadensumme>7401</schadensumme>
15
+ <schaden>gering</schaden>
16
+ <versicherungssumme>dummy</versicherungssumme>
17
+ <historie>dummy</historie>
18
+ <entscheidung>dummy</entscheidung>
15
19
  </dataelements>
16
20
  <endpoints>
17
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
18
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
19
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
21
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
22
+ <a>http://wwwlab.cs.univie.ac.at/~a1100570/a.php</a>
23
+ <b>http://wwwlab.cs.univie.ac.at/~a1100570/b.php</b>
24
+ <c>http://wwwlab.cs.univie.ac.at/~a1100570/c.php</c>
25
+ <d>http://wwwlab.cs.univie.ac.at/~a1100570/d.php</d>
26
+ <e>http://wwwlab.cs.univie.ac.at/~a1100570/e.php</e>
27
+ <f>http://wwwlab.cs.univie.ac.at/~a1100570/f.php</f>
28
+ <g>http://wwwlab.cs.univie.ac.at/~a1100570/g.php</g>
20
29
  </endpoints>
21
- <dsl>call :a8, :a, { :label =&gt; "Schadensmeldung registrieren", :method =&gt; :post, :parameters =&gt; nil }, &lt;&lt;-end
22
- data.versname = result.find('string(/a/versname)')
23
- data.versnr = result.find('string(/a/versnr)')
24
- data.email = result.find('string(/a/email)')
25
- data.garage = result.find('string(/a/garage)')
26
- data.schadenssum = result.find('string(/a/schadenssum)')
30
+ <dsl>call :a1, :a, { :label =&gt; "Schadenmeldung registrieren", :method =&gt; :get, :parameters =&gt; nil }, &lt;&lt;-end
31
+ data.name=result['name']
32
+ data.vnr=result['vnr']
33
+ data.email=result['email']
34
+ data.garage=result['garage']
35
+ data.schadensumme=result['schadensumme']
27
36
  end
28
- call :a1, :b, { :label =&gt; "Schaden klassifizieren", :method =&gt; :post, :parameters =&gt; {:vname =&gt; data.versname} }, &lt;&lt;-end
29
- data.schadensklasse = result.value.read
37
+ call :a2, :b, { :label =&gt; "Schadenmeldung klassifizieren", :method =&gt; :post, :parameters =&gt; {:name =&gt; data.name} }, &lt;&lt;-end
38
+ data.schaden=result['groesse']
39
+ p 'riririr'
30
40
  end
41
+ p 'hahaha'
31
42
  choose :exclusive do
32
- alternative "data.schadensklasse == 'gering'" do
33
- parallel :wait =&gt; -1 do
43
+ alternative "data.schaden=='gering'", :svg-label =&gt; "" do
44
+ parallel do
34
45
  parallel_branch do
35
- call :a7, :d, { :label =&gt; "Garage kontaktiert", :method =&gt; :post, :parameters =&gt; nil }, &lt;&lt;-end
36
- data.garage += result.value.read
46
+ call :a3, :c, { :label =&gt; "Versicherungssumme ermitteln", :method =&gt; :post, :parameters =&gt; {:schadengroesse =&gt; data.schadensumme} }, &lt;&lt;-end
47
+ data.versicherungssumme=result['versicherungssumme']
37
48
  end
38
49
  end
39
50
  parallel_branch do
40
- call :a5, :c, { :label =&gt; "Versicherungssumme ermittelt", :method =&gt; :post, :parameters =&gt; {:schadenssum =&gt; data.schadenssum} }, &lt;&lt;-end
41
- data.verssum = result.value.read
42
- end
51
+ call :a4, :d, { :label =&gt; "Garage kontaktieren", :method =&gt; :post, :parameters =&gt; {:garage =&gt; data.garage, :email =&gt; data.email, :name =&gt; data.name} }
43
52
  end
44
53
  end
45
54
  end
46
- alternative "data.schadensklasse == 'groß'" do
47
- call :a2, :c, { :label =&gt; "Versicherungssumme ermitteln", :method =&gt; :post, :parameters =&gt; {:schadenssum =&gt; data.schadenssum} }, &lt;&lt;-end
48
- data.verssum = result.value.read
49
- end
50
- call :a3, :e, { :label =&gt; "Schadenhistorie ermitteln", :method =&gt; :post, :parameters =&gt; nil }, &lt;&lt;-end
51
- schadenstxt = result.value.read
55
+ otherwise :svg-label =&gt; "" do
56
+ call :a5, :c, { :label =&gt; "Versicherungssumme ermitteln", :method =&gt; :post, :parameters =&gt; {:schadengroesse =&gt; data.schadensumme} }, &lt;&lt;-end
57
+ data.versicherungssumme=result['versicherungssumme']
52
58
  end
53
- call :a4, :d, { :label =&gt; "Garage kontaktieren", :method =&gt; :post, :parameters =&gt; {:kontakt =&gt; data.kontakt} }, &lt;&lt;-end
54
- data.garage += result.value.read
59
+ call :a6, :e, { :label =&gt; "Versicherungshistorie ermitteln", :method =&gt; :post, :parameters =&gt; {:schaden =&gt; data.schaden} }, &lt;&lt;-end
60
+ data.historie=result['text']
55
61
  end
62
+ call :a7, :d, { :label =&gt; "Garage kontaktieren", :method =&gt; :post, :parameters =&gt; {:garage =&gt; data.garage, :name =&gt; data.name, :email =&gt; data.email} }
56
63
  end
57
64
  end
58
- call :a6, :f, { :label =&gt; "Entscheidung treffen", :method =&gt; :post, :parameters =&gt; nil }, &lt;&lt;-end
59
- data.ok_nok = result.value.read
65
+ call :a8, :f, { :label =&gt; "Entscheidung treffen", :method =&gt; :get, :parameters =&gt; nil }, &lt;&lt;-end
66
+ data.entscheidung=result['ok']
60
67
  end
61
68
  choose :exclusive do
62
- alternative "data.ok_nok == 'nok'" do
63
- call :a15, nil, { :label =&gt; "Versicherung zahlt nicht", :method =&gt; nil, :type =&gt; :task, :mid =&gt; 'sid-1E7CC7E7-280E-4B1C-A859-E03799E53B90', :parameters =&gt; nil }
69
+ alternative "entscheidung='OK'", :svg-label =&gt; "" do
70
+ call :a10, :timeout, { :label =&gt; "Zahlen", :method =&gt; :post, :parameters =&gt; {:timeout =&gt; 3} }
64
71
  end
65
- alternative "data.ok_nok == 'ok'" do
66
- call :a14, nil, { :label =&gt; "Versicherung muss zahlen", :method =&gt; nil, :type =&gt; :task, :mid =&gt; 'sid-12630957-9B4A-4253-8A95-8A0177317A40', :parameters =&gt; nil }
72
+ otherwise :svg-label =&gt; "" do
67
73
  end
68
74
  end
69
- call :a17, :g, { :label =&gt; "Entscheidung mitteilen", :method =&gt; nil, :parameters =&gt; {:stat =&gt; data.ok_nok, :email =&gt; data.email} }
75
+ call :a9, :g, { :label =&gt; "Entscheidung mitteilen", :method =&gt; :post, :parameters =&gt; {:name =&gt; data.name, :email =&gt; data.email, :body =&gt; data.entscheidung} }
70
76
  </dsl>
71
77
  <dslx>
72
78
  <description xmlns="http://cpee.org/ns/description/1.0">
73
- <call id="a8" endpoint="a" svg-label="Schadensmeldung registrieren">
79
+ <call id="a1" endpoint="a" svg-label="Schadenmeldung registrieren">
74
80
  <parameters>
75
- <label>"Schadensmeldung registrieren"</label>
76
- <method>:post</method>
81
+ <label>"Schadenmeldung registrieren"</label>
82
+ <method>:get</method>
77
83
  <parameters/>
78
84
  </parameters>
79
- <manipulate>data.versname = result.find('string(/a/versname)')
80
- data.versnr = result.find('string(/a/versnr)')
81
- data.email = result.find('string(/a/email)')
82
- data.garage = result.find('string(/a/garage)')
83
- data.schadenssum = result.find('string(/a/schadenssum)')</manipulate>
85
+ <manipulate>data.name=result['name']
86
+ data.vnr=result['vnr']
87
+ data.email=result['email']
88
+ data.garage=result['garage']
89
+ data.schadensumme=result['schadensumme']</manipulate>
84
90
  </call>
85
- <call id="a1" endpoint="b" svg-label="Schaden klassifizieren">
91
+ <call id="a2" endpoint="b" svg-label="Schadenmeldung klassifizieren">
86
92
  <parameters>
87
- <label>"Schaden klassifizieren"</label>
93
+ <label>"Schadenmeldung klassifizieren"</label>
88
94
  <method>:post</method>
89
95
  <parameters>
90
- <vname>data.versname</vname>
96
+ <name>data.name</name>
91
97
  </parameters>
92
98
  </parameters>
93
- <manipulate>data.schadensklasse = result.value.read</manipulate>
99
+ <manipulate>data.schaden=result['groesse']</manipulate>
94
100
  </call>
95
101
  <choose mode="exclusive" svg-label="">
96
- <alternative condition="data.schadensklasse == 'gering'" svg-label="">
97
- <parallel wait="-1" svg-label="">
102
+ <alternative condition="data.schaden='gering'" svg-label="">
103
+ <parallel svg-label="">
98
104
  <parallel_branch svg-label="">
99
- <call id="a7" endpoint="d" svg-label="Garage kontaktiert">
105
+ <call id="a3" endpoint="c" svg-label="Versicherungssumme ermitteln">
100
106
  <parameters>
101
- <label>"Garage kontaktiert"</label>
107
+ <label>"Versicherungssumme ermitteln"</label>
102
108
  <method>:post</method>
103
- <parameters/>
109
+ <parameters>
110
+ <schadengroesse>data.schadensumme</schadengroesse>
111
+ </parameters>
104
112
  </parameters>
105
- <manipulate>data.garage += result.value.read</manipulate>
113
+ <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate>
106
114
  </call>
107
115
  </parallel_branch>
108
116
  <parallel_branch svg-label="">
109
- <call id="a5" endpoint="c" svg-label="Versicherungssumme ermittelt">
117
+ <call id="a4" endpoint="d" svg-label="Garage kontaktieren">
110
118
  <parameters>
111
- <label>"Versicherungssumme ermittelt"</label>
119
+ <label>"Garage kontaktieren"</label>
112
120
  <method>:post</method>
113
121
  <parameters>
114
- <schadenssum>data.schadenssum</schadenssum>
122
+ <garage>data.garage</garage>
123
+ <email>data.email</email>
124
+ <name>data.name</name>
115
125
  </parameters>
116
126
  </parameters>
117
- <manipulate>data.verssum = result.value.read</manipulate>
118
127
  </call>
119
128
  </parallel_branch>
120
129
  </parallel>
121
130
  </alternative>
122
- <alternative condition="data.schadensklasse == 'gro&#xDF;'" svg-label="">
123
- <call id="a2" endpoint="c" svg-label="Versicherungssumme ermitteln">
131
+ <otherwise svg-label="">
132
+ <call id="a5" endpoint="c" svg-label="Versicherungssumme ermitteln">
124
133
  <parameters>
125
134
  <label>"Versicherungssumme ermitteln"</label>
126
135
  <method>:post</method>
127
136
  <parameters>
128
- <schadenssum>data.schadenssum</schadenssum>
137
+ <schadengroesse>data.schadensumme</schadengroesse>
129
138
  </parameters>
130
139
  </parameters>
131
- <manipulate>data.verssum = result.value.read</manipulate>
140
+ <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate>
132
141
  </call>
133
- <call id="a3" endpoint="e" svg-label="Schadenhistorie ermitteln">
142
+ <call id="a6" endpoint="e" svg-label="Versicherungshistorie ermitteln">
134
143
  <parameters>
135
- <label>"Schadenhistorie ermitteln"</label>
144
+ <label>"Versicherungshistorie ermitteln"</label>
136
145
  <method>:post</method>
137
- <parameters/>
146
+ <parameters>
147
+ <schaden>data.schaden</schaden>
148
+ </parameters>
138
149
  </parameters>
139
- <manipulate>schadenstxt = result.value.read</manipulate>
150
+ <manipulate>data.historie=result['text']</manipulate>
140
151
  </call>
141
- <call id="a4" endpoint="d" svg-label="Garage kontaktieren">
152
+ <call id="a7" endpoint="d" svg-label="Garage kontaktieren">
142
153
  <parameters>
143
154
  <label>"Garage kontaktieren"</label>
144
155
  <method>:post</method>
145
156
  <parameters>
146
- <kontakt>data.kontakt</kontakt>
157
+ <garage>data.garage</garage>
158
+ <name>data.name</name>
159
+ <email>data.email</email>
147
160
  </parameters>
148
161
  </parameters>
149
- <manipulate>data.garage += result.value.read</manipulate>
150
162
  </call>
151
- </alternative>
163
+ </otherwise>
152
164
  </choose>
153
- <call id="a6" endpoint="f">
165
+ <call id="a8" endpoint="f">
154
166
  <parameters>
155
167
  <label>"Entscheidung treffen"</label>
156
- <method>:post</method>
168
+ <method>:get</method>
157
169
  <parameters/>
158
170
  </parameters>
159
- <manipulate>data.ok_nok = result.value.read</manipulate>
171
+ <manipulate>data.entscheidung=result['ok']</manipulate>
160
172
  </call>
161
173
  <choose mode="exclusive" svg-label="">
162
- <alternative condition="data.ok_nok == 'nok'">
163
- <call id="a15" endpoint="" svg-label="Versicherung zahlt nicht">
164
- <parameters>
165
- <label>"Versicherung zahlt nicht"</label>
166
- <method/>
167
- <type>:task</type>
168
- <mid>'sid-1E7CC7E7-280E-4B1C-A859-E03799E53B90'</mid>
169
- <parameters/>
170
- </parameters>
171
- </call>
172
- </alternative>
173
- <alternative condition="data.ok_nok == 'ok'">
174
- <call id="a14" endpoint="" svg-label="Versicherung muss zahlen">
174
+ <alternative condition="entscheidung='OK'" svg-label="">
175
+ <call id="a10" endpoint="timeout" svg-label="Zahlen">
175
176
  <parameters>
176
- <label>"Versicherung muss zahlen"</label>
177
- <method/>
178
- <type>:task</type>
179
- <mid>'sid-12630957-9B4A-4253-8A95-8A0177317A40'</mid>
180
- <parameters/>
177
+ <label>"Zahlen"</label>
178
+ <method>:post</method>
179
+ <parameters>
180
+ <timeout>3</timeout>
181
+ </parameters>
181
182
  </parameters>
182
183
  </call>
183
184
  </alternative>
185
+ <otherwise svg-label=""/>
184
186
  </choose>
185
- <call id="a17" endpoint="g">
187
+ <call id="a9" endpoint="g" svg-label="Entscheidung mitteilen">
186
188
  <parameters>
187
189
  <label>"Entscheidung mitteilen"</label>
188
- <method/>
190
+ <method>:post</method>
189
191
  <parameters>
190
- <stat>data.ok_nok</stat>
192
+ <name>data.name</name>
191
193
  <email>data.email</email>
194
+ <body>data.entscheidung</body>
192
195
  </parameters>
193
196
  </parameters>
194
197
  </call>
@@ -200,125 +203,122 @@ data.schadenssum = result.find('string(/a/schadenssum)')</manipulate>
200
203
  </status>
201
204
  <description>
202
205
  <description xmlns="http://cpee.org/ns/description/1.0">
203
- <call id="a8" endpoint="a" svg-label="Schadensmeldung registrieren">
206
+ <call id="a1" endpoint="a" svg-label="Schadenmeldung registrieren">
204
207
  <parameters>
205
- <label>"Schadensmeldung registrieren"</label>
206
- <method>:post</method>
208
+ <label>"Schadenmeldung registrieren"</label>
209
+ <method>:get</method>
207
210
  <parameters/>
208
211
  </parameters>
209
- <manipulate>data.versname = result.find('string(/a/versname)')
210
- data.versnr = result.find('string(/a/versnr)')
211
- data.email = result.find('string(/a/email)')
212
- data.garage = result.find('string(/a/garage)')
213
- data.schadenssum = result.find('string(/a/schadenssum)')</manipulate>
212
+ <manipulate>data.name=result['name']
213
+ data.vnr=result['vnr']
214
+ data.email=result['email']
215
+ data.garage=result['garage']
216
+ data.schadensumme=result['schadensumme']</manipulate>
214
217
  </call>
215
- <call id="a1" endpoint="b" svg-label="Schaden klassifizieren">
218
+ <call id="a2" endpoint="b" svg-label="Schadenmeldung klassifizieren">
216
219
  <parameters>
217
- <label>"Schaden klassifizieren"</label>
220
+ <label>"Schadenmeldung klassifizieren"</label>
218
221
  <method>:post</method>
219
222
  <parameters>
220
- <vname>data.versname</vname>
223
+ <name>data.name</name>
221
224
  </parameters>
222
225
  </parameters>
223
- <manipulate>data.schadensklasse = result.value.read</manipulate>
226
+ <manipulate>data.schaden=result['groesse']</manipulate>
224
227
  </call>
225
228
  <choose mode="exclusive" svg-label="">
226
- <alternative condition="data.schadensklasse == 'gering'" svg-label="">
227
- <parallel wait="-1" svg-label="">
229
+ <alternative condition="data.schaden='gering'" svg-label="">
230
+ <parallel svg-label="">
228
231
  <parallel_branch svg-label="">
229
- <call id="a7" endpoint="d" svg-label="Garage kontaktiert">
232
+ <call id="a3" endpoint="c" svg-label="Versicherungssumme ermitteln">
230
233
  <parameters>
231
- <label>"Garage kontaktiert"</label>
234
+ <label>"Versicherungssumme ermitteln"</label>
232
235
  <method>:post</method>
233
- <parameters/>
236
+ <parameters>
237
+ <schadengroesse>data.schadensumme</schadengroesse>
238
+ </parameters>
234
239
  </parameters>
235
- <manipulate>data.garage += result.value.read</manipulate>
240
+ <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate>
236
241
  </call>
237
242
  </parallel_branch>
238
243
  <parallel_branch svg-label="">
239
- <call id="a5" endpoint="c" svg-label="Versicherungssumme ermittelt">
244
+ <call id="a4" endpoint="d" svg-label="Garage kontaktieren">
240
245
  <parameters>
241
- <label>"Versicherungssumme ermittelt"</label>
246
+ <label>"Garage kontaktieren"</label>
242
247
  <method>:post</method>
243
248
  <parameters>
244
- <schadenssum>data.schadenssum</schadenssum>
249
+ <garage>data.garage</garage>
250
+ <email>data.email</email>
251
+ <name>data.name</name>
245
252
  </parameters>
246
253
  </parameters>
247
- <manipulate>data.verssum = result.value.read</manipulate>
248
254
  </call>
249
255
  </parallel_branch>
250
256
  </parallel>
251
257
  </alternative>
252
- <alternative condition="data.schadensklasse == 'gro&#xDF;'" svg-label="">
253
- <call id="a2" endpoint="c" svg-label="Versicherungssumme ermitteln">
258
+ <otherwise svg-label="">
259
+ <call id="a5" endpoint="c" svg-label="Versicherungssumme ermitteln">
254
260
  <parameters>
255
261
  <label>"Versicherungssumme ermitteln"</label>
256
262
  <method>:post</method>
257
263
  <parameters>
258
- <schadenssum>data.schadenssum</schadenssum>
264
+ <schadengroesse>data.schadensumme</schadengroesse>
259
265
  </parameters>
260
266
  </parameters>
261
- <manipulate>data.verssum = result.value.read</manipulate>
267
+ <manipulate>data.versicherungssumme=result['versicherungssumme']</manipulate>
262
268
  </call>
263
- <call id="a3" endpoint="e" svg-label="Schadenhistorie ermitteln">
269
+ <call id="a6" endpoint="e" svg-label="Versicherungshistorie ermitteln">
264
270
  <parameters>
265
- <label>"Schadenhistorie ermitteln"</label>
271
+ <label>"Versicherungshistorie ermitteln"</label>
266
272
  <method>:post</method>
267
- <parameters/>
273
+ <parameters>
274
+ <schaden>data.schaden</schaden>
275
+ </parameters>
268
276
  </parameters>
269
- <manipulate>schadenstxt = result.value.read</manipulate>
277
+ <manipulate>data.historie=result['text']</manipulate>
270
278
  </call>
271
- <call id="a4" endpoint="d" svg-label="Garage kontaktieren">
279
+ <call id="a7" endpoint="d" svg-label="Garage kontaktieren">
272
280
  <parameters>
273
281
  <label>"Garage kontaktieren"</label>
274
282
  <method>:post</method>
275
283
  <parameters>
276
- <kontakt>data.kontakt</kontakt>
284
+ <garage>data.garage</garage>
285
+ <name>data.name</name>
286
+ <email>data.email</email>
277
287
  </parameters>
278
288
  </parameters>
279
- <manipulate>data.garage += result.value.read</manipulate>
280
289
  </call>
281
- </alternative>
290
+ </otherwise>
282
291
  </choose>
283
- <call id="a6" endpoint="f">
292
+ <call id="a8" endpoint="f">
284
293
  <parameters>
285
294
  <label>"Entscheidung treffen"</label>
286
- <method>:post</method>
295
+ <method>:get</method>
287
296
  <parameters/>
288
297
  </parameters>
289
- <manipulate>data.ok_nok = result.value.read</manipulate>
298
+ <manipulate>data.entscheidung=result['ok']</manipulate>
290
299
  </call>
291
300
  <choose mode="exclusive" svg-label="">
292
- <alternative condition="data.ok_nok == 'nok'">
293
- <call id="a15" endpoint="" svg-label="Versicherung zahlt nicht">
301
+ <alternative condition="entscheidung='OK'" svg-label="">
302
+ <call id="a10" endpoint="timeout" svg-label="Zahlen">
294
303
  <parameters>
295
- <label>"Versicherung zahlt nicht"</label>
296
- <method/>
297
- <type>:task</type>
298
- <mid>'sid-1E7CC7E7-280E-4B1C-A859-E03799E53B90'</mid>
299
- <parameters/>
300
- </parameters>
301
- </call>
302
- </alternative>
303
- <alternative condition="data.ok_nok == 'ok'">
304
- <call id="a14" endpoint="" svg-label="Versicherung muss zahlen">
305
- <parameters>
306
- <label>"Versicherung muss zahlen"</label>
307
- <method/>
308
- <type>:task</type>
309
- <mid>'sid-12630957-9B4A-4253-8A95-8A0177317A40'</mid>
310
- <parameters/>
304
+ <label>"Zahlen"</label>
305
+ <method>:post</method>
306
+ <parameters>
307
+ <timeout>3</timeout>
308
+ </parameters>
311
309
  </parameters>
312
310
  </call>
313
311
  </alternative>
312
+ <otherwise svg-label=""/>
314
313
  </choose>
315
- <call id="a17" endpoint="g">
314
+ <call id="a9" endpoint="g" svg-label="Entscheidung mitteilen">
316
315
  <parameters>
317
316
  <label>"Entscheidung mitteilen"</label>
318
- <method/>
317
+ <method>:post</method>
319
318
  <parameters>
320
- <stat>data.ok_nok</stat>
319
+ <name>data.name</name>
321
320
  <email>data.email</email>
321
+ <body>data.entscheidung</body>
322
322
  </parameters>
323
323
  </parameters>
324
324
  </call>
@@ -326,7 +326,7 @@ data.schadenssum = result.find('string(/a/schadenssum)')</manipulate>
326
326
  </description>
327
327
  <transformation>
328
328
  <description type="copy"/>
329
- <dataelements type="rest"/>
330
- <endpoints type="rest"/>
329
+ <dataelements type="xslt"/>
330
+ <endpoints type="xslt"/>
331
331
  </transformation>
332
332
  </properties>