machinery v0.12.1 Machinery.Transition View Source
Machinery module responsible for control transitions, guard functions and callbacks (before and after). This is meant to be for internal use only.
Link to this section Summary
Functions
Function responsible to run all after_transitions callbacks or fallback to a boilerplate behaviour. This is meant to be for internal use only
Function responsible to run all before_transitions callbacks or fallback to a boilerplate behaviour. This is meant to be for internal use only
Function responsible for checking if the transition from a state to another was specifically declared. This is meant to be for internal use only
Default guard transition fallback to make sure all transitions are permitted unless another existing guard condition exists. This is meant to be for internal use only
This functions will try to trigger persistence, if declared, to the struct changing state. This is meant to be for internal use only
Link to this section Functions
after_callbacks(struct(), atom(), module()) :: struct()
Function responsible to run all after_transitions callbacks or fallback to a boilerplate behaviour. This is meant to be for internal use only.
before_callbacks(struct(), atom(), module()) :: struct()
Function responsible to run all before_transitions callbacks or fallback to a boilerplate behaviour. This is meant to be for internal use only.
declared_transition?(list(), atom(), atom()) :: boolean()
Function responsible for checking if the transition from a state to another was specifically declared. This is meant to be for internal use only.
guarded_transition?(module(), struct(), atom()) :: boolean()
Default guard transition fallback to make sure all transitions are permitted unless another existing guard condition exists. This is meant to be for internal use only.
persist_struct(struct(), atom(), module()) :: struct()
This functions will try to trigger persistence, if declared, to the struct changing state. This is meant to be for internal use only.