I am currently writing a generic statemachine. But I have a couple of understanding problems.
Say I have a state A. A transitions to B if a condition is met. A also has a substate A1. A1 transitions to state C if a condition is met.
Do I transition to B or C if both conditions are met and the active state is A1? Also do I have to run the repetitive running task of A since A is technically also active?