class AWS::SimpleWorkflow::HistoryEventCollection


methods and their options.
See {Core::Collection} for documentation on the standard enumerable
single workflow execution.
This collection represents the history events ({HistoryEvent}) for a

def _each_item next_token, limit, options = {}, &block

def _each_item next_token, limit, options = {}, &block
  options[:domain] = workflow_execution.domain.name
  options[:execution] = {
    :workflow_id => workflow_execution.workflow_id,
    :run_id => workflow_execution.run_id,
  }
  options[:maximum_page_size] = limit if limit
  options[:next_page_token] = next_token if next_token
  options[:reverse_order] = @reverse_order unless
    options.has_key?(:reverse_order)
  response = client.get_workflow_execution_history(options)
  response.data['events'].each do |desc|
    event = HistoryEvent.new(workflow_execution, desc)
    yield(event)
  end
  response.data['nextPageToken']
end

def initialize workflow_execution, options = {}

Options Hash: (**options)
  • :reverse_order (Boolean) -- When true,

Parameters:
  • options (Hash) --
  • workflow_execution (WorkflowExecution) -- The execution this
def initialize workflow_execution, options = {}
  @workflow_execution = workflow_execution
  @reverse_order = options.key?(:reverse_order) ?
    !!options[:reverse_order] : false
  super
end

def reverse_order

Returns:
  • (WorkflowExecutionCollection) - Returns a collection that
def reverse_order
  self.class.new(workflow_execution, :reverse_order => true)
end