cpee 2.1.29 → 2.1.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/templates/Frames.xml +297 -0
  3. data/cockpit/templates/Worklist.xml +58 -26
  4. data/cockpit/themes/compact/theme.js +1 -1
  5. data/cockpit/themes/control/theme.js +1 -1
  6. data/cockpit/themes/default/theme.js +1 -1
  7. data/cockpit/themes/extended/theme.js +1 -1
  8. data/cockpit/themes/model/theme.js +1 -1
  9. data/cockpit/themes/packed/theme.js +1 -1
  10. data/cockpit/themes/preset/theme.js +1 -1
  11. data/cpee.gemspec +2 -2
  12. data/lib/cpee/fail.rb +23 -0
  13. data/lib/cpee/implementation.rb +84 -23
  14. data/lib/cpee/implementation_callbacks.rb +11 -10
  15. data/lib/cpee/implementation_notifications.rb +4 -3
  16. data/lib/cpee/implementation_properties.rb +2 -1
  17. data/lib/cpee/message.rb +35 -13
  18. data/lib/cpee/persistence.rb +30 -11
  19. data/server/executionhandlers/ruby/connection.rb +18 -2
  20. data/server/executionhandlers/ruby/controller.rb +11 -6
  21. data/server/executionhandlers/ruby/dsl_to_dslx.xsl +5 -5
  22. data/server/resources/topics.xml +1 -0
  23. data/server/routing/forward-events.rb +6 -0
  24. data/server/routing/persist.rb +4 -2
  25. data/server/server.conf +1 -1
  26. metadata +17 -25
  27. data/cockpit/templates/Coopis 2010.xml.active +0 -1
  28. data/cockpit/templates/Coopis 2010.xml.active-uuid +0 -1
  29. data/cockpit/templates/Subprocess.xml.active +0 -1
  30. data/cockpit/templates/Subprocess.xml.active-uuid +0 -1
  31. data/cockpit/templates/Track Test.xml.active +0 -1
  32. data/cockpit/templates/Track Test.xml.active-uuid +0 -1
  33. data/cockpit/templates/UR-VUE 2020 Solution Baseline.xml.active +0 -1
  34. data/cockpit/templates/UR-VUE 2020 Solution Baseline.xml.active-uuid +0 -1
  35. data/cockpit/templates/Wait.xml.active +0 -1
  36. data/cockpit/templates/Wait.xml.active-uuid +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56e67e4d9fd57c8c9b51f5c5e2dd281f37fc0c219fe607c41d56e8da68cf3802
4
- data.tar.gz: 5c537c87ed397e3da5a58fa9a06a410371408229d72f8302ac3f8d1aad07bddc
3
+ metadata.gz: 682e529161147c9cefe172e0428a514f6a0f0ab1da0e584584d2a40cdf1e8b31
4
+ data.tar.gz: fd3509bbf881ad2325ca56a785224b5528af1b8c925fb8572e6f07f8542b214e
5
5
  SHA512:
6
- metadata.gz: 1e2ffe8f6b2594b0d7badfef16628e2444df2762a639bbaf93f36191c44d69b81a120bd3ed66502f869689039fb8a5e1b0d7c10cfc36200101fc512678678a59
7
- data.tar.gz: 6eca82caf6987dd5e17c0629be864747444efd7e0d03e202d98c4759e2b5d2d29625911d08fe11c222e8b8a8d05211f7880645c260987b9225216daa93948a82
6
+ metadata.gz: 4e33966fe123d62a6da0a1cdd50cf2fc991a0f2646fcf1d7214d2ca11784ccd9a2dfb0e5d27c272d36b1eedf95135bb64e2d3c799caba374abbc8345deeef674
7
+ data.tar.gz: 24885c7f3c35c86c204048c5db47ae5ddb79bc2b29d1aaa619d2f2155efbfb607c205bf319e5360e8bbf71bb2f071ba412492a11a34dc673e4d13daf5386f432
@@ -0,0 +1,297 @@
1
+ <?xml version="1.0"?>
2
+ <testset xmlns="http://cpee.org/ns/properties/2.0">
3
+ <executionhandler>ruby</executionhandler>
4
+ <dataelements/>
5
+ <endpoints>
6
+ <timeout>https://cpee.org/services/timeout.php</timeout>
7
+ <subprocess>https://cpee.org/flow/start/url/</subprocess>
8
+ <frames_init>https-post://cpee.org/out/frames/simple/</frames_init>
9
+ <send>https-post://cpee.org/ing/correlators/message/send/</send>
10
+ <frames_display>https-put://cpee.org/out/frames/simple/</frames_display>
11
+ <receive>https-get://cpee.org/ing/correlators/message/receive/</receive>
12
+ <user>https-post://cpee.org/services/timeout-user.php</user>
13
+ <auto>https-post://cpee.org/services/timeout-auto.php</auto>
14
+ </endpoints>
15
+ <attributes>
16
+ <info>Frames</info>
17
+ <creator>Christine Ashcreek</creator>
18
+ <author>Christine Ashcreek</author>
19
+ <modeltype>CPEE</modeltype>
20
+ <guarded>none</guarded>
21
+ <guarded_id/>
22
+ <model_uuid>5ed82f61-a382-49b5-a420-c63e01d5a9f5</model_uuid>
23
+ <model_version/>
24
+ <theme>extended</theme>
25
+ <design_dir>Templates.dir</design_dir>
26
+ <design_stage>development</design_stage>
27
+ </attributes>
28
+ <description>
29
+ <description xmlns="http://cpee.org/ns/description/1.0">
30
+ <call id="a1" endpoint="frames_init">
31
+ <parameters>
32
+ <label>"Init Frame"</label>
33
+ <arguments>
34
+ <style_url>https://cpee.org/form/frames.css</style_url>
35
+ <document_url/>
36
+ <x_amount>5</x_amount>
37
+ <y_amount>8</y_amount>
38
+ <lang>de-at</lang>
39
+ <document_name>Show Info</document_name>
40
+ </arguments>
41
+ </parameters>
42
+ <annotations>
43
+ <_timing>
44
+ <_timing_weight/>
45
+ <_timing_avg/>
46
+ <_context_data_analysis>
47
+ <probes/>
48
+ <ips/>
49
+ </_context_data_analysis>
50
+ <report>
51
+ <url/>
52
+ </report>
53
+ <explanations/>
54
+ </_timing>
55
+ <_notes>
56
+ <_notes_general/>
57
+ </_notes>
58
+ </annotations>
59
+ <documentation>
60
+ <input/>
61
+ <output/>
62
+ <implementation>
63
+ <description/>
64
+ </implementation>
65
+ </documentation>
66
+ </call>
67
+ <call id="a3" endpoint="frames_display">
68
+ <parameters>
69
+ <label>Clear </label>
70
+ <arguments>
71
+ <type>set</type>
72
+ <lx>0</lx>
73
+ <ly>0</ly>
74
+ <x_amount>5</x_amount>
75
+ <y_amount>8</y_amount>
76
+ <button/>
77
+ <style/>
78
+ <urls/>
79
+ <default/>
80
+ </arguments>
81
+ </parameters>
82
+ <annotations>
83
+ <_timing>
84
+ <_timing_weight/>
85
+ <_timing_avg/>
86
+ <_context_data_analysis>
87
+ <probes/>
88
+ <ips/>
89
+ </_context_data_analysis>
90
+ <report>
91
+ <url/>
92
+ </report>
93
+ <explanations/>
94
+ </_timing>
95
+ <_notes>
96
+ <_notes_general/>
97
+ </_notes>
98
+ </annotations>
99
+ <documentation>
100
+ <input/>
101
+ <output/>
102
+ <implementation>
103
+ <description/>
104
+ </implementation>
105
+ </documentation>
106
+ </call>
107
+ <call id="a6" endpoint="frames_display">
108
+ <parameters>
109
+ <label>Show Header</label>
110
+ <arguments>
111
+ <type>set</type>
112
+ <lx>0</lx>
113
+ <ly>0</ly>
114
+ <x_amount>5</x_amount>
115
+ <y_amount>1</y_amount>
116
+ <button/>
117
+ <style/>
118
+ <urls>
119
+ <urls_item>
120
+ <lang>de-at</lang>
121
+ <url>https://cpee.org/form/tum-header.html</url>
122
+ </urls_item>
123
+ </urls>
124
+ <default/>
125
+ </arguments>
126
+ </parameters>
127
+ <annotations>
128
+ <_timing>
129
+ <_timing_weight/>
130
+ <_timing_avg/>
131
+ <_context_data_analysis>
132
+ <probes/>
133
+ <ips/>
134
+ </_context_data_analysis>
135
+ <report>
136
+ <url/>
137
+ </report>
138
+ <explanations/>
139
+ </_timing>
140
+ <_notes>
141
+ <_notes_general/>
142
+ </_notes>
143
+ </annotations>
144
+ <documentation>
145
+ <input/>
146
+ <output/>
147
+ <implementation>
148
+ <description/>
149
+ </implementation>
150
+ </documentation>
151
+ </call>
152
+ <call id="a5" endpoint="frames_display">
153
+ <parameters>
154
+ <label>Display Graph</label>
155
+ <arguments>
156
+ <type>set</type>
157
+ <lx>3</lx>
158
+ <ly>1</ly>
159
+ <x_amount>2</x_amount>
160
+ <y_amount>7</y_amount>
161
+ <button/>
162
+ <style/>
163
+ <urls>
164
+ <urls_item>
165
+ <lang>de-at</lang>
166
+ <url>!"https://cpee.org/flow/graph.html?monitor=" + cpee.instance_url</url>
167
+ </urls_item>
168
+ </urls>
169
+ <default/>
170
+ </arguments>
171
+ </parameters>
172
+ <annotations>
173
+ <_timing>
174
+ <_timing_weight/>
175
+ <_timing_avg/>
176
+ <_context_data_analysis>
177
+ <probes/>
178
+ <ips/>
179
+ </_context_data_analysis>
180
+ <report>
181
+ <url/>
182
+ </report>
183
+ <explanations/>
184
+ </_timing>
185
+ <_notes>
186
+ <_notes_general/>
187
+ </_notes>
188
+ </annotations>
189
+ <documentation>
190
+ <input/>
191
+ <output/>
192
+ <implementation>
193
+ <description/>
194
+ </implementation>
195
+ </documentation>
196
+ </call>
197
+ <loop mode="post_test" condition="true">
198
+ <_probability>
199
+ <_probability_min/>
200
+ <_probability_max/>
201
+ <_probability_avg/>
202
+ </_probability>
203
+ <call id="a2" endpoint="frames_display">
204
+ <parameters>
205
+ <label>Show Button</label>
206
+ <arguments>
207
+ <type>wait</type>
208
+ <lx>0</lx>
209
+ <ly>1</ly>
210
+ <x_amount>1</x_amount>
211
+ <y_amount>1</y_amount>
212
+ <button/>
213
+ <style/>
214
+ <urls>
215
+ <urls_item>
216
+ <lang>de-at</lang>
217
+ <url>https://cpee.org/form/button.html</url>
218
+ </urls_item>
219
+ </urls>
220
+ <default/>
221
+ </arguments>
222
+ </parameters>
223
+ <annotations>
224
+ <_timing>
225
+ <_timing_weight/>
226
+ <_timing_avg/>
227
+ <_context_data_analysis>
228
+ <probes/>
229
+ <ips/>
230
+ </_context_data_analysis>
231
+ <report>
232
+ <url/>
233
+ </report>
234
+ <explanations/>
235
+ </_timing>
236
+ <_notes>
237
+ <_notes_general/>
238
+ </_notes>
239
+ </annotations>
240
+ <documentation>
241
+ <input/>
242
+ <output/>
243
+ <implementation>
244
+ <description/>
245
+ </implementation>
246
+ </documentation>
247
+ </call>
248
+ <call id="a7" endpoint="frames_display">
249
+ <parameters>
250
+ <label>Clear Button</label>
251
+ <arguments>
252
+ <type>set</type>
253
+ <lx>0</lx>
254
+ <ly>1</ly>
255
+ <x_amount>1</x_amount>
256
+ <y_amount>1</y_amount>
257
+ <button/>
258
+ <style/>
259
+ <urls/>
260
+ <default/>
261
+ </arguments>
262
+ </parameters>
263
+ <annotations>
264
+ <_timing>
265
+ <_timing_weight/>
266
+ <_timing_avg/>
267
+ <_context_data_analysis>
268
+ <probes/>
269
+ <ips/>
270
+ </_context_data_analysis>
271
+ <report>
272
+ <url/>
273
+ </report>
274
+ <explanations/>
275
+ </_timing>
276
+ <_notes>
277
+ <_notes_general/>
278
+ </_notes>
279
+ </annotations>
280
+ <documentation>
281
+ <input/>
282
+ <output/>
283
+ <implementation>
284
+ <description/>
285
+ </implementation>
286
+ </documentation>
287
+ </call>
288
+ <stop id="a4"/>
289
+ </loop>
290
+ </description>
291
+ </description>
292
+ <transformation>
293
+ <description type="copy"/>
294
+ <dataelements type="none"/>
295
+ <endpoints type="none"/>
296
+ </transformation>
297
+ </testset>
@@ -1,33 +1,75 @@
1
+ <?xml version="1.0"?>
1
2
  <testset xmlns="http://cpee.org/ns/properties/2.0">
