cpee 1.3.192 → 1.3.193

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
  SHA1:
3
- metadata.gz: 42201bf6ae8150fda07d193dcfa74ff93f8680aa
4
- data.tar.gz: 5f5bef0e5a8212a977328a05969e5058555dabb6
3
+ metadata.gz: 2fc85848924c3bad3d3739c62e182cfea78f5bf6
4
+ data.tar.gz: 5d2aea61c93c744bd53dfae9b2aed961e10004fa
5
5
  SHA512:
6
- metadata.gz: a49649ba5a52cc08390bf16fd51576a22f2ca6073d3d97346fb25c69a76ea7bd47b6b27cce4f7a7af88e660d6acf3f4ba0242a171a35bd7619795a393aa7eb38
7
- data.tar.gz: d1a10b8278907b7350199008c9604fd5d61f43e188b22836f95d7bddc8f24de478636208b49995f5d17e0fb5344288265ddd9dabb5c1cbd546f361d2e4602eff
6
+ metadata.gz: b5ee8db3dcb1a5809c67335ca506ce88a2bce9b7bdbfd88d2ebb565573927cd9ca1b87d2a831b144af29a0e7632005b68eab35775677f936f4fc40b144a123e0
7
+ data.tar.gz: 92dcc8423919577b77429f0471c9fb1ce6a6416a1d5738f098a665681b0a8ba31e8a5f84bbc361ad7a130bd5fdb8b0072cd86eaaa029c189ba1167f476e225be
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.192"
3
+ s.version = "1.3.193"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
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"
@@ -19,6 +19,7 @@ class Logging < Riddl::Implementation #{{{
19
19
  log_dir = ::File.dirname(__FILE__) + "/logs"
20
20
  instancenr = @h['CPEE_INSTANCE'].split('/').last
21
21
  notification = JSON.parse(@p[3].value)
22
+ parameters = notification['parameters']
22
23
  log_hash = notification['log_hash']
23
24
  Dir.mkdir(log_dir+'/'+instancenr) unless Dir.exist?(log_dir+'/'+instancenr)
24
25
  unless File.exist?(log_dir+'/'+instancenr+'/log.xes')
@@ -33,11 +34,12 @@ class Logging < Riddl::Implementation #{{{
33
34
  XML::Smart.modify(log_dir+'/'+instancenr+'/log.xes') do |xml|
34
35
  trace = xml.find("/xmlns:log/xmlns:trace").first
35
36
  event = trace.add "event"
36
- event.add 'string', :key => "concept:name", :value => log_hash["label"]
37
+ event.add 'string', :key => "concept:name", :value => parameters["label"]
37
38
  event.add 'string', :key => "lifecycle:transition", :value => event=='done'?"complete":"start"
38
- if log_hash.has_key?("data_send")
39
+ data_send = ((parameters[:arguments].nil? ? [] : parameters[:arguments]) rescue [])
40
+ if data_send.any?
39
41
  list = event.add 'list', :key => "data_send"
40
- log_hash["data_send"].each do |k,v|
42
+ data_send.each do |k,v|
41
43
  list.add 'string', :key => k , :value => v
42
44
  end
43
45
  end
@@ -163,13 +163,14 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
163
163
  if r.is_a? Riddl::Parameter::Simple
164
164
  { r.name => r.value }
165
165
  elsif r.is_a? Riddl::Parameter::Complex
166
- {
167
- r.name => {
166
+ tmp = {
167
+ r.name == '' ? 'result' : r.name => {
168
168
  'mimetype' => r.mimetype,
169
169
  'content' => r.value.read
170
170
  }
171
171
  }
172
172
  r.value.rewind
173
+ tmp
173
174
  end
174
175
  end
175
176
  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.192
4
+ version: 1.3.193
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler