CN102880669A - Business processing method and business processing device based on file - Google Patents

Business processing method and business processing device based on file Download PDF

Info

Publication number
CN102880669A
CN102880669A CN2012103264534A CN201210326453A CN102880669A CN 102880669 A CN102880669 A CN 102880669A CN 2012103264534 A CN2012103264534 A CN 2012103264534A CN 201210326453 A CN201210326453 A CN 201210326453A CN 102880669 A CN102880669 A CN 102880669A
Authority
CN
China
Prior art keywords
file
layout
files
format
standard format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012103264534A
Other languages
Chinese (zh)
Inventor
贺进
夏秀岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Huawei Software Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2012103264534A priority Critical patent/CN102880669A/en
Publication of CN102880669A publication Critical patent/CN102880669A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a business processing method and a business processing device based on a file. Due to the application of the method, a field engineer mainly debugs how to convert an operator side file format into a standard file format without considering configurations between business logics and interfaces during AR (array) installation and debugging period so as to lower the complexity of AR configuration; and meanwhile, the business process is decoupled with the file processing, so that the change of an external file interface does not influence the internal business logic processing; the added bank interfaces such as the added processes or interfaces do not influence the internal business logic processing; and the modification of the conventional interfaces with banks as third parties does not influence the internal business logic processing.

Description

A kind of method and device for business processing based on file
Technical field
The present invention relates to communication technical field, be specifically related to a kind of method and device for business processing based on file.
Background technology
Receivable (the AR of account, Account Receivable) equipment is responsible for the transaction processing between bank and the common carrier, this equipment can dock with a plurality of banks simultaneously, and flow process and the interface of docking all are flexibility and changeability usually, the variation of responding process and interface how fast, simultaneously, guarantee the stable of core business processing logic, the technical bottleneck when becoming AR equipment and docking with banking equipment.
AR equipment can be understood as the equipment of common carrier side, and AR equipment can be for different different paying flow process and the interfaces of bank's design, and still the inner parameter of most of paying flow process and interface has very large similarity.And in the AR equipment during for different bank, the file interface otherness of employing is very large.
In the prior art, the AR equipment of common carrier need to the traffic aided file layout, be converted to and the exercisable file layout of bank's the service of connection devices (also can be called " object format file ").In this document format conversion process, AR can use distinct interface to communicate by letter with the bank side according to different service logics, specifically can be that AR is according to the field in the traffic aided file, utilize structured query sentence (SQL, Structured Query Language) from the carrier side database, obtains data with Related fields, the data of obtaining are converted to the object format file; For example: get access to automatic payment request (Auto Pay Request) in the AR equipment, AR equipment is according to the field that comprises in the request, utilize SQL to go to obtain in the carrier side database information data with this Related fields, this information data is converted to the object format file; Again for example, for some business, AR need to calculate the data that are transferred to bank's side, become the object format file to output to again bank's side the data-switching after calculating, therefore, when the AR equipment investment was delivered for use, the field engineer need to configure in a large number to AR, so that AR is transferred to the data fit object format of bank's side apparatus.Therefore, when AR is delivered for use, need to carry out a large amount of configurations relevant with service logic to common carrier side AR, thereby set up the interface between common carrier side AR and the bank's side.
When AR after design is finished, when consigning to operator, if AR only consigns to an operator, then the debugging configuration to AR is disposable after payment, namely configure from the file of this Carrier Requirements form, arrive the configuration of bank's side requirement object format file conversion of cooperating with this operator, and in fact, AR need to consign to a plurality of different operators, and bank corresponding to different operators also is different, therefore, need to carry out different configurations to AR, so that different operators can change with the file layout between the corresponding bank, be different to the configuration of each AR, and, each very complicated to the layoutprocedure of AR, technician's requirement to present work is very high, easily makes mistakes inefficiency.
Summary of the invention
The embodiment of the invention provides a kind of method and device for business processing based on file, business processing between common carrier side and the bank's side is converted to processing based on file, make interface variation between common carrier side and the bank's side, can not affect the variation of service logic between the two, thereby reduce the complexity of common carrier side configuration AR.
The embodiment of the invention provides a kind of method for processing business based on file, and the method comprises:
Listed files is obtained in scanning;
According to store path and the filename of the file that records in the described listed files, file layout is changed; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then described file layout is to be converted to standard format from object format;
The described file that carries out after the format conversion is sent to corresponding destination device, so that the file of described destination device after according to described conversion carries out corresponding business processing; Wherein, if described file is to obtain from carrier side, then described destination device is described bank side apparatus; If described file is to obtain from bank's side, then described destination device is described carrier side equipment.
Preferably, described standard format specifically comprises: the extend markup language form; Described object format specifically comprises: extend markup language form, text formatting.
Preferably, the store path of described file according to recording in the described listed files and filename are changed file layout; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format, specifically comprises:
According to store path and the filename of the file that records in the described listed files, the identify label of coupling Extensible Stylesheet Language (XSL) masterplate example loads the Extensible Stylesheet Language (XSL) converter, is object format with the extend markup language format conversion.
Preferably, described scanning is obtained after the listed files, described file layout is changed before, described method also comprises:
Judge the public holiday whether time in the described listed files, if not the public holiday, carry out and described file layout is changed; If the public holiday then finishes.
Preferably, described file layout is changed before, described method also comprises:
Judge that whether described listed files is empty, if described listed files be sky, carry out and described file layout is changed; If described listed files is empty, then finish.
Preferably, described file layout is changed before, described method also comprises:
Whether the file layout in the described listed files of verification is correct; If described file layout is correct, carries out and described file layout is changed; If described file layout is incorrect, then finish.
Preferably, described file layout is changed after, described method also comprises:
To store in the immigration of the file in the described listed files backup path.
The embodiment of the invention also provides a kind of method for processing business based on file, and the method comprises:
Obtain the file material, comprise at least service handling information in the described material;
According to the file material that obtains, generate standard format files;
The standard format files that generates is transferred to file handler.
Preferably, described standard format files specifically comprises: the extend markup language formatted file.
The embodiment of the invention also provides a kind of method for processing business based on file, and the method comprises:
Receive the standard format files that file handler sends;
According to the standard format files that receives, carry out corresponding business processing.
Preferably, described standard format files comprises: demand file, perhaps response file wherein any.
The embodiment of the invention also provides a kind of file handler, and this document processor comprises: scanning element, converting unit, and transmitting element;
Described scanning element is used for scanning and obtains listed files
Described converting unit for store path and the filename of the file that records according to described listed files, is changed file layout; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then described file layout is to be converted to standard format from object format;
Described transmitting element, the file that is used for describedly carrying out after the format conversion sends to corresponding destination device, so that the file of described destination device after according to described conversion carries out the business processing of correspondence; Wherein, if described file is to obtain from carrier side, then described destination device is described bank side apparatus; If described file is to obtain from bank's side, then described destination device is described carrier side equipment.
Preferably, described standard format specifically comprises: the extend markup language form; Described object format specifically comprises: extend markup language form, text formatting.
Preferably, store path and the filename of the concrete file for recording according to described listed files of described converting unit, the identify label of coupling Extensible Stylesheet Language (XSL) masterplate example loads the Extensible Stylesheet Language (XSL) converter, is object format with the extend markup language format conversion.
Preferably, described file handler also comprises: the first judging unit, and the time that is used for judging described listed files is the public holiday whether, if not the public holiday, notifies described converting unit to carry out and described file layout is changed; If the public holiday then finishes.
Preferably, described file handler also comprises: the second judging unit, be used for judging whether described listed files is empty, and if described listed files be empty, notify that described converting unit execution is described to be changed file layout; If described listed files is empty, then finish.
Preferably, described file handler also comprises: verification unit, and whether the file layout that is used for the described listed files of verification is correct; If described file layout is correct, notifies described converting unit to carry out and described file layout is changed; If described file layout is incorrect, then finish.
Preferably, described file handler also comprises: storage unit, after file layout is changed, will store in the immigration of the file in the described listed files backup path.
The embodiment of the invention also provides a kind of account to answer receiving unit, comprising: acquiring unit, generation unit, and transmission unit;
Described acquiring unit is used for obtaining the file material, comprises at least service handling information in the described material;
Described generation unit is used for generating standard format files according to the file material that obtains;
Described transmission unit, the standard format files that is used for generating is transferred to file handler.
Preferably, described standard format files specifically comprises: the extend markup language formatted file.
The embodiment of the invention also provides a kind of account to answer receiving unit, comprising: receiving element, processing unit;
Described receiving element is used for receiving the standard format files that file handler sends;
Described processing unit is used for carrying out corresponding business processing according to the standard format files that receives.
Preferably, described standard format files comprises: demand file, perhaps response file wherein any.
As can be seen from the above technical solutions, the embodiment of the invention is carried out format conversion with the file of various flow processs mutual between carrier side and the bank's side, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then file layout is to be converted to standard format from object format; So that the file layout after the conversion can be identified by destination device.By using the method, so that the field engineer is to the AR Installation and Debugging during stage, how main debugging is converted to Standard File Format with the carrier side file layout, need not to consider the configuration between service logic and the interface, reduces the complexity to the AR configuration; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of method for processing business flow process simplified schematic diagram based on file that the embodiment of the invention one provides;
Fig. 2 is a kind of method for processing business flow process simplified schematic diagram based on file that the embodiment of the invention two provides;
Fig. 3 is a kind of method for processing business flow process simplified schematic diagram based on file that the embodiment of the invention three provides;
Fig. 4 is a kind of file handler simplified schematic diagram that the embodiment of the invention five provides;
Fig. 5 is that a kind of account that the embodiment of the invention six provides is answered the receiving unit simplified schematic diagram;
Fig. 6 is that a kind of account that the embodiment of the invention seven provides is answered the receiving unit simplified schematic diagram.
Embodiment
In the prior art, configuration to AR, requirement AR can be with the disposable object format that is mapped as of the file that is transferred to bank's side, so that the common carrier side is based on different business from communication interface between the bank side, has different communication interfaces, need in the configuration to AR to consider that different service logics carries out different configurations, and the field engineer can't obtain the design details of AR inside usually, and the relation to service logic is not understood, therefore, the field engineer configures easily failure to AR in the debug process at the scene, need to carry out customized development by the developer of AR, to having relatively high expectations of field engineer.The problems referred to above for prior art, the embodiment of the invention is found based on the research to prior art: the most operation flow of AR is similar characteristics with the interface inner parameter, employing is converted to mutual based on file with the service interaction between common carrier side and the bank's side, specifically can comprise: the file that carrier side is generated is converted to first Standard File Format, and carrier side is the object format that bank's side requires with the file conversion of Standard File Format again.The technical scheme that the embodiment of the invention provides need not to go out corresponding interface for concrete service design in AR so that interface and the service logic of communicating by letter between common carrier side and the bank side break away from, and has reduced the configuration to common carrier side AR.
Embodiment one
The embodiment of the invention provides a kind of method for processing business based on file, the executive agent of the method can be the equipment of carrier side, but be not limited to carrier side equipment, specifically can be that file handler (File Process) is carried out, can be with file handler as the interfacing equipment between carrier side and the bank's side, the main in the future file conversion of carrier side of this document processor is the exercisable file layout of bank's side, and then sends to bank's side apparatus; Perhaps, as shown in Figure 1, the method comprises:
Step 101: listed files is obtained in scanning;
Step 102: according to store path and the filename of the file that records in the listed files, file layout is changed; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then file layout is to be converted to standard format from object format;
It will be appreciated that, the listed files that step 102 File processor obtains from scanning, can know the source directory that comes of file, namely get access to the source of file, file normally derives from bank's side, or common carrier side, specifically can be that AR side or bank's side apparatus store file among the File Process into, a kind of concrete storage means is: all files are all left under the path, file be can distinguish by the filename prefix and AR side or bank's side apparatus specifically derived from, current a kind of specifying only is explanation for the ease of understanding, is not the restriction to the embodiment of the invention; In the situation that known the source, the file layout that file handler can be judged the source is converted into the file layout that destination device needs.
Wherein, said standard format in the step 102, can be understood as wish outputs to the file of bank's side from carrier side form, through the connecting interface between operator and the bank's side time, be standard format with the file format designs of carrier side, thereby it is the fixed understandable file layout of bank's side mark that object format can be understood as.Standard format can include but not limited to extend markup language (XML, Extensible Markup Language) form, and object format can comprise: the XML form, the form of text formatting or other customization does not limit herein.
Further, the store path of said file according to recording in the listed files and filename in the step 102, a kind of concrete operations that file layout is changed can comprise:
Identify flow process and current step according to file store path, filename prefix matching, finding operable xsl file format conversion masterplate according to flow process and current step, File Process uses xsl file format conversion masterplate that source file is changed.To change between standard format files and the object format file.Wherein, above-mentionedly identify current step and specifically can be: distinguishing current file be demand file, or response file; If demand file then can be judged the further processing of this document, if identify current step, namely this document is demand file, then can be converted to the fixed understandable file layout of bank's side mark, i.e. object format by this document.
Step 103: the file that will carry out after the file layout conversion sends to corresponding destination device, so that the file of described destination device after according to described conversion carries out corresponding business processing; If described file is to obtain from carrier side, then described destination device is bank's side apparatus; If described file is to obtain from bank's side, then described destination device is carrier side equipment.
Wherein, will carry out the operation that file after the file layout conversion sends to corresponding destination device in the step 103 can specifically comprise:
Step 1031: will carry out storing in the file immigration destination path after file layout is changed;
Also need to prove, the file that has been untreated in addition for fear of the AR that stores in File Process or bank's side apparatus is sent out away, the file that carries out after file layout is changed can be write in the temp directory, after AR or bank's side apparatus File are handled in destination path, will carry out again storing in the file immigration destination path after file layout is changed.
Step 1032: will move into the file of storing in the destination path and send to corresponding destination device.
By above-mentioned a kind of document conversion method that is applicable to the distinct interaction flow process that the embodiment of the invention is provided, the method is with the file of various flow processs mutual between carrier side and the bank's side, carry out format conversion, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then file layout is to be converted to standard format from object format; So that the file layout after the conversion can be identified by destination device.By using the method, so that the field engineer is to the AR Installation and Debugging during stage, how main debugging is converted to Standard File Format with the carrier side file layout, need not to consider the configuration between service logic and the interface, reduces the complexity to the AR configuration; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Preferably, after step 101, before the step 102, method can further include:
Step 104: judge the public holiday whether time in the listed files obtain; If not the public holiday, then carry out subsequent step 102; If the public holiday then finishes.
By increasing step 104 so that this document treatment facility can be synchronous with the working time of bank side, namely only on weekdays for carrying out the file processing service between operator and the bank.
Preferably, after step 101, before the step 102; Perhaps after step 104, before the step 102, the method can also comprise:
Step 105: judge whether the listed files that scanning is obtained is empty; If the listed files that obtains then finishes for empty; If for empty, then execution in step 102 for the listed files that obtains;
By increasing step 105, so that file handler can be more intelligent.
Preferably, after step 101, before the step 102; Perhaps after step 105, before the step 102, the method can also comprise:
Step 106: whether the file layout in the listed files that verification is obtained is correct; If file layout is correct, then execution in step 102; If file layout is incorrect, then finish;
Wherein, the verification file layout mainly is the normative document that produces for AR in the step 106, and these files are XML forms, and whether file layout correctly is exactly to see whether XML meets the definition of XML file, for example: whether lack "<" or "〉", etc.
It will be appreciated that, if the file that scanning is obtained is from the common carrier side, then file layout can be thought standard format files; If the file that scanning is obtained is from bank's side, then file layout can be thought the object format file.Wherein, standard format files can be the XML file specifically, but is not limited to the XML file; The object format file can be the XML file, and the form of text formatting or other customization does not limit herein.
By increasing step 106, so that file handler can be judged the file file of correct format whether that need to carry out the file layout conversion, reduce the probability of in operating process, makeing mistakes, improved the file handler work efficiency.
Preferably, after step 103, the method can also comprise:
Step 107: will store in the file in the listed files that obtain in the step 101 (perhaps being called " source file ") the immigration backup path;
Wherein, source file in the tabulation of step 101 File is moved into the purpose of storing in the backup path, be to avoid again scan identical file next time, repeats to process.
By increasing step 107, can be that file handler can back up the file of processing, when needing for equipment failure or other, can record be arranged to the file of once processing, be convenient to the query demand of equipment recovery or other purposes.Because the restriction of storage space, the technician can arrange file handler, and be set the storage time that is stored in the source file under the backup path, supposes it specifically can is 30 days.
Preferably, after step 103, the method can also comprise:
Step 108: the state that records the file processing that scanning is obtained;
Wherein, for the ease of the accurate control to each file processing state, the state of the file processing that file processor can obtain scanning carries out record.The content of record can comprise: paper conveyance direction, for example: to bank's side transmission, perhaps opposite by carrier side; Source directory; Raw filename; The time of file generated; The time of processing; The duration of processing, the start time and the concluding time that are used for each file processing time of record are poor; The record number; Result; Reason; File directory after the processing; Filename after the processing etc.Here be giving an example of being convenient to understand, and non exhaustive.
By increasing step 108, so that file handler can keep a record to the file of processing, be convenient to the demands such as subsequent query.
Embodiment two
The embodiment of the invention provides a kind of method for processing business based on file, and the method is similar to embodiment one, distinguishes only to be, the embodiment of the invention is for the process from the proactive payment of common carrier side.There are three network elements to participate in the process of this proactive payment (Auto Pay), comprise: inner network element, file handler, ext nal network element.It will be appreciated that, in this document with the common carrier side as inside, outside conduct outside, such as bank's side as ext nal network element; Carry out payment operation from the common carrier side and be called proactive payment, the operation of paying the bill from bank's side is called passive payment.
Also need to prove, inner network element specifically can refer to the AR equipment of common carrier side, but is not limited to AR equipment, for the ease of understanding, follow-uply is illustrated as concrete inner network element with AR equipment.As shown in Figure 2, the method comprises:
Step 201:AR obtains the file material, comprises at least service handling information in the described material; According to the file material that obtains, generate standard format files; The standard format files that generates is transferred to file handler;
Wherein, for the ease of understanding, be appreciated that the demand file of AR equipment generation standard format in the step 201, demand file is sent to file handler; This demand file can refer to that specifically communication user carries out the request of initiatively paying by the common carrier side, is giving an example of being convenient to understand herein, is not the restriction to inventive embodiments;
Wherein, the standard format that AR equipment generates is in this embodiment take the XML form as example, but is not limited to the XML form.Wherein, in the file of the standard format that in AR equipment, generates, at least comprise the flow process type (FlowType) that this document is used, be used for the file that difference is used for different flow processs, for example: the flow process type can comprise: initiatively pay, passive paying, the flow processs such as clearing, but be not limited to current flow process type of giving an example.
A kind of concrete mode that the demand file that AR equipment will generate standard format sends to file handler can be: the standard format files that generates Routing Number (BankCode) catalogue from AR is forwarded under the BankCode catalogue of FileProcess.If take the Routing Number (BankCode) of virtual bank as 0001, the Routing Number of China Merchants Bank is 0002 to give an example, FileProcess with the file of Bank of China just be placed on .. ArtoBank 0001 under; FileProcess with the file of China Merchants Bank just be placed on .. ArtoBank 0002 time.The embodiment of the invention does not limit the demand file that alternate manner will generate standard format and sends to file handler.
Further need to prove, if AR equipment at first obtains the material of demand file when needs generate the demand file of standard format, this material comprises the required information of business processing.For example: AR equipment needs initiatively paying customer's telephone number obtaining, and bank account, the information such as arrearage information, these information specifically can be hereof embody with the form of field.In AR equipment, also preserve the file of the standard format of Related fields, wherein, in the corresponding standard format files, include the information relevant with corresponding field that bank's side is paid close attention to, the designer is in when design, the information of trying one's best consideration bank side detailed and pay close attention to according to the requirement of business and the mapping relations between the corresponding field.Therefore, AR equipment is write needed information in the standard format files according to operation flow and the good Standard File Format of predefine, more complete standard format files is sent to file handler.In embodiments of the present invention, find the file that corresponds to standard format according to the field that specifically comprises in the AR equipment.Therefore, at the beginning of design, the configuration of interface between bank's side and common carrier side only needs to consider to be converted to the relevant configuration of object format file from standard format files.With the flow process that needs in the prior art to consider that the different business logic is corresponding, according to different field in the different flow processs, from common carrier side data storehouse, repeatedly obtain again and the field relevant information, then the configuration of relevant information being changed according to the object format file is compared, the technical scheme that the embodiment of the invention provides, business processing between common carrier side and the bank's side is based on the processing of file, the common carrier side is separated with service logic with the communication interface between the bank side, effectively reduce the complexity of configuration, improved allocative efficiency.
Step 202: the listed files of the demand file that file handler scanning is obtained; According to store path and the filename of the file that records in the listed files, file layout is changed; Wherein, file handler judges that file is from AR equipment, be object format file (being assumed to be in the present embodiment text formatting, only is the concrete example of being convenient to understand, and should not be construed the restriction to the embodiment of the invention) with file layout by the XML format conversion of standard then.
Wherein, in step 202, a kind of concrete operations that file handler will carry out from the file of AR format conversion can be: according to store path and the filename of this document, and coupling Extensible Stylesheet Language (XSL) (XSL, Extensible Stylesheet Language) masterplate example identify label (ID, Identity) load the XSL converter, the XML formatted file is converted to object format, and wherein, object format specifically can be: the XML form, text formatting, perhaps other custom formats etc.A kind of concrete operations that file handler will carry out from the file of AR format conversion are not limited to current giving an example, and also can be other conversion methods.
Step 203: file handler sends to banking equipment with the text formatting file that generates.
Step 204: ext nal network element receives the text formatting file, judges that this document is demand file, carries out the active paid service according to demand file and processes, and is optional, and ext nal network element sends the response file of text formatting to file handler;
Wherein, ext nal network element is carried out the active paid service according to demand file and is processed, and specifically can be: to the user account operation of deducting fees, but be not limited to current active paid service processing of giving an example.
Also it will be appreciated that, for some business, file handler can only send demand file, can not have response file; But some business, file handler sends a demand file, can receive a plurality of response file.Can think that file handler sends a demand file, receives a demand file current in for example.
Step 205: the listed files of the response file that file handler scanning is obtained; According to store path and the filename of the file that records in the listed files, file layout is changed; Wherein, file handler judges that response file from bank's side, then is converted to file layout the XML form of standard by text formatting;
Step 206: the response file that file handler will be converted to the XML form of standard sends to AR equipment;
Step 207:AR receives the standard format files that file handler sends; According to the standard format files that receives, carry out corresponding business processing.Receive response file as example take AR in the present embodiment, carry out the active paid service according to the response file of standard x ML form and process.Need to prove, AR also can receive demand file, carries out corresponding business processing according to demand file.
Wherein, AR carries out active paid service processing according to the response file of standard x ML form in the step 207, specifically can be: send to user charges and successfully reach account balance information, process but be not limited to current active paid service of giving an example.
By above-mentioned a kind of document conversion method that is applicable to the distinct interaction flow process that the embodiment of the invention is provided, by the file of the method with various flow processs mutual between carrier side and the bank's side, carry out format conversion, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then file layout is to be converted to standard format from object format; So that the file layout after the conversion can be identified by destination device.By using the method, so that the field engineer reduces the complexity to the AR configuration the AR Installation and Debugging during stage, are mainly debugged how the carrier side file layout is converted to Standard File Format; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Embodiment three
The embodiment of the invention provides a kind of method for processing business based on file, and the method is similar to embodiment one, distinguishes only to be, the embodiment of the invention is for the process from bank's side payment, can think " passive paying ".
As shown in Figure 3, the method comprises:
Step 301: the demand file of banking equipment generating custom form sends to file handler with demand file; This demand file can refer to that specifically communication user carries out the request of passive paying by bank's side, also can be other;
Wherein, the demand file that banking equipment generates in the step 301 is the form of customization, specifically also can but be not limited to XML, text formatting, perhaps extended formatting.The file layout that generates as banking equipment with text formatting among this embodiment is object as an illustration.
Step 302: the listed files of the demand file that file handler scanning is obtained; According to store path and the filename of the file that records in the listed files, file layout is changed; Wherein, file handler judges that file is from banking equipment, specifically can be: file handler identifies file from banking equipment according to store path and the filename of file, text formatting is converted to the file layout (file layout that common carrier is required with the XML form as giving an example of being convenient to understand) of common carrier requirement here;
A kind of more detailed embodiment comprises: file handler can be placed on this locality with the file after the conversion, and take BankCode as differentiation, periodic scanning arrives file synchronization under the corresponding BankCode catalogue of AR.The mechanism that this file transmits is similar to Bank to File Process transmitting file or gets file, and file handler will convert the catalogue that is put into appointment mainly for the treatment of the conversion of file layout, obtains file after the conversion by other network elements.Be giving an example of being convenient to understand, be not the restriction to the embodiment of the invention herein.
Step 303: file handler sends to AR equipment with the XML file that generates;
Step 304:AR equipment receives the XML file, judges that this document is demand file, carries out passive paid service according to demand file and processes, and sends the response file of XML to file handler;
Wherein, AR carries out passive paid service processing according to demand file in the step 304, specifically can be: after AR receives demand file, add money for each user and process, if the user has been in the dun state, then no longer continue to press for payment of.Giving an example of being convenient to understand herein, and non exhaustive.
Step 305: the listed files of the response file that file handler scanning is obtained; According to store path and the filename of the file that records in the listed files, file layout is changed; Wherein, file handler judges that response file from the common carrier side, is text formatting with file layout by the XML format conversion then;
Step 306: the response file that file handler will be converted to text formatting sends to banking equipment;
Step 307: banking equipment receives response file, carries out passive paid service according to the response file of text formatting and processes.Wherein, the passive paid service that banking equipment carries out is processed and specifically can is: after bank receives response file, and the Transaction Success of record designated user, but be not limited to current giving an example.
By above-mentioned a kind of document conversion method that is applicable to the distinct interaction flow process that the embodiment of the invention is provided, by the file of the method with various flow processs mutual between carrier side and the bank's side, carry out format conversion, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then file layout is to be converted to standard format from object format; So that the file layout after the conversion can be identified by destination device.By using the method, so that the field engineer reduces the complexity to the AR configuration the AR Installation and Debugging during stage, are mainly debugged how the carrier side file layout is converted to Standard File Format; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Embodiment four
The embodiment of the invention provides a kind of method for processing business based on file, and the method is similar to embodiment one, and in this embodiment, the operation in the common carrier side file handler can be identical with the operation of embodiment one explanation.Embodiment four is with the difference of first three embodiment, comprise: on the one hand, AR equipment for the common carrier side, can be according to concrete business demand, or other requirement, send one or more demand file to bank's side, perhaps can receive one or more response file that bank's side sends; On the other hand, for bank's side apparatus, can be according to concrete business demand, or other requirement, receive one or more demand file that the common carrier side sends, perhaps can send one or more response file to the common carrier side.
In the present embodiment, file handler can a plurality of demand files of concurrent processing or response file, when processing and fat file, the treatment scheme of each file is identical with treatment scheme in above-described embodiment one, two, three, difference mainly is: equipment how to distinguish each file ownership, can identify the equipment of each file ownership when file handler, just can support the operation of a plurality of files of concurrent processing.A plurality of files are also arranged from Bank to AR, if do the relationship maps (which file is demand file, and which is response file) of file, in fact depend on the file interface of Bank.If comprise the sequence number of sequence number and step in the filename of Bank, just can be mapped by sequence number and the step of AR source document, first demand file such as demand file autopay_20120618_0001_1.unl, first step in the corresponding autopay flow process, after Bank finishes dealing with, return response file autopayres_20112068_0001_1.unl, logical autopay, autopayres, 00011 can know that these two files are one to one.The relationship maps of file can also be according to file header, and concrete operations and above-mentioned explanation are similar, can easily draw.The relationship maps of file can also adopt the mode of intelligence comparison Subscriber Number, has the demand file of same subscriber number and response file as the file of correspondence, thereby judges the equipment of file ownership.Giving an example of being convenient to understand herein, and non exhaustive.
Embodiment five
The embodiment of the invention also provides a kind of file handler, and as shown in Figure 4, this document processor comprises: scanning element 401, converting unit 402, and transmitting element 403;
Described scanning element 401 is used for scanning and obtains listed files
Described converting unit 402 for store path and the filename of the file that records according to described listed files, is changed file layout; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then described file layout is to be converted to standard format from object format;
Described transmitting element 403, the file that is used for describedly carrying out after the format conversion sends to corresponding destination device, so that the file of described destination device after according to described conversion carries out the business processing of correspondence; Wherein, if described file is to obtain from carrier side, then described destination device is described bank side apparatus; If described file is to obtain from bank's side, then described destination device is described carrier side equipment.
By above-mentioned a kind of file handler that the embodiment of the invention is provided, this document processor is with the file of various flow processs mutual between carrier side and the bank's side, carry out format conversion, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then file layout is to be converted to standard format from object format; So that the file layout after the conversion can be identified by destination device.By using this document processor, so that the field engineer is to the AR Installation and Debugging during stage, how main debugging is converted to Standard File Format with the carrier side file layout, need not to consider the configuration between service logic and the interface, reduces the complexity to the AR configuration; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Preferably, described standard format specifically comprises: the extend markup language form; Described object format specifically comprises: extend markup language form, text formatting.
Preferably, store path and the filename of the concrete file for recording according to described listed files of described converting unit, the identify label of coupling Extensible Stylesheet Language (XSL) masterplate example loads the Extensible Stylesheet Language (XSL) converter, is object format with the extend markup language format conversion.
Preferably, described file handler also comprises: the first judging unit 404, and the time that is used for judging described listed files is the public holiday whether, if not the public holiday, notifies described converting unit to carry out and described file layout is changed; If the public holiday then finishes.
By increasing by the first judging unit 404 so that this document treatment facility can be synchronous with the working time of bank side, namely only on weekdays for carrying out the file processing service between operator and the bank.
Preferably, described file handler also comprises: the second judging unit 405, be used for judging whether described listed files is empty, and if described listed files be empty, notify that described converting unit execution is described to be changed file layout; If described listed files is empty, then finish.
By increasing step 405, so that file handler can be more intelligent.
Preferably, described file handler also comprises: verification unit 406, and whether the file layout that is used for the described listed files of verification is correct; If described file layout is correct, notifies described converting unit to carry out and described file layout is changed; If described file layout is incorrect, then finish.
So that file handler can be judged the file file of correct format whether that need to carry out the file layout conversion, reduce the probability of in operating process, makeing mistakes by increasing verification unit 406, improved the file handler work efficiency.
Preferably, described file handler also comprises: storage unit 407, after file layout is changed, will store in the immigration of the file in the described listed files backup path.
By increasing storage unit 407, can be that file handler can back up the file of processing, when needing for equipment failure or other, can record be arranged to the file of once processing, be convenient to the query demand of equipment recovery or other purposes.
Embodiment six
The embodiment of the invention also provides a kind of account to answer receiving unit, as shown in Figure 5, comprising: acquiring unit 501, generation unit 502, and transmission unit 503;
Described acquiring unit 501 is used for obtaining the file material, comprises at least service handling information in the described material;
Described generation unit 502 is used for generating standard format files according to the file material that obtains;
Described transmission unit 503, the standard format files that is used for generating is transferred to file handler.
By using this AR, so that the field engineer is to the AR Installation and Debugging during stage, how main debugging is converted to Standard File Format with the carrier side file layout, need not to consider the configuration between service logic and the interface, reduces the complexity to the AR configuration; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Preferably, described standard format files specifically comprises: the extend markup language formatted file.
Embodiment seven
The embodiment of the invention provides a kind of account to answer receiving unit, as shown in Figure 6, comprising: receiving element 601 and processing unit 602;
Described receiving element 601 is used for receiving the standard format files that file handler sends;
Described processing unit 602 is used for carrying out corresponding business processing according to the standard format files that receives.
By using this AR, so that the field engineer is to the AR Installation and Debugging during stage, how main debugging is converted to Standard File Format with the carrier side file layout, need not to consider the configuration between service logic and the interface, reduces the complexity to the AR configuration; Simultaneously, the method is with operation flow and file processing decoupling zero, and the variation of external file interface does not affect the interior business logical process; The docking that Adds Bank such as newly-increased flow process or interface, does not affect the interior business logical process; Revise existing and the third-party interface of bank, do not affect the interior business logical process.
Preferably, described standard format files comprises: demand file, perhaps response file wherein any.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Above a kind of method and device for business processing based on file provided by the present invention is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (22)

