cpee-logging-xes-yaml 1.0.1 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5233866b6ce08af2156e106e2813f40d684833933726adfea60a1297f0fef556
4
- data.tar.gz: 93cbef9a422a9388bed75adb86a04eec7faa06036540e6190cc41ec07658a664
3
+ metadata.gz: 897f6d719b02a41bbec8577cbcc0cfb0c21d45e4c82a569903a9d2260ec95ce6
4
+ data.tar.gz: 52a03e45692b299d2548a132c5549787f04dc935268b467fb9c47dd777a26ac5
5
5
  SHA512:
6
- metadata.gz: 55569ea8f23429cb63bf6d8d6df57064a9a3982ba66876fe36d8b400937c7d57a8dcc2c7ed9f833324541739338dfa1ff24198a4dae35888745c53a3fcf54132
7
- data.tar.gz: c28f5c119e48cc76a3edef1b4649ed9d5f0ba6f75b848b0a1b734018de5afa45e0d6be918fd40d940667742b44c5b576f2297b7b210935519ba4ce778ebb1d62
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 connec the cpee to the log, one of two things can be done: (1) add a handler 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 log.conf with :notification_init
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.1"
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.5'
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 notification["endpoint"]
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?
@@ -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','concept:endpoint') == 'https://centurio.work/flow/start/url/' && e.dig('event','cpee:lifecycle:transition') == 'task/instantiation'
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
- unless uuid
46
- res = Typhoeus.get(File.join('https://centurio.work/flow/engine/',val,'/properties/values/attributes/uuid/'))
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?(p1)
102
- FileUtils.cp_r(File.join(curpath,'..','server'),p1)
103
- FileUtils.mkdir(File.join(p1,'logs')) rescue nil
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.1
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: 2020-10-05 00:00:00.000000000 Z
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: '1.5'
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: '1.5'
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.1.2
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: []