cpee-instantiation 1.0.10 → 1.0.11

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: 4d4f2d6bb294992580a51fe2e5f4c5c122506fe31a327fcbae1e88845964e02f
4
- data.tar.gz: f2046e8bc78d8ff5d69feed0ba54ffc23d35da3afba9f58bf6417fe8963e01a2
3
+ metadata.gz: fa7ec4be09e6574d2b06d3f63119403dd07d1bfd1f5c91b74e070a0168a73c92
4
+ data.tar.gz: 5557f2f30a55365b9ffe235cf025ed4c90bddfaa72d5a125da419b89eed83772
5
5
  SHA512:
6
- metadata.gz: 316d7c396535c85ba2030750591c3152e15a99142120925ed3b6758d0f755a1276e1b3da6c074caab507ae38f8159fdcd5843d556a7417a408e12396b72564e8
7
- data.tar.gz: 96dfd842fd444518894bc782c48eb6ca69bca06bb02077c64a1af503843f1bec454bfc4bbdb666b2477ae4bbbc040862586e02e6a3f5cb4a12205c1a8ace949d
6
+ metadata.gz: 934220dc9cd7953028f9ec8c32fc77046380eb54a8ca6d5566e40a0450c4045a3a101a8cf14f988ddeb5e1d068a0a6945333d63c02d053c02c3fcb7383267401
7
+ data.tar.gz: 55a39d02d5614c6a2cf1af1b59cc71b8e8544c002d28eb3de6da89bf3938d0f9c6a05e3db9b8f4c0b481067a0ca58e25929246674066cb2f4e084d8f254558dd
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-instantiation"
3
- s.version = "1.0.10"
3
+ s.version = "1.0.11"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Subprocess instantiation service for the cloud process execution engine (cpee.org)"
@@ -293,19 +293,29 @@ module CPEE
293
293
  cblist = @a[2]
294
294
  instance = @p[1].value
295
295
 
296
- srv = Riddl::Client.new(cpee, File.join(cpee,'?riddl-description'))
297
- res = srv.resource("/#{instance}/properties/attributes/uuid")
296
+ srv = Riddl::Client.new(cpee)
297
+ res = srv.resource("/#{instance}/properties/attributes/uuid/")
298
298
  status, response = res.get
299
299
 
300
300
  if status >= 200 && status < 300
301
- uuid = XML::Smart::string(response.first.value).root.text
301
+ uuid = response.first.value
302
302
  handle_data cpee, instance, @p[2]&.value
303
303
  handle_waiting cpee, instance, uuid, @p[0].value, selfurl, cblist
304
304
  handle_starting cpee, instance, @p[0].value
305
+
306
+ send = {
307
+ 'CPEE-INSTANCE' => instance,
308
+ 'CPEE-INSTANCE-URL' => File.join(cpee,instance),
309
+ 'CPEE-INSTANCE-UUID' => uuid,
310
+ 'CPEE-BEHAVIOR' => @p[0].value
311
+ }
312
+
305
313
  if @p[0].value =~ /^wait/
306
314
  @headers << Riddl::Header.new('CPEE-CALLBACK','true')
307
315
  end
308
- return Riddl::Parameter::Simple.new("url",cpee + instance)
316
+ Riddl::Parameter::Complex.new('instance','application/json',JSON::generate(send))
317
+ else
318
+ @status = 500
309
319
  end
310
320
  end
311
321
  end #}}}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-instantiation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  autorequire:
9
9
  bindir: tools
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riddl
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.1.6
111
+ rubygems_version: 3.2.22
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Subprocess instantiation service for the cloud process execution engine (cpee.org)