1. the method for processing business based on file is characterized in that, the method comprises:
Listed files is obtained in scanning;
According to store path and the filename of the file that records in the described listed files, file layout is changed; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then described file layout is to be converted to standard format from object format;
The described file that carries out after the format conversion is sent to corresponding destination device, so that the file of described destination device after according to described conversion carries out corresponding business processing; Wherein, if described file is to obtain from carrier side, then described destination device is described bank side apparatus; If described file is to obtain from bank's side, then described destination device is described carrier side equipment.
2. method according to claim 1 is characterized in that, described standard format specifically comprises: the extend markup language form; Described object format specifically comprises: extend markup language form, text formatting.
3. method according to claim 2 is characterized in that, the store path of described file according to recording in the described listed files and filename are changed file layout; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format, specifically comprises:
According to store path and the filename of the file that records in the described listed files, the identify label of coupling Extensible Stylesheet Language (XSL) masterplate example loads the Extensible Stylesheet Language (XSL) converter, is object format with the extend markup language format conversion.
4. method according to claim 1 is characterized in that, described scanning is obtained after the listed files, described file layout is changed before, described method also comprises:
Judge the public holiday whether time in the described listed files, if not the public holiday, carry out and described file layout is changed; If the public holiday then finishes.
5. method according to claim 1 is characterized in that, described file layout is changed before, described method also comprises:
Judge that whether described listed files is empty, if described listed files be sky, carry out and described file layout is changed; If described listed files is empty, then finish.
6. method according to claim 1 is characterized in that, described file layout is changed before, described method also comprises:
Whether the file layout in the described listed files of verification is correct; If described file layout is correct, carries out and described file layout is changed; If described file layout is incorrect, then finish.
7. method according to claim 1 is characterized in that, described file layout is changed after, described method also comprises:
To store in the immigration of the file in the described listed files backup path.
8. the method for processing business based on file is characterized in that, the method comprises:
Obtain the file material, comprise at least service handling information in the described material;
According to the file material that obtains, generate standard format files;
The standard format files that generates is transferred to file handler.
9. method according to claim 8 is characterized in that, described standard format files specifically comprises: the extend markup language formatted file.
10. the method for processing business based on file is characterized in that, the method comprises:
Receive the standard format files that file handler sends;
According to the standard format files that receives, carry out corresponding business processing.
11. method according to claim 10 is characterized in that, described standard format files comprises: demand file, perhaps response file wherein any.
12. a file handler is characterized in that, this document processor comprises: scanning element, converting unit, and transmitting element;
Described scanning element is used for scanning and obtains listed files;
Described converting unit for store path and the filename of the file that records according to described listed files, is changed file layout; Wherein, if described file is to obtain from carrier side, then file layout is to be converted to object format from standard format; If described file is to obtain from bank's side, then described file layout is to be converted to standard format from object format;
Described transmitting element, the file that is used for describedly carrying out after the format conversion sends to corresponding destination device, so that the file of described destination device after according to described conversion carries out the business processing of correspondence; Wherein, if described file is to obtain from carrier side, then described destination device is described bank side apparatus; If described file is to obtain from bank's side, then described destination device is described carrier side equipment.
13. file handler according to claim 12 is characterized in that, described standard format specifically comprises: the extend markup language form; Described object format specifically comprises: extend markup language form, text formatting.
14. file handler according to claim 13, it is characterized in that, store path and the filename of the concrete file for recording according to described listed files of described converting unit, the identify label of coupling Extensible Stylesheet Language (XSL) masterplate example loads the Extensible Stylesheet Language (XSL) converter, is object format with the extend markup language format conversion.
15. file handler according to claim 12, it is characterized in that, described file handler also comprises: the first judging unit, the time that is used for judging described listed files is the public holiday whether, if not the public holiday, notify described converting unit to carry out and described file layout is changed; If the public holiday then finishes.
16. file handler according to claim 12, it is characterized in that, described file handler also comprises: the second judging unit is used for judging whether described listed files is empty, if described listed files is not empty, notifies described converting unit to carry out and described file layout is changed; If described listed files is empty, then finish.
17. file handler according to claim 12 is characterized in that, described file handler also comprises: verification unit, and whether the file layout that is used for the described listed files of verification is correct; If described file layout is correct, notifies described converting unit to carry out and described file layout is changed; If described file layout is incorrect, then finish.
18. file handler according to claim 12 is characterized in that, described file handler also comprises: storage unit, after file layout is changed, will store in the immigration of the file in the described listed files backup path.
19. an account is answered receiving unit, it is characterized in that, comprising: acquiring unit, generation unit, and transmission unit;
Described acquiring unit is used for obtaining the file material, comprises at least service handling information in the described material;
Described generation unit is used for generating standard format files according to the file material that obtains;
Described transmission unit, the standard format files that is used for generating is transferred to file handler.
20. equipment according to claim 19 is characterized in that, described standard format files specifically comprises: the extend markup language formatted file.
21. an account is answered receiving unit, it is characterized in that, comprising: receiving element, processing unit;
Described receiving element is used for receiving the standard format files that file handler sends;
Described processing unit is used for carrying out corresponding business processing according to the standard format files that receives.
22. equipment according to claim 21 is characterized in that, described standard format files comprises: demand file, perhaps response file wherein any.
CN2012103264534A 2012-09-05 2012-09-05 Business processing method and business processing device based on file Pending CN102880669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103264534A CN102880669A (en) 2012-09-05 2012-09-05 Business processing method and business processing device based on file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103264534A CN102880669A (en) 2012-09-05 2012-09-05 Business processing method and business processing device based on file

