cpee 2.0.21 → 2.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/CPEE.xml +8 -0
  3. data/cockpit/Signavio.xml +8 -0
  4. data/cockpit/css/model.css +2 -0
  5. data/cockpit/css/replay.css +55 -0
  6. data/cockpit/css/ui.css +29 -5
  7. data/cockpit/edit.html +263 -0
  8. data/cockpit/graph.html +3 -3
  9. data/cockpit/index.html +11 -8
  10. data/cockpit/js/details.js +0 -1
  11. data/cockpit/js/edit.js +32 -0
  12. data/cockpit/js/instance.js +52 -52
  13. data/cockpit/js/model.js +6 -36
  14. data/cockpit/js/parameters.js +9 -4
  15. data/cockpit/js/replay.js +40 -0
  16. data/cockpit/js/ui.js +7 -0
  17. data/cockpit/model.html +8 -4
  18. data/cockpit/replay.html +53 -0
  19. data/cockpit/templates/Coopis 2010.xml +1 -1
  20. data/cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml +1 -1
  21. data/cockpit/templates/IUPC arXiv:1104.3609 P34 2.xml +1 -1
  22. data/cockpit/templates/IUPC arXiv:1104.3609 P34 3.xml +1 -1
  23. data/cockpit/templates/Track Test Local.xml +6 -2
  24. data/cockpit/templates/Track Test.xml +5 -1
  25. data/cockpit/templates/UR-VUE 2020 Manual Adjust.xml +5 -1
  26. data/cockpit/templates/UR-VUE 2020 Solution Baseline.xml +8 -4
  27. data/cockpit/templates/UR-VUE 2020 Solution NN.xml +8 -4
  28. data/cockpit/templates/UR-VUE 2020 Solution View.xml +8 -4
  29. data/cockpit/templates/UR-VUE 2020.xml +8 -4
  30. data/cockpit/templates/instantiate.local/Take_Sub.xml +1 -1
  31. data/cockpit/themes/compact/rngs/call.rng +93 -41
  32. data/cockpit/themes/compact/rngs/callmanipulate.rng +113 -40
  33. data/cockpit/themes/compact/theme.js +57 -25
  34. data/cockpit/themes/{diana → control}/rngs/alternative.rng +0 -0
  35. data/cockpit/themes/control/rngs/call.rng +174 -0
  36. data/cockpit/themes/control/rngs/callmanipulate.rng +218 -0
  37. data/cockpit/themes/{diana → control}/rngs/choose.rng +0 -0
  38. data/cockpit/themes/{diana → control}/rngs/closed_loop.rng +0 -0
  39. data/cockpit/themes/{diana → control}/rngs/closed_loop_cancel.rng +0 -0
  40. data/cockpit/themes/{diana → control}/rngs/closed_loop_control.rng +0 -0
  41. data/cockpit/themes/{diana → control}/rngs/closed_loop_measuring.rng +0 -0
  42. data/cockpit/themes/{diana → control}/rngs/critical.rng +0 -0
  43. data/cockpit/themes/{diana → control}/rngs/escape.rng +0 -0
  44. data/cockpit/themes/{diana → control}/rngs/group.rng +0 -0
  45. data/cockpit/themes/{diana → control}/rngs/loop.rng +0 -0
  46. data/cockpit/themes/{diana → control}/rngs/manipulate.rng +0 -0
  47. data/cockpit/themes/{diana → control}/rngs/otherwise.rng +0 -0
  48. data/cockpit/themes/{diana → control}/rngs/parallel.rng +0 -0
  49. data/cockpit/themes/{diana → control}/rngs/parallel_branch.rng +0 -0
  50. data/cockpit/themes/{diana → control}/rngs/scripts.rng +0 -0
  51. data/cockpit/themes/{diana → control}/rngs/stop.rng +0 -0
  52. data/cockpit/themes/{diana → control}/rngs/terminate.rng +0 -0
  53. data/cockpit/themes/{diana → control}/symbols/alternative.svg +0 -0
  54. data/cockpit/themes/{diana → control}/symbols/arrow.svg +0 -0
  55. data/cockpit/themes/{diana → control}/symbols/call.svg +0 -0
  56. data/cockpit/themes/{diana → control}/symbols/callmanipulate.svg +0 -0
  57. data/cockpit/themes/{diana → control}/symbols/choose.svg +0 -0
  58. data/cockpit/themes/{diana → control}/symbols/choose_exclusive.svg +0 -0
  59. data/cockpit/themes/{diana → control}/symbols/choose_inclusive.svg +0 -0
  60. data/cockpit/themes/{diana → control}/symbols/closed_loop.svg +0 -0
  61. data/cockpit/themes/{diana → control}/symbols/closed_loop_cancel.svg +0 -0
  62. data/cockpit/themes/{diana → control}/symbols/closed_loop_control.svg +0 -0
  63. data/cockpit/themes/{diana → control}/symbols/closed_loop_measuring.svg +0 -0
  64. data/cockpit/themes/{diana → control}/symbols/complex.svg +0 -0
  65. data/cockpit/themes/{diana → control}/symbols/critical.svg +0 -0
  66. data/cockpit/themes/{diana → control}/symbols/end.svg +0 -0
  67. data/cockpit/themes/{diana → control}/symbols/escape.svg +0 -0
  68. data/cockpit/themes/{diana → control}/symbols/event_end.svg +0 -0
  69. data/cockpit/themes/{diana → control}/symbols/loop.svg +0 -0
  70. data/cockpit/themes/{diana → control}/symbols/manipulate.svg +0 -0
  71. data/cockpit/themes/{diana → control}/symbols/otherwise.svg +0 -0
  72. data/cockpit/themes/{diana → control}/symbols/parallel.svg +0 -0
  73. data/cockpit/themes/{diana → control}/symbols/parallel_branch.svg +0 -0
  74. data/cockpit/themes/{diana → control}/symbols/parallel_branch_compact.svg +0 -0
  75. data/cockpit/themes/{diana → control}/symbols/parallel_branch_event.svg +0 -0
  76. data/cockpit/themes/{diana → control}/symbols/parallel_branch_normal.svg +0 -0
  77. data/cockpit/themes/{diana → control}/symbols/scripts.svg +0 -0
  78. data/cockpit/themes/{diana → control}/symbols/start.svg +0 -0
  79. data/cockpit/themes/{diana → control}/symbols/stop.svg +0 -0
  80. data/cockpit/themes/{diana → control}/symbols/terminate.svg +0 -0
  81. data/cockpit/themes/{diana → control}/theme.js +74 -28
  82. data/cockpit/themes/default/rngs/call.rng +93 -41
  83. data/cockpit/themes/default/rngs/callmanipulate.rng +113 -40
  84. data/cockpit/themes/default/theme.js +1318 -0
  85. data/cockpit/themes/extended/rngs/call.rng +93 -41
  86. data/cockpit/themes/extended/rngs/callmanipulate.rng +113 -40
  87. data/cockpit/themes/extended/theme.js +50 -19
  88. data/cockpit/themes/model/rngs/call.rng +21 -20
  89. data/cockpit/themes/model/rngs/callmanipulate.rng +23 -22
  90. data/cockpit/themes/model/theme.js +51 -20
  91. data/cockpit/themes/packed/rngs/call.rng +93 -41
  92. data/cockpit/themes/packed/rngs/callmanipulate.rng +113 -40
  93. data/cockpit/themes/packed/theme.js +50 -19
  94. data/cockpit/themes/preset/rngs/call.rng +93 -41
  95. data/cockpit/themes/preset/rngs/callmanipulate.rng +113 -40
  96. data/cockpit/themes/preset/theme.js +49 -18
  97. data/cockpit/track.html +3 -10
  98. data/cockpit/transformations.xml +4 -0
  99. data/cpee.gemspec +2 -2
  100. data/lib/callbacks.xml +5 -0
  101. data/lib/cpee/controller.rb +30 -28
  102. data/lib/cpee/implementation_callbacks.rb +60 -0
  103. data/lib/cpee/implementation_notifications.rb +6 -2
  104. data/server/handlerwrappers/default.rb +17 -5
  105. data/server/resources/notifications/logging/subscription.xml +6 -0
  106. data/server/resources/transformation_dslx.xsl +1 -1
  107. data/server/routing/end.pid +1 -0
  108. data/server/routing/end.rb +1 -0
  109. data/server/routing/forward-events.pid +1 -0
  110. data/server/routing/forward-votes.pid +1 -0
  111. data/server/routing/forward-votes.rb +6 -5
  112. data/server/routing/persist.pid +1 -0
  113. data/server/routing/persist.rb +4 -4
  114. data/server/server.pid +1 -0
  115. metadata +63 -50
  116. data/cockpit/edit.html +0 -1
  117. data/cockpit/themes/diana/rngs/call.rng +0 -122
  118. data/cockpit/themes/diana/rngs/callmanipulate.rng +0 -145
@@ -24,7 +24,8 @@ require_relative '../../lib/cpee/redis'
24
24
  def persist_handler(instance,key,mess,redis) #{{{
25
25
  redis.multi do |multi|
26
26
  multi.sadd("instance:#{instance}/callbacks",key)
27
- multi.set("instance:#{instance}/callback/#{key}/uuid",mess.dig('content','activity_uuid'))
27
+ multi.set("instance:#{instance}/callback/#{key}/subscription",mess.dig('content','subscription'))
28
+ multi.set("instance:#{instance}/callback/#{key}/uuid",mess.dig('content','activity-uuid'))
28
29
  multi.set("instance:#{instance}/callback/#{key}/label",mess.dig('content','label'))
29
30
  multi.set("instance:#{instance}/callback/#{key}/position",mess.dig('content','activity'))
30
31
  multi.set("instance:#{instance}/callback/#{key}/type",'vote')
@@ -79,7 +80,7 @@ Daemonite.new do |opts|
79
80
  url = opts[:redis].get("instance:#{instance}/handlers/#{subscription_key}/url")
80
81
 
81
82
  if url.nil? || url == ""
82
- persist_handler instance, callback_key, m, redis
83
+ persist_handler instance, callback_key, m, opts[:redis]
83
84
  opts[:redis].publish("forward:#{instance}/#{subscription_key}",mess)
