cpee 1.3.209 → 1.3.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +5 -5
  3. data/cockpit/contrib/transformation1.xsl +9 -9
  4. data/cockpit/index.html +6 -4
  5. data/cockpit/js/details.js +54 -56
  6. data/cockpit/js/instance.js +15 -5
  7. data/cockpit/js/parameters.js +28 -28
  8. data/cockpit/js/wfadaptor.js +32 -16
  9. data/cockpit/testsets/Centurio.xml +72 -0
  10. data/cockpit/testsets/Lego Plate.xml +1 -1
  11. data/cockpit/testsets/Lego Transporter.xml +11 -147
  12. data/cockpit/testsets/Linear.xml +3 -0
  13. data/cockpit/testsets/Syncing P34 1.xml +9 -1
  14. data/cockpit/testsets/Syncing P34 2.xml +9 -1
  15. data/cockpit/testsets/Syncing P34 3.xml +9 -1
  16. data/cockpit/testsets/Syncing P34.xml +9 -1
  17. data/cockpit/testsets/testsets.xml +1 -0
  18. data/cockpit/themes/default/theme.js +22 -21
  19. data/cockpit/themes/labels/theme.js +786 -0
  20. data/cpee.gemspec +4 -2
  21. data/lib/cpee/controller.rb +0 -5
  22. data/server/handlerwrappers/default.rb +9 -15
  23. data/server/handlerwrappers/soap.rb +10 -10
  24. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +1 -0
  25. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +1 -0
  26. data/server/instances/{6/notifications/0e9f3728f00c0562870110697bd8819c → 10/notifications/182434032285ca1d06a8b6554b8889c8}/subscription.xml +6 -21
  27. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +1 -0
  28. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +1 -0
  29. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +6 -0
  30. data/server/instances/10/properties.xml +187 -0
  31. data/server/instances/11/properties.xml +191 -0
  32. data/server/instances/12/properties.xml +191 -0
  33. data/server/instances/13/properties.xml +204 -0
  34. data/server/instances/14/properties.xml +31 -0
  35. data/server/instances/15/properties.xml +30 -0
  36. data/server/instances/16/properties.xml +29 -0
  37. data/server/instances/17/properties.xml +29 -0
  38. data/server/instances/18/properties.xml +31 -0
  39. data/server/instances/19/properties.xml +31 -0
  40. data/server/instances/20/properties.xml +191 -0
  41. data/server/instances/7/properties.xml +120 -0
  42. data/server/instances/8/properties.xml +118 -0
  43. data/server/instances/9/properties.xml +120 -0
  44. data/test/callback.rb +2 -2
  45. data/tools/cpee +38 -0
  46. data/tools/server/resources/notifications/logging/consumer-secret +1 -0
  47. data/tools/server/resources/notifications/logging/producer-secret +1 -0
  48. data/tools/server/resources/notifications/logging/subscription.xml +7 -0
  49. data/tools/server/resources/properties.init +47 -0
  50. data/tools/server/server.rb +14 -0
  51. metadata +33 -7
  52. data/server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/consumer-secret +0 -1
  53. data/server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/producer-secret +0 -1
