1. Field of the Invention
The present invention relates to an image processing apparatus, a method of controlling the same, and a storage medium storing a program for implementing the method, and more particularly to an image processing apparatus configured to create a processing flow for executing a series of processes and serially execute the processes according to the processing flow.
2. Description of the Related Art
Conventionally, there has been proposed a multifunction peripheral having a scanner function, a printer function, a facsimile transmission function, an e-mail transmission function, and a file transmission function in an integrated fashion. The use of this type of multifunction peripheral makes it possible to link paper-based paperwork carried out using a copying machine or a facsimile machine and processing of an electronic document on a computer. Specifically, it is possible not only to copy a paper document, but also to transmit a scanned document as image data to a personal computer or a file server without printing out the same.
Further, it is desired that after converting a paper document into electronic form, lots of procedures and processes to be executed on the electronic document by a copying machine are automatically performed by linking the electronic document to the procedures and processes. To this end, there has been proposed a technique in which a link template describing desired settings for items to be set by a copying machine is prepared in advance, and processing is performed by designating the template and after modifying settings as required.
For example, a conventional image forming apparatus is capable of storing a plurality of output configuration data items (link templates) for setting respective output forms, and forming and outputting an image according to a selected one of the output configuration data items (see e.g. Japanese Patent Laid-Open Publication No. H10-83263).
Further, there has been proposed a technique of causing an image forming apparatus of the above-mentioned type not only to configure settings for its own functions, but also to configure settings of external apparatuses, such as a printer and a scanner, connected to a network, and association with the external apparatuses, to thereby link processes by the image forming apparatus itself and processes by the external apparatuses (i.e. to create a processing flow) (see e.g. Japanese Patent Laid-Open Publication No. 2004-287861).
However, according to the above-mentioned techniques, once an error has occurred during execution of a processing flow, causing interruption of a series of processes, it is impossible to automatically restart the processing flow even after recovery from the error. Therefore, in order to complete the series of processes, the user is required to accurately determine where in the processing flow the error occurred, and manually cause the processing flow to be resumed from the interrupted point, or to execute the whole processing flow again from the very beginning, which is inconvenient to the user.
The present invention provides an image processing apparatus which is capable of easily and efficiently resuming an interrupted processing flow from an interrupted point, thereby enhancing user friendliness, a method of controlling the image processing apparatus, and a storage medium storing a program for implementing the method.
In a first aspect of the present invention, there is provided an image processing apparatus comprising an execution unit configured to execute a processing flow for sequentially carrying out a plurality of processes, and a recovery processing flow creation unit configured to be operable when execution of the processing flow is interrupted, to create a recovery processing flow for carrying out yet-to-be-executed ones of the processes included in the processing flow, wherein the execution unit executes the recovery processing flow created by the recovery processing flow creation unit.
In a second aspect of the present invention, there is provided a method of controlling an image processing apparatus, comprising executing a processing flow for sequentially carrying out a plurality of processes, creating a recovery processing flow for carrying out yet-to-be-executed ones of the processes included in the processing flow, when execution of the processing flow is interrupted, and executing the created recovery processing flow.
In a third aspect of the present invention, there is provided a computer-readable storage medium storing a program for causing a computer to execute a method of controlling an image processing apparatus, wherein the method comprises executing a processing flow for sequentially carrying out a plurality of processes, creating a recovery processing flow for carrying out yet-to-be-executed ones of the processes included in the processing flow, when execution of the processing flow is interrupted, and executing the created recovery processing flow.
According to the present invention, it is possible to easily and efficiently resume an interrupted processing flow from an interrupted point, to thereby enhance user friendliness.
The features and advantages of the invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings.
The present invention will now be described in detail below with reference to the accompanying drawings showing an embodiment thereof.
First, a description will be given of an image processing apparatus according to the embodiment of the present invention. The image processing apparatus executes an application described hereinafter.
As shown in
Further, the copying machine 101 is connected to a public communication line 108 together with a facsimile machine 107.
The copying machine 101 is provided with a copy function and a facsimile transmission function, as well as a scanning function of reading original images and a data transmission function of transmitting image data obtained by the scanning function to devices on the LAN 106.
The copying machine 101 conforms to the PDL (Page Description Language) (i.e. the copying machine 101 has a PDL print function), so that it can receive PDL data from a computer connected to the LAN 106 and print the data. Further, the copying machine 101 is capable of storing images read by itself and PDL data sent from computers connected to the LAN 106 in a box area in a hard disk drive (HDD) 204 (
The copying machine 101 is also capable of receiving, via the LAN 106, image data read by the copying machine 102 and storing the received data in the HDD 204 of the copying machine 101 and/or printing out the same. Further, the copying machine 101 is capable of receiving image data from the database/mail server/directory service 104 via the client computer 105 and the LAN 106, and storing the image data in the copying machine 101 and/or printing out the same. The facsimile machine 103 is capable of receiving image data read by the copying machine 101 via the LAN 106 and transmitting the received image data.
The database/mail server/directory service 104 is capable of receiving image data read by the copying machine 101, via the LAN 106, and storing the received image data for a database. The database/mail server/directory service 104 is also a server apparatus having a function of transmitting the received image data as an electronic mail and a function of providing directory services.
The client computer 105 is capable of accessing the database/mail server/directory service 104 to acquire desired data from the database/mail server/directory service 104, and displaying the data. Further, the client computer 105 is capable of receiving image data read by the copying machine 101, via the LAN 106, and processing or editing the received image data, as well as capable of accessing the copying machine 101 via the LAN 106 to configure various settings for the copying machine 101.
The facsimile machine 107 is capable of receiving image data read by the copying machine 101 via the public communication line 108 and printing out the received image data.
As shown in
Specifically, the controller unit 200 includes a CPU 201, which starts up an operating system (OS) by a boot program stored in a ROM 203, and executes application programs stored in the HDD 204 on the OS to thereby carry out various operations. A RAM 202 is used as a work area for the CPU 201. The RAM 202 is used by the CPU 201 not only as the work area, but also as an image memory area for temporarily storing image data. The HDD 204 stores the above-mentioned application programs and image data.
Connected to the CPU 201 via a system bus 207 are not only the ROM 203 and the RAM 202 but also an operating section interface (operating section I/F) 206, a network interface (network I/F) 208, a modem 209, and an image bus interface (image bus I/F) 205.
The operating section I/F 206 provides interface for communication with the operating section 220, and image data to be displayed on the operating section 220 is output to the operating section 220. Further, the operating section I/F 206 transfers data input by a user via the operating section 220 to the CPU 201.
The network I/F 208 is connected to the LAN 106 to transmit and receive information to and from devices on the LAN 106 via the LAN 106. The modem 209 is connected to the WAN 108 to transmit and receive information via the WAN 108.
The image bus I/F 205 is a bus bridge that connects the system bus 207 with an image bus 210 that is for use in high-speed transfer of image data, and performs conversion of data format. The image bus 210 is implemented by a PCI bus or an IEEE 1394. On the image bus 210, there are provided a raster image processor (hereinafter referred to as “the RIP”) 211, a device interface (device I/F) 212, a scanner image processing section 213, a printer image processing section 214, an image rotation section 215, and an image compression section 216.
The RIP 211 is a processor that expands PDL data into a bitmap image. The device I/F 212 is connected to the scanner 250 and the printer 300, and performs conversion of image data. The scanner image processing section 213 corrects, manipulates, and edits input image data. The printer image processing section 214 performs correction, resolution conversion, etc. of image data to be printed out, so as for the image data to conform to the printer 300. The image rotation section 215 rotates image data. The image compression section 216 compresses multi-valued image data into JPEG data, and binary image data into JBIG, MMR, or MH-formatted data, as well as performs expansion of the compressed data.
Next, a description will be given of the hardware configuration of the scanner 250 and that of the printer 300.
The scanner 250 and the printer 300 are integrally configured as shown in
The printer 300 is provided with a laser driver 301. The laser driver 301 drives a laser emission section 302 based on the image data input from the control device. The laser emission section 302 generates and emits a laser beam according to the image data, which is irradiated onto a photosensitive drum 303 to scan the same. On the photosensitive drum 303, an electrostatic latent image is formed according to the irradiated laser beam, and this electrostatic latent image is visualized as a toner image by toner supplied from a development device 304. In timing synchronous with the irradiation of the laser beam, a recording sheet is fed from one of cassettes 305 and 306 into a space between the photosensitive drum 303 and a transfer section 307 through a predetermined conveying passage, and the toner image on the photosensitive drum 303 is transferred onto the recording sheet fed by the transfer section 307.
The recording sheet having the toner image transferred thereon is conveyed by a conveyer belt to a fixing roller pair 308 formed by a heating roller and a pressing roller. The fixing roller pair 308 fixes the toner image on the recording sheet by heating the recording sheet under pressure. After passing through the fixing roller pair 308, the recording sheet is discharged into a discharge unit 310 by a discharge roller pair 309. The discharge unit 310 is implemented by a sheet processing apparatus capable of performing post-processing, such as sorting and stapling.
When the copying machine 101 is set to a double-sided printing mode, the recording sheet is conveyed to the discharge roller pair 309, and then the direction of rotation of the discharge roller pair 309 is reversed such that the recording sheet is guided to a re-feeding conveying passage 312 by a flapper 311. The recording sheet guided to the re-feeding conveying passage 312 is re-fed to the space between the photosensitive drum 303 and the transfer section 307 in the same timing as described above, whereby a toner image is transferred onto the back side of the recording sheet.
Next, a description will be given of the operating section 220.
As shown in
As shown in
A status display area 507 displays a status of the copying machine 101. For example, an alarm message indicating occurrence of jamming, or a status message indicating that printing is being carried out in a PDL format is displayed. Further, in the status display area 507, a system status/stop key 508 is displayed. By pressing the system status/stop key 508, it is possible to stop or abort a job that is currently in process, on the screen shown in
When the transmission/fax tab 502 is pressed, a setup screen, not shown, is displayed for transmitting an image read by the copying machine 101 to an apparatus on the LAN 106 by e-mail or FTP transmission, or by facsimile transmission using the WAN 108.
When the box tab 503 is pressed, a setup screen, not shown, is displayed for storing an image read by the copying machine 101 in the box area of the HDD 204, or for designating image data stored in the box area to print out the same or transmit the same to an apparatus on the LAN 106.
In the case the copying machine 101 is provided with five or more functions, the right arrow tab 505 is displayed to the right of the four function tabs 501 to 504, i.e., the copy, transmission/fax, box, and browser tabs, and when the right arrow tab 505 is pressed, a screen for another function is displayed.
Next, a description will be given of the application executed by the copying machine as the image processing apparatus according to the present embodiment.
This application is realized by execution of an application program stored in the HDD (hard disk drive) by the CPU of the copying machine.
The application contributes to enhancement of efficiency in a routine carried out using copier functions. A processing flow is created by combining copier functions and registered so that the same settings can be repeatedly used. For example, a series of operations of reading originals and combining the read document and a document stored in the box area for being printed to form a cover can be set as one processing flow. It should be noted that in the present embodiment, a “document” includes image data obtained by reading an original.
One processing flow is comprised of three processes, i.e. an “input” process, an “editing” process, and an “output” process.
In the input process, a mode of inputting a document to be processed in the processing flow is set. In this case, an “original reading” mode or a “box document” mode can be selectively set.
When the “original reading” mode is set, it is possible to read originals according to read settings set for execution of the processing flow, and select the read originals as an input document. When the “box document” mode is set, it is possible to select a document stored in the box area as an input document.
In the editing process, a mode of editing a document selected in the input process is set. In this case, a “document combining” mode, a “page deletion” mode, or an “image display” mode can be selectively set.
When the “document combining” mode is set, it is possible to combine a plurality of documents selected in the input process in a designated order. When the “page deletion” mode is set, it is possible to erase designated pages of a document selected in the input process or documents connected in the editing process. When the “image display” mode is set, it is possible to display the image of a document selected in the input process or a document edited in the editing process.
In the output process, a mode of outputting a document selected in the input process or a document edited in the editing process is set. In this case, a “box storage” mode, a “transmission” mode, or a “print” mode can be selectively set.
When the “box storage” mode is set, it is possible to store a document selected in the input process or a document edited in the editing process in a designated box area. When the “transmission” mode is set, it is possible to transmit a document selected in the input process or a document edited in the editing process in a designated mode. When the “print” mode is set, it is possible to print a document selected in the input process or a document edited in the editing process, in designated settings.
Then, a created processing flow is stored in the XML format. The processing flow is displayed as a button on the operating section 220. When the processing flow button is pressed, the controller unit 200 of the copying machine 101 reads processing flow information from the XML file and executes associated processes while interpreting the details of the processing flow.
When an error occurs during execution of a processing flow, making it impossible to continue execution of the processing flow, the controller unit 200 can create a recovery processing flow as a processing flow for resuming (continuing) the interrupted processing flow. Further, even when execution of a processing flow is interrupted e.g. due to power failure and the application is forcibly terminated without creation of a recovery processing flow, it is possible to create the recovery processing flow after restart of the application. For example, after the power of the copying machine 101 is turned on again and the copying machine 101 is completely restarted, the controller unit 200 creates the recovery processing flow.
Further, the copying machine as the image processing apparatus according to the present embodiment executes a processing flow creation process and a processing flow execution process, described hereinafter, on the above-mentioned application.
Next, a description will be given of the processing flow creation process executed by the copying machine according to the present embodiment.
Referring to
A process execution control section 602 (a first creation unit, a second creation unit, and a third creation unit) is a program for controlling the processing flow creation process and the processing flow execution process of the application based on information input by the user. It should be noted that a processing flow is a routine of business operations created and registered by configuring the order of execution of a plurality of copier functions and settings associated with the copier functions.
A temporary storage area 603 is an application work area secured in the RAM 202.
An XML file 604 is an XML-formatted file in which are written application configuration information and processing flow information stored in the HDD 204.
A temporary use box 605 is a box area provided in the HDD 204 so as to temporarily store image data generated by the application during execution of a processing flow.
Referring to
Further, for user authentication, a the “my” button 706 and the common button 707 are displayed. When the “my” button 706 is pressed, only private processing flow buttons generated by a currently logged-in user are displayed. When a common button 707 is pressed, public processing flow buttons generated by all users and processing flow buttons generated in a user authentication OFF state are displayed.
Further, when a register/edit button 705 is pressed, a registration/edit selecting screen, described hereinafter with reference to
Referring to
Further, when a new registration button 805 is pressed, processing flow information is generated in the temporary storage area 603, and a registration/edit screen, described hereinafter with reference to
When a details/edit button 806 is pressed with one button of the processing flow button group 801 selected, an associated processing flow information item is read from the XML file 604 and is stored in the temporary storage area 603, and the registration/edit screen shown in
When a copy button 807 is pressed with one button of the processing flow button group 801 selected, an associated processing flow information item is read from the XML file 604 and is stored in the temporary storage area 603, and the processing flow information item read and stored in the temporary storage area 603 is added as a new processing flow to the XML file 604. Thus, the copying of the processing flow is performed.
When a delete button 808 is pressed with one button of the processing flow button group 801 selected, a processing flow information item associated with the currently selected processing flow is deleted from the XML file 604.
When a close button 809 is pressed, the registration/edit selecting screen is switched back to the initial operation screen shown in
When a display select button 810 is pressed, a pull-down list (not shown) from which my button display or common button display can be selected is displayed. In this case, when the my button display is selected, only private processing flow buttons generated by the currently logged-in user are displayed, whereas when the common button display is selected, public processing flow buttons generated by all the users and processing flow buttons generated in the user authentication OFF state are displayed.
As shown in
When a cancel button 904 is pressed, the processing flow information generated and stored in the temporary storage area 603 is discarded, and the screen is switched back to the registration/edit selecting screen shown in
When information is entered in each of areas 901 to 903 and a next button 905 is pressed, a processing information registration/edit screen, described hereinafter with reference to
Referring to
Further, when a cancel button 1009 is pressed, processing flow information generated and stored in the temporary storage area 603 is discarded, and the screen is switched back to the registration/edit selecting screen shown in
On the other hand, when an OK button 1010 is pressed, processing flow information generated and stored in the temporary storage area 603 is stored in the XML file 604. Then, the screen is switched back to the registration/edit selecting screen shown in
Referring to
On the other hand, when an OK button 1102 is pressed, settings for the box document process in the processing flow information generated and stored in the temporary storage area 603 are updated to settings configured on the box document process configuration screen, and then the screen is switched back to the processing information registration/edit screen in
Next, a description will be given of the processing flow execution process executed by the copying machine as the image processing apparatus according to the present embodiment.
As shown in
Then, it is determined whether or not any button of the processing flow button group 704 have been pressed (step S1202).
If it is determined in the step S1202 that any button of the processing flow button group 704 have been pressed (YES to the step S1202), a processing flow information item associated with the pressed button is read from the XML file 604. Then, the read processing flow information item is stored in the temporary storage area 603, and settings for respective processes constituting the processing flow are analyzed (step S1203).
Then, processing flow execution management information associated with the pressed button of the processing flow button group 704 is generated (step S1204). In the processing flow execution management information are recorded the management ID of the processing flow, information on currently executed processing and the like, based on which the status of execution of the processing flow can be checked. The processing flow execution management information is stored in the XML file 604.
Then, the processing flow execution management information is read from the XML file 604, and the read information is stored in the temporary storage area 603. Thereafter, the information of the currently executed processing is updated to that of processing to be executed next, and the processing flow execution management information including the updated information is stored in the XML file 604 (step S1205).
Then, one of the processes constituting the processing flow is executed (step S1206).
Then, it is determined whether or not an error has occurred in the process executed in the step S1206 (step S1207).
If it is determined in the step S1207 that no error has occurred (NO to the step S1207), the type of the process executed in the step S1206 is determined (step S1208).
If it is determined in the step S1208 that the type of the process is original reading, document data obtained by completion of scanning is stored in the temporary use box 605 (step S1209), and then the main process proceeds to a step S1211.
If it is determined in the step S1208 that the type of the process is document combining or page deletion, edited document data is stored in the temporary use box 605 (step S1210), and then the main process proceeds to the step S1211.
If it is determined in the step S1208 that the type of the process is not any of original reading, document combining, and page deletion, the main process immediately proceeds to the step S1211.
In the step S1211, it is determined whether or not all the processes constituting the processing flow have been executed. If not all the processes have been executed (NO to the step S1211), the main process returns to the step S1205.
If it is determined in the step S1211 that all the processes have been executed (YES to the step S1211), the document data stored in the temporary use box 605 is all deleted (step S1212).
Then, the execution management information on the processing flow having been executed is deleted from the XML file 604 (step S1213).
Then, it is determined whether or not the processing flow having been executed is a recovery processing flow (step S1214).
If it is determined in the step S1214 that the processing flow is a recovery processing flow (YES to the step S1214), recovery processing flow information on the recovery processing flow having been executed is deleted from the XML file 604 (step S1215).
If it is determined in the step S1214 that the processing flow is not a recovery processing flow (NO to the step S1214), or after execution of the step S1215, the main process returns to the step S1201.
If it is determined in the step S1207 that an error has occurred (YES to the step S1207), the main process immediately proceeds to a step S1216 in
Referring to
Then, it is determined whether or not user authentication has been completed (step S1217).
If it is determined in the step S1217 that user authentication has been completed (YES to the step S1217), a flag of the my button is set in the recovery processing flow information (step S1218), and then the main process proceeds to a step S1220.
If it is determined in the step S1217 that user authentication has not been completed (NO to the step S1217), a flag of the common button is set in the recovery processing flow information (step S1219), and then the main process proceeds to the step S1220.
In the step S1220, the category of the process in which the error occurred is determined.
If it is determined in the step S1220 that the category of the process is original reading, document data obtained before completion of scanning is stored in the temporary use box 605 set in the processing flow information (step S1221).
Then, the last page of the scanned document is previewed (step S1222) so as to notify the user where the original reading process has been interrupted.
Then, settings configured for the original reading process in the processing flow having been executed are copied in the recovery processing flow information (step S1223).
Then, it is determined whether or not a box document process is set in the processing flow having been executed (step S1224).
If it is determined in the step S1224 that the box document process is set (YES to the step S1224), settings configured for the box document process in the processing flow having been executed are copied in the recovery processing flow information (step S1225), and then the main process proceeds to a step S1226.
If it is determined in the step S1224 that the box document process is not set (NO to the step S1224), the main process immediately proceeds to the step S1226.
In the step S1226, it is determined whether or not a document combining process is set in the processing flow having been executed.
If it is determined in the step S1226 that the document combining process is set in the processing flow (YES to the step S1226), a setting of a document combining order in the document combining process in the processing flow having been executed is copied in the recovery processing flow information (step S1227).
Then, the setting of a document combining order in the document combining process in the recovery processing flow information is updated such that the document data stored in the temporary use box 605 in the step S1221 comes before the start of document data obtained by scanning (step S1228), and then the main process proceeds to a step S1255 in
If it is determined in the step S1226 that the document combining process is not set in the processing flow (NO to the step S1226), a document combining process configured such that the document data stored in the temporary use box 605 in the step S1221 is to be joined to the start of the document data from the scanned document is set in the recovery processing flow information (step S1229), and then the main process proceeds to the step S1255 in
If it is determined in the step S1220 that the type of the process is box document, it is determined whether or not document data obtained by completion of scanning is stored in the temporary use box 605 (step S1230).
If it is determined in the step S1230 that document data obtained by completion of scanning is stored (YES to the step S1230), a box document process configured such that the document data is designated is set in the recovery processing flow (step S1231), and then the main process proceeds to a step S1232.
If it is determined in the step S1230 that document data obtained by completion of scanning is not stored (NO to the step S1230), the main process immediately proceeds to the step S1232.
In the step S1232, it is determined whether or not a document combining process is set in the processing flow having been executed.
If it is determined in the step S1232 that a document combining process is set in the processing flow (YES to the step S1232), a setting of a document combining order in the document combining process in the processing flow having been executed is copied in the recovery processing flow information (step S1233).
Then, the setting of a document combining order in the document combining process in the recovery processing flow information is updated such that the designation of a scanned document in a portion of the recovery processing flow information is replaced by designation of the document data obtained by completion of scanning (step S1234), and then the main process proceeds to the step S1255 in
If it is determined in the step S1232 that a document combining process is not set in the processing flow (NO to the step S1232), the main process immediately proceeds to the step S1255 in
If it is determined in the step S1220 that the type of the process is document combining, the main process proceeds to a step S1235 in
Referring to
If it is determined in the step S1235 that document data obtained by completion of scanning is stored (YES to the step S1235), the box document process in the processing flow having been executed is copied in the recovery processing flow, and settings for the box document process are updated such that designation of the document data obtained by completion of scanning is added (step S1236).
Then, the setting of the document combining order in the document combining process in the processing flow having been executed is copied in the recovery processing flow information, and the setting of a document combining order in the document combining process in the recovery processing flow information is updated such that the designation of a scanned document in a portion of the recovery processing flow information is replaced by designation of the document data obtained by completion of scanning (step S1237), and then the main process proceeds to the step S1255 in
If it is determined in the step S1235 that document data obtained by completion of scanning is not stored (NO to the step S1235), the settings configured for the box document process in the processing flow having been executed are copied in the recovery processing flow information (step S1238).
Then, the setting of the document combining order in the document combining process in the processing flow having been executed is copied in the recovery processing flow information (step S1239), and then the main process proceeds to the step S1255 in
Referring again to
Referring to
If it is determined in the step S1240 that edited document data is stored (YES to the step S1240), a box document process in which the edited document data is designated is set in the recovery processing flow (step S1241), and then the main process proceeds to a step S1242.
If it is determined in the step S1240 that edited document data is not stored (NO to the step S1240), it is determined whether or not document data obtained by completion of scanning is stored in the temporary use box 605 (step S1243).
If it is determined in the step S1243 that document data obtained by completion of scanning is stored (YES to the step S1243), it is determined whether or not a box document process is set in the processing flow having been executed (step S1244).
If it is determined in the step S1244 that a box document process is set in the processing flow having been executed (YES to the step S1244), the box document process in the processing flow having been executed is copied in the recovery processing flow, and settings thereof are configured such that designation of the document data obtained by completion of scanning is added (step S1245), and then the main process proceeds to the step S1242.
If it is determined in the step S1244 that a box document process is not set in the processing flow having been executed (NO to the step S1244), a box document process in which the document data obtained by completion of scanning is designated is set in the recovery processing flow (step S1246), and then the main process proceeds to the step S1242.
If it is determined in the step S1243 that document data obtained by completion of scanning is not stored (NO to the step S1243), settings for the box document process in the processing flow having been executed are copied in the recovery processing flow information (step S1247), and then the main process proceeds to the step S1242.
In the step S1242, settings for the page deletion process in the processing flow having been executed are copied in the recovery processing flow information, and then the main process proceeds to the step S1255 in
Referring again to
Referring to
If it is determined in the step S1248 that edited document data is stored (YES to the step S1248), a box document process in which the edited document data is designated is set in the recovery processing flow (step S1249), and then the main process proceeds to the step S1255 in
If it is determined in the step S1248 that edited document data is not stored (NO to the step S1248), it is determined whether or not document data obtained by completion of scanning is stored in the temporary use box 605 (step S1250).
If it is determined in the step S1250 that document data obtained by completion of scanning is stored (YES to the step S1250), it is determined whether or not a box document process is set in the processing flow having been executed (step S1251).
If it is determined in the step S1251 that a box document process is set in the processing flow having been executed (YES to the step S1251), the box document process in the processing flow having been executed is copied in the recovery processing flow, and settings thereof are configured such that designation of the document data obtained by completion of scanning is added (step S1252). Then the main process proceeds to the step S1255 in
If it is determined in the step S1251 that a box document process is not set in the processing flow having been executed (NO to the step S1251), a box document process in which the document data obtained by completion of scanning is designated is set in the recovery processing flow (step S1253), and then the main process proceeds to the step S1255 in
If it is determined in the step S1250 that document data obtained by completion of scanning is not stored (NO to the step S1250), settings for the box document process in the processing flow having been executed are copied in the recovery processing flow information (step S1254), and then the main process proceeds to the step S1255 in
Referring to
If it is determined in the step S1255 that an image display process is set in the processing flow having been executed (YES to the step S1255), settings for the image display process in the processing flow having been executed are copied in the recovery processing flow information (step S1256), and then the main process proceeds to a step S1257.
If it is determined in the step S1255 that an image display process is not set in the processing flow having been executed (NO to the step S1255), the main process immediately proceeds to the step S1257.
In the step S1257, it is determined whether or not a box storage process is set in the processing flow having been executed.
If it is determined in the step S1257 that a box storage process is set in the processing flow having been executed (YES to the step S1257), settings for the box storage process in the processing flow having been executed are copied in the recovery processing flow information (step S1258), and then the main process proceeds to a step S1259.
If it is determined in the step S1257 that the box storage process is not set in the processing flow having been executed (NO to the step S1257), the main process immediately proceeds to the step S1259.
In the step S1259, it is determined whether or not a transmission process is set in the processing flow having been executed.
If it is determined in the step S1259 that a transmission process is set in the processing flow having been executed (YES to the step S1259), settings for the transmission process in the processing flow having been executed are copied in the recovery processing flow information (step S1260), and then the main process proceeds to a step S1261.
If it is determined in the step S1259 that a transmission process is not set in the processing flow having been executed (NO to the step S1259), the main process immediately proceeds to the step S1261.
In the step S1261, it is determined whether or not a print process is set in the processing flow having been executed.
If it is determined in the step S1261 that a print process is set in the processing flow having been executed (YES to the step S1261), settings for the print process in the processing flow having been executed are copied in the recovery processing flow information (step S1262), and then the main process proceeds to a step S1263.
If it is determined in the step S1261 that a print process is not set in the processing flow having been executed (NO to the step S1261), the main process immediately proceeds to the step S1263.
In the step S1263, it is determined whether or not the processing flow having been executed is a recovery processing flow.
If it is determined in the step S1263 that the processing flow having been executed is a recovery processing flow (YES to the step S1263), recovery processing flow information on the recovery processing flow having been executed is deleted from the XML file 604 (step S1264), and then the main process proceeds to a step S1265.
If it is determined in the step S1263 that the processing flow having been executed is not a recovery processing flow (NO to the step S1263), the main process immediately proceeds to the step S1265.
In the step S1265, the recovery processing flow information in the temporary storage area 603 is stored in the XML file 604.
Then, the processing flow execution management information is deleted from the XML file 604 (step S1266).
Then, a screen including a message shown in
According to the processing flow execution process in
Next, a description will be given of a processing flow execution process executed when the application described above is restarted after forcible termination e.g. due to occurrence of power failure during execution of the above-described processing flow execution process by the copying machine as the image processing apparatus according to the present embodiment.
The process shown in the
Then, it is determined whether or not processing flow execution management information is stored in the XML file 604 (step S1269).
If it is determined in the step S1269 that processing flow execution management information is not stored in the XML file 604 (NO to the step S1269), the main process proceeds to the step S1201 in
If it is determined in the step S1269 that processing flow execution management information is stored in the XML file 604 (YES to the step S1269), processing flow information on the processing flow having been executed, which is recorded in the processing flow execution management information, is read from the XML file 604 and stored in the temporary storage area 603, and the settings for the processes constituting the processing flow are analyzed (step S1270).
Then, a recovery processing flow information-setting area is generated in the temporary storage area 603 (step S1271).
Then, it is determined whether or not user authentication has been completed (step S1272).
If it is determined in the step S1272 that user authentication has been completed (YES to the step S1272), a flag of the my button is set in the recovery processing flow information (step S1273), and then the main process proceeds to a step S1275.
If it is determined in the step S1272 that user authentication has not been completed (NO to the step S1272), a flag of the common button is set in the recovery processing flow information (step S1274), and then the main process proceeds to the step S1275.
In the step S1275, the type of a process having been executed is determined based on the processing flow execution management information.
If it is determined in the step S1275 that the type of the process is original reading, settings for the original reading process in the processing flow having been executed are copied in the recovery processing flow information (step S1276).
Then, it is determined whether or not a box document process is set in the processing flow having been executed (step S1277).
If it is determined in the step S1277 that a box document process is set in the processing flow having been executed (YES to the step S1277), settings for the box document process in the processing flow having been executed are copied in the recovery processing flow information (step S1278), and then the main process proceeds to a step S1279.
If it is determined in the step S1277 that a box document process is not set in the processing flow having been executed (NO to the step S1277), the main process immediately proceeds to the step S1279.
In the step S1279, it is determined whether or not a document combining process is set in the processing flow having been executed.
If it is determined in the step S1279 that a document combining process is set in the processing flow (YES to the step S1279), a setting of a document combining order in the document combining process in the processing flow having been executed is copied in the recovery processing flow information (step S1280). Then, the main process proceeds to the step S1255 in
If it is determined in the step S1279 that a document combining process is not set in the processing flow having been executed (NO to the step S1279), the main process immediately proceeds to the step S1255 in
If it is determined in the step S1275 that the type of the process is box document, it is determined whether or not document data obtained by completion of scanning is stored in the temporary use box 605 (step S1281).
If it is determined in the step S1281 that document data obtained by completion of scanning is stored (YES to the step S1281), a box document process in which the document data obtained by completion of scanning is designated is set in the recovery processing flow (step S1282), and then the main process proceeds to a step S1283.
If it is determined in the step S1281 that document data obtained by completion of scanning is not stored (NO to the step S1281), the main process immediately proceeds to the step S1283.
In the step S1283, it is determined whether or not a document combining process is set in the processing flow having been executed.
If it is determined in the step S1283 that a document combining process is set in the processing flow (YES to the step S1283), a setting of a document combining order in the document combining process in the processing flow having been executed is copied in the recovery processing flow information (step S1284).
Then, the setting of the document combining order in the document combining process in the recovery processing flow information is updated such that the designation of a scanned document in a portion of the recovery processing flow information is replaced by designation of the document data obtained by completion of scanning (step S1285). Then, the main process proceeds to the step S1255 in
If it is determined in the step S1283 that a document combining process is not set in the processing flow having been executed (NO to the step S1283), the main process immediately proceeds to the step S1255 in
If it is determined in the step S1275 that the type of the process is document combining, the main process proceeds to the step S1235 in
If it is determined in the step S1275 that the type of the process is page deletion, the main process proceeds to the step S1240 in
If it is determined in the step S1275 that the type of the process is not any of original reading, box document, document combining, and page deletion, the main process immediately proceeds to the step S1248 in
According to the processing flow execution process in
It is to be understood that the present invention may also be accomplished by supplying a system or an apparatus with a storage medium in which a program code of software, which realizes the functions of the above described embodiment, is stored, and causing a computer (or CPU or MPU) of the system or apparatus to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium realizes the functions of the above described embodiment, and therefore the program code and the storage medium in which the program code is stored constitute the present invention.
Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, a magnetic-optical disk, an optical disk, such as a CD-ROM, a CD-R, a CD-RW, a DVD-ROM, a DVD-RAM, a DVD-RW, or a DVD+RW, a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program may be downloaded via a network.
Further, it is to be understood that the functions of the above described embodiment may be accomplished not only by executing the program code read out by a computer, but also by causing an OS (operating system) or the like which operates on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the functions of the above described embodiment may be accomplished by writing a program code read out from the storage medium into a memory provided on an expansion board inserted into a computer or a memory provided in an expansion unit connected to the computer and then causing a CPU or the like provided in the expansion board or the expansion unit to perform a part or all of the actual operations based on instructions of the program code.
While the present invention has been described with reference to the exemplary embodiment, it is to be understood that the invention is not limited to the disclosed exemplary embodiment. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all modifications, equivalent structures and functions.
This application claims priority from Japanese Patent Application No. 2008-182719 filed Jul. 14, 2008, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2008-182719 | Jul 2008 | JP | national |