Patent ID: 8127178

Claim:
An image forming apparatus comprising: a detection unit adapted to detect data which is input to any one of a plurality of storage areas; an input process specifying unit adapted to specify a process registered in association with the storage area to which the data is input; a process execution unit adapted to execute the process, for the data which is input to the storage area, specified by the input process specifying unit in accordance with detection of said detection unit; an error event generation unit adapted to generate an error event to execute an error process when an error is detected during execution of the process by said process execution unit, wherein said error event generation unit generates a user error event based on user settings if an error process script is set in the storage area, and generates a system error event if the error process script is not set in the storage area; an error process specifying unit adapted to specify, based on the error event generated by the error event generation unit, an error process registered in association with the storage area to which the data is input; and an error process execution unit adapted to execute the error process specified by the error process specifying unit.