cpee 1.3.160 → 1.3.161

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
  SHA1:
3
- metadata.gz: 1db33f357360202a3eebfe4f375eb149fc5e6d1f
4
- data.tar.gz: 83c7b07ca81a93a19d2d4062582728ef1dbc4a29
3
+ metadata.gz: 6ef65374496115f24fd4a4fdb02bc42c3055b814
4
+ data.tar.gz: a2f11dc883cd25ee613ccb62a86250abe3b7e685
5
5
  SHA512:
6
- metadata.gz: 0e16f74611ae052df0e6e2b79cdbc8c4e82cb588839ac132b062610c71476bb816fedc0c789fbb23362803c81b1e489301d434294c8b577def9d7cda66037faf
7
- data.tar.gz: 8d734498c1a896361ee8150d7cfb728001df38e032368ae7b03197cb1cd688e5d0c99a8fe840b4ec7f31a57cd46b37e08271c1eb82cf047784fce8cedead5f10
6
+ metadata.gz: 6e23286343b0e21ad4d236b3eb07a3a411bad2b868f4a413881959aefc90b292b291b2be0dcbedcc828b67485afe662d766c9001de8dff248bebf89191682a5c
7
+ data.tar.gz: d75b21cf9dfd7628ecab3786ec6c4c10c543da136f0347d8193726da9e7e7ed49b969973e9b96051d0fb7f2ddae1683f60c923591074c0d93a59d4003cb9af6c
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.160"
3
+ s.version = "1.3.161"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
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"
@@ -223,14 +223,20 @@ module CPEE
223
223
  ### duplicate because we need it later to remove all the shit from traces
224
224
  lops = loops.dup
225
225
  ### remove the exclusive gateway because we no longer need it
226
- lops.add_breaks(self.object_id)
227
- lops.shift_all
226
+ unless traces.all_loops?
227
+ lops.add_breaks(self.object_id,node.type == :exclusiveGateway)
228
+ end
229
+ traces.remove(loops)
230
+ if node.type == :exclusiveGateway
231
+ lops.shift_all
232
+ traces.shift_all
233
+ else
234
+ lops.pop_all
235
+ end
228
236
  ### add the blank conditional to get a break
229
237
  puts '--> down head_loop to ' + (down + 1).to_s if debug
230
238
  build_ttree branch, lops, nil, debug, down + 1
231
239
  puts '--> up head_loop from ' + (down + 1).to_s if debug
232
- traces.remove(loops)
233
- traces.shift_all
234
240
  else
235
241
  ### throw away the loop traces, remove loop traces from front of all other traces
236
242
  traces.segment_by_loops loops
@@ -337,11 +337,11 @@ module CPEE
337
337
  num == self.length
338
338
  end
339
339
 
340
- def add_breaks(context)
340
+ def add_breaks(context,front=true)
341
341
  trueloops = self.find_all{ |t| t.last == t.first }.length
342
342
  tb = Break.new(context)
343
343
  if trueloops == self.length
344
- self << [nil,tb]
344
+ self << (front ? [nil,tb] : [tb,nil])
345
345
  else
346
346
  self.each do |t|
347
347
  t << tb unless t.last == t.first ### an explicit break
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.3.160
4
+ version: 1.3.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-10 00:00:00.000000000 Z
13
+ date: 2014-10-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl