cpee 1.3.201 → 1.3.202

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/wfadaptor.css +6 -0
  3. data/cockpit/index.html +0 -21
  4. data/cockpit/testsets/Lego Crane.xml +113 -0
  5. data/cockpit/testsets/Lego Ejector.xml +2 -2
  6. data/cockpit/testsets/Lego Plate.xml +36 -0
  7. data/cockpit/testsets/testsets.xml +2 -1
  8. data/cockpit/themes/default/theme.js +1 -1
  9. data/cpee.gemspec +1 -1
  10. data/server/handlerwrappers/default.rb +9 -9
  11. data/server/instances/1/properties.xml +33 -33
  12. data/server/instances/10/properties.xml +10 -128
  13. data/server/instances/11/properties.xml +34 -122
  14. data/server/instances/12/properties.xml +24 -22
  15. data/server/instances/13/properties.xml +32 -120
  16. data/server/instances/14/properties.xml +107 -69
  17. data/server/instances/15/properties.xml +40 -85
  18. data/server/instances/16/properties.xml +36 -87
  19. data/server/instances/17/properties.xml +9 -128
  20. data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/consumer-secret +1 -0
  21. data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/producer-secret +1 -0
  22. data/server/instances/{69/notifications/4fa830eafc09f4c0d0070a3453cac985 → 18/notifications/b4e45a42c61d03b052d768c1693af99f}/subscription.xml +7 -3
  23. data/server/instances/18/properties.xml +24 -24
  24. data/server/instances/2/properties.xml +9 -808
  25. data/server/instances/3/properties.xml +39 -7
  26. data/server/instances/4/properties.xml +30 -117
  27. data/server/instances/5/properties.xml +28 -115
  28. data/server/instances/6/properties.xml +11 -129
  29. data/server/instances/7/properties.xml +30 -117
  30. data/server/instances/8/properties.xml +10 -128
  31. data/server/instances/9/properties.xml +39 -7
  32. data/server/resources/transformation_dslx.xsl +35 -28
  33. data/server/weel.rb +1 -0
  34. metadata +8 -69
  35. data/server/instances/19/properties.xml +0 -115
  36. data/server/instances/20/properties.xml +0 -114
  37. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret +0 -1
  38. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret +0 -1
  39. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml +0 -6
  40. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret +0 -1
  41. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret +0 -1
  42. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml +0 -23
  43. data/server/instances/21/properties.xml +0 -150
  44. data/server/instances/22/properties.xml +0 -114
  45. data/server/instances/23/properties.xml +0 -89
  46. data/server/instances/24/properties.xml +0 -169
  47. data/server/instances/25/properties.xml +0 -150
  48. data/server/instances/26/properties.xml +0 -114
  49. data/server/instances/27/properties.xml +0 -142
  50. data/server/instances/28/properties.xml +0 -150
  51. data/server/instances/29/properties.xml +0 -150
  52. data/server/instances/30/properties.xml +0 -114
  53. data/server/instances/31/properties.xml +0 -150
  54. data/server/instances/32/properties.xml +0 -31
  55. data/server/instances/33/properties.xml +0 -150
  56. data/server/instances/34/properties.xml +0 -150
  57. data/server/instances/35/properties.xml +0 -150
  58. data/server/instances/36/properties.xml +0 -165
  59. data/server/instances/37/properties.xml +0 -114
  60. data/server/instances/38/properties.xml +0 -163
  61. data/server/instances/39/log.xes +0 -137
  62. data/server/instances/39/properties.xml +0 -177
  63. data/server/instances/40/properties.xml +0 -45
  64. data/server/instances/41/log.xes +0 -138
  65. data/server/instances/41/properties.xml +0 -177
  66. data/server/instances/42/log.xes +0 -138
  67. data/server/instances/42/properties.xml +0 -177
  68. data/server/instances/43/log.xes +0 -138
  69. data/server/instances/43/properties.xml +0 -177
  70. data/server/instances/44/log.xes +0 -138
  71. data/server/instances/44/properties.xml +0 -177
  72. data/server/instances/45/log.xes +0 -10
  73. data/server/instances/45/properties.xml +0 -177
  74. data/server/instances/46/properties.xml +0 -31
  75. data/server/instances/47/properties.xml +0 -150
  76. data/server/instances/48/log.xes +0 -122
  77. data/server/instances/48/properties.xml +0 -187
  78. data/server/instances/49/properties.xml +0 -187
  79. data/server/instances/50/properties.xml +0 -114
  80. data/server/instances/51/properties.xml +0 -130
  81. data/server/instances/52/properties.xml +0 -130
  82. data/server/instances/53/properties.xml +0 -31
  83. data/server/instances/54/properties.xml +0 -130
  84. data/server/instances/55/properties.xml +0 -31
  85. data/server/instances/56/properties.xml +0 -31
  86. data/server/instances/57/properties.xml +0 -561
  87. data/server/instances/58/properties.xml +0 -550
  88. data/server/instances/59/properties.xml +0 -418
  89. data/server/instances/60/properties.xml +0 -150
  90. data/server/instances/61/properties.xml +0 -150
  91. data/server/instances/62/properties.xml +0 -114
  92. data/server/instances/63/properties.xml +0 -150
  93. data/server/instances/64/properties.xml +0 -114
  94. data/server/instances/65/properties.xml +0 -114
  95. data/server/instances/66/properties.xml +0 -114
  96. data/server/instances/67/properties.xml +0 -114
  97. data/server/instances/68/properties.xml +0 -112
  98. data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/consumer-secret +0 -1
  99. data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/producer-secret +0 -1
  100. data/server/instances/69/properties.xml +0 -114
