Method: AWS::SimpleWorkflow::WorkflowExecutionCollection#count
- Defined in:
- lib/aws/simple_workflow/workflow_execution_collection.rb
#count(options = {}) ⇒ Count
Note:
You may only pass one of the following options: :workflow_id, :workflow_type, :tagged or :status with a “closed” value (:status with :open is okay).
Note:
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Returns the number of workflow executions within the domain that meet the specified filtering criteria. Counts can be truncated so you should check the return value.
count = domain.workflow_executions.count
puts(count.truncated? ? "#{count.to_i}+" : count.to_i)
470 471 472 473 474 475 476 477 |
# File 'lib/aws/simple_workflow/workflow_execution_collection.rb', line 470 def count = {} open_or_closed, client_opts = () client_method = :"count_#{open_or_closed}_workflow_executions" response = client.send(client_method, client_opts) Count.new(response.data['count'], response.data['truncated']) end |