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