2
3
  <executionhandler>ruby</executionhandler>
3
- <dataelements>
4
- <bla/>
5
- </dataelements>
4
+ <dataelements/>
6
5
  <endpoints>
7
6
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
8
- <worklist>http://cpee.org:9398</worklist>
7
+ <subprocess>https-post://cpee.org/flow/start/url/</subprocess>
8
+ <worklist>https-post://cpee.org/worklist/server/</worklist>
9
+ <send>https-post://cpee.org/ing/correlators/message/send/</send>
10
+ <receive>https-get://cpee.org/ing/correlators/message/receive/</receive>
11
+ <user>https-post://cpee.org/services/timeout-user.php</user>
12
+ <auto>https-post://cpee.org/services/timeout-auto.php</auto>
9
13
  </endpoints>
10
- <positions/>
14
+ <attributes>
15
+ <info>Worklist</info>
16
+ <modeltype>CPEE</modeltype>
17
+ <organisation1>http://cpee.org/~demo/orgviz/organisation_informatik.xml</organisation1>
18
+ <theme>extended</theme>
19
+ <creator>Christine Ashcreek</creator>
20
+ <author>Christine Ashcreek</author>
21
+ <design_stage>development</design_stage>
22
+ <design_dir>Templates.dir</design_dir>
23
+ </attributes>
11
24
  <description>
