cpee-logging-xes-yaml 1.3.10 → 1.3.13

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: b868d0811693deb2b67324f42f3d0960e5e70ec187d9f0691bac740a74e7d135
4
- data.tar.gz: 6969b960fb8b3287cc77c84518046a87ef43c0f0a270deb0f62b65bd64bb86c8
3
+ metadata.gz: 5006bd8583bbc97375b4cf1ea8c244cf9557737b4aa7ecf8498fef79d2e613a1
4
+ data.tar.gz: edf2cd9d644b5db644c7fbb3bffb9c6717e1d9daece275046a4724fdde83c4e1
5
5
  SHA512:
6
- metadata.gz: c6a815df5ff25e865894226313d8c9b05deea3441628e0a407425c534d3ac151a5e1c38341e756ae1f0d7af0e9eea0ecc02356d1b73e6eb919cd30a1e6d7971a
7
- data.tar.gz: 6113b996e5ac01040087d5199a548209a73ef1275eaa1bd748aa0e056664f6d7ad949c6d656acb73d63a5bc513ff3bc1d28a82d25d2d2afac0e5426d17a1465d
6
+ metadata.gz: 35d541adde0c9a67e917304e3e8ee29db3cda9b6e15e6d3017ee73219503a98f7c49739ad6347330492a886fb40b10cc4ff082acac0802fb740ee849d90390ef
7
+ data.tar.gz: 6c9c08d88a95cc5490ae2d396d774dcde2994c9ed765267c60e361f9f249b4971608362a30d9223019521d836bb8583e9f6c0789be5c8f2fc7a371b39a68506b
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-logging-xes-yaml"
3
- s.version = "1.3.10"
3
+ s.version = "1.3.13"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Logging for the cloud process execution engine (cpee.org)"
@@ -16,14 +16,14 @@ log:
16
16
  stream: https://cpee.org/datastream/datastream.xesext
17
17
  global:
18
18
  trace:
19
- concept:name: __INVALID__
20
- cpee:name: __INVALID__
19
+ concept:name: __NOTSPECIFIED__
20
+ cpee:name: __NOTSPECIFIED__
21
21
  event:
22
22
  concept:instance: -1
23
- concept:name: __INVALID__
24
- concept:endpoint: ''
25
- id:id: ''
26
- cpee:uuid: ''
23
+ concept:name: __NOTSPECIFIED__
24
+ concept:endpoint: __NOTSPECIFIED__
25
+ id:id: __NOTSPECIFIED__
26
+ cpee:uuid: __NOTSPECIFIED__
27
27
  lifecycle:transition: complete
28
28
  cpee:lifecycle:transition: activity/calling
29
29
  time:timestamp: ''
@@ -58,24 +58,24 @@ TEMPLATE_XES_XML = <<-END
58
58
  <extension name="CPEE" prefix="cpee" uri="http://cpee.org/cpee.xesext"/>
59
59
  <extension name="stream" prefix="stream" uri="https://cpee.org/datastream/datastream.xesext"/>
60
60
  <global scope="trace">
61
- <string key="concept:name" value="__INVALID__"/>
62
- <string key="cpee:name" value="__INVALID__"/>
61
+ <string key="concept:name" value="__NOTSPECIFIED__"/>
62
+ <string key="cpee:name" value="__NOTSPECIFIED__"/>
63
63
  </global>
64
64
  <global scope="event">
65
- <string key="concept:name" value="__INVALID__"/>
65
+ <string key="concept:name" value="__NOTSPECIFIED__"/>
66
66
  <string key="concept:instance" value="-1"/>
67
- <string key="concept:endpoint" value=""/>
68
- <string key="id:id" value=""/>
67
+ <string key="concept:endpoint" value="__NOTSPECIFIED__"/>
68
+ <string key="id:id" value="__NOTSPECIFIED__"/>
69
69
  <string key="lifecycle:transition" value="complete" />
70
70
  <string key="cpee:lifecycle:transition" value="activity/calling"/>
71
- <date key="time:timestamp" value=""/>
71
+ <date key="time:timestamp" value="__NOTSPECIFIED__"/>
72
72
  </global>
73
73
  <trace/>
74
74
  </log>
75
75
  END
76
76
 
77
77
  def rec_type(it)
78
- if it.is_a?(String) && it =~ /^\d/ && (Time.parse(it) rescue nil)
78
+ if it.is_a?(String) && it =~ /^[\dT:+.-]+$/ && (Time.parse(it) rescue nil)
79
79
  'x:date'
80
80
  elsif it.is_a? Float
81
81
  'x:float'
@@ -89,14 +89,13 @@ end
89
89
  def rec_a_insert(event,node,level=0)
90
90
  event.each do |i|
91
91
  tnode = node
92
- # tnode = node.add('x:string', 'key' => 'item')
93
92
  case i
94
93
  when Hash
95
94
  rec_insert(i,tnode,level+1)
96
95
  when Array
97
96
  rec_a_insert(i,tnode,level+1)
98
97
  when String
99
- node.add(rec_type(i), 'key' => i, 'value' => i)
98
+ node.add(rec_type(i), 'key' => i, 'value' => (i.empty? ? "__UNSPECIFIED__" : i))
100
99
  end
101
100
  end
102
101
  end
@@ -105,6 +104,10 @@ def rec_insert(event,node,level=0)
105
104
  event.each do |k,v|
106
105
  case v
107
106
  when String
107
+ node.add(rec_type(v), 'key' => k, 'value' => (v.empty? ? "__UNSPECIFIED__" : v))
108
+ when Integer
109
+ node.add(rec_type(v), 'key' => k, 'value' => v)
110
+ when Float
108
111
  node.add(rec_type(v), 'key' => k, 'value' => v)
109
112
  when Array
110
113
  tnode = node.add('x:list', 'key' => k)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-logging-xes-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.10
4
+ version: 1.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: tools
11
11
  cert_chain: []
12
- date: 2024-07-12 00:00:00.000000000 Z
12
+ date: 2024-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riddl