cpee 1.3.148 → 1.3.149
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 +4 -4
- data/cpee.gemspec +1 -1
- data/lib/cpee/processtransformation/bpmn2.rb +10 -6
- data/lib/cpee/processtransformation/structures.rb +21 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b09e6b420f5ba75b5250cb7ee85760ef127d0271
|
4
|
+
data.tar.gz: 16f53a36334e46830224445c5fe4f1b7c3aebaf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb8dbe1ba4db3dbbec74f5ca328b4dca71edb9971bad971e7caedea60159bcb5cc0bc55112da8f21d4ebcfa5d8a1d007690f7dd77299b8ca4fa5a7b2c5013a1a
|
7
|
+
data.tar.gz: cd6d8ae87b13ac959b42c7418c4b5e4330c7cff4a72ef37069a34961884dc3002f7bef2663f549854dddb88f82e6a76b60430397a83f1c4b61d7cbeaa1376c60
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
3
|
+
s.version = "1.3.149"
|
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"
|
@@ -141,7 +141,7 @@ module CPEE
|
|
141
141
|
@tree
|
142
142
|
end #}}}
|
143
143
|
|
144
|
-
def
|
144
|
+
def build_extraces(traces, node) #{{{
|
145
145
|
dupt = traces.last.dup
|
146
146
|
@graph.next_nodes(node).each_with_index do |n,i|
|
147
147
|
traces << dupt.dup if i > 0
|
@@ -173,6 +173,10 @@ module CPEE
|
|
173
173
|
end #}}}
|
174
174
|
private :map_node
|
175
175
|
|
176
|
+
def print_node(niceid)
|
177
|
+
@graph.find_node(niceid)
|
178
|
+
end
|
179
|
+
|
176
180
|
def build_ttree(branch,traces,enode=nil,debug=false,down=0)
|
177
181
|
while not traces.finished?
|
178
182
|
### if traces exist more than once, make it so they exist only once
|
@@ -221,7 +225,7 @@ module CPEE
|
|
221
225
|
puts '--> down loop1 to ' + (down + 1).to_s if debug
|
222
226
|
loops.remove_empty
|
223
227
|
build_ttree branch.last, loops.dup, nil, debug, down + 1
|
224
|
-
puts '--> up loop1 from ' + down.to_s if debug
|
228
|
+
puts '--> up loop1 from ' + (down + 1).to_s if debug
|
225
229
|
else
|
226
230
|
### dont remove it, treat it as a normal conditional
|
227
231
|
### an infinite loop that can only be left by break is created
|
@@ -232,7 +236,7 @@ module CPEE
|
|
232
236
|
loops.add_breaks
|
233
237
|
puts '--> down loop2 to ' + (down + 1).to_s if debug
|
234
238
|
build_ttree branch.last, loops.dup, nil, debug, down + 1
|
235
|
-
puts '--> up loop2 from ' + down.to_s if debug
|
239
|
+
puts '--> up loop2 from ' + (down + 1).to_s if debug
|
236
240
|
### set outgoing to number of loops (without the break) so that it can be ignored (should be 1 all the time)
|
237
241
|
node.outgoing -= len
|
238
242
|
end
|
@@ -242,7 +246,7 @@ module CPEE
|
|
242
246
|
traces.segment_by_loops loops
|
243
247
|
puts '--> down loop3 to ' + (down + 1).to_s if debug
|
244
248
|
build_ttree branch, loops.dup, nil, debug, down + 1
|
245
|
-
puts '--> up loop3 from ' + down.to_s if debug
|
249
|
+
puts '--> up loop3 from ' + (down + 1).to_s if debug
|
246
250
|
end
|
247
251
|
traces.remove(loops)
|
248
252
|
traces.remove_empty
|
@@ -256,11 +260,11 @@ module CPEE
|
|
256
260
|
if trcs.finished?
|
257
261
|
puts '--> branch down to ' + (down + 1).to_s if debug
|
258
262
|
build_ttree nb, Traces.new([[Break.new(1)]]), endnode, debug, down + 1
|
259
|
-
puts '--> branch up from ' + down.to_s if debug
|
263
|
+
puts '--> branch up from ' + (down + 1).to_s if debug
|
260
264
|
else
|
261
265
|
puts '--> branch down to ' + (down + 1).to_s if debug
|
262
266
|
build_ttree nb, trcs, endnode, debug, down + 1
|
263
|
-
puts '--> branch up from ' + down.to_s if debug
|
267
|
+
puts '--> branch up from ' + (down + 1).to_s if debug
|
264
268
|
end
|
265
269
|
endnode.incoming -= 1 unless endnode.nil?
|
266
270
|
end
|
@@ -167,6 +167,10 @@ module CPEE
|
|
167
167
|
class Graph #{{{
|
168
168
|
attr_reader :flow, :nodes
|
169
169
|
|
170
|
+
def find_node(niceid)
|
171
|
+
@nodes.find{|k,v| v.niceid == niceid }
|
172
|
+
end
|
173
|
+
|
170
174
|
def initialize
|
171
175
|
@nodes = {}
|
172
176
|
@links = []
|
@@ -303,6 +307,17 @@ module CPEE
|
|
303
307
|
(n = self.map{|t| t.first }.uniq).length == 1 ? n.first : nil
|
304
308
|
end
|
305
309
|
|
310
|
+
# future use
|
311
|
+
def incoming
|
312
|
+
if node = self.same_first
|
313
|
+
tcount = 1
|
314
|
+
self.each{|t| tcount += 1 if t.first == t.last }
|
315
|
+
tcount
|
316
|
+
else
|
317
|
+
raise "Wrong Question"
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
306
321
|
def include_in_all?(e)
|
307
322
|
num = 0
|
308
323
|
self.each{|n| num += 1 if n.include?(e)}
|
@@ -388,12 +403,17 @@ module CPEE
|
|
388
403
|
end
|
389
404
|
end
|
390
405
|
|
406
|
+
# all before the largest common are just copied, so incoming should be 1
|
407
|
+
sh.each do |e|
|
408
|
+
break if e == max
|
409
|
+
e.incoming = 1
|
410
|
+
end
|
411
|
+
|
391
412
|
# if last is the largest common do nothing
|
392
413
|
# else append from last to largest common
|
393
414
|
self.each do |t|
|
394
415
|
unless t.last == max
|
395
416
|
last = t.last
|
396
|
-
t.last.incoming = 1
|
397
417
|
if t.index(last) && t.index(max)
|
398
418
|
(t.index(last) + 1).upto(t.index(max)) do |i|
|
399
419
|
t << t[i]
|
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.
|
4
|
+
version: 1.3.149
|
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-08-
|
13
|
+
date: 2014-08-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: riddl
|