cpee-logging-xes-yaml 1.0.1 → 1.0.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/README.md +10 -2
- data/cpee-logging-xes-yaml.gemspec +2 -2
- data/lib/cpee-logging-xes-yaml/logging.rb +3 -1
- data/tools/cpee-logging-xes-yaml +6 -10
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897f6d719b02a41bbec8577cbcc0cfb0c21d45e4c82a569903a9d2260ec95ce6
|
4
|
+
data.tar.gz: 52a03e45692b299d2548a132c5549787f04dc935268b467fb9c47dd777a26ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dbab93362de5702354db2b62ccbe6fe5a2bf4d8305f87b9ccef877d542a62e62dc5804cae5b9d059c7930fdc1e2063dcce2d132fcf8a2e2b6418c7146e6db5c
|
7
|
+
data.tar.gz: f1412da8132c5f8b7f67643ab8226a09262cef99f34b78f9de9a8941a5a3b947340acb85967b5f645c812853dd3c1740f5a4c34ea53040c34b1f3433d230d714
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ or many of the following yaml keys:
|
|
20
20
|
:log_dir: /var/log/cpee
|
21
21
|
```
|
22
22
|
|
23
|
-
To
|
23
|
+
To connect the cpee to the log, one of two things can be done: (1) add a handler to
|
24
24
|
a testset/template:
|
25
25
|
|
26
26
|
```xml
|
@@ -31,6 +31,8 @@ a testset/template:
|
|
31
31
|
<events topic="endpoints">change</events>
|
32
32
|
<events topic="attributes">change</events>
|
33
33
|
<events topic="task">instantiation</events>
|
34
|
+
<events topic="description">change</events>
|
35
|
+
<events topic="state">change</events>
|
34
36
|
</handler>
|
35
37
|
</handlers>
|
36
38
|
```
|
@@ -46,7 +48,7 @@ Riddl::Server.new(CPEE::SERVER, options) do
|
|
46
48
|
end.loop!
|
47
49
|
```
|
48
50
|
|
49
|
-
to the server (or alternatively to a
|
51
|
+
to the server (or alternatively to a cpee.conf with :notification_init
|
50
52
|
beeing a top-level yaml key). Then add a subscription file to
|
51
53
|
notifications/logging/subscription.xml
|
52
54
|
|
@@ -66,6 +68,12 @@ notifications/logging/subscription.xml
|
|
66
68
|
<topic id="attributes">
|
67
69
|
<event>change</event>
|
68
70
|
</topic>
|
71
|
+
<topic id="description">
|
72
|
+
<event>change</event>
|
73
|
+
</topic>
|
74
|
+
<topic id="state">
|
75
|
+
<event>change</event>
|
76
|
+
</topic>
|
69
77
|
<topic id="task">
|
70
78
|
<event>instantiation</event>
|
71
79
|
</topic>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee-logging-xes-yaml"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.5"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Logging for the cloud process execution engine (cpee.org)"
|
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.add_runtime_dependency 'riddl', '~> 0.99'
|
24
24
|
s.add_runtime_dependency 'json', '~> 2.1'
|
25
|
-
s.add_runtime_dependency 'cpee', '~> 1', '>= 1.
|
25
|
+
s.add_runtime_dependency 'cpee', '~> 2.1', '>= 2.1.4'
|
26
26
|
end
|
@@ -45,7 +45,7 @@ module CPEE
|
|
45
45
|
event = {}
|
46
46
|
event["concept:instance"] = instancenr
|
47
47
|
event["concept:name"] = content["label"] if content["label"]
|
48
|
-
if
|
48
|
+
if content["endpoint"]
|
49
49
|
event["concept:endpoint"] = content["endpoint"]
|
50
50
|
end
|
51
51
|
event["id:id"] = (activity.nil? || activity == "") ? 'external' : activity
|
@@ -61,6 +61,8 @@ module CPEE
|
|
61
61
|
event["lifecycle:transition"] = "start"
|
62
62
|
end
|
63
63
|
event["cpee:lifecycle:transition"] = "#{topic}/#{event_name}"
|
64
|
+
event["cpee:state"] = content['state'] if content['state']
|
65
|
+
event["cpee:description"] = content['dslx'] if content['dslx']
|
64
66
|
data_send = ((parameters["arguments"].nil? ? [] : parameters["arguments"]) rescue [])
|
65
67
|
event["data"] = {"data_send" => data_send} unless data_send.empty?
|
66
68
|
if content['changed']&.any?
|
data/tools/cpee-logging-xes-yaml
CHANGED
@@ -35,20 +35,16 @@ def follow(fname,io,copy,deep=0)
|
|
35
35
|
if name = e.dig('log','trace','cpee:name')
|
36
36
|
puts " " * deep + name + " (#{File.basename(fname,'.xes.yaml')}) - #{e.dig('log','trace','concept:name')}"
|
37
37
|
end
|
38
|
-
if e.dig('event','
|
38
|
+
if e.dig('event','cpee:lifecycle:transition') == 'task/instantiation'
|
39
39
|
base = e.dig('event','data','data_receiver')
|
40
40
|
val = base.dig('CPEE-INSTANCE') rescue nil
|
41
41
|
if val.nil?
|
42
42
|
val = File.basename(base)
|
43
43
|
end
|
44
44
|
uuid = base.dig('CPEE-INSTANCE-UUID') rescue nil
|
45
|
-
|
46
|
-
|
47
|
-
if res.success?
|
48
|
-
uuid = XML::Smart.string(res.body).find('string(/*)')
|
49
|
-
end
|
45
|
+
if uuid
|
46
|
+
react File.dirname(fname) + "/#{uuid}.xes.yaml",copy,deep + 2
|
50
47
|
end
|
51
|
-
react File.dirname(fname) + "/#{uuid}.xes.yaml",copy,deep + 2
|
52
48
|
end
|
53
49
|
end
|
54
50
|
end
|
@@ -98,9 +94,9 @@ else
|
|
98
94
|
end
|
99
95
|
|
100
96
|
if command == 'new'
|
101
|
-
if !File.exists?(
|
102
|
-
FileUtils.cp_r(File.join(curpath,'..','server'),
|
103
|
-
FileUtils.mkdir(File.join(
|
97
|
+
if !File.exists?(dir)
|
98
|
+
FileUtils.cp_r(File.join(curpath,'..','server'),dir)
|
99
|
+
FileUtils.mkdir(File.join(dir,'logs')) rescue nil
|
104
100
|
else
|
105
101
|
puts 'Directory already exists.'
|
106
102
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee-logging-xes-yaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
- Florian Stertz
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riddl
|
@@ -45,20 +45,20 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1'
|
48
|
+
version: '2.1'
|
49
49
|
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: 2.1.4
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - "~>"
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: '1'
|
58
|
+
version: '2.1'
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.1.4
|
62
62
|
description: see http://cpee.org
|
63
63
|
email: juergen.mangler@gmail.com
|
64
64
|
executables:
|
@@ -81,7 +81,7 @@ homepage: http://cpee.org/
|
|
81
81
|
licenses:
|
82
82
|
- LGPL-3.0
|
83
83
|
metadata: {}
|
84
|
-
post_install_message:
|
84
|
+
post_install_message:
|
85
85
|
rdoc_options: []
|
86
86
|
require_paths:
|
87
87
|
- lib
|
@@ -96,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
100
|
-
signing_key:
|
99
|
+
rubygems_version: 3.2.22
|
100
|
+
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Logging for the cloud process execution engine (cpee.org)
|
103
103
|
test_files: []
|