Method: AWS::SimpleWorkflow::WorkflowExecutionCollection#closed_after

Defined in:
lib/aws/simple_workflow/workflow_execution_collection.rb

#closed_after(time) ⇒ WorkflowExecutionCollection

Note:

It is not possible to filter by both start time and close time.

Filters workflow executions by their close date.

# executions that closed within the last hour
domain.workflow_executions.closed_after(Time.now - 3600)

Parameters:

  • time (Time, DateTime, Date, Integer, String)

    Should be one of the listed types. Integers are treated as timestamps and strings are parsed by DateTime.

Returns:

  • (WorkflowExecutionCollection)

    Returns a colleciton that will only enumerate or count executions that closed after the given time.



373
374
375
# File 'lib/aws/simple_workflow/workflow_execution_collection.rb', line 373

def closed_after time
  collection_with(:closed_after => time)
end