lib/end_state/transition.rb in end_state-0.2.0 vs lib/end_state/transition.rb in end_state-0.3.0

- old
+ new

@@ -1,8 +1,8 @@ module EndState class Transition - attr_reader :state + attr_reader :state, :blocked_event_message attr_accessor :action, :guards, :finalizers def initialize(state) @state = state @action = Action @@ -38,9 +38,13 @@ finalizers << finalizer end def persistence_on finalizer Finalizers::Persistence + end + + def blocked(message) + @blocked_event_message = message end private def rollback(finalized, object, previous_state, params)