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 +4 -4
- data/cpee-logging-xes-yaml.gemspec +1 -1
- data/lib/cpee-logging-xes-yaml/template.xes_yaml +6 -6
- data/tools/cpee-logging-xes-yaml +12 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5006bd8583bbc97375b4cf1ea8c244cf9557737b4aa7ecf8498fef79d2e613a1
|
4
|
+
data.tar.gz: edf2cd9d644b5db644c7fbb3bffb9c6717e1d9daece275046a4724fdde83c4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d541adde0c9a67e917304e3e8ee29db3cda9b6e15e6d3017ee73219503a98f7c49739ad6347330492a886fb40b10cc4ff082acac0802fb740ee849d90390ef
|
7
|
+
data.tar.gz: 6c9c08d88a95cc5490ae2d396d774dcde2994c9ed765267c60e361f9f249b4971608362a30d9223019521d836bb8583e9f6c0789be5c8f2fc7a371b39a68506b
|
@@ -16,14 +16,14 @@ log:
|
|
16
16
|
stream: https://cpee.org/datastream/datastream.xesext
|
17
17
|
global:
|
18
18
|
trace:
|
19
|
-
concept:name:
|
20
|
-
cpee:name:
|
19
|
+
concept:name: __NOTSPECIFIED__
|
20
|
+
cpee:name: __NOTSPECIFIED__
|
21
21
|
event:
|
22
22
|
concept:instance: -1
|
23
|
-
concept:name:
|
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: ''
|
data/tools/cpee-logging-xes-yaml
CHANGED
@@ -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="
|
62
|
-
<string key="cpee:name" value="
|
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="
|
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 =~
|
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.
|
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
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riddl
|