Sha256: 02ac81068034db5eab7360e816614d51f3fb2d1ca70a20315093b02dafe81897

Contents?: true

Size: 1.01 KB

Versions: 26

Compression:

Stored size: 1.01 KB

Contents

module Foobara
  module Persistence
    class EntityBase
      class Transaction
        class StateMachine < Foobara::StateMachine
          # TODO: make these outer braces optional somehow
          set_transition_map({
                               unopened: {
                                 open: :open,
                                 close: :closed
                               },
                               open: {
                                 # TODO: maybe call this something involving "checkpoint"?
                                 flush: :open,
                                 revert: :open,
                                 close: :closed,
                                 # TODO: should we have intermediate states to quickly get out of the open state?
                                 rollback: :closed,
                                 commit: :closed,
                                 error: :closed
                               }
                             })
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.25 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.24 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.23 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.22 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.21 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.20 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.19 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.18 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.17 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.16 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.15 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.14 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.13 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.12 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.11 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.10 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.9 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.8 projects/persistence/src/entity_base/transaction/state_machine.rb
foobara-0.0.7 projects/persistence/src/entity_base/transaction/state_machine.rb