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 +4 -4
- data/cpee.gemspec +1 -1
- data/log/server.rb +5 -3
- data/server/handlerwrappers/default.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc85848924c3bad3d3739c62e182cfea78f5bf6
|
4
|
+
data.tar.gz: 5d2aea61c93c744bd53dfae9b2aed961e10004fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5ee8db3dcb1a5809c67335ca506ce88a2bce9b7bdbfd88d2ebb565573927cd9ca1b87d2a831b144af29a0e7632005b68eab35775677f936f4fc40b144a123e0
|
7
|
+
data.tar.gz: 92dcc8423919577b77429f0471c9fb1ce6a6416a1d5738f098a665681b0a8ba31e8a5f84bbc361ad7a130bd5fdb8b0072cd86eaaa029c189ba1167f476e225be
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
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"
|
data/log/server.rb
CHANGED
@@ -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 =>
|
37
|
+
event.add 'string', :key => "concept:name", :value => parameters["label"]
|
37
38
|
event.add 'string', :key => "lifecycle:transition", :value => event=='done'?"complete":"start"
|
38
|
-
|
39
|
+
data_send = ((parameters[:arguments].nil? ? [] : parameters[:arguments]) rescue [])
|
40
|
+
if data_send.any?
|
39
41
|
list = event.add 'list', :key => "data_send"
|
40
|
-
|
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
|