cpee 1.4.21 → 1.4.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 353a2b794638ff548e66e80c3e3f07156f2950418e1235a15227218ad8ef3865
4
- data.tar.gz: 213780c132273b1db52b734ff9d0f591a5beaa82fa0e26b891086af335acd827
3
+ metadata.gz: c0684d7e7afade30d9f451dd8a32839d98d3be45ba7fcf3f901ee61646daf04b
4
+ data.tar.gz: edb98cf9fddb0d88ccc29879ad83668c4cdb95684f4d02901cfb5f23209145eb
5
5
  SHA512:
6
- metadata.gz: c5479c3f260fc5371bda1f6c813144020d08d76698faf74a10319b836760405df9a38553c3d00a6243de8b0944a66c0f29cf39933d692b2a6ef5622c3160f5aa
7
- data.tar.gz: dbf3338aec98924ae690c524b3b7ec59a5cca2125a640b8396eec0632a8c84123f4d310be9c97099fb498b21fb18e43b31538861438cb34fbd71f432c6a8076a
6
+ metadata.gz: 13cb10d326b707afbcb43721bcb044ad1a66dd7ba1e9fce8fc36e19a8d0f94092d6d6b8604fdc22d20bdbab94f42848db7c697f81a9e11b8d828e0018f1659f2
7
+ data.tar.gz: 8bd78ae132f025df061ecfa1417a1e918ccb411b60b3c54d8155fd3ca21b186bb09c2160112ac7f4cc356096c5153491412d580288e5c20426cdb1d64efcf816
@@ -41,6 +41,15 @@ svg g.vote .rfill {
41
41
  fill: #8ae234;
42
42
  fill-opacity:1;
43
43
  }
44
+ svg g.passive .rline {
45
+ stroke: #729fcf;
46
+ }
47
+ svg g.active .rline {
48
+ stroke: #ef2929;
49
+ }
50
+ svg g.vote .rline {
51
+ stroke: #8ae234;
52
+ }
44
53
 
