Creating A Transition

  1. Right click on the state to create a transition.
  2. Select Add Transition from the popup menu. A transition is created from the specified state and connected to the mouse. Drag the mouse to the state to connect and click to connect the transition.

Life Cycle Transition Methods

Life Cycle Transitions can be configured with pre and post methods.

The pre-methods are executed before the transition to the new state takes place. They are commonly used for validation purposes. If the pre-method fails or throws an error, the transition does not happen.

The post-methods are executed after the transition is completed, and they include two options that can be configured during Life Cycle setup: in-scope and out-of-scope.

By default, post methods are configured to be out of-of-scope. This means that if the method fails during execution, the transaction is not rolling back.

Configuring the post-method to be in-scope means that if the method fails, the transaction is going to roll back to the starting stage.