cpee-logging-xes-yaml 1.2.4 → 1.2.6
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/tools.rb +12 -12
- data/tools/cpee-logging-xes-yaml +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '059a431d13f4fc63c57d4bb4c334571620926a4cebfef287a9d22b8f5bc3b7a7'
|
4
|
+
data.tar.gz: 8fc40239b96b1c7c04fce06b24b54d4e2572221b9673911fa4ace43919f24f93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a4637e59bcde997430d53b7b4315681df1306f1f14c13c7a888220eac87e17e8f93d4ebfab6abe4f555dcf65bb5506ac07e5eca9abc9761031a988617fffaf
|
7
|
+
data.tar.gz: a4781b2df9499d96fba6f3373510158885d2035da5d52c801f29efa2392b0d99e0437a9fddcc959bac80927d859c9724011a831a989911b492fb2639f2e0a9e0
|
@@ -303,12 +303,12 @@ module CPEE
|
|
303
303
|
CPEE::Logging::val_merge(event['stream:datastream'],val,pid,p.find('string(d:source)'))
|
304
304
|
end
|
305
305
|
end
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
306
|
+
notification['datastream'] = event['stream:datastream']
|
307
|
+
EM.defer do
|
308
|
+
notification['topic'] = 'stream'
|
309
|
+
notification['name'] = 'extraction'
|
310
|
+
self::notify(opts,'stream','extraction',notification.to_json)
|
311
|
+
end
|
312
312
|
end
|
313
313
|
end
|
314
314
|
if topic == 'activity' && event_name == 'receiving' && receiving && !receiving.empty?
|
@@ -336,12 +336,12 @@ module CPEE
|
|
336
336
|
File.open(File.join(log_dir,instance+'.xes.yaml'),'a') do |f|
|
337
337
|
f << {'event' => te}.to_yaml
|
338
338
|
end
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
339
|
+
notification['datastream'] = te['stream:datastream']
|
340
|
+
EM.defer do
|
341
|
+
notification['topic'] = 'stream'
|
342
|
+
notification['name'] = 'extraction'
|
343
|
+
self::notify(opts,'stream','extraction',notification.to_json)
|
344
|
+
end
|
345
345
|
end
|
346
346
|
end
|
347
347
|
end
|
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
|