84
85
  else
85
86
  client = Riddl::Client.new(url)
@@ -104,12 +105,12 @@ Daemonite.new do |opts|
104
105
  result[0].value.read
105
106
  end
106
107
  if (headers["CPEE_CALLBACK"] && headers["CPEE_CALLBACK"] == 'true') || val == 'callback'
107
- persist_handler instance, callback_key, m, redis
108
+ persist_handler instance, callback_key, m, opts[:redis]
108
109
  else # they may send true or false
109
- send_response instance, callback_key, m['cpee'], val, redis
110
+ send_response instance, callback_key, m['cpee'], val, opts[:redis]
110
111
  end
111
112
  else
112
- send_response instance, callback_key, m['cpee'], true, redis
113
+ send_response instance, callback_key, m['cpee'], true, opts[:redis]
113
114
  end
114
115
  end
115
116
  end
@@ -0,0 +1 @@
1
+ 592863
@@ -59,7 +59,7 @@ Daemonite.new do |opts|
59
59
  key = mess.dig('content','key')
60
60
  opts[:redis].multi do |multi|
61
61
  multi.sadd("instance:#{instance}/callbacks",key)
62
- multi.set("instance:#{instance}/callback/#{key}/uuid",mess.dig('content','activity_uuid'))
62
+ multi.set("instance:#{instance}/callback/#{key}/uuid",mess.dig('content','activity-uuid'))
63
63
  multi.set("instance:#{instance}/callback/#{key}/label",mess.dig('content','label'))
64
64
  multi.set("instance:#{instance}/callback/#{key}/position",mess.dig('content','activity'))
65
65
  multi.set("instance:#{instance}/callback/#{key}/type",'callback')
@@ -99,11 +99,11 @@ Daemonite.new do |opts|
99
99
  end
100
100
  when 'event:transformation/change'
101
101
  opts[:redis].multi do |multi|
102
- multi.set("instance:#{instance}/transformation/description/",mess.dig('content','description'))
102
+ multi.set("instance:#{instance}/transformation/description",mess.dig('content','description'))
103
103
  multi.set("instance:#{instance}/transformation/description/@type",mess.dig('content','description_type'))
104
- multi.set("instance:#{instance}/transformation/dataelements/",mess.dig('content','dataelements'))
104
+ multi.set("instance:#{instance}/transformation/dataelements",mess.dig('content','dataelements'))
105
105
  multi.set("instance:#{instance}/transformation/dataelements/@type",mess.dig('content','dataelements_type'))
106
- multi.set("instance:#{instance}/transformation/endpoints/",mess.dig('content','endpoints'))
106
+ multi.set("instance:#{instance}/transformation/endpoints",mess.dig('content','endpoints'))
107
107
  multi.set("instance:#{instance}/transformation/endpoints/@type",mess.dig('content','endpoints_type'))
108
108
  end
109
109
  when 'event:status/change'
data/server/server.pid ADDED
@@ -0,0 +1 @@
1
+ 592827
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.21
4
+ version: 2.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2020-12-16 00:00:00.000000000 Z
13
+ date: 2021-03-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -116,7 +116,9 @@ files:
116
116
  - INSTALL.md
