require 'rubygems' module Factor module Runtime class Workflow attr_accessor :definition attr_reader :name def initialize(definition) @definition=definition @name = @definition["name"] end def get_activity(position) last_position=@definition position.each do |section| return nil if last_position[section].nil? last_position=last_position[section] end last_position end end end end