cpee-instantiation 1.1.4 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 206809602ed34edfa0348fe01af686f07a728ae0796af92b9c889195dbb2cd92
4
- data.tar.gz: 4abf6ca630a0f32cb8932508f17ffdb9a02ecda82ad9bca7bc40ed333e64b23b
3
+ metadata.gz: e8e16d204b34a37277bd75a4971eb72716af21f4c6792f6f4281d15c61d53bd6
4
+ data.tar.gz: 1e34b02335ca3242cc7c915ccceb8422b0653e057877afd385ad20717ce08785
5
5
  SHA512:
6
- metadata.gz: b6fcb313df7db5a711276c6819a28ffdac5a34276ab4e2b9128d1cad08f9f62b71563a756e353b46f5be5ec175e68f3bd12c465f4bc42782f2d2cb74ecc644d5
7
- data.tar.gz: 7dfe51ff851b6de41ea804c4e48536da2257e81e6c56f2bc6caa0bc8a1ef34566a20301be3c7e421112f4aaa887cd349428d6a88440f66c687dab19af100053c
6
+ metadata.gz: 26b3f9c3f8cabc8fca64353fc267a6b6a5cfd0249a7f10f63d863f621b098e8809c231819fa44aba5083cccaae2a7158c7e950314f93ee84b3d8c7e735e8d449
7
+ data.tar.gz: 659bd9d0d59e35f75fe7b2e7d762322870ac934f1a3769b9e89a1185936531adfdd6ddf82bfe12c7f4e51eaaa5d4cfc826c2d866d126e64b6a97273f81f4beff
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-instantiation"
3
- s.version = "1.1.4"
3
+ s.version = "1.1.5"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Subprocess instantiation service for the cloud process execution engine (cpee.org)"
@@ -36,7 +36,8 @@ module CPEE
36
36
 
37
37
  def add_to_testset(tdoc,what,data) #{{{
38
38
  if data && !data.empty?
39
- JSON::parse(data).each do |k,v|
39
+ data = JSON::parse(data) if data.is_a? String
40
+ data.each do |k,v|
40
41
  ele = tdoc.find("/*/prop:#{what}/prop:#{k}")
41
42
  if ele.any?
42
43
  ele.first.text = CPEE::ValueHelper::generate(v)
@@ -53,7 +54,7 @@ module CPEE
53
54
  end
54
55
  end #}}}
55
56
 
56
- def augment_testset(tdoc,p) #{{{
57
+ def augment_testset(tdoc,p,h) #{{{
57
58
  tdoc = XML::Smart.string(tdoc)
58
59
  tdoc.register_namespace 'desc', 'http://cpee.org/ns/description/1.0'
59
60
  tdoc.register_namespace 'prop', 'http://cpee.org/ns/properties/2.0'
@@ -68,6 +69,13 @@ module CPEE
68
69
  if data = p.find{ |e| e.name == 'attributes' }&.value
69
70
  add_to_testset(tdoc,'attributes',data)
70
71
  end
72
+ data = {}
73
+ data['parent_instance'] = h['CPEE_INSTANCE'] if h['CPEE_INSTANCE']
74
+ data['parent_instance_uuid'] = h['CPEE_INSTANCE_UUID'] if h['CPEE_INSTANCE_UUID']
75
+ data['parent_instance_model'] = h['CPEE_ATTR_INFO'] if h['CPEE_ATTR_INFO']
76
+ data['parent_instance_task_id'] = h['CPEE_ACTIVITY'] if h['CPEE_ACTIVITY']
77
+ data['parent_instance_task_label'] = h['CPEE_LABEL'] if h['CPEE_LABEL']
78
+ add_to_testset(tdoc,'attributes',data)
71
79
  tdoc
72
80
  end #}}}
73
81
 
@@ -170,7 +178,7 @@ module CPEE
170
178
  end
171
179
  customization = @p.find{ |e| e.name == 'customization' }&.value
172
180
 
173
- doc = augment_testset(tdoc,@p)
181
+ doc = augment_testset(tdoc,@p,@h)
174
182
  customize_testset(customization,doc)
175
183
  cbk, condition = add_waiting_to_testset(behavior,@h['CPEE_CALLBACK'],doc,selfurl)
176
184
  add_running_to_testset(behavior,doc)
@@ -197,7 +205,7 @@ module CPEE
197
205
  end
198
206
  customization = @p.find{ |e| e.name == 'customization' }&.value
199
207
 
200
- doc = augment_testset(tdoc,@p)
208
+ doc = augment_testset(tdoc,@p,@h)
201
209
  customize_testset(customization,doc)
202
210
  cbk, condition = add_waiting_to_testset(behavior,@h['CPEE_CALLBACK'],doc,selfurl)
203
211
  add_running_to_testset(behavior,doc)
@@ -221,7 +229,7 @@ module CPEE
221
229
  @p[data].value.read
222
230
  end
223
231
 
224
- doc = augment_testset(tdoc,@p)
232
+ doc = augment_testset(tdoc,@p,@h)
225
233
  cbk, condition = add_waiting_to_testset(behavior,@h['CPEE_CALLBACK'],doc,selfurl)
226
234
  add_running_to_testset(behavior,doc)
227
235
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-instantiation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  - Heinrich Fenkart
9
9
  bindir: tools
10
10
  cert_chain: []
11
- date: 2025-04-28 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riddl
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.6.2
111
+ rubygems_version: 3.6.7
112
112
  specification_version: 4
113
113
  summary: Subprocess instantiation service for the cloud process execution engine (cpee.org)
114
114
  test_files: []