lib/sequent/core/command_service.rb
def process_command(command)
        filters.each { |filter| filter.execute(command) }

        raise CommandNotValid.new(command) unless command.valid?
        parsed_command = command.parse_attrs_to_correct_types
        command_handlers.select { |h| h.class.handles_message?(parsed_command) }.each { |h| h.handle_message parsed_command }
        repository.commit(parsed_command)
      end
# Executes the given commands in a single transactional block as implemented by the +transaction_provider+
#
# For each command:
#
# * All filters are executed. Any exception raised will rollback the transaction and propagate up
# * If the command is valid all +command_handlers+ that +handles_message?+ is invoked
# * The +repository+ commits the command and all uncommitted_events resulting from the command
Executes the given commands in a single transactional block as implemented by the +transaction_provider+
For each command.

All filters are executed.
Executes the given commands in a single transactional block as implemented by the + transaction_provider + For each command . All filters are executed .
def process_command(command)
        filters.each { |filter| filter.execute(command) }
        raise CommandNotValid.new(command) unless command.valid?
        parsed_command = command.parse_attrs_to_correct_types
        command_handlers.select { |h| h.class.handles_message?(parsed_command) }.each { |h| h.handle_message parsed_command }
        repository.commit(parsed_command)
      end
def process_command ( command ) filters . each { | filter | filter . execute ( command ) } raise CommandNotValid . new ( command ) unless command . valid? parsed_command = command . parse_attrs_to_correct_types command_handlers . select { | h | h . class . handles_message? ( parsed_command ) } . each { | h | h . handle_message parsed_command } repository . commit ( parsed_command ) end
Executes the given commands in a single transactional block as implemented by the +transaction_provider+
For each command:
Executes the given commands in a single transactional block as implemented by the + transaction_provider + For each command :
command