117
117
  - README.md
118
118
  - Rakefile
119
+ - cockpit/CPEE.xml
119
120
  - cockpit/README
121
+ - cockpit/Signavio.xml
120
122
  - cockpit/config.json
121
123
  - cockpit/contrib/graph_example.svg
122
124
  - cockpit/contrib/legend.svg
@@ -125,6 +127,7 @@ files:
125
127
  - cockpit/contrib/transformation2.xsl
126
128
  - cockpit/contrib/tree_example.svg
127
129
  - cockpit/css/model.css
130
+ - cockpit/css/replay.css
128
131
  - cockpit/css/track.css
129
132
  - cockpit/css/ui.css
130
133
  - cockpit/css/wfadaptor.css
@@ -132,14 +135,17 @@ files:
132
135
  - cockpit/graph.html
133
136
  - cockpit/index.html
134
137
  - cockpit/js/details.js
138
+ - cockpit/js/edit.js
135
139
  - cockpit/js/instance.js
136
140
  - cockpit/js/model.js
137
141
  - cockpit/js/parameters.js
142
+ - cockpit/js/replay.js
138
143
  - cockpit/js/track.js
139
144
  - cockpit/js/ui.js
140
145
  - cockpit/js/wfadaptor.js
141
146
  - cockpit/js_libs.zip
142
147
  - cockpit/model.html
148
+ - cockpit/replay.html
143
149
  - cockpit/rngs/attributes.rng
144
150
  - cockpit/rngs/dataelements.rng
145
151
  - cockpit/rngs/endpoints.rng
@@ -250,6 +256,54 @@ files:
250
256
  - cockpit/themes/compact/symbols/stop.svg
251
257
  - cockpit/themes/compact/symbols/terminate.svg
252
258
  - cockpit/themes/compact/theme.js
259
+ - cockpit/themes/control/rngs/alternative.rng
260
+ - cockpit/themes/control/rngs/call.rng
261
+ - cockpit/themes/control/rngs/callmanipulate.rng
262
+ - cockpit/themes/control/rngs/choose.rng
263
+ - cockpit/themes/control/rngs/closed_loop.rng
264
+ - cockpit/themes/control/rngs/closed_loop_cancel.rng
265
+ - cockpit/themes/control/rngs/closed_loop_control.rng
266
+ - cockpit/themes/control/rngs/closed_loop_measuring.rng
267
+ - cockpit/themes/control/rngs/critical.rng
268
+ - cockpit/themes/control/rngs/escape.rng
269
+ - cockpit/themes/control/rngs/group.rng
270
+ - cockpit/themes/control/rngs/loop.rng
271
+ - cockpit/themes/control/rngs/manipulate.rng
272
+ - cockpit/themes/control/rngs/otherwise.rng
273
+ - cockpit/themes/control/rngs/parallel.rng
274
+ - cockpit/themes/control/rngs/parallel_branch.rng
275
+ - cockpit/themes/control/rngs/scripts.rng
276
+ - cockpit/themes/control/rngs/stop.rng
277
+ - cockpit/themes/control/rngs/terminate.rng
278
+ - cockpit/themes/control/symbols/alternative.svg
279
+ - cockpit/themes/control/symbols/arrow.svg
280
+ - cockpit/themes/control/symbols/call.svg
281
+ - cockpit/themes/control/symbols/callmanipulate.svg
282
+ - cockpit/themes/control/symbols/choose.svg
283
+ - cockpit/themes/control/symbols/choose_exclusive.svg
284
+ - cockpit/themes/control/symbols/choose_inclusive.svg
285
+ - cockpit/themes/control/symbols/closed_loop.svg
286
+ - cockpit/themes/control/symbols/closed_loop_cancel.svg
287
+ - cockpit/themes/control/symbols/closed_loop_control.svg
288
+ - cockpit/themes/control/symbols/closed_loop_measuring.svg
289
+ - cockpit/themes/control/symbols/complex.svg
290
+ - cockpit/themes/control/symbols/critical.svg
291
+ - cockpit/themes/control/symbols/end.svg
292
+ - cockpit/themes/control/symbols/escape.svg
293
+ - cockpit/themes/control/symbols/event_end.svg
294
+ - cockpit/themes/control/symbols/loop.svg
295
+ - cockpit/themes/control/symbols/manipulate.svg
296
+ - cockpit/themes/control/symbols/otherwise.svg
297
+ - cockpit/themes/control/symbols/parallel.svg
298
+ - cockpit/themes/control/symbols/parallel_branch.svg
299
+ - cockpit/themes/control/symbols/parallel_branch_compact.svg
300
+ - cockpit/themes/control/symbols/parallel_branch_event.svg
301
+ - cockpit/themes/control/symbols/parallel_branch_normal.svg
302
+ - cockpit/themes/control/symbols/scripts.svg
303
+ - cockpit/themes/control/symbols/start.svg
304
+ - cockpit/themes/control/symbols/stop.svg
305
+ - cockpit/themes/control/symbols/terminate.svg
306
+ - cockpit/themes/control/theme.js
253
307
  - cockpit/themes/default/rngs/alternative.rng
