Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fsm/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ type Notification struct {
NextState StateType
// Event is the event that was processed.
Event EventType
// EventContext is the event context that was processed.
EventContext EventContext
// LastActionError is the error returned by the last action executed.
LastActionError error
}
Expand Down Expand Up @@ -222,6 +224,7 @@ func (s *StateMachine) SendEvent(event EventType, eventCtx EventContext) error {
PreviousState: s.previous,
NextState: s.current,
Event: event,
EventContext: eventCtx,
LastActionError: s.LastActionError,
}

Expand Down
Loading