lib/cpee/processtransformation/structures.rb in cpee-1.3.144 vs lib/cpee/processtransformation/structures.rb in cpee-1.3.145

- old
+ new

@@ -79,17 +79,18 @@ end class Alternative < Array #{{{ include Container attr_accessor :condition, :condition_type - attr_reader :id + attr_reader :id, :attributes def condition?; true; end def initialize(id) @container = true @id = id @condition = [] @condition_type = nil + @attributes = {} end end #}}} class Branch < Array #{{{ include Container attr_reader :id @@ -412,10 +413,10 @@ end def find_endnode # supress loops trcs = self.dup - trcs.delete_if { |t| t.uniq.length < t.length } + # trcs.delete_if { |t| t.uniq.length < t.length } # find common node (except loops) enode = nil unless trcs.empty? trcs.first.each do |n|