cpee 2.1.49 → 2.1.51

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: 34164853ededc651de8bd49042f1fbd395a2085897ae8f0de3d589f6896e55a4
4
- data.tar.gz: 94547c5e075aae343ac0bcd01cd99f31907841cf0621d3623d2dc41a30aab8cb
3
+ metadata.gz: 53d9392ee2d94e307e588b467e9a435901f8d231d42f84ff326432444764be99
4
+ data.tar.gz: d0f08d2fc5100b961f218e5c1890931d894bc9d3ed844e880ca187fffb3342d2
5
5
  SHA512:
6
- metadata.gz: 1eb722ee4a2d1721c70af726a98c1ef4dc41ce553b4332aa45eb6c2a5f96d1081f860b0c67bd90ba88f0275391e178ec063e6a77eeab54d55ed96437fc93d2aa
7
- data.tar.gz: d144450ff15ec4c4856d41334e119f60a56c1e8d27eeafc63540cb11f01bb9dec3bcbfa9615a3d83001e24d806b514f80aa5f5b841f16799416c3f12338ce464
6
+ metadata.gz: 56677348739cd49fc763e867d9d6d464afa1183fe5220277bd2141410b46ddd065320ae4e11c8ed469a82107d57a3f0afc6148624d71c88f6ba1bf961bd9af9a
7
+ data.tar.gz: 4bcf1ce059ae0839862910e620697907a045ac925ffd30c7212d7b8ff8819f9f6c6a2eb845365ab3c7887db9d0e6d567122b98ce77699d3a23fbbafa2c2ff790
@@ -22,6 +22,7 @@
22
22
  --wfadaptor-exec-vote-text: #73d216;
23
23
  --wfadaptor-highlight: #0081c7;
24
24
  --wfadaptor-base: #000000;
25
+ --wfadaptor-base-light: #A9A9A9;
25
26
  --wfadaptor-label: #d4d4d4;
26
27
  --wfadaptor-mark: #d4d4d4;
27
28
  --wfadaptor-selected: #f57900;
@@ -134,6 +135,17 @@ svg .standfat {
134
135
  stroke-opacity:1;
135
136
  stroke-dasharray:none;
136
137
  }
138
+ svg .greyfat {
139
+ fill: var(--wfadaptor-background);
140
+ fill-opacity:1;
141
+ stroke: var(--wfadaptor-base-light);
142
+ stroke-width:3;
143
+ stroke-linecap:round;
144
+ stroke-linejoin:round;
145
+ stroke-miterlimit:4;
146
+ stroke-opacity:1;
147
+ stroke-dasharray:none;
148
+ }
137
149
  svg .standfat.menu {
138
150
  stroke: var(--wfadaptor-menu);
139
151
  }
@@ -170,6 +182,17 @@ svg .black {
170
182
  stroke-opacity:1;
171
183
  stroke-dasharray:none;
172
184
  }
185
+ svg .grey {
186
+ fill: var(--wfadaptor-base-light);
187
+ fill-opacity:1;
188
+ stroke: var(--wfadaptor-base-light);
189
+ stroke-width: 1.6;
190
+ stroke-linecap:round;
191
+ stroke-linejoin:round;
192
+ stroke-miterlimit:4;
193
+ stroke-opacity:1;
194
+ stroke-dasharray:none;
195
+ }
173
196
 
174
197
  svg .marked text.label {
175
198
  color: var(--wfadaptor-label);
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.49"
3
+ s.version = "2.1.51"
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.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -82,7 +82,9 @@ module CPEE
82
82
  end
83
83
 
84
84
  def self::new_object(opts)
85
- opts[:redis].zrevrange(@@obj + 's', 0, 0).first.to_i + 1
85
+ id = opts[:redis].zrevrange(@@obj + 's', 0, 0).first.to_i + 1
86
+ opts[:redis].zadd(@@obj + 's',id,id)
87
+ id
86
88
  end
87
89
 
88
90
  def self::keys(id,opts,item=nil)
@@ -20,6 +20,7 @@ require 'get_process_mem'
20
20
  class ConnectionWrapper < WEEL::ConnectionWrapperBase
21
21
  def self::loop_guard(arguments,id,count) # {{{
22
22
  controller = arguments[0]
23
+ return false if controller.attributes['nednoamol']
23
24
  tsn = Time.now
24
25
  tso = controller.loop_guard[id][:timestamp] rescue Time.now
25
26
  controller.loop_guard[id] = { :count => count, :timestamp => tsn }
@@ -132,7 +133,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
132
133
  end
133
134
 
134
135
  status = result = headers = nil
135
- catch :no_mock do
136
+ begin
136
137
  tendpoint = @handler_endpoint.sub(/^http(s)?-(get|put|post|delete):/,'http\\1:')
137
138
  type = $2 || parameters[:method] || 'post'
138
139
 
@@ -142,11 +143,20 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
142
143
  @controller.callback(self,callback,:'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position)
143
144
 
144
145
  status, result, headers = client.request type => params
146
+ @guard_files += result
147
+
145
148
  if status == 561
146
149
  @handler_endpoint = @handler_endpoint_orig
147
- throw :no_mock
150
+ params.delete_if { |p| p.name == 'original_endpoint' }
151
+ params.each do |p|
152
+ if p.name == 'attributes'
153
+ t = JSON::parse(p.value) rescue {}
154
+ t['mock'] = @controller.attributes['mock']
155
+ p.value = t.to_json
156
+ end
157
+ end
148
158
  end
149
- end
159
+ end while status == 561
150
160
 
151
161
  if status < 200 || status >= 300
152
162
  headers['CPEE_SALVAGE'] = true
@@ -274,7 +284,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
274
284
  end
275
285
  end
276
286
  else
277
- Riddl::Parameter::Array[*result]
287
+ result = Riddl::Parameter::Array[*result]
278
288
  end
279
289
  if result.is_a? String
280
290
  enc = detect_encoding(result)
@@ -345,6 +355,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
345
355
  recv = structurize_result(result)
346
356
  @controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv, :annotations => @anno)
347
357
  @guard_files += result
358
+
348
359
  @handler_returnValue = simplify_result(result)
349
360
  @handler_returnOptions = options
350
361
  if options['CPEE_INSTANTIATION']
@@ -372,13 +383,15 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
372
383
  end
373
384
 
374
385
  def mem_guard() #{{{
375
- @guard_files.each do |p|
386
+ @guard_files.delete_if do |p|
376
387
  if p&.respond_to?(:close)
377
388
  p.close
378
389
  elsif p&.value&.respond_to?(:close)
379
390
  p.value.close
380
391
  end
392
+ true
381
393
  end
394
+ GC.start
382
395
  end #}}}
383
396
 
384
397
  def test_condition(mr,code,args)
@@ -1 +1 @@
1
- 383721
1
+ 1105683
@@ -1 +1 @@
1
- 383730
1
+ 1105692
@@ -1 +1 @@
1
- 383727
1
+ 1105689
@@ -1 +1 @@
1
- 383724
1
+ 1105686
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: 2.1.49
4
+ version: 2.1.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2023-08-24 00:00:00.000000000 Z
13
+ date: 2023-10-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl