cpee 1.3.205 → 1.3.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cpee.gemspec +1 -1
- data/log/server.rb +25 -5
- data/server/resources/transformation_dslx.xsl +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d487ede487ce7bf7fe2aa4d2f59549540eb9b0a
|
|
4
|
+
data.tar.gz: 3ca95fe9bd0b351529bdc9538b983b2d6f00dd73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 362c25b3bc380f795d1d8c7817d2cb371947556e0cf953c12ff0ffd3ba8fb278f25e7697e7cb3f9c82d307215d4d2b933756160634f960390d341bb68c19baa8
|
|
7
|
+
data.tar.gz: 539140c12dc844c4186ec4a5cad599360b622d64ee2e4923d612b3ff40c40f5003b3b39bbb6160e4fa514410663fd46dec760ccc0b6f46d5a85bcbd770695afb
|
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.206"
|
|
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
|
@@ -39,7 +39,6 @@ class Logging < Riddl::Implementation #{{{
|
|
|
39
39
|
activity = notification["activity"]
|
|
40
40
|
parameters = notification['parameters']
|
|
41
41
|
receiving = notification['received']
|
|
42
|
-
pp notification
|
|
43
42
|
Dir.mkdir(log_dir+'/'+uuid) unless Dir.exist?(log_dir+'/'+uuid)
|
|
44
43
|
time_added=false
|
|
45
44
|
XML::Smart.modify(log_dir+'/'+uuid+'/log.xes',LOGTEMPLATE) do |xml|
|
|
@@ -59,23 +58,26 @@ class Logging < Riddl::Implementation #{{{
|
|
|
59
58
|
else
|
|
60
59
|
event.add 'string', :key => "lifecycle:transition", :value => "unknown"
|
|
61
60
|
end
|
|
62
|
-
data_send = ((parameters[
|
|
61
|
+
data_send = ((parameters["arguments"].nil? ? [] : parameters["arguments"]) rescue [])
|
|
63
62
|
if data_send && data_send.any?
|
|
64
63
|
list = event.add 'list', :key => "data_send"
|
|
65
|
-
data_send.each do |
|
|
66
|
-
list.add 'string', :key =>
|
|
64
|
+
data_send.each do |e|
|
|
65
|
+
list.add 'string', :key => e['name'] , :value => e['value']
|
|
67
66
|
end
|
|
68
67
|
end
|
|
69
68
|
if receiving && receiving.any?
|
|
70
|
-
list = event.add 'list', :key => "data_received"
|
|
71
69
|
if receiving.is_a? Array
|
|
72
70
|
receiving.each do |e|
|
|
73
71
|
e.each do |k,v|
|
|
74
72
|
case v['mimetype']
|
|
75
73
|
when /\/xml$/
|
|
74
|
+
list = event.add 'list', :key => "data_received"
|
|
76
75
|
node = list.add 'string', :key => k
|
|
77
76
|
node.add XML::Smart.string(v['content']).root
|
|
77
|
+
when /\/json$/
|
|
78
|
+
rec_unjson(JSON.parse(v['content']),event,"data_received")
|
|
78
79
|
else
|
|
80
|
+
list = event.add 'list', :key => "data_received"
|
|
79
81
|
list.add 'string', :key => k, :value => v['content']
|
|
80
82
|
end
|
|
81
83
|
end
|
|
@@ -91,6 +93,24 @@ class Logging < Riddl::Implementation #{{{
|
|
|
91
93
|
end
|
|
92
94
|
end
|
|
93
95
|
end
|
|
96
|
+
|
|
97
|
+
def rec_unjson(value,list,key)
|
|
98
|
+
case value
|
|
99
|
+
when Array then
|
|
100
|
+
li = list.add 'list', :key => key
|
|
101
|
+
value.each_with_index do |v,k|
|
|
102
|
+
rec_unjson(v,li,k)
|
|
103
|
+
end
|
|
104
|
+
when Hash then
|
|
105
|
+
li = list.add 'list', :key => key
|
|
106
|
+
value.each do |k,v|
|
|
107
|
+
rec_unjson(v,li,k)
|
|
108
|
+
end
|
|
109
|
+
else
|
|
110
|
+
list.add 'string', :key => key, :value => value
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
94
114
|
def response
|
|
95
115
|
topic = @p[1].value
|
|
96
116
|
event_name = @p[2].value
|
|
@@ -339,11 +339,16 @@
|
|
|
339
339
|
<xsl:text> => </xsl:text>
|
|
340
340
|
|
|
341
341
|
<xsl:choose>
|
|
342
|
-
<xsl:when test="count(*) > 0">
|
|
342
|
+
<xsl:when test="count(*) > 0 and name()='arguments'">
|
|
343
343
|
<xsl:text>[</xsl:text>
|
|
344
344
|
<xsl:apply-templates select="d:*" mode="sub"/>
|
|
345
345
|
<xsl:text>]</xsl:text>
|
|
346
346
|
</xsl:when>
|
|
347
|
+
<xsl:when test="count(*) > 0 and not(name()='arguments')">
|
|
348
|
+
<xsl:text>{</xsl:text>
|
|
349
|
+
<xsl:apply-templates select="d:*" mode="parameter"/>
|
|
350
|
+
<xsl:text>}</xsl:text>
|
|
351
|
+
</xsl:when>
|
|
347
352
|
<xsl:when test="not(node())">
|
|
348
353
|
<xsl:text>nil</xsl:text>
|
|
349
354
|
</xsl:when>
|
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.
|
|
4
|
+
version: 1.3.206
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juergen eTM Mangler
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2017-02-
|
|
14
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: riddl
|