12
25
  <description xmlns="http://cpee.org/ns/description/1.0">
13
26
  <call id="a1" endpoint="worklist">
14
27
  <parameters>
15
28
  <label>OK OR NOT OK</label>
16
- <method>:post</method>
17
29
  <arguments>
18
- <orgmodel>organisation1</orgmodel>
19
- <domain>Virtual Business 1</domain>
20
- <form>http://cpee.org/~demo/form/form-f.html</form>
21
- <role>Regular</role>
22
- <schaden>55546</schaden>
23
- <text>fetzen hin</text>
30
+ <orgmodel>https://cpee.org/~demo/orgviz/organisation_informatik.xml</orgmodel>
31
+ <domain>VirtualBusiness1</domain>
32
+ <form>https://cpee.org/~demo/form/form-f.html</form>
33
+ <role>Assistant</role>
34
+ <data>
35
+ <schaden>10000</schaden>
36
+ <text>destroyed</text>
37
+ </data>
24
38
  </arguments>
25
39
  </parameters>
26
40
  <code>
27
- <finalize>data.bla = result</finalize>
41
+ <prepare/>
42
+ <finalize output="result">data.bla = result</finalize>
43
+ <update output="result"/>
44
+ <rescue output="result"/>
28
45
  </code>
29
- <annotations/>
30
- <documentation/>
46
+ <annotations>
47
+ <_timing>
48
+ <_timing_weight/>
49
+ <_timing_avg/>
50
+ <explanations/>
51
+ </_timing>
52
+ <_context_data_analysis>
53
+ <probes/>
54
+ <ips/>
55
+ </_context_data_analysis>
56
+ <report>
57
+ <url/>
58
+ </report>
59
+ <_notes>
60
+ <_notes_general/>
61
+ </_notes>
62
+ </annotations>
63
+ <documentation>
64
+ <input/>
65
+ <output/>
66
+ <implementation>
67
+ <description/>
68
+ </implementation>
69
+ <code>
70
+ <description/>
71
+ </code>
72
+ </documentation>
31
73
  </call>
32
74
  </description>
33
75
  </description>
@@ -36,14 +78,4 @@
36
78
  <dataelements type="none"/>
37
79
  <endpoints type="none"/>
38
80
  </transformation>