254
308
  - cockpit/themes/default/rngs/call.rng
255
309
  - cockpit/themes/default/rngs/callmanipulate.rng
@@ -297,54 +351,7 @@ files:
297
351
  - cockpit/themes/default/symbols/start.svg
298
352
  - cockpit/themes/default/symbols/stop.svg
299
353
  - cockpit/themes/default/symbols/terminate.svg
300
- - cockpit/themes/diana/rngs/alternative.rng
301
- - cockpit/themes/diana/rngs/call.rng
302
- - cockpit/themes/diana/rngs/callmanipulate.rng
303
- - cockpit/themes/diana/rngs/choose.rng
304
- - cockpit/themes/diana/rngs/closed_loop.rng
305
- - cockpit/themes/diana/rngs/closed_loop_cancel.rng
306
- - cockpit/themes/diana/rngs/closed_loop_control.rng
307
- - cockpit/themes/diana/rngs/closed_loop_measuring.rng
308
- - cockpit/themes/diana/rngs/critical.rng
309
- - cockpit/themes/diana/rngs/escape.rng
310
- - cockpit/themes/diana/rngs/group.rng
311
- - cockpit/themes/diana/rngs/loop.rng
312
- - cockpit/themes/diana/rngs/manipulate.rng
313
- - cockpit/themes/diana/rngs/otherwise.rng
314
- - cockpit/themes/diana/rngs/parallel.rng
315
- - cockpit/themes/diana/rngs/parallel_branch.rng
316
- - cockpit/themes/diana/rngs/scripts.rng
317
- - cockpit/themes/diana/rngs/stop.rng
318
- - cockpit/themes/diana/rngs/terminate.rng
319
- - cockpit/themes/diana/symbols/alternative.svg
320
- - cockpit/themes/diana/symbols/arrow.svg
321
- - cockpit/themes/diana/symbols/call.svg
322
- - cockpit/themes/diana/symbols/callmanipulate.svg
323
- - cockpit/themes/diana/symbols/choose.svg
324
- - cockpit/themes/diana/symbols/choose_exclusive.svg
325
- - cockpit/themes/diana/symbols/choose_inclusive.svg
326
- - cockpit/themes/diana/symbols/closed_loop.svg
327
- - cockpit/themes/diana/symbols/closed_loop_cancel.svg
328
- - cockpit/themes/diana/symbols/closed_loop_control.svg
329
- - cockpit/themes/diana/symbols/closed_loop_measuring.svg
330
- - cockpit/themes/diana/symbols/complex.svg
331
- - cockpit/themes/diana/symbols/critical.svg
332
- - cockpit/themes/diana/symbols/end.svg
333
- - cockpit/themes/diana/symbols/escape.svg
334
- - cockpit/themes/diana/symbols/event_end.svg
335
- - cockpit/themes/diana/symbols/loop.svg
336
- - cockpit/themes/diana/symbols/manipulate.svg
337
- - cockpit/themes/diana/symbols/otherwise.svg
338
- - cockpit/themes/diana/symbols/parallel.svg
339
- - cockpit/themes/diana/symbols/parallel_branch.svg
340
- - cockpit/themes/diana/symbols/parallel_branch_compact.svg
341
- - cockpit/themes/diana/symbols/parallel_branch_event.svg
342
- - cockpit/themes/diana/symbols/parallel_branch_normal.svg
343
- - cockpit/themes/diana/symbols/scripts.svg
344
- - cockpit/themes/diana/symbols/start.svg
345
- - cockpit/themes/diana/symbols/stop.svg
346
- - cockpit/themes/diana/symbols/terminate.svg
347
- - cockpit/themes/diana/theme.js
354
+ - cockpit/themes/default/theme.js
348
355
  - cockpit/themes/extended/rngs/alternative.rng
