Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is different with Transitions external internal and local ? in Spring doc 11.5 Configuring Transitions

11.5 Configuring Transitions We support three different types of transitions, external, internal and local. Transitions are either triggered by a signal which is an event sent into a state machine or a timer. I donot konw what is different .

like image 810
Hunter Avatar asked Apr 06 '19 04:04

Hunter


People also ask

Is transition internal or external?

Transition is the psychological process people go through to come to terms with the new situation. Change is external, transition is internal.”

What is spring Statemachine?

Spring Statemachine is a framework for application developers to use state machine concepts with Spring applications. Spring Statemachine aims to provide following features: Easy to use flat one level state machine for simple use cases. Hierarchical state machine structure to ease complex state configuration.


1 Answers

Internal

You can think of internal transition as self-transition - from A to A; Source and target state are always the same.

Local and External

Most of the time these two are equivalent, with the exception of when transitioning between super and sub-states. Local transition doesn’t cause exit and entry to source state if target state is a substate of a source state or if the target is a superstate of a source state.

Please consult the official UML specification (section 14.5.11 - Transition class, especially - Constraints section, where the above is formally defined) upon which the Spring state machine is implemented.

like image 67
hovanessyan Avatar answered Oct 02 '22 12:10

hovanessyan