cpee 1.3.110 → 1.3.111

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/cpee.gemspec +1 -1
  2. data/lib/cpee/controller.rb +14 -14
  3. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.110"
3
+ s.version = "1.3.111"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
@@ -314,9 +314,9 @@ module CPEE
314
314
  addit = if tdesc.attributes['type'] == 'copy' || tdesc.empty?
315
315
  desc.children.first.to_doc.root
316
316
  elsif tdesc.attributes['type'] == 'rest' && !tdesc.empty?
317
- srv = Riddl::Client.interface(tdesc.text,@opts[:transformation_service])
317
+ srv = Riddl::Client.interface(tdesc.text,@opts[:transformation_service],:xmpp => @opts[:xmpp])
318
318
  status, res = srv.post [
319
- Riddl::Parameter::Complex.new("description","application/xml",desc.dump),
319
+ Riddl::Parameter::Complex.new("description","text/xml",desc.children.first.dump),
320
320
  Riddl::Parameter::Simple.new("type","description")
321
321
  ]
322
322
  XML::Smart::string(res[0].value.read).root if status == 200
@@ -336,12 +336,12 @@ module CPEE
336
336
 
337
337
  ### dataelements extraction
338
338
  addit = if tdata.attributes['type'] == 'rest' && !tdata.empty?
339
- srv = Riddl::Client.interface(tdata.text,@opts[:transformation_service])
339
+ srv = Riddl::Client.interface(tdata.text,@opts[:transformation_service],:xmpp => @opts[:xmpp])
340
340
  status, res = srv.post [
341
- Riddl::Parameter::Complex.new("dataelements","application/xml",desc.dump),
342
- Riddl::Parameter::Simple.new("type","description")
341
+ Riddl::Parameter::Complex.new("description","text/xml",desc.children.first.dump),
342
+ Riddl::Parameter::Simple.new("type","dataelements")
343
343
  ]
344
- XML::Smart::string(res[0].value.read) if status == 200
344
+ res
345
345
  elsif tdata.attributes['type'] == 'xslt' && !tdata.empty?
346
346
  trans = XML::Smart::open_unprotected(tdata.text)
347
347
  desc.children.first.to_doc.transform_with(trans)
@@ -353,19 +353,19 @@ module CPEE
353
353
  node.children.delete_all!
354
354
  @instance.data.clear
355
355
  addit.each_slice(2).each do |k,v|
356
- @instance.data[k.read] = ValueHelper::parse(v.read)
357
- node.add(k.to_s,ValueHelper::generate(v.read))
356
+ @instance.data[k.value] = ValueHelper::parse(v.value)
357
+ node.add(k.value,ValueHelper::generate(v.value))
358
358
  end
359
359
  end
360
360
 
361
361
  ### enpoints extraction
362
362
  addit = if tendp.attributes['type'] == 'rest' && !tdata.empty?
363
- srv = Riddl::Client.interface(tendp.text,@opts[:transformation_service])
363
+ srv = Riddl::Client.interface(tendp.text,@opts[:transformation_service],:xmpp => @opts[:xmpp])
364
364
  status, res = srv.post [
365
- Riddl::Parameter::Complex.new("dataelements","application/xml",desc.dump),
366
- Riddl::Parameter::Simple.new("type","description")
365
+ Riddl::Parameter::Complex.new("description","text/xml",desc.children.first.dump),
366
+ Riddl::Parameter::Simple.new("type","endpoints")
367
367
  ]
368
- XML::Smart::string(res[0].value.read) if status == 200
368
+ res
369
369
  elsif tendp.attributes['type'] == 'xslt' && !tdata.empty?
370
370
  trans = XML::Smart::open_unprotected(tendp.text)
371
371
  desc.children.first.to_doc.transform_with(trans)
@@ -377,8 +377,8 @@ module CPEE
377
377
  node.children.delete_all!
378
378
  @instance.endpoints.clear
379
379
  addit.each_slice(2).each do |k,v|
380
- @instance.endpoints[k.read] = ValueHelper::parse(v.read)
381
- node.add(k.to_s,ValueHelper::generate(v.read))
380
+ @instance.endpoints[k.value] = ValueHelper::parse(v.value)
381
+ node.add(k.value,ValueHelper::generate(v.value))
382
382
  end
383
383
  end
384
384
  end
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.110
4
+ version: 1.3.111
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: