()
| 283 | } |
| 284 | |
| 285 | func (s *sequenceState) isTerminalState() bool { |
| 286 | isFinal := s.currentState() == sequenceTerminalState |
| 287 | if isFinal { |
| 288 | err := s.fsm.Fire(resetTransition) |
| 289 | if err != nil { |
| 290 | log.Warnf("unable to transition to initial state: %v", err) |
| 291 | } |
| 292 | } |
| 293 | return isFinal |
| 294 | } |
| 295 | |
| 296 | func (s *sequenceState) isInitialState() bool { |
| 297 | return s.currentState() == s.initialState |