Publications (1)

Publication Number Publication Date
CN102880669A true CN102880669A (en) 2013-01-16

Family

ID=47481995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103264534A Pending CN102880669A (en) 2012-09-05 2012-09-05 Business processing method and business processing device based on file

Country Status (1)

Country Link
CN (1) CN102880669A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872852A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Video processing method, video processing device and video player
CN106936898A (en) * 2017-02-23 2017-07-07 中国银行股份有限公司 A kind of transregional document transmission method and system
CN111091339A (en) * 2018-10-24 2020-05-01 北京数聚鑫云信息技术有限公司 Device and method for automatically analyzing information in e-mail
CN111949614A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Bank system file conversion method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334887A (en) * 2008-08-07 2008-12-31 金蝶软件(中国)有限公司 Financial data-handling process and bank enterprise platform device
CN101706934A (en) * 2009-12-01 2010-05-12 中国建设银行股份有限公司 Method and system for processing automotive financial bank businesses
CN102156944A (en) * 2010-02-11 2011-08-17 中国工商银行股份有限公司 Data processing method and system for realizing bank-enterprise interconnection
CN102629263A (en) * 2012-02-29 2012-08-08 上海安捷力信息系统有限公司 Method and system for format conversion of interactive business data among enterprises

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334887A (en) * 2008-08-07 2008-12-31 金蝶软件(中国)有限公司 Financial data-handling process and bank enterprise platform device
CN101706934A (en) * 2009-12-01 2010-05-12 中国建设银行股份有限公司 Method and system for processing automotive financial bank businesses
CN102156944A (en) * 2010-02-11 2011-08-17 中国工商银行股份有限公司 Data processing method and system for realizing bank-enterprise interconnection
CN102629263A (en) * 2012-02-29 2012-08-08 上海安捷力信息系统有限公司 Method and system for format conversion of interactive business data among enterprises

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872852A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Video processing method, video processing device and video player
CN106936898A (en) * 2017-02-23 2017-07-07 中国银行股份有限公司 A kind of transregional document transmission method and system
CN106936898B (en) * 2017-02-23 2020-06-05 中国银行股份有限公司 Cross-region file transmission method and system
CN111091339A (en) * 2018-10-24 2020-05-01 北京数聚鑫云信息技术有限公司 Device and method for automatically analyzing information in e-mail
CN111949614A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Bank system file conversion method and device
CN111949614B (en) * 2020-08-12 2024-04-02 中国工商银行股份有限公司 Bank system file conversion method and device

