Text processing device and method for bank peripheral system
By designing text processing devices and methods in the bank peripheral system and optimizing the text processing flow, the problem of delaying batch task startup time in the prior art is solved, and higher timeliness and earlier task execution is achieved.
Patent Information
- Application Number
- CN202110659811.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-15
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-06-15
AI Technical Summary
The text processing method of existing bank peripheral systems has resulted in delaying the start time of important batch tasks, which cannot meet the customer's improvement in timeliness requirements, especially some tasks only require part of the text to be performed.
Design a text processing device and method for bank peripheral systems, including text receiving module, text processing module, text dependency inspection module, text requirement module, text generation module and text sending module, optimize text processing flow through configuration to ensure the program It can be executed immediately after the text is processed without waiting for other irrelevant text.
By optimizing the text processing process, the execution time is shortened, ensuring that some programs can be executed earlier, and meeting customers' timeliness needs for data.
Smart Images

Figure CN113220869B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a text processing device and method for a bank peripheral system. Background Art
[0002] In the bank's peripheral systems, when it comes to the generation and sending of core texts, the existing text processing process is: wait until all the core texts are complete, then load and process them uniformly, and only after all the texts are loaded will the system batch tasks related to the text be executed.
[0003] As batch tasks and bulk documents continue to increase, the start time of important batch tasks is repeatedly delayed. Furthermore, clients are increasingly demanding timeliness for some important batch tasks (such as entrusted loans), which only require partial documents, not the entire document. Therefore, current text processing methods are no longer able to meet production requirements. Summary of the Invention
[0004] An embodiment of the present invention provides a text processing device for a bank peripheral system, which is used to process text in the bank peripheral system with good timeliness. The device includes:
[0005] The text receiving module is used to receive the text transmitted from the text platform to the bank's peripheral system after receiving the call instruction, and filter out the text that needs to be processed according to the configured text name;
[0006] A text processing module, configured to process the text to be processed after receiving the processing instruction, store the processed text in the first database, and update the processing status of the text;
[0007] The text dependency check module is used to check whether the processing status of all texts required by the configured program is successful after receiving the check instruction. If so, the text requirement module is executed;
[0008] A text requirement module, used to process the text in the first database and put it into the second database;
[0009] A text generation module, configured to generate a sending text based on the text in the second database;
[0010] The text sending module is used to configure the text to be sent into the text sending configuration table. The text in the text sending configuration table is sent out regularly by the text sending timing task.
[0011] An embodiment of the present invention provides a text processing method for a bank peripheral system, which is used to process text in the bank peripheral system with good timeliness. The method includes:
[0012] After receiving the call instruction, the receiving text platform transmits the text to the bank's peripheral system, and filters out the text that needs to be processed according to the configured text name;
[0013] After receiving the processing instruction, processing the text that needs to be processed, putting the processed text into the first database, and updating the processing status of the text;
[0014] After receiving the check instruction, check whether the processing status of all texts required by the configured program is successful;
[0015] If so, the text in the first database is processed and placed in the second database;
[0016] Generate a sending text according to the text in the second database;
[0017] The text to be sent is configured in the text sending configuration table, and the text in the text sending configuration table is sent out regularly by the text sending timing task.
[0018] An embodiment of the present invention further provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the text processing method of the bank peripheral system described above is implemented.
[0019] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for executing the above-mentioned text processing method of the bank peripheral system.
[0020] In an embodiment of the present invention, a text receiving module is used to receive texts transmitted from a text platform to a bank peripheral system after receiving a call instruction, and filter out texts that need to be processed according to the configured text names; a text processing module is used to process texts that need to be processed after receiving a processing instruction, put the processed texts into a first database, and update the processing status of the texts; a text dependency checking module is used to check whether the processing status of all texts required by the configured program is successful after receiving a check instruction, and if so, execute a text requirement module; a text requirement module is used to process the texts in the first database and put them into a second database; a text generation module is used to generate a sending text based on the texts in the second database; a text sending module is used to configure the sending text into a text sending configuration table, and the texts in the text sending configuration table are sent out regularly by a text sending timing task. In the above process, the configuration method can be used, including the configured text name, configured program, and text sending configuration, to ensure that the program text can be executed immediately after processing without waiting for other unrelated texts; and the text in the text sending configuration table can be sent out regularly through the text scheduled sending task, which can shorten the execution time to a certain extent and ensure that some programs can be executed earlier, meeting the customer's demand for data. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0022] Figure 1 Schematic diagram of a text processing device of a bank peripheral system according to an embodiment of the present invention;
[0023] Figure 2 Schematic diagram of the relationship between the text processing device and other systems of the bank peripheral system in an embodiment of the present invention;
[0024] Figure 3 A detailed flow chart of a text processing device using a bank peripheral system in an embodiment of the present invention;
[0025] Figure 4 Flowchart of a text processing method of a bank peripheral system according to an embodiment of the present invention;
[0026] Figure 5 Schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] To make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0028] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps therein is not limited and can be appropriately adjusted as needed.
[0029] The inventors discovered that, after sorting out the dependencies of current batch tasks, there are currently no batch tasks that require all texts to be present before execution. Each batch task only relies on a portion of the text. Furthermore, after analyzing the time it takes for texts to be delivered during production, it was found that the arrival times of texts vary. Therefore, if texts are sorted and processed according to batch tasks, the start time of some important batch tasks can be advanced to a certain extent, thereby enabling the entire batch to meet current production needs. Therefore, the present invention proposes a method of processing each text individually, that is, each text is loaded if it meets the loadable conditions.
[0030] Figure 1 FIG. 1 is a schematic diagram of a text processing device of a bank peripheral system according to an embodiment of the present invention. Figure 1 As shown, the device includes:
[0031] The text receiving module 101 is used to receive the text transmitted from the text platform to the bank's peripheral system after receiving the call instruction, and filter out the text that needs to be processed according to the configured text name;
[0032] The text processing module 102 is used to process the text to be processed after receiving the processing instruction, put the processed text into the first database, and update the processing status of the text;
[0033] The text dependency checking module 103 is used to check whether the processing status of all texts required by the configured program is successful after receiving the checking instruction, and if so, execute the text requirement module 104;
[0034] The text requirement module 104 is used to process the text in the first database and put it into the second database;
[0035] The text generation module 105 is used to generate a sending text based on the text in the second database;
[0036] The text sending module 106 is used to configure the text to be sent into the text sending configuration table. The text in the text sending configuration table is sent out at a fixed time by the text sending timing task.
[0037] In an embodiment of the present invention, the configuration method can be used, specifically including the configured text name, the configured program, and the text sending configuration, to ensure that the program text can be executed immediately after processing without waiting for other unrelated texts; and the text in the text sending configuration table can be sent out regularly through the text scheduled sending task, which can shorten the execution time to a certain extent and ensure that some programs can be executed earlier, meeting the customer's demand for data.
[0038] Figure 2 Schematic diagram of the relationship between the text processing device of the bank peripheral system and other systems in an embodiment of the present invention. The text processing device of the bank peripheral system receives the downloaded text from the text platform.
[0039] In one embodiment, the text receiving module is further configured to: after receiving the text transmitted from the text receiving platform to the bank's peripheral system, read the configured text name from the text information configuration table; write the selected text to be processed into the text receiving detail table;
[0040] The text processing module is further used to: process the texts in the text receiving detail table that need to be processed, and update the processing status of the texts in the text receiving detail table;
[0041] The text dependency check module is also used to: read the program configured in the task text configuration comparison table, and all texts required by the configured program; query the text receiving details table to check whether the processing status of all texts required by the configured program is successful.
[0042] In the above embodiment, if the text dependency check module checks that the processing status of all texts required by the configured program is not successful, then the text dependency check module is always in a polling state. There are multiple programs in the task text configuration comparison table, and each program may also have multiple required texts. The above multiple programs may be batch programs. In one embodiment, if the text dependency check module checks that the processing status of all texts required by the configured program is not successful, a pre-processing instruction is sent to the text processing module. After receiving the pre-processing instruction, the text processing module gives priority to processing the text in the pre-processing instruction.
[0043] In one embodiment, the text information configuration table includes at least a text name field and a text priority field;
[0044] The text receiving details table at least includes a text name field and a processing status field;
[0045] The task text configuration comparison table includes at least a program name field and a corresponding text name field;
[0046] The text sending configuration table includes at least a text name field, a text path field, a target system field, and a sending method field.
[0047] In one embodiment, the calling instruction is a CRONTAB timing calling instruction; the CRONTAB timing calling instruction is issued after the daily task is completed;
[0048] The processing instruction is a timed processing instruction;
[0049] The inspection instruction is a scheduled inspection instruction.
[0050] The default time for the above CRONTAB scheduled call instruction is generally 5 minutes.
[0051] Table 1 is a schematic diagram of the structure of a text information configuration table. In addition to the required fields mentioned above, other fields may also be included.
[0052] Table 1
[0053]
[0054]
[0055] Table 2 shows the structure of the text receiving details table. In addition to the required fields mentioned above, there are other fields. The text processing module can process the text waiting to be processed in the text receiving details table, update the processing status of the text in the text receiving details table, and process it according to the text priority. The processing count field can be used to determine the number of times the current text has been processed. If the preset number of processing times is reached, the text can be no longer processed to avoid repeated execution and resource consumption. Among them, the text category field is used to distinguish the purpose of the text. The same text may be used in multiple systems. A text is uniquely identified by the value of the text category field and the text name field.
[0056] Table 2
[0057]
[0058] Table 3 is a schematic diagram of the structure of the task text configuration comparison table. In addition to the required fields mentioned above, there are other fields.
[0059] Table 3
[0060]
[0061] Table 4 is a structural diagram of the file sending configuration table. The text in the text sending configuration table is sent out regularly by the text sending timing task. When sending, the text name, text path, target system, sending method, direct transmission flag, etc. are read in sequence and sent according to the text priority.
[0062] Table 4
[0063]
[0064] A detailed embodiment is given below to illustrate the specific application of the device proposed in the embodiment of the present invention. Figure 3 This is a detailed flow chart of a text processing device using a bank peripheral system in an embodiment of the present invention, including:
[0065] Step 301: After receiving the call instruction, the text is transmitted from the receiving text platform to the bank's peripheral system;
[0066] Step 302, read the configured text name from the text information configuration table;
[0067] Step 303, filtering out the texts that need to be processed according to the configured text names;
[0068] Step 304: Write the filtered texts that need to be processed into the text receiving details table;
[0069] Step 305: After receiving the processing instruction, the text in the text receiving detailed list that needs to be processed is processed, the processed text is stored in the first database, and the processing status of the text in the text receiving detailed list is updated;
[0070] Step 306: After receiving the check instruction, read the program configured in the task text configuration comparison table and all texts required by the configured program;
[0071] Step 307, query the text receiving details table to check whether the processing status of all texts required by the configured program is successful; if so, proceed to step 308; otherwise, stop at step 307;
[0072] Step 308, processing the text in the first database and putting it into the second database;
[0073] Step 309, generating a sending text based on the text in the second database;
[0074] Step 310: configure the text to be sent into a text sending configuration table. The text in the text sending configuration table is sent out regularly by a text sending timing task.
[0075] Of course, it is understandable that there may be other detailed steps, and all related variations should fall within the scope of protection of the present invention.
[0076] To sum up, in the device proposed in the embodiment of the present invention, the text receiving module is used to receive the text transmitted from the text platform to the bank's peripheral system after receiving the call instruction, and filter out the text that needs to be processed according to the configured text name; the text processing module is used to process the text that needs to be processed after receiving the processing instruction, put the processed text into the first database, and update the processing status of the text; the text dependency checking module is used to check whether the processing status of all texts required by the configured program is successful after receiving the check instruction, and if so, execute the text requirement module; the text requirement module is used to process the text in the first database and put it into the second database; the text generation module is used to generate the sending text according to the text in the second database; the text sending module is used to configure the sending text into the text sending configuration table, and the text in the text sending configuration table is sent out regularly by the text sending timing task. In the above process, the configuration method can be used, including the configured text name, configured program, and text sending configuration, to ensure that the program text can be executed immediately after processing without waiting for other unrelated texts; and the text in the text sending configuration table can be sent out regularly through the text scheduled sending task, which can shorten the execution time to a certain extent and ensure that some programs can be executed earlier, meeting the customer's demand for data.
[0077] The embodiment of the present invention further provides a text processing method for a bank peripheral system, the principle of which is similar to that of the text processing device for the bank peripheral system, and will not be described in detail here.
[0078] Figure 4 FIG. 1 is a flow chart of a text processing method of a bank peripheral system according to an embodiment of the present invention. Figure 4 Shown, including:
[0079] Step 401: After receiving the call instruction, the text platform receives the text that is transferred to the bank's peripheral system, and filters out the text that needs to be processed according to the configured text name;
[0080] Step 402: After receiving the processing instruction, the text to be processed is processed, the processed text is stored in the first database, and the processing status of the text is updated;
[0081] Step 403, after receiving the check instruction, check whether the processing status of all texts required by the configured program is successful;
[0082] Step 404: If yes, process the text in the first database and put it into the second database;
[0083] Step 405, generating a sending text based on the text in the second database;
[0084] Step 406: The text to be sent is configured in a text sending configuration table. The text in the text sending configuration table is sent out regularly by a text sending timing task.
[0085] In one embodiment, before filtering out texts to be processed according to the configured text names, the method further includes: reading the configured text names from a text information configuration table;
[0086] After filtering out the texts to be processed according to the configured text names, the method further includes: writing the filtered texts to be processed into a text receiving detail table;
[0087] Processing texts that need to be processed, including: processing texts that need to be processed in the text receiving details table;
[0088] Update the processing status of the text, including: update the processing status of the text in the text receiving details table;
[0089] Check whether the processing status of all texts required by the configured program is successful, including: reading the configured program in the task text configuration comparison table and all texts required by the configured program; querying the text receiving details table to check whether the processing status of all texts required by the configured program is successful.
[0090] In one embodiment, the text information configuration table includes at least a text name field and a text priority field;
[0091] The text receiving details table at least includes a text name field and a processing status field;
[0092] The task text configuration comparison table includes at least a program name field and a corresponding text name field;
[0093] The text sending configuration table includes at least a text name field, a text path field, a target system field, and a sending method field.
[0094] In one embodiment, the calling instruction is a CRONTAB timing calling instruction; the CRONTAB timing calling instruction is issued after the daily task is completed;
[0095] The processing instruction is a timed processing instruction;
[0096] The inspection instruction is a scheduled inspection instruction.
[0097] In summary, in the method proposed in the embodiment of the present invention, after receiving the call instruction, the text that is transmitted from the receiving text platform to the bank's peripheral system is filtered out according to the configured text name; after receiving the processing instruction, the text that is required to be processed is processed, the processed text is placed in the first database, and the processing status of the text is updated; after receiving the check instruction, the processing status of all texts required by the configured program is checked to see if it is successful; if so, the text in the first database is processed and placed in the second database; based on the text in the second database, a send text is generated; the send text is configured in the text sending configuration table, and the text in the text sending configuration table is sent out regularly by the text sending timing task. In the above process, the program can be ensured to be executed immediately after the text is processed by the configuration method, specifically including the configured text name, the configured program, and the text sending configuration; and the text in the text sending configuration table is sent out regularly by the text sending timing task, which can shorten the execution time to a certain extent and ensure that some programs can be executed earlier, meeting the customer's demand for data.
[0098] An embodiment of the present invention further provides a computer device, Figure 5 Schematic diagram of a computer device according to an embodiment of the present invention. The computer device can implement all steps of the text processing method of the bank peripheral system according to the above embodiment. The computer device specifically includes the following contents:
[0099] Processor 501, memory 502, communications interface 503 and communication bus 504;
[0100] The processor 501, memory 502, and communication interface 503 communicate with each other via the communication bus 504; the communication interface 503 is used to implement information transmission between relevant devices such as the server-side device, the detection device, and the user-side device;
[0101] The processor 501 is used to call the computer program in the memory 502. When the processor executes the computer program, all steps of the text processing method of the bank peripheral system in the above embodiment are implemented.
[0102] An embodiment of the present invention also provides a computer-readable storage medium that can implement all steps of the text processing method of the bank peripheral system in the above embodiment. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements all steps of the text processing method of the bank peripheral system in the above embodiment.
[0103] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0104] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0107] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A text processing device for a bank peripheral system, characterized in that: include: The text receiving module is used to receive the text transmitted from the text platform to the bank's peripheral system after receiving the call instruction, and filter out the text that needs to be processed according to the configured text name; A text processing module, for processing text to be processed after receiving a processing instruction, putting the processed text into the first database, and updating the processing status of the text; The text dependency check module is used to check whether the processing status of all texts required by the configured program is successful after receiving the check instruction, and if so, execute the text requirement module; A text requirement module, used to process the text in the first database and put it into the second database; A text generation module, used for generating a sending text according to the text in the second database; A text sending module is used to configure the text to be sent into the text sending configuration table, and the text in the text sending configuration table is sent out regularly by the text sending timing task; The text receiving module is also used to: after receiving the text transmitted from the receiving text platform to the bank's peripheral system, read the configured text name from the text information configuration table; write the screened text that needs to be processed into the text receiving detail table; The text processing module is also used to: process the texts in the text receiving detail list that need to be processed, and update the processing status of the texts in the text receiving detail list; The text dependency check module is also used to: read the program configured in the task text configuration comparison table, and all the texts required by the configured program; query the text receiving detail table to check whether the processing status of all the texts required by the configured program is successful; If the text dependency check module checks that the processing status of all texts required by the configured program is unsuccessful, the text dependency check module is always in the polling state; There are multiple programs in the task text configuration comparison table, and each program may also have multiple required texts; If the text dependency check module checks that there are unsuccessful processing states of all texts required by the configured program, a pre-processing instruction is sent to the text processing module. After receiving the pre-processing instruction, the text processing module prioritizes processing of the text in the pre-processing instruction.
2. The text processing device of the bank peripheral system as claimed in claim 1, characterized in that: The text information configuration table includes at least a text name field and a text priority field; The text receiving details table includes at least a text name field and a processing status field; The task text configuration comparison table includes at least a program name field and a corresponding text name field; The text sending configuration table includes at least a text name field, a text path field, a target system field, and a sending method field.
3. The text processing device of the bank peripheral system as claimed in claim 1, characterized in that: The calling instruction is a CRONTAB timing calling instruction; the CRONTAB timing calling instruction is issued after the cutting day task is completed; The processing instruction is a timed processing instruction; The inspection instruction is a timed inspection instruction.
4. A text processing method for a bank peripheral system, characterized in that: include: After receiving the call instruction, the receiving text platform transmits the text to the bank's peripheral system, and filters out the text that needs to be processed according to the configured text name; After receiving the processing instruction, the text to be processed is processed, the processed text is put into the first database, and the processing status of the text is updated; After receiving the check instruction, check whether the processing status of all texts required by the configured program is successful; If so, the text in the first database is processed and placed in the second database; Generate a sending text according to the text in the second database; The text to be sent is configured in a text sending configuration table, and the text in the text sending configuration table is sent out regularly by a text sending timing task; Before filtering out the text to be processed according to the configured text name, the method further includes: reading the configured text name from the text information configuration table; After filtering out the texts to be processed according to the configured text names, the method further includes: writing the filtered texts to be processed into a text receiving detail table; Processing the texts that need to be processed, including: processing the texts that need to be processed in the text receiving details list; Update the processing status of the text, including: update the processing status of the text in the text receiving detail list; Check whether the processing status of all texts required by the configured program is successful, including: reading the program configured in the task text configuration comparison table and all texts required by the configured program; querying the text receiving details table to check whether the processing status of all texts required by the configured program is successful.
5. The text processing method of the bank peripheral system as claimed in claim 4, characterized in that: The text information configuration table includes at least a text name field and a text priority field; The text receiving details table includes at least a text name field and a processing status field; The task text configuration comparison table includes at least a program name field and a corresponding text name field; The text sending configuration table includes at least a text name field, a text path field, a target system field, and a sending method field.
6. The text processing method of the bank peripheral system as claimed in claim 4, characterized in that: The calling instruction is a CRONTAB timing calling instruction; the CRONTAB timing calling instruction is issued after the cutting day task is completed; The processing instruction is a timed processing instruction; The inspection instruction is a timed inspection instruction.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 4 to 6 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 4 to 6.
Citation Information
Patent Citations
File loading method and device
CN112114903A