@@ -0,0 +1,120 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>03ef1674-043e-40fe-9825-80ca8aceaed7</uuid>
4
+ <info>Linear</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
+ </attributes>
8
+ <state>stopped</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions>
11
+ <a3>after</a3>
12
+ </positions>
13
+ <dataelements>
14
+ <x>a2,a3,</x>
15
+ </dataelements>
16
+ <endpoints>
17
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
18
+ </endpoints>
19
+ <dsl>call :a1, :timeout, parameters: { :label =&gt; "Step 1", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
20
+ data.x += "a1,"
21
+ END
22
+ call :a2, :timeout, parameters: { :label =&gt; "Step 2", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
23
+ data.x += "a2,"
24
+ END
25
+ call :a3, :timeout, parameters: { :label =&gt; "Step 3", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
26
+ data.x += "a3,"
27
+ END
28
+ </dsl>
29
+ <dslx>
30
+ <description xmlns="http://cpee.org/ns/description/1.0">
31
+ <!--{{{-->
32
+ <call id="a1" endpoint="timeout">
33
+ <parameters>
34
+ <!--{{{-->
35
+ <label>Step 1</label>
36
+ <method>:post</method>
37
+ <arguments>
38
+ <timeout>2</timeout>
39
+ </arguments>
40
+ </parameters>
41
+ <!--}}}-->
42
+ <finalize output="result">data.x += "a1,"</finalize>
43
+ </call>
44
+ <call id="a2" endpoint="timeout">
45
+ <parameters>
46
+ <!--{{{-->
47
+ <label>Step 2</label>
48
+ <method>:post</method>
49
+ <arguments>
50
+ <timeout>4</timeout>
51
+ </arguments>
52
+ </parameters>
53
+ <!--}}}-->
54
+ <finalize output="result">data.x += "a2,"</finalize>
55
+ </call>
56
+ <call id="a3" endpoint="timeout">
57
+ <parameters>
58
+ <!--{{{-->
59
+ <label>Step 3</label>
60
+ <method>:post</method>
61
+ <arguments>
62
+ <timeout>4</timeout>
63
+ </arguments>
64
+ </parameters>
65
+ <!--}}}-->
66
+ <finalize output="result">data.x += "a3,"</finalize>
67
+ </call>
68
+ </description>
69
+ </dslx>
70
+ <status>
71
+ <id>0</id>
72
+ <message>undefined</message>
73
+ </status>
74
+ <description>
75
+ <description xmlns="http://cpee.org/ns/description/1.0">
76
+ <!--{{{-->
77
+ <call id="a1" endpoint="timeout">
78
+ <parameters>
79
+ <!--{{{-->
80
+ <label>Step 1</label>
81
+ <method>:post</method>
82
+ <arguments>
83
+ <timeout>2</timeout>
84
+ </arguments>
85
+ </parameters>
86
+ <!--}}}-->
87
+ <finalize output="result">data.x += "a1,"</finalize>
88
+ </call>
89
+ <call id="a2" endpoint="timeout">
90
+ <parameters>
91
+ <!--{{{-->
92
+ <label>Step 2</label>
93
+ <method>:post</method>
94
+ <arguments>
95
+ <timeout>4</timeout>
96
+ </arguments>
97
+ </parameters>
98
+ <!--}}}-->
99
+ <finalize output="result">data.x += "a2,"</finalize>
100
+ </call>
101
+ <call id="a3" endpoint="timeout">
102
+ <parameters>
103
+ <!--{{{-->
104
+ <label>Step 3</label>
105
+ <method>:post</method>
106
+ <arguments>
107
+ <timeout>4</timeout>
108
+ </arguments>
109
+ </parameters>
110
+ <!--}}}-->
111
+ <finalize output="result">data.x += "a3,"</finalize>
112
+ </call>
113
+ </description>
114
+ </description>
115
+ <transformation>
116
+ <description type="copy"/>
117
+ <dataelements type="rest"/>
118
+ <endpoints type="rest"/>
119
+ </transformation>
120
+ </properties>
data/test/callback.rb CHANGED
@@ -3,7 +3,7 @@ require 'riddl/client'
3
3
 
4
4
  client = Riddl::Client.new("http://localhost:9298/39/callbacks/#{ARGV[1]}")
5
5
  status, response, headers = client.put [
6
- Riddl::Header.new('CPEE_UPDATE','true'),
7
- Riddl::Header.new('CPEE_UPDATE_STATUS','georg'),
6
+ Riddl::Header.new('CPEE-UPDATE','true'),
7
+ Riddl::Header.new('CPEE-UPDATE-STATUS','georg'),
8
8
  Riddl::Parameter::Simple.new('x',ARGV[0])
9
9
  ]
data/tools/cpee ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/ruby
2
+ curpath = __dir__
3
+ require 'rubygems'
4
+ require 'optparse'
5
+ require 'fileutils'
6
+
7
+ ARGV.options { |opt|
8
+ opt.summary_indent = ' ' * 2
9
+ opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [new|ui DIRECTORY]\n"
10
+ opt.on("Options:")
11
+ opt.on("--help", "-h", "This text") { puts opt; exit }
12
+ opt.on("[new DIRECTORY] scaffolds a sample execution engine. Everything except instances can be removed for default behaviour.")
13
+ opt.on("[ui DIRECTORY] symlinks/updates the UI.")
14
+ opt.parse!
15
+ }
16
+ if ARGV.length != 2 || !%w(ui new).include?(ARGV[0])
17
+ puts ARGV.options
18
+ exit
19
+ end
20
+ command = ARGV[0]
21
+ dir = ARGV[1]
22
+
23
+ if command == 'ui'
24
+ if !File.exists?(dir) || File.symlink?(dir)
25
+ FileUtils.ln_sf("#{curpath}/../cockpit",dir)
26
+ else
27
+ puts "File or directory with this name already exists."
28
+ end
29
+ else
30
+ if !File.exists?(dir)
31
+ FileUtils.cp_r("#{curpath}/server/",dir)
32
+ FileUtils.mkdir("#{dir}/instances") rescue nil
33
+ FileUtils.mkdir("#{dir}/resources") rescue nil
34
+ FileUtils.mkdir("#{dir}/handlerwrappers") rescue nil
35
+ else
36
+ puts "Directory already exists."
37
+ end
38
+ end
@@ -0,0 +1 @@
1
+ f7c77861ac613eeac8fb9829c9a545a2
@@ -0,0 +1 @@
1
+ 2a24d172b1aeb05fe94fdc5e095dec32
@@ -0,0 +1,7 @@
1
+ <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9300/log">
2
+ <topic id="activity">
3
+ <event>calling</event>
4
+ <event>receiving</event>
5
+ <event>done</event>
6
+ </topic>
7
+ </subscription>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ This file is part of CPEE.
4
+
5
+ CPEE is free software: you can redistribute it and/or modify it under the terms
6
+ of the GNU General Public License as published by the Free Software Foundation,
7
+ either version 3 of the License, or (at your option) any later version.
8
+
9
+ CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ CPEE (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
+ <attributes>
20
+ <info/>
21
+ <modeltype>CPEE</modeltype>
22
+ <theme>default</theme>
23
+ </attributes>
24
+ <state>ready</state>
25
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
26
+ <positions/>
27
+ <dataelements/>
28
+ <endpoints>
29
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
30
+ </endpoints>
31
+ <dsl/>
32
+ <dslx>
33
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
34
+ </dslx>
35
+ <status>
36
+ <id>0</id>
37
+ <message>undefined</message>
38
+ </status>
39
+ <description>
40
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
41
+ </description>
42
+ <transformation>
43
+ <description type='copy'/>
44
+ <dataelements type='none'/>
45
+ <endpoints type='none'/>
46
+ </transformation>
47
+ </properties>
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/ruby
2
+ require 'rubygems'
3
+ require 'cpee/implementation'
4
+
5
+ Riddl::Server.new(CPEE::SERVER, :host => 'localhost', :port => 9298) do
6
+ @riddl_opts[:instances] = ::File.dirname(__FILE__) + '/instances'
7
+ @riddl_opts[:handlerwrappers] = ::File.dirname(__FILE__) + '/handlerwrappers'
8
+ @riddl_opts[:notifications_init] = ::File.dirname(__FILE__) + '/resources/notifications'
9
+ @riddl_opts[:properties_init] = ::File.dirname(__FILE__) + '/resources/properties.init'
10
+ accessible_description true
11
+ cross_site_xhr true
12
+
13
+ use CPEE::implementation(@riddl_opts)
14
+ end.loop!
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: 1.3.209
4
+ version: 1.3.211
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,9 +9,9 @@ authors:
9
9
  - Gerhard Stuermer
10
10
  - Florian Stertz
11
11
  autorequire:
12
- bindir: bin
12
+ bindir: tools
13
13
  cert_chain: []
14
- date: 2017-06-21 00:00:00.000000000 Z
14
+ date: 2017-11-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -71,7 +71,8 @@ dependencies:
71
71
  version: '1.6'
72
72
  description: see http://cpee.org
73
73
  email: juergen.mangler@gmail.com
74
- executables: []
74
+ executables:
75
+ - cpee
75
76
  extensions: []
76
77
  extra_rdoc_files:
77
78
  - README
@@ -101,6 +102,7 @@ files:
101
102
  - cockpit/rngs/dataelements.rng
102
103
  - cockpit/rngs/endpoints.rng
103
104
  - cockpit/testsets/CPEE.xml
105
+ - cockpit/testsets/Centurio.xml
104
106
  - cockpit/testsets/Concurrent.xml
105
107
  - cockpit/testsets/Coopis Testset.xml
106
108
  - cockpit/testsets/Endpoints and Data Manipulation.xml
@@ -197,6 +199,7 @@ files:
197
199
  - cockpit/themes/default/symbols/scripts.svg
198
200
  - cockpit/themes/default/symbols/start.svg
199
201
  - cockpit/themes/default/theme.js
202
+ - cockpit/themes/labels/theme.js
200
203
  - cockpit/themes/lego/rngs/alternative.rng
201
204
  - cockpit/themes/lego/rngs/call.rng
202
205
  - cockpit/themes/lego/rngs/choose.rng
@@ -293,14 +296,31 @@ files:
293
296
  - server/handlerwrappers/default.rb
294
297
  - server/handlerwrappers/soap.rb
295
298
  - server/instances/1/properties.xml
299
+ - server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret
300
+ - server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret
301
+ - server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml
302
+ - server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret
303
+ - server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret
304
+ - server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml
305
+ - server/instances/10/properties.xml
306
+ - server/instances/11/properties.xml
307
+ - server/instances/12/properties.xml
308
+ - server/instances/13/properties.xml
309
+ - server/instances/14/properties.xml
310
+ - server/instances/15/properties.xml
311
+ - server/instances/16/properties.xml
312
+ - server/instances/17/properties.xml
313
+ - server/instances/18/properties.xml
314
+ - server/instances/19/properties.xml
296
315
  - server/instances/2/properties.xml
316
+ - server/instances/20/properties.xml
297
317
  - server/instances/3/properties.xml
298
318
  - server/instances/4/properties.xml
299
319
  - server/instances/5/properties.xml
300
- - server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/consumer-secret
301
- - server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/producer-secret
302
- - server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/subscription.xml
303
320
  - server/instances/6/properties.xml
321
+ - server/instances/7/properties.xml
322
+ - server/instances/8/properties.xml
323
+ - server/instances/9/properties.xml
304
324
  - server/resources/empty_dslx.xml
305
325
  - server/resources/properties.init
306
326
  - server/resources/properties.schema.active
@@ -311,6 +331,12 @@ files:
311
331
  - server/resources/transformation_dslx.xsl
312
332
  - server/server.rb
313
333
  - test/callback.rb
334
+ - tools/cpee
335
+ - tools/server/resources/notifications/logging/consumer-secret
336
+ - tools/server/resources/notifications/logging/producer-secret
337
+ - tools/server/resources/notifications/logging/subscription.xml
338
+ - tools/server/resources/properties.init
339
+ - tools/server/server.rb
314
340
  homepage: http://cpee.org/
315
341
  licenses:
316
342
  - LGPL-3.0
@@ -1 +0,0 @@
1
- 7c72df9d5d3ccd0fabf29690e101e041
@@ -1 +0,0 @@
1
- 6371ff3583509c23cb3107698adc3f20