Similar Documents

Publication Publication Date Title
US7971145B2 (en) Systems and methods for adapting service interface behaviors
CN102637214B (en) Method and system for synchronizing general data among database services
CN110365751B (en) Service processing method, device and equipment of gateway system
CN110351325B (en) Data processing method and related equipment
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
US8707329B2 (en) Open framework system for heterogeneous computing and service integration
CN105808365A (en) HIS (Hospital Information System) interface calling method and HIS interface configuration method
CN103294652A (en) Data conversion method and system
CN102880669A (en) Business processing method and business processing device based on file
CN108762898A (en) A kind of management method, terminal device and the computer readable storage medium of thread interface
CN112288577A (en) Transaction processing method and device for distributed service, electronic equipment and medium
CN108415757A (en) distributed transaction processing method and device
CN111190750B (en) Data processing method and system
CN109491802A (en) A kind of method and adapter of the RESTFul network request based on Unity
US7831955B2 (en) Development and execution platform
CN116643854A (en) Service arrangement method and device, flow controller and task processor
CN110134380A (en) A kind of code generating method based on template engine, device and electronic equipment
US10725744B2 (en) Method for adapting to blockchain and device, terminal and medium performing the same
WO2023208132A1 (en) Api conversion system and access request processing method therefor, and electronic device and medium
KR102407941B1 (en) User interface generation method of electronic device calling function or procedure of external device based on remote procedure call(rpc), program and electronic device thereof
CN107885604A (en) Method and device, computer equipment and the storage medium of communications between heterogeneous systems
CN115421698A (en) Data processing method and device based on declarative and distributed accounts book and electronic device
CN106469168B (en) The method and device that diversiform data is handled in data integrated system
KR101547346B1 (en) Synchronous/asynchronous communication for business integration, interoperation of dynamic professional management system
CN112925655B (en) Decoupling system for dividing service and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130116