cpee 2.1.73 → 2.1.74

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c21127d24cf9f2a171afb51a060e0ebe7670733f57b60ecc726a4680092c6968
4
- data.tar.gz: 5c412f66e52ca5e982cb7e1c36c4ee7f3c92287d0d025445d5aa6f0f0a07c0d6
3
+ metadata.gz: 0f1d52202968f85e94d8d27cb948b88151f0f22311adae38417f3979bd4d3cb2
4
+ data.tar.gz: 17e41e203881e61545037a863729cbaa9dcdbd1b2f0e0ff947d7b1a607ff315d
5
5
  SHA512:
6
- metadata.gz: 77f4006dd5a11a5d7c84723544b9e10b0080c9e71af653914b0f2442d8996300c7612ba7f4f7289117fef5ee48241ed1b15a7d9d784d4c123805afe86934c1fd
7
- data.tar.gz: 6ebd11566d148d05ccfdf3c02a0e404f6b76dbdda37d1ffc38b48feefb4b6ab8a7321a8e9c0750a08a371e865fa9290ba1c1a7db99875bc2c5a039adbb610f04
6
+ metadata.gz: a78c6d6c8916c8e76f06dbbb71bce7dd4d47d042655bd307ad020b3e4cbd1295549871af927f52b2a5d81c302ab266ec46356f3a73ec7fa20a03d425c5e3cbee
7
+ data.tar.gz: '087e00e92adea25818ed49f421e1ddb591685e5a8221499d5e9f2369d19274d676bb7f63d9c4217571c3cc4680f58508d1c913f5d22539ad38381ec771fa6945'
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.73"
3
+ s.version = "2.1.74"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -181,6 +181,9 @@ module CPEE
181
181
  interface 'main' do
182
182
  run CPEE::Instances, opts if get '*'
183
183
  run CPEE::NewInstance, opts if post 'instance-new'
184
+ on resource 'executionhandlers' do
185
+ run CPEE::ExecutionHandlers, opts if get
186
+ end
184
187
  on resource '\d+' do |r|
185
188
  run CPEE::Info, opts if get
186
189
  run CPEE::DeleteInstance, opts if delete
@@ -256,6 +259,24 @@ module CPEE
256
259
  end
257
260
  end
258
261
 
262
+ class ExecutionHandlers < Riddl::Implementation #{{{
263
+ def response
264
+ opts = @a[0]
265
+ doc = XML::Smart::string('<handlers/>')
266
+ list = []
267
+ Dir[File.join(opts[:global_executionhandlers],'*','execution.rb')].each do |h|
268
+ list << File.basename(File.dirname(h))
269
+ end unless opts[:global_executionhandlers].nil? || opts[:global_executionhandlers].strip == ''
270
+ Dir[File.join(opts[:executionhandlers],'*','execution.rb')].each do |h|
271
+ list << File.basename(File.dirname(h))
272
+ end unless opts[:executionhandlers].nil? || opts[:executionhandlers].strip == ''
273
+ list.uniq.each do |e|
274
+ doc.root.add('handler',e)
275
+ end
276
+ Riddl::Parameter::Complex.new('wis','text/xml',doc.to_s)
277
+ end
278
+ end #}}}
279
+
259
280
  class Instances < Riddl::Implementation #{{{
260
281
  def response
261
282
  opts = @a[0]
@@ -272,7 +293,7 @@ module CPEE
272
293
  ins.to_s
273
294
  end
274
295
  else
275
- Riddl::Parameter::Complex.new("wis","text/xml",'<instances><!-- instances list disabled. --></instances>')
296
+ Riddl::Parameter::Complex.new('wis','text/xml','<instances><!-- instances list disabled. --></instances>')
276
297
  end
277
298
  end
278
299
  end #}}}
@@ -0,0 +1,32 @@
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
+
17
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
18
+ <start>
19
+ <element name="handlers">
20
+ <zeroOrMore>
21
+ <ref name="handler"/>
22
+ </zeroOrMore>
23
+ </element>
24
+ </start>
25
+
26
+ <define name="handler">
27
+ <element name="handler">
28
+ <data type="string"/>
29
+ </element>
30
+ </define>
31
+
32
+ </grammar>
data/lib/engine.xml CHANGED
@@ -36,6 +36,11 @@
36
36
  <xi:include href="engine/instance-info.rng"/>
37
37
  </parameter>
38
38
  </message>
39
+ <message name="executionhandlerlist">
40
+ <parameter name="list" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
41
+ <xi:include href="engine/executionhandler-list.rng"/>
42
+ </parameter>
43
+ </message>
39
44
 
40
45
  <resource>
41
46
  <doc:documentation>b</doc:documentation>
@@ -43,6 +48,9 @@
43
48
  <doc:documentation>a</doc:documentation>
44
49
  </get>
45
50
  <post in="instance-new" out="instance-id"/>
51
+ <resource relative="executionhandlers">
52
+ <get out="executionhandlerlist"/>
53
+ </resource>
46
54
  <resource relative="\d+">
47
55
  <get in="*" out="instance-info"/>
48
56
  <delete in="*"/>
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.1.73
4
+ version: 2.1.74
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: 2024-11-25 00:00:00.000000000 Z
13
+ date: 2024-12-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -863,6 +863,7 @@ files:
863
863
  - lib/cpee/statemachine.rb
864
864
  - lib/cpee/value_helper.rb
865
865
  - lib/engine.xml
866
+ - lib/engine/executionhandler-list.rng
866
867
  - lib/engine/instance-info.rng
867
868
  - lib/engine/instances.rng
868
869
  - lib/properties.xml
@@ -916,13 +917,9 @@ files:
916
917
  - server/resources/states.xml
917
918
  - server/resources/topics.xml
918
919
  - server/resources/transformation.xml
919
- - server/routing/end.pid
920
920
  - server/routing/end.rb
921
- - server/routing/forward-events-00.pid
922
921
  - server/routing/forward-events.rb
923
- - server/routing/forward-votes.pid
924
922
  - server/routing/forward-votes.rb
925
- - server/routing/persist.pid
926
923
  - server/routing/persist.rb
927
924
  - server/server.pid
928
925
  - server/server.rb
@@ -1 +0,0 @@
1
- 1174970
@@ -1 +0,0 @@
1
- 1174988
@@ -1 +0,0 @@
1
- 1174982
@@ -1 +0,0 @@
1
- 1174976