cpee-logging-xes-yaml 1.3.27 → 1.3.30
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 +10 -4
- 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: c2475b45c7eb85a9d59ad80640699cbf91cfc14b67e4ac7b3d64954b559d7a34
|
|
4
|
+
data.tar.gz: a80f1b2d4e65322df40bd4e7a0234d2721cc44b9d5f1fa4adde78f84b1d8c7d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0ddbf8911d7131428e8eb2a70457f22de9dc81f6a4fad430f894442bc1d62e236ff4a883f4460b9875a56b1b2734a1731169a92752faa6a59b97f221c18aa62
|
|
7
|
+
data.tar.gz: c86ee1ba144e1d557505e405efc06d27ae180996add76376968f1e093220b95c4d030e85a3aed987e44a81679fa6f8be8d639a537cfe51b4b3574a718ba7a905
|
|
@@ -211,9 +211,10 @@ module CPEE
|
|
|
211
211
|
f.close
|
|
212
212
|
end
|
|
213
213
|
def self::load_values(where)
|
|
214
|
+
ret = nil
|
|
214
215
|
File.open(where,'r') do |f|
|
|
215
216
|
f.flock(File::LOCK_EX)
|
|
216
|
-
ret =
|
|
217
|
+
ret = JSON::load(f)
|
|
217
218
|
f.flock(File::LOCK_UN)
|
|
218
219
|
end
|
|
219
220
|
ret
|
|
@@ -238,9 +239,11 @@ module CPEE
|
|
|
238
239
|
template = opts[:template]
|
|
239
240
|
|
|
240
241
|
instancenr = notification['instance']
|
|
241
|
-
|
|
242
242
|
content = notification['content']
|
|
243
243
|
activity = content['activity']
|
|
244
|
+
activity = nil if activity == '' || activity&.strip == ''
|
|
245
|
+
eid = content['eid']
|
|
246
|
+
eid = nil if eid == '' || eid&.strip == ''
|
|
244
247
|
parameters = content['parameters']
|
|
245
248
|
receiving = content['received']
|
|
246
249
|
|
|
@@ -273,8 +276,8 @@ module CPEE
|
|
|
273
276
|
if content['endpoint']
|
|
274
277
|
event['concept:endpoint'] = content['endpoint']
|
|
275
278
|
end
|
|
276
|
-
event['id:id'] = (activity.nil?
|
|
277
|
-
event['cpee:activity'] =
|
|
279
|
+
event['id:id'] = (activity.nil? && eid.nil?) ? 'ex-ante' : (activity || eid)
|
|
280
|
+
event['cpee:activity'] = activity unless activity.nil?
|
|
278
281
|
event['cpee:activity_uuid'] = content['activity-uuid'] if content['activity-uuid']
|
|
279
282
|
event['cpee:instance'] = instance
|
|
280
283
|
case event_name
|
|
@@ -290,6 +293,9 @@ module CPEE
|
|
|
290
293
|
event['cpee:description'] = content['dslx'] if content['dslx']
|
|
291
294
|
event['cpee:change_uuid'] = content['change_uuid'] if content['change_uuid']
|
|
292
295
|
event['cpee:exposition'] = content['exposition'] if content['exposition']
|
|
296
|
+
if topic == 'gateway' && event_name == 'decide'
|
|
297
|
+
event['data'] = { 'condition' => content['code'], 'result' => content['condition'] }
|
|
298
|
+
end
|
|
293
299
|
unless parameters['arguments']&.nil?
|
|
294
300
|
event['data'] = parameters['arguments']
|
|
295
301
|
end if parameters
|