1. An image forming apparatus in which a specific process to be executed for information that is put into one of a plurality of storage areas can be set every storage area, comprising: a detecting unit configured to detect the input of the information into one of the storage areas; a setting unit configured to set history information of a process accompanied with the execution of the specific process into attribute information of the information; a loop discriminating unit configured to, if the input of the information into one of the storage areas is detected by the detecting unit, discriminate whether or not loop information showing a loop state where the same specific process is repeated while moving the information between the ones of the storage areas has been set in the history information set into the attribute information of the information which is put; and a process executing unit configured to execute a first process for executing the specific process if it is determined by the loop discriminating unit that the loop information is not set in the history information and execute a second process different from the first process if it is determined that the loop information has been set.