State diagram in training activity