39
- <attributes>
40
- <info>Worklist</info>
41
- <modeltype>CPEE</modeltype>
42
- <organisation1>http://cpee.org/~demo/orgviz/organisation_informatik.xml</organisation1>
43
- <theme>extended</theme>
44
- <creator>Christine Ashcreek</creator>
45
- <author>Christine Ashcreek</author>
46
- <design_stage>development</design_stage>
47
- <design_dir>Templates.dir</design_dir>
48
- </attributes>
49
- </testset>
81
+ </testset>
@@ -311,7 +311,7 @@ function WFAdaptorManifestation(adaptor) {
311
311
  },
312
312
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
313
313
  'resolve_symbol': function(node) {
314
- if($('code', node).length > 0) {
314
+ if($('> code', node).length > 0) {
315
315
  return 'callmanipulate';
316
316
  } else {
317
317
  return 'call';
@@ -329,7 +329,7 @@ function WFAdaptorManifestation(adaptor) {
329
329
  },
330
330
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
331
331
  'resolve_symbol': function(node) {
332
- if($('code', node).length > 0) {
332
+ if($('> code', node).length > 0) {
333
333
  return 'callmanipulate';
334
334
  } else {
335
335
  return 'call';
@@ -311,7 +311,7 @@ function WFAdaptorManifestation(adaptor) {
311
311
  },
312
312
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
313
313
  'resolve_symbol': function(node) {
314
- if($('code', node).length > 0) {
314
+ if($('> code', node).length > 0) {
315
315
  return 'callmanipulate';
316
316
  } else {
317
317
  return 'call';
@@ -329,7 +329,7 @@ function WFAdaptorManifestation(adaptor) {
329
329
  },
330
330
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
331
331
  'resolve_symbol': function(node) {
332
- if($('code', node).length > 0) {
332
+ if($('> code', node).length > 0) {
333
333
  return 'callmanipulate';
334
334
  } else {
335
335
  return 'call';
@@ -292,7 +292,7 @@ function WFAdaptorManifestation(adaptor) {
292
292
  },
293
293
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
294
294
  'resolve_symbol': function(node) {
295
- if($('code', node).length > 0) {
295
+ if($('> code', node).length > 0) {
296
296
  return 'callmanipulate';
297
297
  } else {
298
298
  return 'call';
@@ -311,7 +311,7 @@ function WFAdaptorManifestation(adaptor) {
311
311
  },
312
312
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
313
313
  'resolve_symbol': function(node) {
314
- if($('code', node).length > 0) {
314
+ if($('> code', node).length > 0) {
315
315
  return 'callmanipulate';
316
316
  } else {
317
317
  return 'call';
@@ -311,7 +311,7 @@ function WFAdaptorManifestation(adaptor) {
311
311
  },
312
312
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
313
313
  'resolve_symbol': function(node) {
314
- if($('code', node).length > 0) {
314
+ if($('> code', node).length > 0) {
315
315
  return 'callmanipulate';
316
316
  } else {
317
317
  return 'call';
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.29"
3
+ s.version = "2.1.33"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -24,9 +24,9 @@ Gem::Specification.new do |s|
24
24
  s.add_runtime_dependency 'riddl', '~> 0.114'
25
25
  s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.99'
26
26
  s.add_runtime_dependency 'highline', '~> 2.0'
27
- s.add_runtime_dependency 'json', '~>2.1'
28
27
  s.add_runtime_dependency 'redis', '~> 4.1'
29
28
  s.add_runtime_dependency 'rubyzip', '~>2'
30
29
  s.add_runtime_dependency 'charlock_holmes', '~>0'
31
30
  s.add_runtime_dependency 'mimemagic', '~>0'
31
+ s.add_runtime_dependency 'get_process_mem', '~>0.2'
32
32
  end
data/lib/cpee/fail.rb ADDED
@@ -0,0 +1,23 @@
1
+
2
+ # This file is part of CPEE.
3
+ #
4
+ # CPEE is free software: you can redistribute it and/or modify it under the terms
5
+ # of the GNU General Public License as published by the Free Software Foundation,
6
+ # either version 3 of the License, or (at your option) any later version.
7
+ #
8
+ # CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
+ # PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
+ #
12
+ # You should have received a copy of the GNU General Public License along with
13
+ # CPEE (file COPYING in the main directory). If not, see
14
+ # <http://www.gnu.org/licenses/>.
15
+
16
+ module CPEE
17
+ class FAIL < Riddl::Implementation #{{{
18
+ def response
19
+ @status = 404
20
+ nil
21
+ end
22
+ end #}}}
23
+ end