We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ab40fe + 93413ff commit 32ab262Copy full SHA for 32ab262
fsm/fsm.go
@@ -76,6 +76,8 @@ type Notification struct {
76
NextState StateType
77
// Event is the event that was processed.
78
Event EventType
79
+ // EventContext is the event context that was processed.
80
+ EventContext EventContext
81
// LastActionError is the error returned by the last action executed.
82
LastActionError error
83
}
@@ -222,6 +224,7 @@ func (s *StateMachine) SendEvent(event EventType, eventCtx EventContext) error {
222
224
PreviousState: s.previous,
223
225
NextState: s.current,
226
Event: event,
227
+ EventContext: eventCtx,
228
LastActionError: s.LastActionError,
229
230
0 commit comments