Summary of the invention
The fundamental purpose of the application is the method and the device that provide a kind of data processing, to solve the flexibility problem of the flow process of the data processing that prior art exists, wherein:
The method of a kind of data processing that the application provides, comprising: resolve pending data file, to obtain pending data; Be director data and business datum by described pending Data Analysis, described director data comprises: one or more instruction having predetermined execution sequence; And according to described director data, described business datum is processed.
According to the embodiment of the application, in the method, according to described director data, described business datum is processed, comprising: according to described predetermined execution sequence, described business datum to be processed according to described director data.
According to the embodiment of the application, in the method, also comprise: the integrality verifying described pending data.
According to the embodiment of the application, in the method, also comprise: after data processing completes, upgrade the result data of data processing, described result data comprises: the destination information of the whether successful information of described data processing, described data processing.
According to the embodiment of the application, in the method, also comprise: generate the object information of data processing and/or the destination file of data processing, and described object information and/or data processing result files are sent to corresponding user.
According to the embodiment of the application, in the method, according to described director data, described business datum is processed, comprising: should instruction be performed according to described predetermined execution sequence execution is current, the current input data that should perform instruction are processed, and obtains current output data; Wherein, described current when should to perform instruction be Article 1 instruction in described director data, its input data are described business datum, described current when should to perform instruction be non-Article 1 instruction in described director data, the output data that its input data obtain for the upper instruction of execution; Currently should perform instruction when running succeeded, instruction should be performed be updated to next instruction by current, and be described current output data by the current input Data Update that should perform instruction; And currently should perform instruction for time empty, the result that link order performs.
The other method of the application provides a kind of device of data processing, and this device comprises: acquisition module, for resolving pending data file, to obtain pending data; Parsing module, for being director data and business datum by described pending Data Analysis, described director data comprises: have one or more of predetermined execution sequence to perform instruction; And processing module, for processing described business datum according to described director data.
According to the embodiment of the application, in the apparatus, described processing module is further used for: to process described business datum according to described predetermined execution sequence according to described director data.
According to the embodiment of the application, in the apparatus, also comprise: correction verification module, for verifying the integrality of described pending data.
According to the embodiment of the application, in the apparatus, also comprise: data update module, for after data processing completes, upgrade the result data of data processing, described result data comprises: the destination information of the whether successful information of described data processing, described data processing.
According to the embodiment of the application, in the apparatus, also comprise: generation module, for the destination file of the object information and/or data processing that generate data processing; Sending module, for sending described object information and/or data processing result files to corresponding user.
According to the embodiment of the application, in the apparatus, described processing module, comprise: instruct execution module, for should instruction be performed according to described predetermined execution sequence execution is current, the current input data that should perform instruction are processed, and obtains current output data; Wherein, described current when should to perform instruction be Article 1 instruction in described director data, its input data are described business datum, described current when should to perform instruction be non-Article 1 instruction in described director data, the output data that its input data obtain for the upper instruction of execution; Update module, for current should perform instruction run succeeded time, instruction should be performed be updated to next instruction by current, and be described current output data by the current input Data Update that should perform instruction; And result returns module, currently instruction should be performed for time empty, the result that link order performs.
Compared with prior art, according to the technical scheme of the application, by pending Data Analysis is become director data and business datum two parts, and according to instruction sequences, business datum is processed, described pending data can process with the arbitrary procedure of customization, to improve the dirigibility to the flow process that particular data processes in the scope of instruction support.
Embodiment
The main thought of the application is, by pending Data Analysis is become director data and business datum two parts, and processes business datum according to the order of instruction.
For making the object of the application, technical scheme and advantage clearly, below in conjunction with the application's specific embodiment and corresponding accompanying drawing, technical scheme is clearly and completely described.Obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
According to the embodiment of the application, provide a kind of method of data processing.
It is the process flow diagram of the method for a kind of data processing of the embodiment of the present application with reference to figure 1, Fig. 1.
As shown in Figure 1, in step S101, resolve pending data file, to obtain pending data.That is, pending data are separated from the file preserving data.Described pending data can comprise: the data volume etc. returning destination, data processing of user account, data processed result.
Such as, during the data processing that fund is redeemed (described fund is redeemed can comprise reimbursement, redemption, dividend etc.), first obtain pending redemption file, then by resolving redemption file, obtain pending redemption data.Described redemption data can comprise: user account (ID), redemption destination, redemption money etc., described redemption data can also comprise: fund code, type (reimbursement, redemption, dividend) etc.
According to the embodiment of the application, after the pending data of acquisition, the correctness of described pending data can also be verified.Verify the integrality of described pending data, comprise: verify described pending data and whether comprise whole tentation data item (described tentation data item can set according to the requirement of data processing, can comprise user account, data processed result return to destination etc.), or verify described pending data and whether meet parsing requirement, so that follow-up, Data Analysis is carried out to described pending data.For fund redemption, can verify in described redemption data whether comprise whole tentation data item, such as, verification redeems in data whether comprise user account (ID), data item such as redemption destination, redemption money etc.
According to the embodiment of the application, pre-service can also be carried out according to described tentation data item to described pending data, that is, go out described tentation data item from described pending extracting data, the pending data meeting predetermined format obtained.
In step s 102, be director data and business datum by described pending Data Analysis.Wherein, described director data can comprise: one or more instruction having predetermined execution sequence.
Specifically, can be one or more instruction (described one or more instruction can be the form of list) by described pending Data Analysis, and described one or more instruction have successively execution sequence.
Such as, in fund redemption business, if user wants fund to redeem, can resolve described redemption data according to the redemption money redeemed in data, redemption destination etc., such as user wants to redeem to bank card, by the parsing to redemption data, described redemption Data Analysis can be become represent the instruction of " Third-party payment platform account of transferring accounts ", " bank card of withdrawing deposit " etc., and the business datum such as user's Third-party payment platform account ID, user's bank card account number, transfer amounts.
Alternatively, the method that script can be utilized to resolve is resolved described pending data, is director data and business datum by described pending Data Analysis.Such as, GROOVY script can be utilized to resolve.
In step s 103, according to described director data, described business datum is processed.
Carry out process according to described director data to described business datum may further include: to process described business datum according to described predetermined execution sequence according to described director data.
Fig. 2 is the particular flow sheet of step S103, and as shown in Figure 2, step S103 can comprise:
Step S201, should perform instruction according to described predetermined execution sequence execution is current, process, and obtain current output data to the current input data that should perform instruction.
Wherein, described current when should to perform instruction be Article 1 instruction in described director data, its input data are described business datum, described current when should to perform instruction be non-Article 1 instruction in described director data, the output data that its input data obtain for the upper instruction of execution.
Perform according to described predetermined execution sequence and currently should perform instruction, perform exactly from the Article 1 instruction of described director data, when performing described Article 1 instruction, this instruction is and currently should performs instruction, and its input data are described business datum.Perform and currently should perform instruction, the current input data that should perform instruction are processed, and obtains current output data.
Step S202, currently should perform instruction when running succeeded, and should perform instruction and is updated to next instruction, and be described current output data by the current input Data Update that should perform instruction by current.
That is, when current execution instruction runs succeeded, using next instruction of current execution instruction as current execution instruction, and currently should perform current output data that instruction obtains as the input data performing next instruction using performing, and get back to step S201, continuation execution is current should perform instruction.
Such as, current should perform instruction be Article 1 perform instruction, after so Article 1 execution instruction runs succeeded, perform Article 2 by described predefined procedure and perform instruction, now Article 2 performs instruction and is current execution instruction, the output data instruction of execution Article 1 obtained as the input data performing Article 2 instruction, and perform described second execution instruction.After Article 2 instruction runs succeeded, then perform Article 3 instruction according to above-mentioned step S201-S202, the execution of instruction afterwards by that analogy.
In brief, the process of step S201-S202 is exactly perform instruction according to described predetermined execution sequence, and when often performing an instruction, the output the data all upper instruction of execution obtained are as the input data performing present instruction.Wherein, described predetermined execution sequence can represent by the form of instruction list, namely performs the current instruction that should perform according to the order of instruction list.
Step S203, when present instruction is empty, link order execution result.
Above-mentioned step S201-S202, perform the current process that should perform instruction always, and instruction should be performed for time empty when current, namely, all instructions in director data are performed, then link order execution result, described instruction execution result can comprise: the record data etc. that whether data processing is successful, data processing produces.
Such as, when carrying out fund redemption, first perform and currently should perform instruction " examination & verification instruction ", business datum is audited, after running succeeded, namely audited, using the current output data that obtain as the input data performing next instruction, and perform next instruction " Third-party payment platform account of transferring accounts ", namely, according to the user's third-party platform account ID in described input data, the corresponding amount of money is transferred accounts in the Third-party payment platform account of user by the business datums such as transfer amounts, after instruction runs succeeded, obtain exporting data, again according to the bank card account exported in data, the corresponding amount of money is transferred accounts in user's bank card account by the data such as Withdrawal Amount (user wants the amount of money of withdrawing deposit).After all instructions perform, present instruction is empty, return execution result, described execution result can comprise: the record data etc. that whether data processing is successful, data processing produces, wherein, described record data can comprise: after process, data are back to date, the rear additional data etc. that data are back to the mode of user, described data processing produces of process of user, such as, in fund is redeemed, return redemption whether success, the date redeeming user account, redemption channel, redeem over charge etc.
According to the embodiment of the application, after data processing completes, can also comprise: the step upgrading the result data of data processing.Described result data can comprise: the destination information of the whether successful information of described data processing, described data processing.Such as, after fund has been redeemed, whether successfully writes such as redeeming the destination information (such as, redeeming the bank card account number information of user) of information, redemption is redeemed in result data.
According to the embodiment of the application, can also comprise: generate the object information of data processing and/or the destination file of data processing, and by step that described object information and/or data processing result files send to corresponding user.Namely, the object information of data processing and/or the destination file of data processing are sent to corresponding user, to inform user data process whether information and other relevant informations such as success, failure cause.
Such as, carry out fund redemption, when redemption has operated, whether successfully no matter redeem, can generate according to redeeming result the object information redeemed, and the object information of this redemption is sent to redemption user, inform that whether user redeems that success and other relevant informations are (such as, the information such as redemption money, fund code) so that user examines.By the form sending short message, described redemption object information can be notified described redemption user, simultaneously, the agreement of all right basis and Fund Company, generate and redeem destination file, feed back to this information such as redemption money, fund code, Fund Type redeemed of Fund Company, or redeem failure cause etc.
Present invention also provides a kind of device of data processing.Fig. 3 schematically shows the structured flowchart of the device of a kind of data processing according to the application's embodiment.According to an embodiment of the application, device 300 can comprise: acquisition module 301, parsing module 302 and processing module 303.
Described acquisition module 301 may be used for resolving pending data file, to obtain pending data.
It is director data and business datum that described parsing module 302 may be used for described pending Data Analysis, and described director data can comprise: have one or more of predetermined execution sequence to perform instruction.
Described processing module 303 may be used for processing described business datum according to described director data.
According to the embodiment of the application, described processing module can be further used for according to described director data and process described business datum according to described predetermined execution sequence.
According to an embodiment of the application, device 300 can also comprise correction verification module, and this module may be used for the correctness verifying described pending data.
According to an embodiment of the application, device 300 can also comprise data update module, and this module may be used for after data processing completes, and upgrades the result data of data processing.Described result data can comprise: the destination information of the whether successful information of described data processing, described data processing.
According to an embodiment of the application, device 300 can also comprise generation module and sending module.
Described generation module may be used for generating the object information of data processing and/or the destination file of data processing.
Described sending module may be used for described object information and/or data processing result files to send to corresponding user.
According to an embodiment of the application, described processing module 303, may further include: instruct execution module, update module and result return module.
Described instruct execution module, may be used for should performing instruction according to described predetermined execution sequence execution is current, processes, and obtain current output data to the current input data that should perform instruction; Wherein, described current when should to perform instruction be Article 1 instruction in described director data, its input data are described business datum, described current when should to perform instruction be non-Article 1 instruction in described director data, the output data that its input data obtain for the upper instruction of execution.
Described update module, may be used for currently should performing instruction when running succeeded, and should perform instruction and is updated to next instruction, and be described current output data by the current input Data Update that should perform instruction by current.
Described result returns module, may be used for currently should performing instruction for time empty, the result that link order performs.
The function realized due to the device of the present embodiment is substantially corresponding to the embodiment of the method shown in earlier figures 1 to Fig. 2, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, can not repeat at this.
In one typically configuration, computing equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as ROM (read-only memory) (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computing machine comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic RAM (DRAM), the random access memory (RAM) of other types, ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc ROM (read-only memory) (CD-ROM), digital versatile disc (DVD) or other optical memory, magnetic magnetic tape cassette, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise non-temporary computer readable media (transitory media), as data-signal and the carrier wave of modulation.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
Those skilled in the art should understand, the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The foregoing is only the embodiment of the application, be not limited to the application, for a person skilled in the art, the application can have various modifications and variations.Within all spirit in the application and principle, any amendment done, equivalent replacement, improvement etc., within the right that all should be included in the application.