cpee 2.1.73 → 2.1.75

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: c70d372aa135b28dfb5dbb9296841d3ced6bbb6b2387163e93030543d699b21a
4
+ data.tar.gz: '08485a7e4866e65be960b54768b6988488a682fb80db4b9beafbe660e4697da1'
5
5
  SHA512:
6
- metadata.gz: 77f4006dd5a11a5d7c84723544b9e10b0080c9e71af653914b0f2442d8996300c7612ba7f4f7289117fef5ee48241ed1b15a7d9d784d4c123805afe86934c1fd
7
- data.tar.gz: 6ebd11566d148d05ccfdf3c02a0e404f6b76dbdda37d1ffc38b48feefb4b6ab8a7321a8e9c0750a08a371e865fa9290ba1c1a7db99875bc2c5a039adbb610f04
6
+ metadata.gz: 88d8d0f979001ef7b4db376fc7c614bbcc7bc303dd610031894167ba6d098ac943b3ecabc0eb8d8633e80da62d290b01b928b2b2fb014562623362489f490246
7
+ data.tar.gz: 968981084b579fa95aa6ef08239cc11daba64ca2e69b0e20e17dfffd0e9515b2abd74dd7d0a2c8730cfbe0b4d53575b0f809520630958f0136f1e07a840f38ed
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.75"
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 #}}}
data/lib/cpee/message.rb CHANGED
@@ -50,7 +50,7 @@ module CPEE
50
50
  'topic' => topic,
51
51
  'type' => type,
52
52
  'name' => name,
53
- 'timestamp' => Time.now.xmlschema(4),
53
+ 'timestamp' => Time.now.xmlschema(6),
54
54
  'content' => content
55
55
  }
56
56
  payload[@@type + '-uuid'] = instance_uuid if instance_uuid
@@ -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="*"/>
@@ -1 +1 @@
1
- 1174970
1
+ 2045852
@@ -1 +1 @@
1
- 1174988
1
+ 2045871
@@ -1 +1 @@
1
- 1174982
1
+ 2045864
@@ -1 +1 @@
1
- 1174976
1
+ 2045858
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.75
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: 2025-01-18 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
@@ -949,7 +950,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
949
950
  - !ruby/object:Gem::Version
950
951
  version: '0'
951
952
  requirements: []
952
- rubygems_version: 3.5.16
953
+ rubygems_version: 3.5.22
953
954
  signing_key:
954
955
  specification_version: 4
955
956
  summary: The cloud process execution engine (cpee.org). If you just need workflow