Data processing method and device
By introducing business data mirror copy and multimedia data link storage strategies into the workflow system, the problem of low multimedia data storage and query efficiency in the workflow system is solved, differentiated display and efficient storage are achieved, and the system's flexibility and efficiency are improved. Scalability.
Patent Information
- Application Number
- CN202010791211.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-08-07
AI Technical Summary
Data storage and query efficiency in existing workflow systems are low, especially when processing multimedia data, there are problems such as strong coupling and inflexible storage.
The business data mirror copy strategy and multimedia data link storage strategy are introduced to achieve differentiated display of multimedia data and optimize data storage and query efficiency by synchronizing data in the workflow system and performing differentiated and independent storage.
It greatly improves the convenience and efficiency of storing and querying multimedia data in the workflow system, and enhances the system's scalability and component-based modularization capabilities.
Smart Images

Figure CN112000816B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method and device. Background Art
[0002] Workflow is to achieve a certain business goal by using computers to automatically transfer documents, information or tasks between multiple participants according to certain predetermined rules, and organize a group of tasks to complete a certain business process. Workflow defines the triggering sequence and triggering conditions of tasks. Each task can be completed by one or more software systems, or by one or a group of people, or by one or more people working in collaboration with a software system.
[0003] Existing research work based on workflow is mainly focused on solving the problems of strong correlation between workflow and business and code coupling, while there is little research on data processing issues such as data storage and query in workflow systems. Summary of the invention
[0004] In view of this, the present invention provides a data processing method and device, which, by introducing a business data mirror copy strategy and a multimedia data link storage strategy, can perform differentiated, independent and separate storage of audited data and data under audit, thereby facilitating the differentiated display of the intermediate state of multimedia data audit, optimizing data storage efficiency and storage flexibility, and greatly improving the convenience and efficiency of multimedia data storage and query in the workflow system.
[0005] To achieve the above objective, according to a first aspect of the present invention, a data processing method is provided.
[0006] The data processing method of the present invention is implemented based on a workflow system, and the method includes: after receiving a data modification request, synchronizing at least part of the data in the business formal data table to the business mirror data table to obtain a business mirror data record corresponding to the data modification request; when the modified data carried by the data modification request includes modified multimedia data, storing the modified multimedia data; writing the storage path information of the modified multimedia data into the multimedia link data table to obtain a first multimedia link storage record, and associating the first multimedia link storage record with the business mirror data record; after receiving a message that the modified data has been reviewed and approved, associating the first multimedia link storage record with the business formal data table.
[0007] Optionally, the method also includes: when the modified data carried by the data modification request also includes modified text data, updating the business mirror data record corresponding to the data modification request according to the modified text data; and, after receiving a message that the modified data has been reviewed and approved, updating the business formal data table according to the business mirror data record corresponding to the data modification request.
[0008] Optionally, the method further comprises: before associating the first multimedia link storage record with the business mirror data record, confirming that the first multimedia link storage record is not associated with the business mirror data record.
[0009] Optionally, confirming that the first multimedia link storage record is not associated with the business mirror data record includes: querying the multimedia link data table according to the logical primary key of the business mirror data record; when the query result is empty, confirming that the first multimedia link storage record is not associated with the business mirror data record.
[0010] Optionally, confirming that the first multimedia link storage record is not associated with the business mirror data record includes: querying the multimedia link data table according to the logical primary key of the business mirror data record; when the query result is not empty, comparing the table association field value in the first multimedia link storage record with the logical primary key of the business mirror data record for consistency; when the table association field value in the first multimedia link storage record is inconsistent with the logical primary key of the business mirror data record, confirming that the first multimedia link storage record is not associated with the business mirror data record.
[0011] Optionally, the method further includes: when a value of a table association field in the first multimedia link storage record is consistent with a logical primary key of the business mirror data record, confirming that the first multimedia link storage record has been associated with the business mirror data record.
[0012] Optionally, the method also includes: after receiving a message indicating that the modified data has been reviewed and approved, disassociating the second multimedia link storage record from the business formal data table; wherein the second multimedia link storage record is a link storage record of the multimedia data before modification corresponding to the data modification request.
[0013] Optionally, the method further includes: before receiving a message indicating that the modified data has been reviewed and approved, creating at least one review task, and sending the at least one review task to a terminal corresponding to the reviewer, so as to review the modified data.
[0014] Optionally, the method further includes: after receiving the approval process data query request, querying the business mirror data table according to the approval process data query request to obtain a corresponding query result.
[0015] Optionally, after receiving the formal data query request, the formal business data table is queried according to the formal data query request to obtain a corresponding query result.
[0016] Optionally, the method further comprises: before synchronizing at least part of the data in the business formal data table to the business mirror data table, generating a logical primary key of the business mirror data record corresponding to the data modification request.
[0017] To achieve the above objective, according to a second aspect of the present invention, a data processing device is provided.
[0018] The data processing device of the present invention is implemented based on a workflow system, and the device includes: a creation and synchronization module, which is used to synchronize at least part of the data in the business formal data table to the business mirror data table after receiving a data modification request, so as to obtain a business mirror data record corresponding to the data modification request; a multimedia data storage management module, which is used to store the modified multimedia data when the modified data carried by the data modification request includes the modified multimedia data; a link data storage management module, which is used to write the storage path information of the modified multimedia data into the multimedia link data table to obtain a first multimedia link storage record, and associate the first multimedia link storage record with the business mirror data record; the link data storage management module is also used to associate the first multimedia link storage record with the business formal data table after receiving a message that the modified data has been reviewed and approved.
[0019] Optionally, the device also includes: a text data storage management module, which is used to update the business mirror data record corresponding to the data modification request according to the modified text data when the modified data carried by the data modification request also includes modified text data; and, after receiving a message that the modified data has been reviewed and approved, the text data processing module updates the business formal data table according to the business mirror data record corresponding to the data modification request.
[0020] To achieve the above objective, according to a third aspect of the present invention, an electronic device is provided.
[0021] The electronic device of the present invention comprises: one or more processors; and a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method of the present invention.
[0022] To achieve the above objective, according to a fourth aspect of the present invention, a computer readable medium is provided.
[0023] The computer-readable medium of the present invention stores a computer program thereon, and when the program is executed by a processor, the data processing method of the present invention is implemented.
[0024] An embodiment of the above invention has the following advantages or beneficial effects: the data processing method of the embodiment of the present invention is implemented based on the workflow system. By introducing the business data mirror copy strategy and the multimedia data link storage strategy, it can perform differentiated, independent and separate storage of the audited data and the data under audit, thereby facilitating the differentiated display of the intermediate state of multimedia data audit, optimizing data storage efficiency and storage flexibility, and greatly improving the convenience and efficiency of multimedia data storage and query in the workflow system.
[0025] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0027] Figure 1 is a schematic diagram of the main flow of a data processing method according to a first embodiment of the present invention;
[0028] Figure 2 is a schematic diagram of an exemplary data storage structure according to an embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of the main flow of a data processing method according to a second embodiment of the present invention;
[0030] Figure 4 is a schematic diagram of main modules of a data processing device according to a third embodiment of the present invention;
[0031] Figure 5 is a schematic diagram of main modules of a data processing device according to a fourth embodiment of the present invention;
[0032] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0033] Figure 7It is a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0035] It should be pointed out that the various embodiments of the present invention and the technical features in the embodiments may be combined with each other without affecting the implementation of the present invention.
[0036] Figure 1 FIG. 1 is a schematic diagram of the main flow of the data processing method according to the first embodiment of the present invention. The data processing method of the embodiment of the present invention is implemented based on a workflow system. Figure 1 As shown, the data processing method of the embodiment of the present invention includes:
[0037] Step S101: after receiving a data modification request, synchronizing at least part of the data in the business formal data table to the business mirror data table to obtain a business mirror data record corresponding to the data modification request.
[0038] In an exemplary scenario, a user can initiate a data modification request through a website or application (APP) interface presented on a terminal device. After receiving the data modification request initiated by the user, the workflow system is triggered to build a workflow process task for the data modification request and start executing the workflow process task. Among them, the process of the workflow system executing the workflow process task is specifically embodied in the various processing steps shown in the embodiment of the present invention. Exemplarily, the workflow system can use Activiti or other workflow systems. Activiti is a business process management (BPM) framework released by Alfresco software on May 17, 2010. It is an open source, flexible, and easily extensible executable process language framework covering business process management, workflow, service collaboration and other fields.
[0039] Among them, the business formal data table is mainly used to store approved text data. In an optional implementation, after receiving a data modification request initiated by a user, the original data record in the business formal data table targeted by the user's modification can be synchronized to the business mirror data table to obtain a business mirror data record corresponding to the data modification request. For example, if the user modifies the original data record 1 in the business formal data table this time, the original data record 1 is synchronized to the business mirror data table to obtain a business mirror data record corresponding to the modification.
[0040] In another optional implementation, after receiving a data modification request initiated by a user, all original data records in the business formal data table that the user has the authority to modify can be synchronized to the business mirror data table to obtain the business mirror data record corresponding to the modification. For example, the user has the authority to modify original data records 1 to 10 in the business formal data table, and the user modifies original data record 1, then the original data records 1 to 10 are synchronized to the business mirror data table.
[0041] It should be pointed out that the above two optional implementations are exemplary descriptions of "synchronizing at least part of the data in the business formal data table to the business mirror data table", and do not constitute a limitation on the protection scope of the present invention. Without affecting the implementation of the present invention, those skilled in the art can flexibly adjust the data that needs to be synchronized from the business formal data table to the business mirror data table.
[0042] Optionally, before step S101, the method of the embodiment of the present invention may further include the following steps: the system administrator starts the core service module of the workflow system, and the start of the service will trigger the start and initialization of other modules. In addition, before step S101, the method of the embodiment of the present invention may further include the following steps: the system administrator may also configure relevant parameters through a preset interface, such as configuring parameters related to workflow startup initialization and log level, and configuring multimedia data storage type, storage location and other related parameters.
[0043] Step S102: When the modified data carried in the data modification request includes modified multimedia data, the modified multimedia data is stored.
[0044] In an exemplary scenario, the user can modify text data and / or multimedia data. The multimedia data may include one or more of pictures, audio, and video data. After receiving the data modification request submitted by the user, the modified data submitted by the user this time can be determined by parsing the data modification request. If the modified data includes multimedia data, the modified multimedia data submitted by the user this time can be saved to a multimedia data storage module. The multimedia data storage module can be a hard disk, an optical disk, or other storage medium that can be used to store multimedia data. Further, if the modified data also includes text data, the modified text data submitted by the user this time can be updated to the business mirror data table.
[0045] Step S103: writing the modified storage path information of the multimedia data into the multimedia link data table to obtain a first multimedia link storage record, and associating the first multimedia link storage record with the business mirror data record.
[0046] Exemplarily, the first multimedia link storage record may include multimedia data type (such as picture, audio, video, etc.), multimedia data name, and storage path of multimedia data, etc. Among them, the storage path of the multimedia data may be specifically the URL address of the multimedia data, or other information that can be used to indicate the storage location of the multimedia data. For example, assuming that the modified multimedia data uploaded by the user at a certain time is three pictures, and the unique identifiers of these three pictures are respectively represented as lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3, then after storing these three pictures in the multimedia data storage module (such as a physical layer disk), the storage path information of these three pictures can be written into the multimedia link data table to obtain the first multimedia link storage record, and the first multimedia link storage record is associated with the business mirror data record corresponding to the modification request obtained in step S101.
[0047] Further, in an optional example, the association between the multimedia link storage record and other data records can be achieved by setting a table association field in the multimedia link storage record. In this optional example, the association between the first multimedia link storage record and the business mirror data record can be achieved by setting the value of the table association field in the first multimedia link storage record to the logical primary key of the business mirror data record.
[0048] In another optional example, the association between the multimedia link storage record and the business mirror data record can be achieved by setting an association relationship table between the multimedia link storage record and the business mirror data record. In this optional example, the association between the first multimedia link storage record and the business mirror data record can be achieved by setting an association relationship between the first multimedia link storage record and the business mirror data record in the association relationship table.
[0049] Step S104: after receiving a message indicating that the modified data has been reviewed and approved, the first multimedia link storage record is associated with the business formal data table.
[0050] In an embodiment of the present invention, step S104 is a processing step for when the modified data includes multimedia data. In an optional example, the association of the multimedia link storage record with other data tables can be achieved by setting a table association field in the multimedia link storage record. In this optional example, the association of the first multimedia link storage record with the business formal data table can be achieved by inserting a first multimedia link storage record associated with the business formal data table into the multimedia link data table. In specific implementation, the association of the first multimedia link storage record obtained in step S103 can be achieved by copying the first multimedia link storage record obtained in step S103, setting the value of the table association field in the copied data as the logical primary key of the business formal data table, and then inserting the copied data into the multimedia link data table.
[0051] In an exemplary scenario, before step S104, the method of the embodiment of the present invention may further include the following steps: creating at least one audit task, and sending the at least one audit task to a terminal corresponding to an auditor to manually audit the modified data. After the manual audit is passed, receiving a message of data audit passing sent by the terminal corresponding to the auditor, and then associating the first multimedia link storage record with the business formal data table.
[0052] In another exemplary scenario, before step S104, the method of the embodiment of the present invention may further include the following steps: creating at least one audit task, and sending the at least one audit task to the audit module to automatically audit the modified data. After the automatic audit is passed, receiving a message from the audit module indicating that the data audit is passed, and then associating the first multimedia link storage record with the business formal data table.
[0053] In another exemplary scenario, before step S104, manual review and automatic review may be combined. After both manual review and automatic review are passed, the step of associating the first multimedia link storage record with the business formal data table is performed.
[0054] In the embodiment of the present invention, by Figure 1 The processing flow shown realizes the data processing flow in the workflow system. By introducing the business data mirror copy strategy and multimedia data link storage strategy in the above process, the audited data and the data under audit can be stored in a differentiated, independent and separate manner, which facilitates the differentiated display of the intermediate state of multimedia data audit, optimizes data storage efficiency and storage flexibility, and greatly improves the convenience and efficiency of multimedia data storage and query in the workflow system.
[0055] Figure 2 FIG. 1 is a schematic diagram of an exemplary data storage structure according to an embodiment of the present invention. Figure 2 As shown, in the embodiment of the present invention, the data storage structure adopted by the workflow system includes: a text data storage layer, a link data storage layer, and a multimedia data storage layer.
[0056] The text data storage layer includes a business formal data table and a business mirror data table. Among them, the business formal data table is mainly used to store text data that has passed the review; the business mirror data table is mainly used to store text data at each review stage in the workflow process instance, which includes both text data to be reviewed and text data that has passed and failed the review. During specific implementation, the number of business formal data tables in the text data storage layer can be one or more, and the number of business mirror data tables can be one or more. For example, in an optional example, the text data storage layer includes one business formal data table and multiple business mirror data tables.
[0057] The link data storage layer includes a multimedia link data storage table. The multimedia link data storage table is mainly used to store the storage path information of multimedia data, and can realize the differentiated, independent, and separate storage of multimedia data at different review stages by associating with the business formal data table or the business mirror data table at different review stages, thereby helping to solve the problem of differentiated display of multimedia data at various review stages. In specific implementation, the number of multimedia link data storage tables in the link data storage layer can be one or more.
[0058] The multimedia data storage layer is used to store multimedia data such as pictures, audio, video, etc. Exemplarily, the multimedia data storage layer can be implemented by a magnetic disk, an optical disk, or other storage media suitable for storing multimedia data.
[0059] In an embodiment of the present invention, by performing data storage processing based on the above-mentioned three-layer data storage structure, it is possible to store the audited data and the data under audit in a differentiated, independent and separate manner, thereby facilitating the differentiated display of the intermediate state of multimedia data audit, optimizing data storage efficiency and storage flexibility, and greatly improving the convenience and efficiency of multimedia data storage and query in the workflow system.
[0060] Figure 3 FIG. 1 is a schematic diagram of the main flow of the data processing method according to the second embodiment of the present invention. The data processing method of the embodiment of the present invention is implemented based on a workflow system. Figure 3 As shown, the data processing method of the embodiment of the present invention includes:
[0061] Step S301: after receiving a data modification request, synchronizing at least part of the data in the business formal data table to the business mirror data table to obtain a business mirror data record corresponding to the data modification request.
[0062] In an exemplary scenario, a user may initiate a data modification request through a website or application (APP) interface presented on a terminal device. After receiving the data modification request initiated by the user, the workflow system is triggered to construct a workflow process task for the data modification request and start executing the workflow process task. The process of the workflow system executing the workflow process task is specifically embodied in the various processing steps shown in the embodiments of the present invention.
[0063] Among them, the business formal data table is mainly used to store approved text data. In an optional implementation, the original data record in the business formal data table targeted by the user's modification can be synchronized to the business mirror data table to obtain the business mirror data record corresponding to the data modification request. For example, if the user modifies the original data record 1 in the business formal data table this time, the logical primary key value of the business mirror data record corresponding to the data modification request can be determined first, and then the original data record 1 can be synchronized to the row where the logical primary key value is located in the business mirror table.
[0064] In another optional implementation, all original data records in the business formal data table that the user has the authority to modify can be synchronized to the business mirror data table to obtain the business mirror data record corresponding to the data modification request. For example, the user has the authority to modify the original data records 1 to 10 in the business formal data table, and this time the user modifies the original data record 1, then the logical primary key value of the business mirror data record corresponding to the data modification request can be determined first, and the original data records 1 to 10 can be synchronized to the row of the business mirror table where the logical primary key value is located.
[0065] It should be pointed out that the above two optional implementations are exemplary descriptions of "synchronizing at least part of the data in the business formal data table to the business mirror data table", and do not constitute a limitation on the protection scope of the present invention. Without affecting the implementation of the present invention, those skilled in the art can flexibly adjust the data that needs to be synchronized from the business formal data table to the business mirror data table.
[0066] Furthermore, before synchronizing at least part of the data in the business formal data table to the business mirror data table, the method of the embodiment of the present invention further includes: generating a logical primary key of the business mirror data record corresponding to the data modification request.
[0067] Exemplarily, the generating of the logical primary key of the business mirror data record corresponding to the data modification request includes: generating a random number as the logical primary key value of the business mirror data table corresponding to the data modification process by a random number generator. In addition, in the specific implementation, the logical primary key value of the business mirror data record corresponding to the data modification request can also be generated according to other methods. For example, the logical primary key value of the business mirror data table corresponding to the data modification process can be determined according to the user information of the initiator of the data modification process and the time of initiating the data modification process.
[0068] In an optional example, user-initiated data modification and user-submitted data modification may be two different operations, and before the user submits the data modification, the user may initiate multiple data modifications at different times. In this optional example, a same logical primary key value of the business mirror data record may be generated for multiple data modification initiation operations before the submission operation; and different logical primary key values of the business mirror data record may be generated for different data modification submission operations. For example, suppose that the same user initiated three data modifications before triggering the modification submission operation; after the user initiated the first modification, the logical primary key value "lgc_sn_user_info_image_123000" was generated, and at least part of the data in the business formal data table was saved to the business mirror data record where the logical primary key value "lgc_sn_user_info_image_123000" was located; after the user initiated the second modification, the logical primary key value of the business mirror data record corresponding to this modification was still "lgc_sn_user_info_image_123000"; after the user initiated the third modification, the logical primary key value of the business mirror data record corresponding to this modification was still "lgc_sn_user_info_image_123000".
[0069] In another optional example, the user-initiated data modification and the user-submitted data modification may be the same operation. In this optional example, a logical primary key value of a business mirror data record may be generated for a data modification submission operation of the same user; and different logical primary key values of business mirror data records may be generated for different data modification submission operations of the same user.
[0070] Step S302: updating the business mirror data record corresponding to the modification request according to the modified text data.
[0071] In an embodiment of the present invention, a user may modify text data and / or multimedia data. The multimedia data may include one or more of images, audio, and video data. After receiving a data modification request from a user, the modified data involved in the modification may be determined by parsing the data modification request. The modified data involved in the modification may include modified text data and modified multimedia data. In step S302, the modified text data involved in the modification may be updated to the business mirror data record obtained in step S301.
[0072] Step S303: storing the modified multimedia data.
[0073] In this step, the modified multimedia data submitted by the user this time can be stored in a multimedia data storage module, wherein the multimedia data storage module can be a hard disk, an optical disk or other storage medium that can be used to store multimedia data.
[0074] Step S304: writing the modified storage path information of the multimedia data into the multimedia link data table to obtain a first multimedia link storage record, and associating the first multimedia link storage record with the business mirror data record.
[0075] In this step, the storage path information of the multimedia data stored in step S303 can be written into the multimedia link data table to obtain a first multimedia link storage record, and the first multimedia link storage record is associated with the business mirror data record created in step S301. The first multimedia link storage record may include multimedia data type (such as picture, audio, video, etc.), multimedia data name, and storage path of multimedia data. The storage path of the multimedia data may specifically be a URL address of the multimedia data, or other parameters that can be used to indicate the storage location of the multimedia data.
[0076] Furthermore, the first multimedia link storage record can be associated with the business mirror data record in the following manner: the value of the table association field in the first multimedia link storage record is set to the logical primary key of the business mirror data record to achieve the association between the first multimedia link storage record and the business mirror data record.
[0077] For example, assuming that the modified multimedia data uploaded by a user is three pictures, and the unique identifiers of these three pictures are lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3 respectively, then these three pictures can be stored in the multimedia data storage module (such as a physical layer disk) through step S303. Further, assuming that the storage paths of the three pictures lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3 are respectively: / home / userA / picture / lgc_sn_media_pic1.jpg, / home / userA / picture / lgc_sn_media_pic2.jpg, and / home / userA / picture / lgc_sn_media_pic3.jpg, the storage path information of the three pictures can be written into the multimedia link data table to obtain the first multimedia link storage record corresponding to the picture lgc_sn_media_pic1, the first multimedia link storage record corresponding to the picture lgc_sn_media_pic2, and the first multimedia link storage record corresponding to the picture lgc_sn_media_pic3, and the values of the table association fields in the three first multimedia link storage records are set as the logical primary key of the business mirror data record to realize the association of the three first multimedia link storage records with the business mirror data record created in step S301.
[0078] Optionally, before executing the step of associating the first multimedia link storage record with the business mirror data record, the data processing method of the embodiment of the present invention further includes: confirming that the first multimedia link storage record is not associated with the business mirror data record. That is, before executing the step of associating the first multimedia link storage record with the business mirror data record, it is first determined whether the first multimedia link storage record is not associated with the business mirror data record, and the determination result is yes.
[0079] In an optional implementation manner, whether the first multimedia link storage record is not associated with the business mirror data record may be determined according to the following process:
[0080] Step a: query the multimedia link data table according to the logical primary key of the business mirror data record.
[0081] For example, assuming that the logical primary key of the service image data record is "lgc_sn_user_info_image_123456", the multimedia link data table (for example, represented by file_store) can be queried according to the following SQL statement: select * from file_store a where a.link_lgc_sn = 'lgc_sn_user_info_image_123456'.
[0082] If the query result of step a is empty, it indicates that the business mirror data record is not associated with any multimedia link storage record in the multimedia link data table, and then confirms that the first multimedia link storage record is not associated with the business mirror data record; if the query result of step a is not empty, it indicates that the business mirror data record is associated with at least one multimedia link storage record in the multimedia link data table, and then execute step b.
[0083] Step b: performing consistency comparison between the table association field value in the first multimedia link storage record and the logical primary key of the business mirror data record.
[0084] For example, assuming that the table association field in the first multimedia link storage record (for example, represented by link_lgc_sn) has a value of "lgc_sn_user_info_image_123456", and the logical primary key value of the business mirror data record is "lgc_sn_user_info_image_123000", then the consistency comparison determines that the two are inconsistent; assuming that the table association field in the first multimedia link storage record (for example, represented by link_lgc_sn) has a value of "lgc_sn_user_info_image_123456", and the logical primary key value of the business mirror data record is "lgc_sn_user_info_image_123456", then the consistency comparison determines that the two are consistent.
[0085] When it is determined through step b that the value of the table association field in the first multimedia link storage record is inconsistent with the logical primary key of the business mirror data record, it is confirmed that the first multimedia link storage record is not associated with the business mirror data record; when it is determined through step b that the value of the table association field in the first multimedia link storage record is consistent with the logical primary key of the business mirror data record, it is confirmed that the first multimedia link storage record is associated with the business mirror data record.
[0086] In specific implementation, if the user submits multiple modified multimedia data at one time, step 304 can be executed for each multimedia data respectively, and after the storage path information of all modified multimedia data is written into the multimedia link data table and associated with the business mirror data record, step S305 is executed.
[0087] Step S305: create at least one audit task, and send the at least one audit task to a terminal corresponding to the auditor to audit the modified data.
[0088] In an optional implementation, a layer of review may be performed on the modified data submitted by the user. For example, one or more review tasks may be created at the same time, and all created review tasks may be sent to the terminal corresponding to the designated reviewer to manually review the modified data.
[0089] In another optional implementation, the modified data submitted by the user this time may be subject to multi-layer review. For example, one or more first-level review tasks may be created first, and all the created first-level review tasks may be sent to the terminal corresponding to the first-level reviewer to conduct a preliminary review of the modified data. After the first-level review is passed, one or more second-level review tasks may be created, and all the created second-level review tasks may be sent to the terminal corresponding to the second-level reviewer to conduct a second review of the modified data.
[0090] Step S306: after receiving a message indicating that the modified data has been reviewed and approved, the business formal data table is updated according to the business mirror data record.
[0091] After receiving the final approval message for the modified data, the user data in the business mirror data record can be synchronized to the business formal data table. The user data to be synchronized this time includes the modified text data submitted by the user and approved this time.
[0092] Step S307: disassociate the second multimedia link storage record from the business formal data table.
[0093] The second multimedia link storage record is a link storage record of the multimedia data before modification corresponding to the data modification request. For example, a user uploads three relatively clear personal portrait photos pitcure_good_1, pitcure_good_2, and pitcure_good_3 to replace the original three relatively blurry pictures pitcure_bad_1, pitcure_bad_2, and pitcure_bad_3, then the three first multimedia link storage records are the multimedia link storage record corresponding to pitcure_good_1, the multimedia link storage record corresponding to pitcure_good_2, and the multimedia link storage record corresponding to pitcure_good_3, and the three second multimedia link storage records are the multimedia link storage record corresponding to pitcure_bad_1, the multimedia link storage record corresponding to pitcure_bad_2, and the multimedia link storage record corresponding to pitcure_bad_3.
[0094] In this step, the logical primary key of the business formal data table can be obtained through the workflow-related data information, and then the second multimedia link storage record associated with the above-mentioned logical primary key (that is, the link storage record of the multimedia data before modification) is deleted, thereby realizing the release of the association between the second multimedia link storage record and the business formal data table.
[0095] Step S308: Associating the first multimedia link storage record with the business formal data table.
[0096] Exemplarily, the association between the first multimedia link storage record and the business formal data table may be achieved by inserting a first multimedia link storage record associated with the business formal data table into the multimedia link data table.
[0097] Specifically, the association between the first multimedia link storage record and the business formal data table can be achieved by copying the first multimedia link storage record obtained in step S304, setting the value of the table association field in the copied data as the logical primary key of the business formal data table, and then inserting the copied data into the multimedia link data table.
[0098] For example, assuming that the modified multimedia data uploaded by a user at a certain time is three pictures, the unique identifiers of these three pictures are respectively represented by lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3, and through step S304, the first multimedia link storage record corresponding to the picture lgc_sn_media_pic1, the first multimedia link storage record corresponding to the picture lgc_sn_media_pic2, and the first multimedia link storage record corresponding to the picture lgc_sn_media_pic3 are established, then the following operations can be performed on the above three first multimedia link storage records respectively: copy the first multimedia link storage record, set the value of the table association field in the copied data as the logical primary key of the business formal data table, and then reinsert the copied data into the multimedia link data table.
[0099] Optionally, the method of the embodiment of the present invention may further include the following steps: after receiving an approval process data query request, querying the business mirror data table according to the approval process data query request to obtain corresponding query results; after receiving a formal data query request, querying the formal business data table according to the formal data query request to obtain corresponding query results.
[0100] For example, suppose that a user initiates a data modification process and uploads three relatively clear pictures pitcure_good_1, pitcure_good_2, and pitcure_good_3 to replace the original three relatively blurry pictures pitcure_bad_1, pitcure_bad_2, and pitcure_bad_3. Before the user's modified data is reviewed, if the user initiates an approval process data query request, three relatively clear pictures, pitcure_good_1, pitcure_good_2, and pitcure_good_3, can be queried; if the user initiates a formal data query request, three relatively blurry pictures, pitcure_bad_1, pitcure_bad_2, and pitcure_bad_3 can be queried; after the user's modified data is reviewed and passed, if the user initiates an approval process data query request, three relatively clear pictures, pitcure_good_1, pitcure_good_2, and pitcure_good_3 can be queried; if the user initiates a formal data query request, three relatively clear pictures, pitcure_good_1, pitcure_good_2, and pitcure_good_3 can be queried.
[0101] Furthermore, if the user initiates the picture modification process again, and modifies the picture from the clear pictures pitcure_good_1~pitcure_good_3 to the better pictures pitcure_better_1~pitcure_better_3. If the above modification is also approved at some time in the future, two modification approval records will be queried in the approval process query menu interface: the earlier historical approval record corresponds to the pictures pitcure_good_1~pitcure_good_3, and the newer historical approval record corresponds to the pictures pitcure_better_1~pitcure_better_3; the latest approved pictures pitcure_better_1~pitcure_better_3 will be queried in the data maintenance query menu interface.
[0102] In an embodiment of the present invention, the above processing steps are used to solve the problems of differentiated display of the intermediate state of the audit, update and synchronization of the audit data in the entire audit process and any modification intermediate stage in the historical audit operation; by introducing the business data mirror copy strategy, the audit completed data and the text data in the audit process are stored in a differentiated, independent and separate manner; through the linked storage strategy, the audit completed data and the multimedia data in the audit process are stored in a differentiated, independent, separate and linked manner rather than in a physical copy manner, thereby optimizing storage efficiency and storage flexibility; greatly improving the convenience and efficiency of storing, associating and querying multimedia data in the workflow system, thereby further enhancing the scalability, componentized modularization capabilities and convenience of large-scale commercial implementation of the workflow system.
[0103] Figure 4 The data processing device 400 of the embodiment of the present invention is implemented based on a workflow system and includes: a synchronization module 401 , a multimedia data storage management module 402 , and a link data storage management module 403 .
[0104] The synchronization module 401 is used to synchronize at least part of the data in the business formal data table to the business mirror data table after receiving a data modification request, so as to obtain a business mirror table data record corresponding to the data modification request.
[0105] In an exemplary scenario, a user may initiate a data modification request through a website or application (APP) interface presented on a terminal device. After receiving the user's data modification request, the workflow system is triggered to construct a workflow process task for the data modification request and start executing the workflow process task.
[0106] Among them, the business formal data table is mainly used to store approved text data. In an optional implementation, after receiving the user's data modification request, the synchronization module 401 can synchronize the original data record in the business formal data table that the user modifies this time to the business mirror data table to obtain the business mirror table data record corresponding to the data modification request. For example, if the user modifies the original data record 1 in the business formal data table this time, the original data record 1 will be synchronized to the business mirror data table.
[0107] In another optional implementation, after receiving the user's data modification request, the synchronization module 401 can synchronize all original data records in the business formal data table that the user has the authority to modify into the business mirror data table. For example, the user has the authority to modify original data records 1 to 10 in the business formal data table, and this time the user modifies original data record 1, then the original data records 1 to 10 are synchronized into the business mirror data table.
[0108] It should be pointed out that the above two optional implementations are exemplary descriptions of "synchronization module 401 synchronizes at least part of the data in the business formal data table to the business mirror data table", and do not constitute a limitation on the protection scope of the present invention. Without affecting the implementation of the present invention, those skilled in the art can flexibly adjust the data that needs to be synchronized from the business formal data table to the business mirror data table.
[0109] The multimedia data storage management module 402 is configured to store the modified multimedia data when the modified data carried in the data modification request includes multimedia data.
[0110] In an exemplary scenario, the user can modify text data and / or multimedia data. The multimedia data may include one or more of pictures, audio, and video data. After receiving the data modification request submitted by the user, the modified data submitted by the user can be determined by parsing the data modification request. If the modified data includes multimedia data, the multimedia data storage management module 402 can save the modified multimedia data submitted by the user to the multimedia data storage module. The multimedia data storage module can be a hard disk, an optical disk, or other storage medium that can be used to store multimedia data.
[0111] The link data storage management module 403 is used to write the storage path information of the modified multimedia data into the multimedia link data table to obtain a first multimedia link storage record, and associate the first multimedia link storage record with the business mirror data record.
[0112] Exemplarily, the first multimedia link storage record may include multimedia data type (such as picture, audio, video, etc.), multimedia data name, and storage path of multimedia data, etc. Among them, the storage path of the multimedia data may be specifically the URL address of the multimedia data, or other information that can be used to indicate the storage location of the multimedia data. For example, assuming that the modified multimedia data uploaded by the user at a certain time is three pictures, and the unique identifiers of these three pictures are respectively represented as lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3, then after storing these three pictures in the multimedia data storage module (such as a physical layer disk), the storage path information of these three pictures can be written into the multimedia link data table to obtain the first multimedia link storage record, and the first multimedia link storage record is associated with the business mirror data record.
[0113] Further, in an optional example, the multimedia link storage record can be associated with other data records by setting a table association field in the multimedia link storage record. In this optional example, the link data storage management module 403 can associate the first multimedia link storage record with the business mirror data record by setting the value of the table association field in the first multimedia link storage record as the logical primary key of the business mirror data record.
[0114] In another optional example, the association table between the multimedia link storage record and the business mirror data record can be set to achieve the association between the multimedia link storage record and other data records. In this optional example, the link data storage management module 403 can achieve the association between the first multimedia link storage record and the business mirror data record by setting the association relationship between the first multimedia link storage record and the business mirror data record in the association table.
[0115] The link data storage management module 403 is further configured to associate the first multimedia link storage record with the business formal data table after receiving a message indicating that the modified data has been reviewed and approved.
[0116] In an optional example, the association between the multimedia link storage record and other data tables can be realized by setting a table association field in the multimedia link storage record. In this optional example, the link data storage management module 403 can realize the association between the first multimedia link storage record and the business formal data table by inserting a first multimedia link storage record associated with the business formal data table in the multimedia link data table.
[0117] Specifically, the link data storage management module 403 can copy the first multimedia link storage record obtained previously, set the value of the table association field in the copied data to the logical primary key of the business formal data table, and then insert the copied data into the multimedia link data table to achieve the association between the first multimedia link storage record and the business formal data table.
[0118] In the embodiment of the present invention, the data processing flow in the workflow system is realized by the above device. By introducing the business data mirror copy strategy and the multimedia data link storage strategy in the above process, the audited data and the data under audit can be stored in a differentiated, independent and separate manner, thereby facilitating the differentiated display of the intermediate state of multimedia data audit, optimizing data storage efficiency and storage flexibility, and greatly improving the convenience and efficiency of multimedia data storage and query in the workflow system.
[0119] Figure 5 1 is a schematic diagram of the main modules of a data processing device according to a fourth embodiment of the present invention. The data processing device of the embodiment of the present invention is implemented based on a workflow system. Figure 5 As shown, the data processing device 500 of the embodiment of the present invention includes: a synchronization module 501, a text data storage management module 502, a multimedia data storage management module 503, and a link data storage management module 504.
[0120] The synchronization module 501 is used to synchronize at least part of the data in the business formal data table to the business mirror data table after receiving a data modification request, so as to obtain a business mirror data record corresponding to the data modification request.
[0121] In an exemplary scenario, a user may initiate and submit a data modification request through a website or application (APP) interface presented on a terminal device. After receiving the user's data modification request, the workflow system is triggered to construct a workflow process task for the data modification request and start executing the workflow process task.
[0122] The business formal data table is mainly used to store approved text data. In an optional implementation, the synchronization module 501 can synchronize the original data record in the business formal data table that the user modified this time to the business mirror data table. For example, if the user modifies the original data record 1 in the business formal data table this time, the original data record 1 will be synchronized to the business mirror data table.
[0123] In another optional implementation, after creating the business mirror data table, the synchronization module 501 can synchronize all original data records in the business formal data table that the user has the authority to modify into the business mirror data table. For example, the user has the authority to modify original data records 1 to 10 in the business formal data table, and this time the user modifies original data record 1, then the original data records 1 to 10 are synchronized into the business mirror data table.
[0124] It should be pointed out that the above two optional implementations are exemplary descriptions of "synchronization module 501 synchronizes at least part of the data in the business formal data table to the business mirror data table", and do not constitute a limitation on the protection scope of the present invention. Without affecting the implementation of the present invention, those skilled in the art can flexibly adjust the data that needs to be synchronized from the business formal data table to the business mirror data table.
[0125] Furthermore, before synchronizing at least part of the data in the business formal data table to the business mirror data table, the synchronization module 501 may also be used to generate a logical primary key of the business mirror data record corresponding to the data modification request.
[0126] Exemplarily, the synchronization module 501 generates a logical primary key of the business mirror data record corresponding to the data modification request, including: the synchronization module 501 generates a random number as the logical primary key value of the business mirror data table corresponding to the data modification process through a random number generator. In addition, in specific implementation, the synchronization module 501 can also generate the logical primary key value of the business mirror data record corresponding to the data modification request according to other methods. For example, the synchronization module 501 can determine the logical primary key value of the corresponding business mirror data table according to the user information of initiating the data modification process and the time of initiating the data modification process.
[0127] In an optional example, user-initiated data modification and user-submitted data modification may be two different operations, and before the user submits the data modification, the user may initiate multiple data modifications at different times. In this optional example, the synchronization module 501 may generate a same logical primary key value for the business mirror data record for multiple data modification initiation operations before the submission operation; and for different data modification submission operations, the synchronization module 501 generates different logical primary key values for the business mirror data record. For example, suppose that the same user initiated three data modifications before triggering the modification submission operation; after the user initiated the first modification, the synchronization module 501 generated a logical primary key value "lgc_sn_user_info_image_123000" and saved at least part of the data in the business formal data table to the business mirror data record where the logical primary key value "lgc_sn_user_info_image_123000" is located; after the user initiated the second modification, the logical primary key value of the business mirror data record corresponding to this modification is still "lgc_sn_user_info_image_123000"; after the user initiated the third modification, the logical primary key value of the business mirror data record corresponding to this modification is still "lgc_sn_user_info_image_123000".
[0128] In another optional example, the user-initiated data modification and the user-submitted data modification may be the same operation. In this optional example, the synchronization module 501 may generate a logical primary key value of a business mirror data record for a data modification submission operation of the same user; and for different data modification submission operations of the same user, the synchronization module 501 may generate different logical primary key values of business mirror data records.
[0129] The text data storage management module 502 is used to update the business mirror data record according to the modified text data when the modified data carried in the data modification request includes text data.
[0130] In an embodiment of the present invention, a user may modify text data and / or multimedia data. The multimedia data may include one or more of images, audio, and video data. After receiving a data modification request submitted by a user, the modified data involved in the modification may be determined by parsing the data modification request. When the modified data involved in the modification includes the modified text data, the text data storage management module 502 may update the business mirror data record corresponding to the modification request according to the modified text data involved in the modification.
[0131] The multimedia data storage management module 503 is used to save the modified multimedia data submitted by the user to the multimedia data storage module when the modified data carried by the data modification request includes multimedia data. The multimedia data storage module can be a hard disk, an optical disk or other storage medium that can be used to store multimedia data.
[0132] The link data storage management module 504 is used to write the storage path information of the modified multimedia data corresponding to the data modification request into the multimedia link data table to obtain a first multimedia link storage record, and associate the first multimedia link storage record with the business mirror data record.
[0133] Exemplarily, the link data storage management module 504 may write the storage path information of the modified multimedia data corresponding to the data modification request into the multimedia link data table to obtain a first multimedia link storage record, and associate the first multimedia link storage record with the business mirror data record. The first multimedia link storage record may include multimedia data type (such as picture, audio, video, etc.), multimedia data name, and storage path of multimedia data. The storage path of the multimedia data may specifically be a URL address of the multimedia data, or other parameters that can be used to indicate the storage location of the multimedia data.
[0134] Further, the link data storage management module 504 can associate the first multimedia link storage record with the business mirror data record in the following manner: the link data storage management module 504 sets the value of the table association field in the first multimedia link storage record to the logical primary key value of the business mirror data record to achieve the association between the first multimedia link storage record and the business mirror data record.
[0135] For example, assuming that the modified multimedia data uploaded by a user is three pictures, and the unique identifiers of the three pictures are lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3, respectively, the three pictures can be stored in a multimedia data storage module (such as a physical layer disk). Further, assuming that the storage paths of the three pictures lgc_sn_media_pic1, lgc_sn_media_pic2, and lgc_sn_media_pic3 are respectively: / home / userA / picture / lgc_sn_media_pic1.jpg, / home / userA / picture / lgc_sn_media_pic2.jpg, and / home / userA / picture / lgc_sn_media_pic3.jpg, the link data storage management module 504 can write the storage path information of the three pictures into the multimedia link data table to obtain the first multimedia link storage record corresponding to the picture lgc_sn_media_pic1, the first multimedia link storage record corresponding to the picture lgc_sn_media_pic2, and the first multimedia link storage record corresponding to the picture lgc_sn_media_pic3, and set the values of the table association fields in the three first multimedia link storage records as the logical primary key of the business mirror data record to realize the association between the three first multimedia link storage records and the business mirror data record obtained in step S301.
[0136] Optionally, before executing the step of associating the first multimedia link storage record with the business mirror data record, the link data storage management module 504 may also be used to: confirm that the first multimedia link storage record is not associated with the business mirror data record. That is, before executing the step of associating the first multimedia link storage record with the business mirror data record, the link data storage management module 504 first determines whether the first multimedia link storage record is not associated with the business mirror data record, and the determination result is yes.
[0137] The link data storage management module 504 is further configured to associate the first multimedia link storage record with the business formal data table after receiving a message indicating that the modified data has been reviewed and approved.
[0138] In an optional example, the association between the multimedia link storage record and other data tables can be realized by setting a table association field in the multimedia link storage record. In this optional example, the link data storage management module 504 can realize the association between the first multimedia link storage record and the business formal data table by inserting a first multimedia link storage record associated with the business formal data table in the multimedia link data table.
[0139] Specifically, the link data storage management module 504 can copy the first multimedia link storage record obtained previously, set the value of the table association field in the copied data to the logical primary key of the business formal data table, and then insert the copied data into the multimedia link data table to achieve the association between the first multimedia link storage record and the business formal data table.
[0140] In the embodiment of the present invention, the data processing flow in the workflow system is realized by the above device. By introducing the business data mirror copy strategy and the multimedia data link storage strategy in the above process, the audited data and the data under audit can be stored in a differentiated, independent and separate manner, thereby facilitating the differentiated display of the intermediate state of multimedia data audit, optimizing data storage efficiency and storage flexibility, and greatly improving the convenience and efficiency of multimedia data storage and query in the workflow system.
[0141] Figure 6 An exemplary system architecture 600 is shown to which the data processing method or data processing device according to the embodiment of the present invention can be applied.
[0142] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0143] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0144] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0145] The server 605 may be a server that provides various services, such as a background management server that provides support for data modification requests issued by users using the terminal devices 601, 602, and 603. After receiving the data modification request, the background management server may perform business processing and other operations on the data modification request, and return the processing result (such as the modification result) to the terminal device.
[0146] It should be noted that the data processing method provided in the embodiment of the present invention can be executed by the server 605 , and accordingly, the data processing device is set in the server 605 .
[0147] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0148] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0149] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0150] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0151] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0152] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0153] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0154] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a synchronization module, a multimedia data storage management module, and a link data storage management module. The names of these modules do not constitute a limitation on the modules themselves in certain circumstances, for example, the synchronization module may also be described as "a module for synchronizing at least part of the data in the business formal data table to the business mirror data table".
[0155] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the following process: after receiving a data modification request, synchronizing at least part of the data in the business formal data table to the business mirror data table to obtain a business mirror data record corresponding to the data modification request; when the modified data carried by the data modification request includes modified multimedia data, storing the modified multimedia data; writing the storage path information of the modified multimedia data into the multimedia link data table to obtain a first multimedia link storage record, and associating the first multimedia link storage record with the business mirror data record; after receiving a message that the modified data has been reviewed and approved, associating the first multimedia link storage record with the business formal data table.
[0156] According to the technical solution of the embodiments of the present invention, by introducing the business data mirror copy strategy and the multimedia data link storage strategy, the audited data and the data under audit can be stored in a differentiated, independent and separate manner, thereby facilitating the differentiated display of the intermediate state of multimedia data audit, optimizing data storage efficiency and storage flexibility, and greatly improving the convenience and efficiency of multimedia data storage and query in the workflow system.
[0157] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data processing method, characterized in that: The method is implemented based on a workflow system and includes: After receiving the data modification request, synchronizing at least part of the data in the business formal data table to the business mirror data table to obtain a business mirror data record corresponding to the data modification request; In a case where the modified data carried by the data modification request includes modified multimedia data, storing the modified multimedia data; Writing the storage path information of the modified multimedia data into a multimedia link data table to obtain a first multimedia link storage record, and associating the first multimedia link storage record with the business mirror data record; After receiving a message that the modified data has been reviewed and approved, associating the first multimedia link storage record with the business formal data table; It also includes: after receiving a message that the modified data has been reviewed and approved, disassociating the second multimedia link storage record from the business formal data table; wherein the second multimedia link storage record is a link storage record of the multimedia data before modification corresponding to the data modification request.
2. The method according to claim 1, characterized in that: The method further comprises: In a case where the modified data carried by the data modification request also includes modified text data, the business mirror data record corresponding to the data modification request is updated according to the modified text data; and after receiving a message that the modified data has been reviewed and approved, the business formal data table is updated according to the business mirror data record corresponding to the data modification request.
3. The method according to claim 1, characterized in that: The method further comprises: Before associating the first multimedia link storage record with the service mirror data record, it is confirmed that the first multimedia link storage record is not associated with the service mirror data record.
4. The method according to claim 3, characterized in that The confirming that the first multimedia link storage record is not associated with the business mirror data record comprises: The multimedia link data table is queried according to the logical primary key of the business mirror data record; when the query result is empty, it is confirmed that the first multimedia link storage record is not associated with the business mirror data record.
5. The method according to claim 3, characterized in that: The confirming that the first multimedia link storage record is not associated with the business mirror data record further includes: The multimedia link data table is queried according to the logical primary key of the business mirror data record; when the query result is not empty, the table association field value in the first multimedia link storage record is compared with the logical primary key of the business mirror data record for consistency; when the table association field value in the first multimedia link storage record is inconsistent with the logical primary key of the business mirror data record, it is confirmed that the first multimedia link storage record is not associated with the business mirror data record.
6. The method according to claim 5, characterized in that The method further comprises: When the table association field value in the first multimedia link storage record is consistent with the logical primary key of the business mirror data record, it is confirmed that the first multimedia link storage record has been associated with the business mirror data record.
7. The method according to claim 1, characterized in that The method further comprises: Before receiving the message indicating that the modified data has been reviewed and approved, at least one review task is created and sent to a terminal corresponding to a reviewer to review the modified data.
8. The method according to claim 1, characterized in that The method further comprises: After receiving the approval process data query request, the business mirror data table is queried according to the approval process data query request to obtain a corresponding query result.
9. The method according to claim 1, characterized in that: The method further comprises: After receiving the formal data query request, the business formal data table is queried according to the formal data query request to obtain a corresponding query result.
10. The method according to claim 1, characterized in that The method further comprises: Before synchronizing at least part of the data in the business formal data table to the business mirror data table, a logical primary key of the business mirror data record corresponding to the data modification request is generated.
11. A data processing device, characterized in that: The device is implemented based on a workflow system and includes: A synchronization module, configured to synchronize at least part of the data in the business formal data table to the business mirror data table after receiving a data modification request, so as to obtain a business mirror data record corresponding to the data modification request; A multimedia data storage management module, configured to store the modified multimedia data when the modified data carried by the data modification request includes the modified multimedia data; A link data storage management module, used for writing the storage path information of the modified multimedia data into a multimedia link data table to obtain a first multimedia link storage record, and associating the first multimedia link storage record with the business mirror data record; The link data storage management module is also used to associate the first multimedia link storage record with the business formal data table after receiving a message that the modified data has been reviewed and approved; and is also used to disassociate the second multimedia link storage record from the business formal data table after receiving a message that the modified data has been reviewed and approved; wherein the second multimedia link storage record is a link storage record of the multimedia data before modification corresponding to the data modification request.
12. The device according to claim 11, characterized in that The device also includes: A text data storage management module is used to update the business mirror data record corresponding to the data modification request according to the modified text data when the modified data carried by the data modification request also includes modified text data; and after receiving a message that the modified data has been reviewed and approved, the text data processing module updates the business formal data table according to the business mirror data table.
13. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
