Vegetative apical meristems transition to reproductive ones pass through induction, evocation, division, differentiation and flower organs growth to flower anthesis, which stage is the sex determining?
That can be induced by photoperiod, temperature and chemical treatment.
From that paper:
1. Alterations in organ initiation patterns, from floral to vegetative and back to floral, are characteristic of a reversion phenomenon.
2. "Reversion of flowering occurs when production of vegetative structures is resumed in a meristem after floral development has been initiated (Battey and Lyndon, 1990; Lyndon, 1998). It is possible for leaf production to resume at any time during flower initiation as long as the shoot apical meristem has not yet become completely determined for flower formation (Lyndon, 1990). Reversion is a result of changes in inductive and non-inductive stimuli that generate an initial, but insufficient, floral signal to maintain morphological floral development (Pouteau et al., 1997). Stimuli capable of evoking a reversion event include manipulations in photoperiod, temperature and chemical treatments."