If you understand the following you will have the answer.
Step no 8 related to your question.
Mind in its passive and active forms
The mind occurs in both passive and active modes. The passive gives way to the active when a stimulus is received through one of the sense doors. The passive state of mind is called bhava"nga, cuti, or paa.tisandhi, according to the occasion.
Bhava"nga. The bhava"nga citta, mentioned earlier, is the primary form of mind. It flows from conception to death except when interrupted by a stimulus through one of the sense doors. When a stimulus enters, consciousness becomes active, launching into a thought process (citta viithi). Thought processes have been analyzed in great detail in the Abhidhamma.
A complete thought process, occurring through the physical sense doors, is made up of seventeen thought moments (citta kha.na). These are:
1.A bhava"nga that flows by in a passive state when one of the five physical sense organs comes in contact with its object (atiita bhava"nga).
2.A bhava"nga that vibrates for one thought moment (bhava"nga calana).
3.A bhava"nga that cuts off the flow (bhava"nga upaccheda).
4.A citta that turns towards the object through the sense door that has been stimulated (pañcadvaara-vajjana).
5.The appropriate sense consciousness; in the case of the eye, for example, eye consciousness (cakkhu viññaa.na).
6.Next a thought moment — the sampa.ticchana citta — which has the function of receiving the object.
7.When the object has been received another thought moment, called the santiirana citta, arises, performing the function of investigating the object.
8.The act (kamma) itself, especially if it was a weighty one.
9 to 15.The object having been determined, the most important stage from an ethical standpoint follows. This stage, called javana, consists of seven consecutive thought moments all having an identical nature. It is at this stage that good or evil is done, depending on whether the cittas have wholesome or unwholesome roots. Therefore, these javana thought moments have roots and also produce new kamma.16 and 17.Following the seventh javana the registering stage occurs, composed of two thought moments called tadaalambane. When the second registering citta has perished, the bhava"nga follows, flowing on until interrupted by another http://www.accesstoinsight.org/lib/auth ... el322.html