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
CodeMeister edited this page Feb 28, 2023
·
1 revision
There are occasions when it's beneficial to be able to force the change from
one state to another:
When unit testing transitions, it's enourmously helpful to be able to set
the initial state.
In production, it occasionally happens that an individual record needs to be
manually updated. Being able to set the state directly allows updating from the
console, rather than the databse.
When demonstrating a new feature, scenario walkthroughs can be easily configred
in real time.
:force_<state>
Prepending the state name with force_ will by-pass transition checking and
directly set the new state.