You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -199,10 +199,11 @@ Local transition doesn't cause exit and entry to target state if target is a sup
199
199
state.
200
200
201
201
Use `type` argument or property of transition builder functions to set transition type:
202
+
202
203
```kotlin
203
204
transition<SwitchEvent> {
204
-
type =EXTERNAL
205
-
targetState = state2
205
+
type =EXTERNAL
206
+
targetState = state2
206
207
}
207
208
```
208
209
@@ -407,12 +408,13 @@ Notifications about finishing are available in two forms:
407
408
}
408
409
}
409
410
```
410
-
411
+
411
412
Transitionfor `FinishedEvent` is detected by the library and matched by special kind of `EventMatcher`,
412
413
so such transition is triggered only for `FinishedEvent` that corresponds to this state.
413
414
`FinishingEvent` generated by finishing of another state will not trigger such transition.
414
415
415
-
If `FinalState` that triggered `FinishedEvent` is also a `DataState` then its data field will be copied into `FinishedEvent`.
416
+
If `FinalState` that triggered `FinishedEvent` is also a `DataState` then its `data` field will be copied
417
+
into `FinishedEvent`.
416
418
See [transition on FinishedEvent sample](https://github.com/nsk90/kstatemachine/tree/master/samples/src/main/kotlin/ru/nsk/samples/FinishedEventSample.kt)
0 commit comments