Sha256: 8a69da5fe21d955e875390c4ec8c8d54be0780c332bed4f1266be6448f119b96

Contents?: true

Size: 513 Bytes

Versions: 34

Compression:

Stored size: 513 Bytes

Contents

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
factor-0.1.10 lib/runtime/workflow.rb
factor-0.1.09 lib/runtime/workflow.rb
factor-0.1.07 lib/runtime/workflow.rb
factor-0.1.06 lib/runtime/workflow.rb
factor-0.1.05 lib/runtime/workflow.rb
factor-0.1.04 lib/runtime/workflow.rb
factor-0.1.03 lib/runtime/workflow.rb
factor-0.1.02 lib/runtime/workflow.rb
factor-0.1.01 lib/runtime/workflow.rb
factor-0.1.00 lib/runtime/workflow.rb
factor-0.0.99 lib/runtime/workflow.rb
factor-0.0.98 lib/runtime/workflow.rb
factor-0.0.97 lib/runtime/workflow.rb
factor-0.0.96 lib/runtime/workflow.rb
factor-0.0.95 lib/runtime/workflow.rb
factor-0.0.94 lib/runtime/workflow.rb
factor-0.0.93 lib/runtime/workflow.rb
factor-0.0.92 lib/runtime/workflow.rb
factor-0.0.91 lib/runtime/workflow.rb
factor-0.0.90 lib/runtime/workflow.rb