Annotation Type Transition
-
@Retention(RUNTIME) @Target(METHOD) public @interface TransitionAnnotation used on methods to indicate that the method handles a specific kind of event when in a specific state.
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringSELFThe self transition
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]inThe id of the state or states that this handler applies to.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringnextThe id of the state theStateMachineshould move to next after executing the annotated method.java.lang.String[]onSpecifies the ids of one or more events handled by the annotated method.intweightThe weight used to order handler annotations which match the same event in the same state.
-
-
-
-
next
java.lang.String next
The id of the state theStateMachineshould move to next after executing the annotated method. If not specified theStateMachinewill remain in the same state.- Returns:
- the id of the next state
- Default:
- "__self__"
-
-