@@ -1,31 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info/>
4
- <modeltype>CPEE</modeltype>
5
- <theme>default</theme>
6
- <uuid>b7a30988-add8-4259-8835-18a625fe909a</uuid>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements/>
12
- <endpoints>
13
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
14
- </endpoints>
15
- <dsl/>
16
- <dslx>
17
- <description xmlns="http://cpee.org/ns/description/1.0"/>
18
- </dslx>
19
- <status>
20
- <id>0</id>
21
- <message>undefined</message>
22
- </status>
23
- <description>
24
- <description xmlns="http://cpee.org/ns/description/1.0"/>
25
- </description>
26
- <transformation>
27
- <description type="copy"/>
28
- <dataelements type="none"/>
29
- <endpoints type="none"/>
30
- </transformation>
31
- </properties>
@@ -1,31 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>5f8dfe47-a3b2-4aac-a98b-84a07ade0b0f</uuid>
4
- <info/>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements/>
12
- <endpoints>
13
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
14
- </endpoints>
15
- <dsl/>
16
- <dslx>
17
- <description xmlns="http://cpee.org/ns/description/1.0"/>
18
- </dslx>
19
- <status>
20
- <id>0</id>
21
- <message>undefined</message>
22
- </status>
23
- <description>
24
- <description xmlns="http://cpee.org/ns/description/1.0"/>
25
- </description>
26
- <transformation>
27
- <description type="copy"/>
28
- <dataelements type="none"/>
29
- <endpoints type="none"/>
30
- </transformation>
31
- </properties>
@@ -1,561 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>d8b178e9-1e48-4855-b678-c78f9c84f55b</uuid>
4
- <theme>promise</theme>
5
- <uuid>d8b178e9-1e48-4855-b678-c78f9c84f55b</uuid>
6
- <info>ss</info>
7
- <modeltype>CPEE</modeltype>
8
- </attributes>
9
- <state>ready</state>
10
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
11
- <positions/>
12
- <dataelements/>
13
- <endpoints>
14
- <timeout>http://promise.wst.univie.ac.at:9301/timeout</timeout>
15
- <timeout1>http://promise.wst.univie.ac.at:9301/timeout/1</timeout1>
16
- <timeout2>http://promise.wst.univie.ac.at:9301/timeout/16</timeout2>
17
- <timeout3>http://promise.wst.univie.ac.at:9301/timeout/41</timeout3>
18
- <preminder1>http://promise.wst.univie.ac.at:9301/preminder/1</preminder1>
19
- <preminder2>http://promise.wst.univie.ac.at:9301/preminder/2</preminder2>
20
- <sreminder1>http://promise.wst.univie.ac.at:9301/sreminder/1</sreminder1>
21
- <sreminder2>http://promise.wst.univie.ac.at:9301/sreminder/2</sreminder2>
22
- <inkasso>http://promise.wst.univie.ac.at:9301/inkasso</inkasso>
23
- <customer>http://promise.wst.univie.ac.at:9301/customer</customer>
24
- <credit>http://promise.wst.univie.ac.at:9301/credit</credit>
25
- <credit_worthy>http://promise.wst.univie.ac.at:9301/credit/worthy</credit_worthy>
26
- <activation>http://promise.wst.univie.ac.at:9301/activation</activation>
27
- <zaehler>http://promise.wst.univie.ac.at:9301/zaehler</zaehler>
28
- <update>http://promise.wst.univie.ac.at:9301/update</update>
29
- <consume>http://promise.wst.univie.ac.at:9301/consume</consume>
30
- <decide>http://promise.wst.univie.ac.at:9301/decide</decide>
31
- <credit_consume>http://promise.wst.univie.ac.at:9301/credit/consume</credit_consume>
32
- <credit_activate>http://promise.wst.univie.ac.at:9301/credit/activate</credit_activate>
33
- </endpoints>
34
- <dsl>call :a20, :customer, parameters: { :label =&gt; "\"Generate Customer\"", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
35
- data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value
36
- END
37
- call :a10, :sreminder1, parameters: { :label =&gt; "\"Sendung erste Mahnung\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr}, :type =&gt; :task, :mid =&gt; 'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07' }
38
- parallel :wait =&gt; 1 do
39
- parallel_branch do
40
- manipulate :a16, &lt;&lt;-END
41
- sleep 2
42
- END
43
- call :a14, :timeout1, parameters: { :label =&gt; "\"2-woechige Frist\"", :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }
44
- call :a11, :sreminder2, parameters: { :label =&gt; "\"Senden zweite Mahnung\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr}, :type =&gt; :task, :mid =&gt; 'sid-8417E18E-016C-4F87-86FC-216475C1C029' }
45
- parallel :wait =&gt; 1 do
46
- parallel_branch do
47
- manipulate :a21, &lt;&lt;-END
48
- sleep 2
49
- END
50
- call :a7, :timeout2, parameters: { :label =&gt; "\"2-woechige Frist\"", :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }
51
- call :a1, :inkasso, parameters: { :label =&gt; "\"Registrierung als Inkassokunde\"", :method =&gt; :put, :arguments =&gt; {:status =&gt; data.status} }, finalize: &lt;&lt;-END
52
- data.status=result[0].value;data.zaehler_status='normal'
53
- END
54
- parallel :wait =&gt; -1 do
55
- parallel_branch do
56
- call :a4, :activation, parameters: { :label =&gt; "\"Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)\"", :method =&gt; :post, :type =&gt; :task, :mid =&gt; 'sid-032C8450-4DF9-435B-8105-F0C13734A7A8', :arguments =&gt; {:knr =&gt; data.knr} }
57
- end
58
- parallel_branch do
59
- call :a2, :inkasso, parameters: { :label =&gt; "\"Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb\"", :method =&gt; :put, :arguments =&gt; {:zaehlerid =&gt; data.zaehlerid, :status =&gt; data.zaehler_status} }, finalize: &lt;&lt;-END
60
- data.zaehler_status=result[0].value
61
- END
62
- end
63
- end
64
- call :a6, :update, parameters: { :label =&gt; "\"Aktualisierung Guthaben\"", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
65
- data.wartefrist="ok";data.guthaben=result[0].value.to_i
66
- END
67
- call :a3, :timeout3, parameters: { :label =&gt; "\"Aufladen\"", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
68
- p data.guthaben
69
- END
70
- loop pre_test{data.wartefrist!='verstrichen'} do
71
- loop pre_test{data.guthaben&gt;0} do
72
- call :a5, :consume, parameters: { :label =&gt; "\"Verbrauchen\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr} }, finalize: &lt;&lt;-END
73
- data.guthaben=data.guthaben-result[0].value.to_i
74
- END
75
- end
76
- call :a13, :decide, parameters: { :label =&gt; "\"Gesetzl. Frist\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr} }, finalize: &lt;&lt;-END
77
- data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"
78
- END
79
- end
80
- call :a17, :timeout, parameters: { :label =&gt; "\"Abschaltung\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr} }, finalize: &lt;&lt;-END
81
- data.zaehler_status='off'
82
- END
83
- call :a8, :credit_worthy, parameters: { :label =&gt; "\"Kreditwuerdig\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr} }, finalize: &lt;&lt;-END
84
- data.kreditf=result[0].value;data.kredit_wanted="true"
85
- END
86
- choose :exclusive do
87
- alternative "data.kreditf=='true'" do
88
- call :a12, :timeout, parameters: { :label =&gt; "\"activate parametrizable credit function and credit offer\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; data.knr} }
89
- choose :exclusive do
90
- alternative "data.kredit_wanted=='true'" do
91
- call :a18, :credit_activate, parameters: { :label =&gt; "\"activate meter\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; knr=data.knr} }, finalize: &lt;&lt;-END
92
- data.kredit=result[0].value.to_i
93
- END
94
- loop pre_test{data.kredit&gt;0} do
95
- call :a19, :credit_consume, parameters: { :label =&gt; "\"Consume credit\"", :method =&gt; :post, :arguments =&gt; {:knr =&gt; knr=data.knr} }, finalize: &lt;&lt;-END
96
- data.kredit=data.kredit-result[0].value.to_i
97
- END
98
- end
99
- end
100
- end
101
- end
102
- end
103
- end
104
- parallel_branch do
105
- call :a9, :preminder2, parameters: { :label =&gt; "\"Kunde zahlt\"", :method =&gt; :post, :arguments =&gt; nil }
106
- end
107
- end
108
- end
109
- parallel_branch do
110
- call :a15, :preminder1, parameters: { :label =&gt; "\"Kunde zahlt\"", :method =&gt; :post, :arguments =&gt; nil }
111
- end
112
- end
113
- </dsl>
114
- <dslx>
115
- <description xmlns="http://cpee.org/ns/description/1.0">
116
- <call id="a20" endpoint="customer" svg-label="Generate Customer">
117
- <parameters>
118
- <label>"Generate Customer"</label>
119
- <method>:post</method>
120
- <arguments/>
121
- </parameters>
122
- <finalize>data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value</finalize>
123
- </call>
124
- <call id="a10" endpoint="sreminder1" svg-label="Sendung erste Mahnung">
125
- <parameters>
126
- <label>"Sendung erste Mahnung"</label>
127
- <method>:post</method>
128
- <arguments>
129
- <knr>data.knr</knr>
130
- </arguments>
131
- <type>:task</type>
132
- <mid>'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07'</mid>
133
- </parameters>
134
- </call>
135
- <parallel wait="1" svg-label="">
136
- <parallel_branch svg-label="">
137
- <manipulate id="a16" svg-label="">sleep 2</manipulate>
138
- <call id="a14" endpoint="timeout1" svg-label="2-woechige Frist">
139
- <parameters>
140
- <label>"2-woechige Frist"</label>
141
- <method>:post</method>
142
- <arguments>
143
- <timeout>2</timeout>
144
- </arguments>
145
- </parameters>
146
- </call>
147
- <call id="a11" endpoint="sreminder2" svg-label="Senden zweite Mahnung">
148
- <parameters>
149
- <label>"Senden zweite Mahnung"</label>
150
- <method>:post</method>
151
- <arguments>
152
- <knr>data.knr</knr>
153
- </arguments>
154
- <type>:task</type>
155
- <mid>'sid-8417E18E-016C-4F87-86FC-216475C1C029'</mid>
156
- </parameters>
157
- </call>
158
- <parallel wait="1" svg-label="">
159
- <parallel_branch svg-label="">
160
- <manipulate id="a21" svg-label="">sleep 2</manipulate>
161
- <call id="a7" endpoint="timeout2" svg-label="2-woechige Frist">
162
- <parameters>
163
- <label>"2-woechige Frist"</label>
164
- <method>:post</method>
165
- <arguments>
166
- <timeout>2</timeout>
167
- </arguments>
168
- </parameters>
169
- </call>
170
- <call id="a1" endpoint="inkasso" svg-label="Registrierung als Inkassokunde">
171
- <parameters>
172
- <label>"Registrierung als Inkassokunde"</label>
173
- <method>:put</method>
174
- <arguments>
175
- <status>data.status</status>
176
- </arguments>
177
- </parameters>
178
- <finalize>data.status=result[0].value;data.zaehler_status='normal'</finalize>
179
- </call>
180
- <parallel wait="-1" svg-label="">
181
- <parallel_branch svg-label="">
182
- <call id="a4" endpoint="activation" svg-label="Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)">
183
- <parameters>
184
- <label>"Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)"</label>
185
- <method>:post</method>
186
- <type>:task</type>
187
- <mid>'sid-032C8450-4DF9-435B-8105-F0C13734A7A8'</mid>
188
- <arguments>
189
- <knr>data.knr</knr>
190
- </arguments>
191
- </parameters>
192
- </call>
193
- </parallel_branch>
194
- <parallel_branch svg-label="">
195
- <call id="a2" endpoint="inkasso" svg-label="Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb">
196
- <parameters>
197
- <label>"Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb"</label>
198
- <method>:put</method>
199
- <arguments>
200
- <zaehlerid>data.zaehlerid</zaehlerid>
201
- <status>data.zaehler_status</status>
202
- </arguments>
203
- </parameters>
204
- <finalize>data.zaehler_status=result[0].value</finalize>
205
- </call>
206
- </parallel_branch>
207
- </parallel>
208
- <call id="a6" endpoint="update" svg-label="Aktualisierung Guthaben">
209
- <parameters>
210
- <label>"Aktualisierung Guthaben"</label>
211
- <method>:post</method>
212
- <arguments/>
213
- </parameters>
214
- <finalize>data.wartefrist="ok";data.guthaben=result[0].value.to_i</finalize>
215
- </call>
216
- <call id="a3" endpoint="timeout3" svg-label="Aufladen">
217
- <parameters>
218
- <label>"Aufladen"</label>
219
- <method>:post</method>
220
- <arguments/>
221
- </parameters>
222
- <finalize>p data.guthaben</finalize>
223
- </call>
224
- <loop mode="pre_test" condition="data.wartefrist!='verstrichen'" svg-label="">
225
- <loop mode="pre_test" condition="data.guthaben&gt;0" svg-label="">
226
- <call id="a5" endpoint="consume" svg-label="Verbrauchen">
227
- <parameters>
228
- <label>"Verbrauchen"</label>
229
- <method>:post</method>
230
- <arguments>
231
- <knr>data.knr</knr>
232
- </arguments>
233
- </parameters>
234
- <finalize>data.guthaben=data.guthaben-result[0].value.to_i</finalize>
235
- </call>
236
- </loop>
237
- <call id="a13" endpoint="decide" svg-label="Gesetzl. Frist">
238
- <parameters>
239
- <label>"Gesetzl. Frist"</label>
240
- <method>:post</method>
241
- <arguments>
242
- <knr>data.knr</knr>
243
- </arguments>
244
- </parameters>
245
- <finalize>data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"</finalize>
246
- </call>
247
- </loop>
248
- <call id="a17" endpoint="timeout" svg-label="Abschaltung">
249
- <parameters>
250
- <label>"Abschaltung"</label>
251
- <method>:post</method>
252
- <arguments>
253
- <knr>data.knr</knr>
254
- </arguments>
255
- </parameters>
256
- <finalize>data.zaehler_status='off'</finalize>
257
- </call>
258
- <call id="a8" endpoint="credit_worthy" svg-label="Kreditwuerdig">
259
- <parameters>
260
- <label>"Kreditwuerdig"</label>
261
- <method>:post</method>
262
- <arguments>
263
- <knr>data.knr</knr>
264
- </arguments>
265
- </parameters>
266
- <finalize>data.kreditf=result[0].value;data.kredit_wanted="true"</finalize>
267
- </call>
268
- <choose mode="exclusive" svg-label="">
269
- <alternative condition="data.kreditf=='true'" svg-label="">
270
- <call id="a12" endpoint="timeout" svg-label="activate parametrizable credit function and credit offer">
271
- <parameters>
272
- <label>"activate parametrizable credit function and credit offer"</label>
273
- <method>:post</method>
274
- <arguments>
275
- <knr>data.knr</knr>
276
- </arguments>
277
- </parameters>
278
- </call>
279
- <choose mode="exclusive" svg-label="">
280
- <alternative condition="data.kredit_wanted=='true'" svg-label="">
281
- <call id="a18" endpoint="credit_activate" svg-label="activate meter">
282
- <parameters>
283
- <label>"activate meter"</label>
284
- <method>:post</method>
285
- <arguments>
286
- <knr>knr=data.knr</knr>
287
- </arguments>
288
- </parameters>
289
- <finalize>data.kredit=result[0].value.to_i</finalize>
290
- </call>
291
- <loop mode="pre_test" condition="data.kredit&gt;0" svg-label="">
292
- <call id="a19" endpoint="credit_consume" svg-label="Consume credit">
293
- <parameters>
294
- <label>"Consume credit"</label>
295
- <method>:post</method>
296
- <arguments>
297
- <knr>knr=data.knr</knr>
298
- </arguments>
299
- </parameters>
300
- <finalize>data.kredit=data.kredit-result[0].value.to_i</finalize>
301
- </call>
302
- </loop>
303
- </alternative>
304
- <otherwise svg-label=""/>
305
- </choose>
306
- </alternative>
307
- <otherwise svg-label=""/>
308
- </choose>
309
- </parallel_branch>
310
- <parallel_branch svg-label="">
311
- <call id="a9" endpoint="preminder2" svg-label="Kunde zahlt">
312
- <parameters>
313
- <label>"Kunde zahlt"</label>
314
- <method>:post</method>
315
- <arguments/>
316
- </parameters>
317
- </call>
318
- </parallel_branch>
319
- </parallel>
320
- </parallel_branch>
321
- <parallel_branch svg-label="">
322
- <call id="a15" endpoint="preminder1" svg-label="Kunde zahlt">
323
- <parameters>
324
- <label>"Kunde zahlt"</label>
325
- <method>:post</method>
326
- <arguments/>
327
- </parameters>
328
- </call>
329
- </parallel_branch>
330
- </parallel>
331
- </description>
332
- </dslx>
333
- <status>
334
- <id>0</id>
335
- <message>undefined</message>
336
- </status>
337
- <description>
338
- <description xmlns="http://cpee.org/ns/description/1.0">
339
- <call id="a20" endpoint="customer" svg-label="Generate Customer">
340
- <parameters>
341
- <label>"Generate Customer"</label>
342
- <method>:post</method>
343
- <arguments/>
344
- </parameters>
345
- <finalize>data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value</finalize>
346
- </call>
347
- <call id="a10" endpoint="sreminder1" svg-label="Sendung erste Mahnung">
348
- <parameters>
349
- <label>"Sendung erste Mahnung"</label>
350
- <method>:post</method>
351
- <arguments>
352
- <knr>data.knr</knr>
353
- </arguments>
354
- <type>:task</type>
355
- <mid>'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07'</mid>
356
- </parameters>
357
- </call>
358
- <parallel wait="1" svg-label="">
359
- <parallel_branch svg-label="">
360
- <manipulate id="a16" svg-label="">sleep 2</manipulate>
361
- <call id="a14" endpoint="timeout1" svg-label="2-woechige Frist">
362
- <parameters>
363
- <label>"2-woechige Frist"</label>
364
- <method>:post</method>
365
- <arguments>
366
- <timeout>2</timeout>
367
- </arguments>
368
- </parameters>
369
- </call>
370
- <call id="a11" endpoint="sreminder2" svg-label="Senden zweite Mahnung">
371
- <parameters>
372
- <label>"Senden zweite Mahnung"</label>
373
- <method>:post</method>
374
- <arguments>
375
- <knr>data.knr</knr>
376
- </arguments>
377
- <type>:task</type>
378
- <mid>'sid-8417E18E-016C-4F87-86FC-216475C1C029'</mid>
379
- </parameters>
380
- </call>
381
- <parallel wait="1" svg-label="">
382
- <parallel_branch svg-label="">
383
- <manipulate id="a21" svg-label="">sleep 2</manipulate>
384
- <call id="a7" endpoint="timeout2" svg-label="2-woechige Frist">
385
- <parameters>
386
- <label>"2-woechige Frist"</label>
387
- <method>:post</method>
388
- <arguments>
389
- <timeout>2</timeout>
390
- </arguments>
391
- </parameters>
392
- </call>
393
- <call id="a1" endpoint="inkasso" svg-label="Registrierung als Inkassokunde">
394
- <parameters>
395
- <label>"Registrierung als Inkassokunde"</label>
396
- <method>:put</method>
397
- <arguments>
398
- <status>data.status</status>
399
- </arguments>
400
- </parameters>
401
- <finalize>data.status=result[0].value;data.zaehler_status='normal'</finalize>
402
- </call>
403
- <parallel wait="-1" svg-label="">
404
- <parallel_branch svg-label="">
405
- <call id="a4" endpoint="activation" svg-label="Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)">
406
- <parameters>
407
- <label>"Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)"</label>
408
- <method>:post</method>
409
- <type>:task</type>
410
- <mid>'sid-032C8450-4DF9-435B-8105-F0C13734A7A8'</mid>
411
- <arguments>
412
- <knr>data.knr</knr>
413
- </arguments>
414
- </parameters>
415
- </call>
416
- </parallel_branch>
417
- <parallel_branch svg-label="">
418
- <call id="a2" endpoint="inkasso" svg-label="Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb">
419
- <parameters>
420
- <label>"Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb"</label>
421
- <method>:put</method>
422
- <arguments>
423
- <zaehlerid>data.zaehlerid</zaehlerid>
424
- <status>data.zaehler_status</status>
425
- </arguments>
426
- </parameters>
427
- <finalize>data.zaehler_status=result[0].value</finalize>
428
- </call>
429
- </parallel_branch>
430
- </parallel>
431
- <call id="a6" endpoint="update" svg-label="Aktualisierung Guthaben">
432
- <parameters>
433
- <label>"Aktualisierung Guthaben"</label>
434
- <method>:post</method>
435
- <arguments/>
436
- </parameters>
437
- <finalize>data.wartefrist="ok";data.guthaben=result[0].value.to_i</finalize>
438
- </call>
439
- <call id="a3" endpoint="timeout3" svg-label="Aufladen">
440
- <parameters>
441
- <label>"Aufladen"</label>
442
- <method>:post</method>
443
- <arguments/>
444
- </parameters>
445
- <finalize>p data.guthaben</finalize>
446
- </call>
447
- <loop mode="pre_test" condition="data.wartefrist!='verstrichen'" svg-label="">
448
- <loop mode="pre_test" condition="data.guthaben&gt;0" svg-label="">
449
- <call id="a5" endpoint="consume" svg-label="Verbrauchen">
450
- <parameters>
451
- <label>"Verbrauchen"</label>
452
- <method>:post</method>
453
- <arguments>
454
- <knr>data.knr</knr>
455
- </arguments>
456
- </parameters>
457
- <finalize>data.guthaben=data.guthaben-result[0].value.to_i</finalize>
458
- </call>
459
- </loop>
460
- <call id="a13" endpoint="decide" svg-label="Gesetzl. Frist">
461
- <parameters>
462
- <label>"Gesetzl. Frist"</label>
463
- <method>:post</method>
464
- <arguments>
465
- <knr>data.knr</knr>
466
- </arguments>
467
- </parameters>
468
- <finalize>data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"</finalize>
469
- </call>
470
- </loop>
471
- <call id="a17" endpoint="timeout" svg-label="Abschaltung">
472
- <parameters>
473
- <label>"Abschaltung"</label>
474
- <method>:post</method>
475
- <arguments>
476
- <knr>data.knr</knr>
477
- </arguments>
478
- </parameters>
479
- <finalize>data.zaehler_status='off'</finalize>
480
- </call>
481
- <call id="a8" endpoint="credit_worthy" svg-label="Kreditwuerdig">
482
- <parameters>
483
- <label>"Kreditwuerdig"</label>
484
- <method>:post</method>
485
- <arguments>
486
- <knr>data.knr</knr>
487
- </arguments>
488
- </parameters>
489
- <finalize>data.kreditf=result[0].value;data.kredit_wanted="true"</finalize>
490
- </call>
491
- <choose mode="exclusive" svg-label="">
492
- <alternative condition="data.kreditf=='true'" svg-label="">
493
- <call id="a12" endpoint="timeout" svg-label="activate parametrizable credit function and credit offer">
494
- <parameters>
495
- <label>"activate parametrizable credit function and credit offer"</label>
496
- <method>:post</method>
497
- <arguments>
498
- <knr>data.knr</knr>
499
- </arguments>
500
- </parameters>
501
- </call>
502
- <choose mode="exclusive" svg-label="">
503
- <alternative condition="data.kredit_wanted=='true'" svg-label="">
504
- <call id="a18" endpoint="credit_activate" svg-label="activate meter">
505
- <parameters>
506
- <label>"activate meter"</label>
507
- <method>:post</method>
508
- <arguments>
509
- <knr>knr=data.knr</knr>
510
- </arguments>
511
- </parameters>
512
- <finalize>data.kredit=result[0].value.to_i</finalize>
513
- </call>
514
- <loop mode="pre_test" condition="data.kredit&gt;0" svg-label="">
515
- <call id="a19" endpoint="credit_consume" svg-label="Consume credit">
516
- <parameters>
517
- <label>"Consume credit"</label>
518
- <method>:post</method>
519
- <arguments>
520
- <knr>knr=data.knr</knr>
521
- </arguments>
522
- </parameters>
523
- <finalize>data.kredit=data.kredit-result[0].value.to_i</finalize>
524
- </call>
525
- </loop>
526
- </alternative>
527
- <otherwise svg-label=""/>
528
- </choose>
529
- </alternative>
530
- <otherwise svg-label=""/>
531
- </choose>
532
- </parallel_branch>
533
- <parallel_branch svg-label="">
534
- <call id="a9" endpoint="preminder2" svg-label="Kunde zahlt">
535
- <parameters>
536
- <label>"Kunde zahlt"</label>
537
- <method>:post</method>
538
- <arguments/>
539
- </parameters>
540
- </call>
541
- </parallel_branch>
542
- </parallel>
543
- </parallel_branch>
544
- <parallel_branch svg-label="">
545
- <call id="a15" endpoint="preminder1" svg-label="Kunde zahlt">
546
- <parameters>
547
- <label>"Kunde zahlt"</label>
548
- <method>:post</method>
549
- <arguments/>
550
- </parameters>
551
- </call>
552
- </parallel_branch>
553
- </parallel>
554
- </description>
555
- </description>
556
- <transformation>
557
- <description type="copy"/>
558
- <dataelements type="none"/>
559
- <endpoints type="none"/>
560
- </transformation>
561
- </properties>