cpee-logging-xes-yaml 1.2.3 → 1.2.5
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-logging-xes-yaml.gemspec +1 -1
- data/lib/cpee-logging-xes-yaml/tools.rb +18 -3
- data/tools/cpee-logging-xes-yaml +3 -3
- 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: f68cffd3ed5f6c0fb9e3fb1a38c2a61b77400114b6905e0e5e720bbae7892102
|
4
|
+
data.tar.gz: f05626fcc9ee4ee6faba3ef671de1dd7e754fb87dc60922e7dd391eff5b6181e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64bece415ec9cf4fd65fbefbc1111fa819444488c76862949108b8f5fb0b5435daaa26e107167db46d52c57378db1995f4bce36bff87cf37ab2b8e353718255f
|
7
|
+
data.tar.gz: f73718c4406b582d0dd0cb3cbf3e943238cb0a5a0950abbef912b2fcc212357638b90eafdf4d8dcdbb2a4aa28bf33a7d0d15deb23c7c0c692098595f738c2aa8
|
@@ -243,7 +243,9 @@ module CPEE
|
|
243
243
|
so['content']['activity'] = k
|
244
244
|
so['topic'] = 'annotation'
|
245
245
|
so['name'] = 'change'
|
246
|
-
|
246
|
+
EM.defer do
|
247
|
+
self::notify(opts,'annotation','change',so.to_json)
|
248
|
+
end
|
247
249
|
end
|
248
250
|
end
|
249
251
|
|
@@ -302,8 +304,14 @@ module CPEE
|
|
302
304
|
end
|
303
305
|
end
|
304
306
|
end
|
307
|
+
notification['datastream'] = event['stream:datastream']
|
308
|
+
EM.defer do
|
309
|
+
notification['topic'] = 'stream'
|
310
|
+
notification['name'] = 'extraction'
|
311
|
+
self::notify(opts,'stream','extraction',notification.to_json)
|
312
|
+
end
|
305
313
|
end
|
306
|
-
if receiving && !receiving.empty?
|
314
|
+
if topic == 'activity' && event_name == 'receiving' && receiving && !receiving.empty?
|
307
315
|
fname = File.join(log_dir,instance + '_' + event["id:id"] + '.probe')
|
308
316
|
dname = File.join(log_dir,instance + '.data.json')
|
309
317
|
|
@@ -329,8 +337,15 @@ module CPEE
|
|
329
337
|
f << {'event' => te}.to_yaml
|
330
338
|
end
|
331
339
|
end
|
340
|
+
notification['datastream'] = te['stream:datastream']
|
341
|
+
EM.defer do
|
342
|
+
notification['topic'] = 'stream'
|
343
|
+
notification['name'] = 'extraction'
|
344
|
+
self::notify(opts,'stream','extraction',notification.to_json)
|
345
|
+
end
|
332
346
|
end
|
333
|
-
|
347
|
+
end
|
348
|
+
if receiving && !receiving.empty?
|
334
349
|
event["raw"] = receiving
|
335
350
|
end
|
336
351
|
event["time:timestamp"]= event['cpee:timestamp'] || Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z")
|
data/tools/cpee-logging-xes-yaml
CHANGED
@@ -45,12 +45,12 @@ end
|
|
45
45
|
|
46
46
|
def follow(fname,io,copy,deep=0)
|
47
47
|
if copy
|
48
|
-
File.write(File.basename(fname,'.xes.yaml') + '.xes.
|
48
|
+
File.write(File.basename(fname,'.xes.yaml') + '.xes.yaml',io.read)
|
49
49
|
io.rewind
|
50
50
|
end
|
51
51
|
YAML.load_stream(io) do |e|
|
52
52
|
if name = e.dig('log','trace','cpee:name')
|
53
|
-
puts " " * deep + name + " (#{File.basename(fname,'.xes.
|
53
|
+
puts " " * deep + name + " (#{File.basename(fname,'.xes.yaml')}) - #{e.dig('log','trace','concept:name')}"
|
54
54
|
end
|
55
55
|
if e.dig('event','cpee:lifecycle:transition') == 'task/instantiation'
|
56
56
|
base = e.dig('event','raw')
|
@@ -60,7 +60,7 @@ def follow(fname,io,copy,deep=0)
|
|
60
60
|
end
|
61
61
|
uuid = base.dig('CPEE-INSTANCE-UUID') rescue nil
|
62
62
|
if uuid
|
63
|
-
react File.dirname(fname) + "/#{uuid}.xes.
|
63
|
+
react File.dirname(fname) + "/#{uuid}.xes.yaml",copy,deep + 2
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
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.2.
|
4
|
+
version: 1.2.5
|
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: 2022-12-
|
12
|
+
date: 2022-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riddl
|