45
54
  svg .rfill.menu {
46
55
  fill: #ff7f7f;
@@ -70,18 +79,18 @@ svg .stand {
70
79
  fill:#ffffff;
71
80
  fill-opacity:1;
72
81
  stroke:#000000;
73
- stroke-width:2.06896567;
82
+ stroke-width:1.6;
74
83
  stroke-linecap:round;
75
84
  stroke-linejoin:round;
76
85
  stroke-miterlimit:4;
77
86
  stroke-opacity:1;
78
87
  stroke-dasharray:none;
79
88
  }
80
- svg .standthin {
89
+ svg .standfat {
81
90
  fill:#ffffff;
82
91
  fill-opacity:1;
83
92
  stroke:#000000;
84
- stroke-width:1.7;
93
+ stroke-width:3;
85
94
  stroke-linecap:round;
86
95
  stroke-linejoin:round;
87
96
  stroke-miterlimit:4;
@@ -103,7 +112,7 @@ svg .white {
103
112
  fill:#000000;
104
113
  fill-opacity:1;
105
114
  stroke:#ffffff;
106
- stroke-width:2.06896567;
115
+ stroke-width:1.6;
107
116
  stroke-linecap:round;
108
117
  stroke-linejoin:round;
109
118
  stroke-miterlimit:4;
@@ -114,7 +123,7 @@ svg .black {
114
123
  fill:#000000;
115
124
  fill-opacity:1;
116
125
  stroke:#000000;
117
- stroke-width:2.06896567;
126
+ stroke-width: 1.6;
118
127
  stroke-linecap:round;
119
128
  stroke-linejoin:round;
120
129
  stroke-miterlimit:4;
@@ -139,7 +148,6 @@ svg .marked .cfill {
139
148
  }
140
149
  svg .marked .cline {
141
150
  stroke:#d4d4d4;
142
- stroke-width:2.06896567;
143
151
  stroke-linecap:round;
144
152
  stroke-linejoin:round;
145
153
  stroke-miterlimit:4;
@@ -164,7 +172,6 @@ svg .clicked .cfill {
164
172
  }
165
173
  svg .clicked .cline {
166
174
  stroke:#f57900;
167
- stroke-width:2.06896567;
168
175
  stroke-linecap:round;
169
176
  stroke-linejoin:round;
170
177
  stroke-miterlimit:4;
@@ -176,7 +183,7 @@ svg .unknown {
176
183
  fill:#FF0000;
177
184
  fill-opacity:1;
178
185
  stroke:#000000;
179
- stroke-width:2.06896567;
186
+ stroke-width:1.6;
180
187
  stroke-linecap:round;
181
188
  stroke-linejoin:round;
182
189
  stroke-miterlimit:4;
@@ -189,7 +196,7 @@ svg .gen {
189
196
  fill-opacity:1;
190
197
  stroke-opacity:0.7;
191
198
  stroke:#000000;
192
- stroke-width:2.06896567;
199
+ stroke-width:1.6;
193
200
  stroke-linecap:round;
194
201
  stroke-linejoin:round;
195
202
  stroke-miterlimit:4;
@@ -333,7 +340,6 @@ svg g.element[element-id]:hover .hline {
333
340
  fill:#f57900;
334
341
  fill-opacity:1;
335
342
  stroke:#f57900;
336
- stroke-width:2.06896567;
337
343
  stroke-linecap:round;
338
344
  stroke-linejoin:round;
339
345
  stroke-miterlimit:4;
@@ -370,7 +376,6 @@ svg g.element[element-id]:hover .cfill {
370
376
  }
371
377
  svg g.element[element-id]:hover .cline {
372
378
  stroke:#000000;
373
- stroke-width:2.06896567;
374
379
  stroke-linecap:round;
375
380
  stroke-linejoin:round;
376
381
  stroke-miterlimit:4;
@@ -1,4 +1,4 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="15" cy="15" r="14" class="stand"/>
2
+ <circle cx="15" cy="15" r="14" class="standfat"/>
3
3
  <circle cx="15" cy="15" r="9" class="black"/>
4
4
  </svg>
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.4.21"
3
+ s.version = "1.4.23"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
data/log/sic.rb CHANGED
@@ -13,8 +13,8 @@ def follow(fname,io,deep=0)
13
13
  if name = e.dig('log','trace','cpee:name')
14
14
  puts " " * deep + name + " (#{File.basename(fname,'.xes.yaml')}) - #{e.dig('log','trace','concept:name')}"
15
15
  end
16
- if e.dig('event','concept:endpoint') == 'https://centurio.work/flow/start/url/' && e.dig('event','cpee:lifecycle:transition') == 'activity/receiving'
17
- base = e.dig('event','list','data_receiver',0,'data')
16
+ if e.dig('event','concept:endpoint') == 'https://centurio.work/flow/start/url/' && e.dig('event','cpee:lifecycle:transition') == 'task/instantiation'
17
+ base = e.dig('event','data','data_receiver')
18
18
  val = base.dig('CPEE-INSTANCE') rescue nil
19
19
  if val.nil?
20
20
  val = File.basename(base)
@@ -26,15 +26,15 @@ def follow(fname,io,deep=0)
26
26
  uuid = XML::Smart.string(res.body).find('string(/*)')
27
27
  end
28
28
  end
29
- next unless ((base.dig('CPEE-STATE') == 'running' || (base.dig('CPEE-FORKED') == 'true')) rescue true)
30
-
31
29
  react File.dirname(fname) + "/#{uuid}.xes.yaml",deep + 2
32
30
  end
33
31
  end
34
32
  end
35
33
 
36
34
  def react(name,deep=0)
37
- if name =~ /^https?:\/\//
35
+ if name.nil?
36
+ help
37
+ elsif name =~ /^https?:\/\//
38
38
  res = Typhoeus.get(name)
39
39
  if res.success?
40
40
  file = Tempfile.new('sic')
@@ -46,6 +46,8 @@ def react(name,deep=0)
46
46
  end
47
47
  elsif File.exists? name
48
48
  follow name, File.open(name), deep
49
+ else
50
+ help
49
51
  end
50
52
  end
51
53
 
@@ -30,7 +30,7 @@ class Logging < Riddl::Implementation #{{{
30
30
  event["id:id"] = (activity.nil? || activity == "") ? 'external' : activity
31
31
  event["cpee:uuid"] = notification['instance_uuid'] if notification["instance_uuid"]
32
32
  case event_name
33
- when 'receiving', 'change'
33
+ when 'receiving', 'change', 'instantiation'
34
34
  event["lifecycle:transition"] = "unknown"
35
35
  when 'done'
36
36
  event["lifecycle:transition"] = "complete"
@@ -57,7 +57,11 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
57
57
  if s.respond_to?(:mimetype)
58
58
  params << Riddl::Parameter::Complex.new(s.name.to_s,v.mimetype,v.value)
59
59
  else
60
- params << Riddl::Parameter::Simple.new(s.name.to_s,CPEE::ValueHelper::generate(s.value))
60
+ if s.name.to_s =~ /__$/
61
+ params << Riddl::Parameter::Simple.new(s.name.to_s.chop.chop,CPEE::ValueHelper::generate(s.value),:query)
62
+ else
63
+ params << Riddl::Parameter::Simple.new(s.name.to_s,CPEE::ValueHelper::generate(s.value))
64
+ end
61
65
  end
62
66
  end
63
67
 
@@ -73,24 +77,25 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
73
77
  params << Riddl::Header.new("CPEE-ATTR-#{key.to_s.gsub(/_/,'-')}",value)
74
78
  end
75
79
 
76
- type = if @handler_endpoint.sub!(/^http(s)?-(get|put|post|delete):/,'http\\1:')
77
- $2
78
- else
79
- parameters[:method] || 'post'
80
- end
81
- client = Riddl::Client.new(@handler_endpoint)
80
+ tendpoint = @handler_endpoint.sub(/^http(s)?-(get|put|post|delete):/,'http\\1:')
81
+ type = $2 || parameters[:method] || 'post'
82
+
83
+ client = Riddl::Client.new(tendpoint)
82
84
 
83
85
  @controller.callbacks[callback] = CPEE::Callback.new("callback activity: #{@handler_position}",self,:callback,nil,nil,:http)
84
86
  @handler_passthrough = callback
85
87
 
86
88
  status, result, headers = client.request type => params
87
89
 
88
- raise "Could not #{parameters[:method] || 'post'} #{@handler_endpoint} - status: #{status}: #{result&.dig(0)&.value&.read}" if status < 200 || status >= 300
90
+ raise "Could not #{type || 'post'} #{tendpoint} - status: #{status}: #{result&.dig(0)&.value&.read}" if status < 200 || status >= 300
89
91
 
90
92
  if headers['CPEE_INSTANTIATION']
91
93
  @controller.notify("task/instantiation", :instance => @controller.instance, :label => @label, :instance_name => @controller.info, :instance_uuid => @controller.uuid, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(headers['CPEE_INSTANTIATION']), :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"), :attributes => @controller.attributes_translated)
92
94
  end
93
- unless headers['CPEE_CALLBACK'] && headers['CPEE_CALLBACK'] == 'true'
95
+ if headers['CPEE_CALLBACK'] && headers['CPEE_CALLBACK'] == 'true' && result.any?
96
+ headers['CPEE_UPDATE'] = true
97
+ callback result, headers
98
+ else
94
99
  callback result
95
100
  end
96
101
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.21
4
+ version: 1.4.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: tools
13
13
  cert_chain: []
14
- date: 2019-02-19 00:00:00.000000000 Z
14
+ date: 2019-03-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -328,7 +328,6 @@ files:
328
328
  - log/trace.yaml
329
329
  - log/trace_sic.yaml
330
330
  - log/xes_xml.rb
331
- - log/xes_yaml.pid
332
331
  - log/xes_yaml.rb
333
332
  - server/dev.rb
334
333
  - server/handlerwrappers/default.rb
@@ -1 +0,0 @@
1
- 7611