349
356
  - cockpit/themes/extended/rngs/call.rng
350
357
  - cockpit/themes/extended/rngs/callmanipulate.rng
@@ -534,6 +541,7 @@ files:
534
541
  - cockpit/themes/preset/symbols/terminate.svg
535
542
  - cockpit/themes/preset/theme.js
536
543
  - cockpit/track.html
544
+ - cockpit/transformations.xml
537
545
  - contrib/Screenshot at 2011-09-28 02:38:11.png
538
546
  - contrib/logo2-small.png
539
547
  - contrib/logo2.png
@@ -602,11 +610,16 @@ files:
602
610
  - server/resources/topics.xml
603
611
  - server/resources/transformation.xml
604
612
  - server/resources/transformation_dslx.xsl
613
+ - server/routing/end.pid
605
614
  - server/routing/end.rb
615
+ - server/routing/forward-events.pid
606
616
  - server/routing/forward-events.rb
617
+ - server/routing/forward-votes.pid
607
618
  - server/routing/forward-votes.rb
619
+ - server/routing/persist.pid
608
620
  - server/routing/persist.rb
609
621
  - server/server.conf
622
+ - server/server.pid
610
623
  - server/server.rb
611
624
  - tools/cpee
612
625
  - tools/server/cpee
data/cockpit/edit.html DELETED
@@ -1 +0,0 @@
1
- cockpit/index.html
@@ -1,122 +0,0 @@
1
- <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
2
- <attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
3
- <data type="string" rngui:readonly="true"/>
4
- </attribute>
5
- <attribute name="endpoint" rngui:label="Endpoint">
6
- <data type="string"/>
7
- </attribute>
8
- <element name="parameters" rngui:header="Properties">
9
- <element name="label" rngui:label="Label">
10
- <data type="string" rngui:label="Short description of the task"/>
11
- </element>
12
- <element name="method" rngui:label="Method">
13
- <choice>
14
- <value>:post</value>
15
- <value>:get</value>
16
- <value>:put</value>
17
- <value>:delete</value>
18
- </choice>
19
- </element>
20
- <element name="arguments" rngui:header="Arguments">
21
- <zeroOrMore rngui:label="Create Argument Pair">
22
- <element rngui:label="Name" rngui:labeltype="xml">
23
- <anyName/>
24
- <data type="string" rngui:label="Value"/>
25
- </element>
26
- </zeroOrMore>
27
- </element>
28
- <element name="stream" rngui:header="Data Stream Handling" rngui:fold="closed">
29
- <element name="sensors" rngui:header="Sensors" rngui:fold="closed">
30
- <zeroOrMore rngui:label="Add Sensor">
31
- <element name="sensor">
32
- <element name="name" rngui:label="Label">
33
- <data type="string" rngui:label="Label"/>
34
- </element>
35
- <element name="extractor_url" rngui:label="Extractor Url">
36
- <data type="string" rngui:label="Service Url"/>
37
- </element>
38
- <element name="extractor_arg" rngui:label="Extractor Argument">
39
- <data type="string" rngui:label="Value / Json"/>
40
- </element>
41
- <element name="visualizer_url" rngui:label="Visualizer Url">
42
- <data type="string" rngui:label="Service Url"/>
43
- </element>
44
- <element name="visualizer_params" rngui:header="Visualizer Arguments">
45
- <zeroOrMore rngui:label="Create Visualizer Argument Pairs">
46
- <element rngui:label="Name">
47
- <anyName/>
48
- <data type="string" rngui:label="Value / Json"/>
49
- </element>
50
- </zeroOrMore>
51
- </element>
52
- </element>
53
- </zeroOrMore>
54
- </element>
55
- <element name="aggregators" rngui:header="Aggregators" rngui:fold="closed">
56
- <zeroOrMore rngui:label="Add Aggregator">
57
- <element name="aggregator">
58
- <element name="name" rngui:label="Label">
59
- <data type="string" rngui:label="Label"/>
60
- </element>
61
- <element name="aggregator_url" rngui:label="Aggregator Url">
62
- <data type="string" rngui:label="Service Url"/>
63
- </element>
64
- <element name="aggregator_arg" rngui:label="Aggregator Argument">
65
- <data type="string" rngui:label="Value / Json"/>
66
- </element>
67
- </element>
68
- </zeroOrMore>
69
- </element>
70
- <element name="costs" rngui:header="Costs" rngui:fold="closed">
71
- <zeroOrMore rngui:label="Create Cost Factor">
72
- <element name="cost_factor">
73
- <element name="name" rngui:label="Label">
74
- <data type="string" rngui:label="Label"/>
75
- </element>
76
- <element name="target" rngui:label="Target Value">
77
- <data type="string" rngui:label="Value"/>
78
- </element>
79
- <element name="vfunc_url" rngui:label="Violation Function Url">
80
- <data type="string" rngui:label="Service Url"/>
81
- </element>
82
- <element name="vfunc_arg" rngui:label="Violation Function Argument">
83
- <data type="string" rngui:label="Service Url"/>
84
- </element>
85
- <element name="vcost" rngui:label="Violation Cost">
86
- <data type="string" rngui:label="Value"/>
87
- </element>
88
- </element>
89
- </zeroOrMore>
90
- </element>
91
- </element>
92
- <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
93
- <element name="url" rngui:label='HTML Snippet'>
94
- <data type="string" rngui:label="url to report snippet"/>
95
- </element>
96
- </element>
97
- </element>
98
- <element name="annotations" rngui:header="Annotations">
99
- <element name="_timing" rngui:header="Timing" rngui:fold="closed">
100
- <element name="_timing_wait" rngui:label="&#x3C9; - Wait">
101
- <data type="float" rngui:label="[0,1]" rngui:default="0.5"/>
102
- </element>
103
- <element name="_timing_threshold" rngui:label="&#x3BA; - Threshold">
104
- <data type="float" rngui:label="[0,3,n]" rngui:default="3"/>
105
- </element>
106
- <element name="_timing_min" rngui:label="Min in min">
107
- <data type="float" rngui:label="Minutes"/>
108
- </element>
109
- <element name="_timing_max" rngui:label="Max in min">
110
- <data type="float" rngui:label="Minutes"/>
111
- </element>
112
- <element name="_timing_avg" rngui:label="Avg in min">
113
- <data type="float" rngui:label="Minutes"/>
114
- </element>
115
- </element>
116
- <element name="_notes" rngui:header="Notes" rngui:fold="closed">
117
- <element name="_notes_general" rngui:label="General">
118
- <text rngui:wrap="true" rngui:label="Notes"/>
119
- </element>
120
- </element>
121
- </element>
122
- </element>
@@ -1,145 +0,0 @@
1
- <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
2
- <attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
3
- <data type="string" rngui:readonly="true"/>
4
- </attribute>
5
- <attribute name="endpoint" rngui:label="Endpoint">
6
- <data type="string"/>
7
- </attribute>
8
- <element name="parameters" rngui:header="Properties">
9
- <element name="label" rngui:label="Label">
10
- <data type="string" rngui:label="Short description of the task"/>
11
- </element>
12
- <element name="method" rngui:label="Method">
13
- <choice>
14
- <value>:post</value>
15
- <value>:get</value>
16
- <value>:put</value>
17
- <value>:delete</value>
18
- </choice>
19
- </element>
20
- <element name="arguments" rngui:header="Arguments">
21
- <zeroOrMore rngui:label="Create Argument Pair">
22
- <element rngui:label="Name" rngui:labeltype="xml">
23
- <anyName/>
24
- <data type="string" rngui:label="Value"/>
25
- </element>
26
- </zeroOrMore>
27
- </element>
28
- <element name="stream" rngui:header="Data Stream Handling" rngui:fold="closed">
29
- <element name="sensors" rngui:header="Sensors" rngui:fold="closed">
30
- <zeroOrMore rngui:label="Add Sensor">
31
- <element name="sensor">
32
- <element name="name" rngui:label="Label">
33
- <data type="string" rngui:label="Label"/>
34
- </element>
35
- <element name="extractor_url" rngui:label="Extractor Url">
36
- <data type="string" rngui:label="Service Url"/>
37
- </element>
38
- <element name="extractor_arg" rngui:label="Extractor Argument">
39
- <data type="string" rngui:label="Value / Json"/>
40
- </element>
41
- <element name="visualizer_url" rngui:label="Visualizer Url">
42
- <data type="string" rngui:label="Service Url"/>
43
- </element>
44
- <element name="visualizer_params" rngui:header="Visualizer Arguments">
45
- <zeroOrMore rngui:label="Create Visualizer Argument Pairs">
46
- <element rngui:label="Name">
47
- <anyName/>
48
- <data type="string" rngui:label="Value / Json"/>
49
- </element>
50
- </zeroOrMore>
51
- </element>
52
- </element>
53
- </zeroOrMore>
54
- </element>
55
- <element name="aggregators" rngui:header="Aggregators" rngui:fold="closed">
56
- <zeroOrMore rngui:label="Add Aggregator">
57
- <element name="aggregator">
58
- <element name="name" rngui:label="Label">
59
- <data type="string" rngui:label="Label"/>
60
- </element>
61
- <element name="aggregator_url" rngui:label="Aggregator Url">
62
- <data type="string" rngui:label="Service Url"/>
63
- </element>
64
- <element name="aggregator_arg" rngui:label="Aggregator Argument">
65
- <data type="string" rngui:label="Value / Json"/>
66
- </element>
67
- </element>
68
- </zeroOrMore>
69
- </element>
70
- <element name="costs" rngui:header="Costs" rngui:fold="closed">
71
- <zeroOrMore rngui:label="Create Cost Factor">
72
- <element name="cost_factor">
73
- <element name="name" rngui:label="Label">
74
- <data type="string" rngui:label="Label"/>
75
- </element>
76
- <element name="target" rngui:label="Target Value">
77
- <data type="string" rngui:label="Value"/>
78
- </element>
79
- <element name="vfunc_url" rngui:label="Violation Function Url">
80
- <data type="string" rngui:label="Service Url"/>
81
- </element>
82
- <element name="vfunc_arg" rngui:label="Violation Function Argument">
83
- <data type="string" rngui:label="Service Url"/>
84
- </element>
85
- <element name="vcost" rngui:label="Violation Cost">
86
- <data type="string" rngui:label="Value"/>
87
- </element>
88
- </element>
89
- </zeroOrMore>
90
- </element>
91
- </element>
92
- <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
93
- <element name="url" rngui:label='HTML Snippet'>
94
- <data type="string" rngui:label="url to report snippet"/>
95
- </element>
96
- </element>
97
- </element>
98
- <element name="code" rngui:header="Implementation">
99
- <element name="prepare" rngui:header="Prepare" rngui:label="Code" rngui:fold="closed_conditional">
100
- <text rngui:label="Script that is executed, before a service call"/>
101
- </element>
102
- <element name="finalize" rngui:header="Finalize" rngui:label="Code" rngui:fold="closed_conditional">
103
- <attribute name="output" rngui:label="Access Variable" rngui:default="result">
104
- <data type="string" rngui:readonly="true"/>
105
- </attribute>
106
- <text rngui:label="Script that is executed, when a service returns data"/>
107
- </element>
108
- <element name="update" rngui:header="Update" rngui:label="Code" rngui:fold="closed_conditional">
109
- <attribute name="output" rngui:label="Access Variable" rngui:default="result">
110
- <data type="string" rngui:readonly="true"/>
111
- </attribute>
112
- <text rngui:label="Script that is executed, when a service sends intermediate data"/>
113
- </element>
114
- <element name="rescue" rngui:header="Rescue" rngui:label="Code" rngui:fold="closed_conditional">
115
- <attribute name="output" rngui:label="Access Variable" rngui:default="result">
116
- <data type="string" rngui:readonly="true"/>
117
- </attribute>
118
- <text rngui:label="Script that is executed, if a service call fails"/>
119
- </element>
120
- </element>
121
- <element name="annotations" rngui:header="Annotations">
122
- <element name="_timing" rngui:header="Timing" rngui:fold="closed">
123
- <element name="_timing_wait" rngui:label="&#x3C9; - Wait">
124
- <data type="float" rngui:label="[0,1]"/>
125
- </element>
126
- <element name="_timing_threshold" rngui:label="&#x3BA; - Threshold">
127
- <data type="float" rngui:label="[0,3,n]"/>
128
- </element>
129
- <element name="_timing_min" rngui:label="Min in min">
130
- <data type="float" rngui:label="Minutes"/>
131
- </element>
132
- <element name="_timing_max" rngui:label="Max in min">
133
- <data type="float" rngui:label="Minutes"/>
134
- </element>
135
- <element name="_timing_avg" rngui:label="Avg in min">
136
- <data type="float" rngui:label="Minutes"/>
137
- </element>
138
- </element>
139
- <element name="_notes" rngui:header="Notes" rngui:fold="closed">
140
- <element name="_notes_general" rngui:label="General">
141
- <text rngui:wrap="true" rngui:label="Notes"/>
142
- </element>
143
- </element>
144
- </element>
145
- </element>