lib/cpee/processtransformation/structures.rb in cpee-1.3.134 vs lib/cpee/processtransformation/structures.rb in cpee-1.3.136
- old
+ new
@@ -22,15 +22,16 @@
module ProcessTransformation
class Link #{{{
attr_accessor :from, :to
- attr_reader :condition
+ attr_reader :condition, :attributes
def initialize(from,to,cond=nil)
@from = from
@to = to
@condition = cond
+ @attributes = {}
end
end #}}}
module Container
def container?
@@ -292,9 +293,14 @@
def include_in_all?(e)
num = 0
self.each{|n| num += 1 if n.include?(e)}
num == self.length
+ end
+
+ def infinite_loop_fix
+ self << self.first.dup
+ self.last.pop
end
def add_breaks
trueloops = self.find_all{ |t| t.last == t.first }.length
if trueloops == self.length