Auto-Transition

In a single transition from one state to another, the system first executes the Exit algorithms of the current state, transitions the entity to the new state, executes the Enter algorithms of the new state followed by its Monitor algorithms. At this point if a Monitor algorithm determines that the entity should be further automatically transitioned to another state the remaining monitoring algorithm defined for the current state are not executed and the system initiates yet another transition cycle.

Notice that an Enter algorithm can also tell the system to automatically transition the entity to another state. In this case the remaining Enter algorithm as well as all Monitor algorithms defined for the current state are not executed.

The following illustration provides an example of an auto-transition chain of events.

Example: Auto-transition chain of events

In this example a business entity is in a Pending state. While in that state a Monitor algorithm determines to auto-transition it to the Denied state. At this point the following takes place:

  • No further Monitor algorithms of the Pending state are executed
  • Pending state Exit algorithms are executed
  • The system transitions the entity to the Denied state
  • Denied state Enter algorithms are executed. No further auto-transition is requested.
  • Denied state Monitor algorithms are executed. No further auto-transition is requested.