cpee 1.3.171 → 1.3.172

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