A business processing method, device, electronic device and computer readable medium

By establishing a unified business scenario database and processing mechanism, the problems of high cost and low efficiency of business processing in the existing technology are solved, and the reuse of business logic and unified processing of different scenarios are realized.

CN113392093BActive Publication Date: 2024-12-27CHINA CONSTRUCTION BANK
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110777536.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2024-12-27
Estimated Expiration
2041-07-09

AI Technical Summary

Technical Problem

During the existing business processing process, different business scenarios need to be encoded according to different logics, resulting in high business processing costs, unrepeatable logic, inefficient, and lack of a unified processing mechanism.

Method used

By establishing a unified business scenario database, receiving business processing requests, determining the target business scenario, analyzing and processing business data, and sending processing methods to the service processing end, achieving unified processing of different business scenarios.

Benefits of technology

It reduces business processing costs, makes business logic reusable, improves processing efficiency, and realizes a unified processing mechanism for different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113392093B_ABST
    Figure CN113392093B_ABST
Patent Text Reader

Abstract

The present invention discloses a business processing method, device, electronic device and computer-readable medium, and relates to the field of automatic programming technology. The specific implementation of the method includes: receiving a business processing request; determining a target business scenario of the business to be processed; parsing business data corresponding to one or more target business items from the data to be processed according to one or more pre-configured target business items corresponding to the target business scenario; determining a processing method for the business data according to the target business scenario, and sending the processing method and the business data to a service processing end so that the service processing end processes the business data according to the processing method; responding to the business processing request according to the processing result returned by the service processing end. This implementation method can reduce the cost of business processing, so that the business logic can be reused, without the need for repeated coding and building various services required for the business, which can improve business processing efficiency and realize a unified processing mechanism for different business scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic program design technology, and in particular to a business processing method, device, electronic device and computer-readable medium. Background Art

[0002] Electronic business is a form of business that uses information network technology to meet the daily needs of users. Common business scenarios include balance inquiry, transfer, payment, order inquiry, order placement, etc.

[0003] In the existing business processing process, the processing logic of different businesses is different. It is necessary to build various services required by the business according to the business logic corresponding to different business scenarios to realize the business requests corresponding to the business scenarios.

[0004] In the existing business processing process, different business scenarios need to be coded according to different business logics to handle the corresponding business requests, resulting in high business processing costs. Different business logics cannot be reused and must be re-coded and services built, resulting in low business processing efficiency. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a business processing method, device, electronic device and computer-readable medium, which can reduce business processing costs, enable business logic to be reused, and eliminate the need for repeated coding and building of various services required for the business. This can improve business processing efficiency and achieve a unified processing mechanism for different business scenarios.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a service processing method is provided, including:

[0007] Receiving a business processing request; the business processing request indicates the to-be-processed data corresponding to the to-be-processed business;

[0008] Determine the target business scenario of the business to be processed;

[0009] According to one or more pre-configured target business items corresponding to the target business scenario, parsing business data corresponding to the one or more target business items from the data to be processed;

[0010] Determine a processing method for the business data according to the target business scenario, and send the processing method and the business data to a service processing end, so that the service processing end processes the business data according to the processing method;

[0011] Respond to the business processing request according to the processing result returned by the service processing end.

[0012] Optionally, when there are multiple processing modes corresponding to the business data, sending the processing mode and the business data to the service processing end includes:

[0013] A plurality of request messages corresponding to the plurality of processing methods are respectively generated, and the request messages are sent to the basic service parties corresponding to the processing methods in the service processing end.

[0014] Optionally, responding to the business processing request according to the processing result returned by the service processing end includes:

[0015] Receiving a response message from the basic service provider for processing the corresponding business data according to the processing method;

[0016] Determine the processing result of the service processing request according to the response message.

[0017] Optionally, responding to the business processing request according to the processing result returned by the service processing end includes:

[0018] Parsing the response message to determine the parsing result;

[0019] The parsing result is format-converted according to the standard format of the one or more target business items, and the business processing request is responded to according to the converted format.

[0020] Optionally, sending the request message to a basic service provider corresponding to the processing mode in the service processing end includes:

[0021] According to the processing mode, determining the execution order of the basic service party; wherein the execution order includes: parallel execution, sequential execution or mixed execution;

[0022] According to the execution order of the basic service providers, a request message is sent to the basic service providers.

[0023] Optionally, when the execution order is sequential execution or mixed execution, it also includes:

[0024] Determine whether the multiple processing methods have a dependency relationship, and if so, determine the execution order of the basic service provider based on the dependency relationship.

[0025] Optionally, determining a target business scenario of the business to be processed includes:

[0026] Parsing the current keyword from the business processing request, and determining pre-configured scenario keywords corresponding to the plurality of business scenarios;

[0027] According to the matching degree between the current keyword and the scenario keyword, a target business scenario of the business to be processed is determined.

[0028] Optionally, when multiple business scenarios corresponding to the current keyword are determined according to the matching degree,

[0029] The target business scenario is determined according to one or more first business items corresponding to the multiple business scenarios, and one or more second business items corresponding to the data to be processed.

[0030] Optionally, the parsing the business data corresponding to the one or more target business items from the to-be-processed data according to the preconfigured one or more target business items corresponding to the target business scenario includes:

[0031] Parsing one or more separators and a plurality of character strings separated by the separators from the data to be processed;

[0032] According to the format of the character string and the standard formats respectively corresponding to the pre-configured multiple business items, the multiple target business items corresponding to the multiple character strings are respectively determined, and the character strings are used as business data corresponding to the target business items.

[0033] Optionally, the parsing the business data corresponding to the one or more target business items from the to-be-processed data according to the preconfigured one or more target business items corresponding to the target business scenario includes:

[0034] Parsing one or more first characteristic characters from the data to be processed, and the data to be processed corresponding to the one or more first characteristic characters;

[0035] According to the second characteristic characters respectively corresponding to the pre-configured plurality of business items, the target business items corresponding to the plurality of first characteristic characters are respectively determined, and the business data corresponding to the first characteristic characters are used as the business data corresponding to the target business items.

[0036] According to another aspect of an embodiment of the present invention, there is provided a service processing device, including:

[0037] A receiving module, configured to receive a service processing request; the service processing request indicates the data to be processed corresponding to the service to be processed;

[0038] A scenario determination module, used to determine a target business scenario of the business to be processed;

[0039] A parsing module, configured to parse the data to be processed to obtain business data corresponding to the one or more target business items according to one or more pre-configured target business items corresponding to the target business scenario;

[0040] A processing method determination module is used to determine a processing method for the business data according to the target business scenario, and send the processing method and the business data to a service processing end so that the service processing end processes the business data according to the processing method;

[0041] The response module is used to respond to the business processing request according to the processing result returned by the service processing end.

[0042] According to another aspect of an embodiment of the present invention, there is provided a service processing electronic device, including:

[0043] one or more processors;

[0044] a storage device for storing one or more programs,

[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement the business processing method provided by the present invention.

[0046] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the service processing method provided by the present invention is implemented.

[0047] An embodiment of the above invention has the following advantages or beneficial effects: because it adopts technical means to sort out different business scenarios, establish a unified business scenario database, receive business processing requests from the requesting end, determine the services required for the business processing requests and send them to the service processing end, it overcomes the technical problems of high existing business processing costs, inability to reuse different business logics, and low business processing efficiency, thereby achieving the goal of reducing business processing costs, allowing business logic to be reused, without the need for repeated coding and building of various services required for the business, which can improve business processing efficiency and achieve the technical effect of a unified processing mechanism for different business scenarios.

[0048] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0050] Figure 1 An exemplary system architecture diagram of a service processing method or service processing device suitable for application in an embodiment of the present invention is shown;

[0051] Figure 2is a schematic diagram of the main flow of the service processing method according to an embodiment of the present invention;

[0052] Figure 3 is a schematic diagram of the main process of a method for determining a target business scenario according to an embodiment of the present invention;

[0053] Figure 4 is a schematic diagram of the main process of a method for determining business data according to an embodiment of the present invention;

[0054] Figure 5 is a schematic diagram of the main process of a method for determining business data according to an embodiment of the present invention;

[0055] Figure 6 is a schematic diagram of main modules of a service processing device according to an embodiment of the present invention;

[0056] Figure 7 is a schematic diagram of a business processing system according to an embodiment of the present invention;

[0057] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0059] Figure 1 An exemplary system architecture diagram of a service processing method or service processing device suitable for application in an embodiment of the present invention is shown. Figure 1 As shown, an exemplary system architecture of the service processing method or service processing device according to an embodiment of the present invention includes:

[0060] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0061] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as financial applications, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0062] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0063] The server 105 may be a server that provides various services, such as a backend management server that provides support for financial websites browsed by users using the terminal devices 101, 102, and 103. The backend management server may analyze and process the received order request and other data, and feed back the processing results (such as order results and order details) to the terminal devices 101, 102, and 103.

[0064] It should be noted that the service processing method provided in the embodiment of the present invention is generally executed by the server 105 , and accordingly, the service processing device is generally disposed in the server 105 .

[0065] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0066] Figure 2 is a schematic diagram of the main flow of the service processing method according to an embodiment of the present invention, such as Figure 2 As shown, the service processing method of the present invention includes:

[0067] Step S201, receiving a service processing request; the service processing request indicates the to-be-processed data corresponding to the to-be-processed service.

[0068] In an embodiment of the present invention, as a business processing end, a business processing request sent by a request end is received, for example, the business processing request is to query the order information on January 1, 2021; or to query the order information with the order number jx2398456748; or to purchase 1 ticket from Beijing to Shanghai on January 1, 2021, and 2 tickets from Shanghai to Changsha on February 1, 2021. Among them, the request end can be a client corresponding to the terminal device; the business processing end can be the first server.

[0069] In an embodiment of the present invention, the data to be processed is in key-value format, and the key-value format includes the commonly used JSON format, XML format, key-value class object model, etc. Among them, value can be a single value, a list, and a nested key-value object. For example, the business processing request is to query the order information with order number jx2398456748 on January 1, 2021. The data to be processed may include two kv key-value pairs, the key is the date, the value is 20210623 and the key is the order number, the value is jx2398456748, that is, the value is a single value; the business processing request is for Zhang San to purchase 1 ticket from Beijing to Singapore on January 1, 2021, and 1 train ticket from Shanghai to Changsha on February 1, 2021, and the corresponding key is Order number, value is / / / Name / Zhang San / Document Type / Passport / Document Number / Exxxxxxxx / Quantity / 1 / Date / January 1, 2021 / Starting Point / Beijing / Destination / Singapore / Air Ticket / Price / 6820 / / / Name / Zhang San / Document Type / Second Generation ID Card / Document Number / 35xxxxxxxxxxxxxxxx / Quantity / 1 / Date / February 1, 2021 / Starting Point / Shanghai / Destination / Changsha / Train Ticket / Price / 500, that is, value is a list.

[0070] Step S202: determining the target business scenario of the business to be processed.

[0071] In the embodiment of the present invention, as a service processing end, a target service scenario of the service to be processed is determined according to the service processing request.

[0072] In the embodiment of the present invention, Figure 3 As shown, the method for determining the target business scenario of the present invention includes the following steps:

[0073] Step S301, establishing a business scenario database.

[0074] In an embodiment of the present invention, historical business processing data is obtained, and one or more business scenarios corresponding to the historical business processing data are determined based on the historical business processing data, and a business scenario database is established, including a business scenario ID, a business item key, and a standard format of a business item value corresponding to the business item key, etc. The standard format can be standard atomic data, a list of standard atomic data, or a kv array (i.e., key-value data). Among them, atomic data includes simple data types (e.g., characters, strings, numbers, etc.) and complex data types (e.g., lists, arrays, trees, graphs, etc.); standard atomic data is a customized, reusable minimum granularity data, such as name, address, ID number, order number, mobile phone number, etc.; a list of standard atomic data is composed of multiple standard atomic data.

[0075] In an embodiment of the present invention, business scenarios may include air ticket query scenarios, train ticket query scenarios, clothing query scenarios, food query scenarios, air ticket ordering scenarios, train ticket ordering scenarios, clothing ordering scenarios, food ordering scenarios, payment scenarios, etc. Different business scenarios may be distinguished by business scenario IDs, and business scenario IDs are unique. Among them, a business scenario may correspond to one or more scenario keywords, for example, the scenario keywords corresponding to the order query scenario include "order number" and "date"; the scenario keywords corresponding to the air ticket ordering scenario include "document number", "date", "air ticket", "price", "starting point", "end point", etc.; the scenario keywords corresponding to the train ticket ordering scenario include "document number", "date", "train ticket", "price", "starting point", "end point", etc.

[0076] Step S302: parse the current keyword from the business processing request.

[0077] In an embodiment of the present invention, for example, the business processing request is to query the order information with order number jx2398456748 on January 1, 2021, from which the current keywords are parsed as "order number" and "date"; or, the business processing request is that Zhang San purchases 1 air ticket from Beijing to Shanghai on January 1, 2021, and 1 train ticket from Shanghai to Changsha on February 1, 2021, from which the current keywords are parsed as "air ticket" and "train ticket".

[0078] Step S303, calculating the matching degree between the current keyword and the scene keyword.

[0079] Step S304: Determine the number of business scenarios corresponding to the business to be processed according to the matching degree.

[0080] In an embodiment of the present invention, the business scenario matched according to the current keyword may include one, for example, the current keyword is "air ticket", the matched business scenario is the air ticket ordering scenario, and the business to be processed corresponds to one business scenario.

[0081] In an embodiment of the present invention, the business scenarios matched according to the current keywords may include multiple ones. For example, the current keywords are "quantity" and "price", and the matched business scenarios may be clothing ordering scenarios or food ordering scenarios. The business to be processed corresponds to two business scenarios.

[0082] In an embodiment of the present invention, the business scenarios matched according to the current keywords may include multiple ones. For example, the current keywords are "air tickets" and "train tickets", and the matched business scenarios can be air ticket ordering scenarios or train ticket ordering scenarios. The business to be processed corresponds to two business scenarios.

[0083] Furthermore, the business to be processed may correspond to multiple business scenarios.

[0084] Step S305: if the business to be processed corresponds to one business scenario, go to step S306; if the business to be processed corresponds to multiple business scenarios, go to step S307.

[0085] Step S306: determine a business scenario corresponding to the business to be processed as a target business scenario.

[0086] In an embodiment of the present invention, when the current keyword matches a business scenario, for example, the current keyword matches a flight ticket ordering scenario, the flight ticket ordering scenario corresponding to the business to be processed is determined as the target business scenario.

[0087] Step S307 , calculating the matching degree between the first business item and the second business item according to the one or more first business items corresponding to the multiple business scenarios and the one or more second business items corresponding to the data to be processed.

[0088] In an embodiment of the present invention, for example, based on a plurality of first business items corresponding to a clothing ordering scenario, a plurality of first business items corresponding to a food ordering scenario, and a plurality of second business items corresponding to the data to be processed, the matching degrees of the plurality of first business items of the clothing ordering scenario, the plurality of first business items of the food ordering scenario, and the plurality of second business items corresponding to the data to be processed are respectively calculated.

[0089] The multiple first business items corresponding to the clothing ordering scenario include "order number", "quantity", "price", "color", and "size"; the multiple first business items corresponding to the food ordering scenario include "order number", "quantity", "price", "color", and "flavor"; the multiple second business items corresponding to the data to be processed include "order number", "quantity", "price", "color", and "size". It is calculated that a business item of the clothing ordering scenario and the second business item corresponding to the data to be processed include 5 matches, and the first business item of the food ordering scenario and the second business item corresponding to the data to be processed include 4 matches.

[0090] In an embodiment of the present invention, for example, based on multiple first business items corresponding to the air ticket ordering scenario, multiple first business items corresponding to the train ticket ordering scenario, and multiple second business items corresponding to the data to be processed, the matching degrees of the multiple first business items of the air ticket ordering scenario, the multiple first business items of the train ticket ordering scenario, and the multiple second business items corresponding to the data to be processed are calculated respectively.

[0091] The multiple first business items corresponding to the air ticket ordering scenario include "ID number", "date", "air ticket", "price", "starting point" and "destination point"; the multiple first business items corresponding to the train ticket ordering scenario include "ID number", "date", "train ticket", "price", "starting point" and "destination point"; the multiple second business items corresponding to the data to be processed include "name", "ID number", "date", "air ticket", "train ticket", "price", "starting point" and "destination point". It is calculated that a business item of the air ticket ordering scenario and the second business item corresponding to the data to be processed include 6 matching items, and the first business item of the train ticket ordering scenario and the second business item corresponding to the data to be processed include 6 matching items.

[0092] Step S308, determine that the business scenarios corresponding to the multiple first business items with the highest matching degree with the second business item corresponding to the data to be processed are target business scenarios; or, determine that the multiple business scenarios corresponding to the multiple first business items with the highest matching degree with the second business item corresponding to the data to be processed are target business scenarios.

[0093] In an embodiment of the present invention, for example, the matching degree between multiple first business items of a clothing ordering scenario and second business items corresponding to the data to be processed is the highest, and the clothing ordering scenario is determined to be the target business scenario.

[0094] In an embodiment of the present invention, for example, the matching degree between multiple first business items in the air ticket ordering scenario and the second business items corresponding to the data to be processed is the same as the matching degree between multiple first business items in the train ticket ordering scenario and the second business items corresponding to the data to be processed, and the air ticket ordering scenario and the train ticket ordering scenario are determined as target business scenarios.

[0095] In an embodiment of the present invention, through the target business scenario determination method of the present invention, the business scenario of the business processing request can be accurately matched, and then the business processing request can be analyzed, so that the business logic of the target business scenario can be reused, thereby improving business processing efficiency and realizing a unified processing mechanism for different business scenarios.

[0096] Step S203: according to one or more pre-configured target business items corresponding to the target business scenario, parse the to-be-processed data to obtain business data corresponding to the one or more target business items.

[0097] In the embodiment of the present invention, as a business processing end, according to the standard format corresponding to the target business item in the business scenario database, the business data corresponding to the standard format of the target business item is parsed from the data to be processed. The business data in the standard format can facilitate the unified processing of data, thereby realizing a unified processing mechanism for different business scenarios.

[0098] In the embodiment of the present invention, Figure 4As shown, the method for determining business data of the present invention includes the following steps:

[0099] Step S401: determining one or more target business items corresponding to a target business scenario according to a preconfigured business scenario database.

[0100] Step S402: parse one or more separators and multiple character strings separated by the separators from the data to be processed.

[0101] In an embodiment of the present invention, the separator can be " / ", and the string is parsed from the data to be processed through the separator. For example, the business processing request is that Zhang San purchases 1 ticket from Beijing to Shanghai on January 1, 2021, and 1 train ticket from Shanghai to Changsha on February 1, 2021. The corresponding key is the order number, and the value is / / / Name / Zhang San / Document Type / Passport / Document Number / Exxxxxxxx / Quantity / 1 / Date / January 1, 2021 / Starting Point / Beijing / Destination / Singapore / Air Ticket / Price / 6820 / / / Name / Zhang San / Document Type / Second Generation ID Card / Document Number / 35xxxxxxxxxxxxxxxx / Quantity / 1 / Date / February 1, 2021 / Starting Point / Shanghai / Destination / Changsha / Train Ticket / Price / 500, parsed The extracted strings include: 'name', 'Zhang San', 'document type', 'passport', 'document number', 'Exxxxxxxx', 'quantity', '1 piece', 'date', 'January 1, 2021', 'starting point', 'Beijing', 'end point', 'Singapore', 'air ticket', 'price', '6820', 'name', 'Zhang San', 'document type', 'second generation ID card', 'document number', '35xxxxxxxxxxxxxxxx', 'quantity', '1 piece', 'date', 'February 1, 2021', 'starting point', 'Shanghai', 'end point', 'Changsha', 'of', 'train ticket', 'price', '500'.

[0102] Step S403 , according to the format of the character string and the formats corresponding to the pre-configured multiple business items, multiple target business items corresponding to the multiple character strings are determined respectively, and the character strings are used as business data corresponding to the target business items.

[0103] In the embodiment of the present invention, the format of the string is matched with the formats corresponding to multiple preconfigured business items respectively, the business item with the highest format matching degree with the string is determined as the target business item, and the string is used as the business data of the target business item.

[0104] For example, the format of the string '35xxxxxxxxxxxxxxxx' is matched with the formats corresponding to multiple preconfigured business items. The business items can be "ID number", "date", "air ticket", "price", "starting point", "end point", etc., and the business item with the highest format match with the string is determined to be "ID number". The "ID number" is used as the target business item, and the string '35xxxxxxxxxxxxxxxx' is used as the business data of the "ID number".

[0105] In the embodiment of the present invention, Figure 5 As shown, the method for determining business data of the present invention includes the following steps:

[0106] Step S501: determining one or more target business items corresponding to a target business scenario according to a preconfigured business scenario database.

[0107] Step S502: parse the data to be processed to obtain one or more first characteristic characters and the data to be processed corresponding to the one or more first characteristic characters.

[0108] In an embodiment of the present invention, for example, the business processing request is to query the order information with order number jx2398456748 on January 1, 2021. The first characteristic character may be "jx", and the data to be processed corresponding to the first characteristic character is "jx2398456748".

[0109] Step S503: determine target business items corresponding to the plurality of first characteristic characters respectively according to the second characteristic characters respectively corresponding to the plurality of pre-configured business items, and use the business data corresponding to the first characteristic characters as the business data corresponding to the target business items.

[0110] In an embodiment of the present invention, the first characteristic character is matched with the second characteristic characters corresponding to multiple pre-configured business items respectively, the second characteristic character with the highest matching degree with the first characteristic character is determined, the business item corresponding to the second characteristic character is used as the target business item, and the business data corresponding to the first characteristic character is used as the business data of the target business item.

[0111] For example, the first feature character "jx" is matched with the second feature characters corresponding to multiple pre-configured business items respectively. The second feature characters corresponding to the business items can be "jx", "E", etc., and the second feature character with the highest matching degree with the first feature character is determined to be "jx", and the business item corresponding to the second feature character is "order number". The "order number" is taken as the target business item, and the business data "jx2398456748" corresponding to the first feature character is taken as the business data of the "order number".

[0112] In an embodiment of the present invention, through the business data determination method of the present invention, business data in a format that conforms to the target business item can be accurately parsed from the data to be processed, and then the business data can be analyzed to achieve a unified processing mechanism for different business scenarios.

[0113] Step S204, determining a processing method for the business data according to the target business scenario, and sending the processing method and the business data to a service processing end, so that the service processing end processes the business data according to the processing method.

[0114] In an embodiment of the present invention, as a business processing end, a request message is generated according to business data and a processing method of the business data, and the request message is sent to a basic service provider in the service processing end that corresponds to the processing method; wherein the service processing end may be a second server, and the service processing end may include multiple basic service providers.

[0115] In an embodiment of the present invention, when there are multiple processing methods corresponding to business data, the execution order of the multiple processing methods is determined, and then the execution order of the basic service provider is determined according to the execution order of the processing methods; wherein the execution order includes: parallel execution, sequential execution or mixed execution, and mixed execution includes parallel execution and sequential execution.

[0116] In an embodiment of the present invention, multiple request messages corresponding to the multiple processing methods are generated respectively according to the execution order of the multiple processing methods, and the request messages are sent to the multiple basic service providers in the service processing end in sequence according to the execution order of the basic service providers.

[0117] In an embodiment of the present invention, when the execution order is sequential execution or mixed execution, it is determined whether multiple processing methods have dependencies. If so, the execution order of the multiple processing methods is determined based on the dependencies, and then the execution order of the basic service provider is determined.

[0118] In an embodiment of the present invention, multiple request message templates corresponding to processing methods can be pre-stored. After the business data is determined, the request message template is selected according to the processing method of the business data, and the business data is filled into the template to generate a request message.

[0119] Step S205: respond to the business processing request according to the processing result returned by the service processing end.

[0120] In an embodiment of the present invention, as a business processing end, a response message is received from a basic service party for processing corresponding business data according to a processing method, and the response message is parsed to determine the parsing result. According to the standard format of the target business item corresponding to the parsing result, the parsing result is formatted and converted into the standard format of the target business item. The processing result of the business processing request is determined through the parsing result in the standard format, and the business processing request is responded to. Among them, responding to the business processing request can be returning the processing result to the requesting end, such as displaying a result page.

[0121] When processing existing business processing requests, each business scenario needs to be coded according to the logic of the business processing request, and different business scenarios need to be implemented multiple times according to different logic codes. Therefore, there are problems such as repeated construction and non-reusability of business scenario logic, low efficiency of services required to build scenarios, poor fault tolerance, and lack of a unified processing mechanism.

[0122] The business processing method of the present invention sorts out different business scenarios and establishes a unified business scenario database, thereby achieving the purpose of reusable business logic after a single construction. It can quickly determine the services required for the business scenario, has high fault tolerance, fast business processing speed, high business processing efficiency, and realizes unified processing of different business scenarios.

[0123] In an embodiment of the present invention, a business processing request is received; the business processing request indicates the data to be processed corresponding to the business to be processed; the target business scenario of the business to be processed is determined; according to one or more pre-configured target business items corresponding to the target business scenario, the business data corresponding to the one or more target business items are parsed from the data to be processed; according to the target business scenario, a processing method for the business data is determined, and the processing method and the business data are sent to a service processing end so that the service processing end processes the business data according to the processing method; according to the processing result returned by the service processing end, the business processing request is responded to, and other steps can reduce the business processing cost, so that the business logic can be reused, there is no need to repeat the coding and build various services required for the business, can improve the business processing efficiency, and realize a unified processing mechanism for different business scenarios.

[0124] Figure 6 is a schematic diagram of main modules of a service processing device according to an embodiment of the present invention. Figure 6 As shown, the service processing device 600 of the present invention includes:

[0125] The receiving module 601 is used to receive a service processing request; the service processing request indicates the data to be processed corresponding to the service to be processed.

[0126] In an embodiment of the present invention, the receiving module 601 of the business processing device 600 receives a business processing request sent by the requesting end. For example, the business processing request is to query the order information on January 1, 2021; or, to query the order information with order number jx2398456748; or, to purchase 1 ticket from Beijing to Shanghai on January 1, 2021, and 2 tickets from Shanghai to Changsha on February 1, 2021.

[0127] The scenario determination module 602 is used to determine the target business scenario of the business to be processed.

[0128] In the embodiment of the present invention, the scenario determination module 602 determines the target business scenario of the business to be processed according to the business processing request.

[0129] The parsing module 603 is used to parse the to-be-processed data to obtain business data corresponding to the one or more target business items according to the pre-configured one or more target business items corresponding to the target business scenario.

[0130] In the embodiment of the present invention, according to the standard format corresponding to the target business item in the business scenario database, the parsing module 603 parses the business data corresponding to the standard format of the target business item from the data to be processed. The business data in the standard format can facilitate the unified processing of data, thereby realizing a unified processing mechanism for different business scenarios.

[0131] The processing method determination module 606 is used to determine the processing method of the business data according to the target business scenario, and send the processing method and the business data to the service processing end so that the service processing end processes the business data according to the processing method.

[0132] In an embodiment of the present invention, the processing method determination module 606 generates a request message based on the business data and the processing method of the business data, and sends the request message to the basic service provider corresponding to the processing method in the service processing end; wherein the service processing end may include multiple basic service providers.

[0133] The response module 605 is used to respond to the business processing request according to the processing result returned by the service processing end.

[0134] In an embodiment of the present invention, the response module 605 receives a response message from the basic service provider for processing the corresponding business data according to the processing method, parses the response message, and determines the parsing result. According to the standard format of the target business item corresponding to the parsing result, the parsing module 603 performs format conversion on the parsing result, and converts the parsing result into the standard format of the target business item. The response module 605 determines the processing result of the business processing request through the parsing result in the standard format, and responds to the business processing request. Among them, responding to the business processing request can be returning the processing result to the requesting end, such as displaying a result page, etc.

[0135] In an embodiment of the present invention, through modules such as a receiving module, a scenario determination module, a parsing module, a processing method determination module and a response module, the business processing cost can be reduced, so that the business logic can be reused without repeated coding and building of various services required for the business, which can improve the business processing efficiency and realize a unified processing mechanism for different business scenarios.

[0136] Figure 7 is a schematic diagram of a business processing system according to an embodiment of the present invention. Figure 7 As shown, the business processing system of the present invention includes:

[0137] A business processing end 701, a request end 702, and a service processing end 703; wherein the business processing method of the present invention is implemented through the business processing end 701.

[0138] The business processing end 701 includes a scene parser 7011 , a basic service orchestrator 7012 , a basic service forwarding parser 7013 and a standard format converter 7014 , and the service processing end 703 includes one or more basic service parties 7031 .

[0139] (1) The service processing end 701 receives the service processing request sent by the request end 702; the service processing request indicates the data to be processed corresponding to the service to be processed.

[0140] In an embodiment of the present invention, for example, the business processing request is to query the order information with order number jx2398456748 on January 1, 2021, and the data to be processed is in key-value format, including [date, 20210623], [orderID, jx2398456748].

[0141] The scenario parser 7011 of the business processing terminal 701 determines the target business scenario according to the business items in the data to be processed. For example, if the business items include date and orderID, the target business scenario is determined to be the order query scenario.

[0142] The scenario parser 7011 of the business processing end 701 parses the business data corresponding to the target business item from the to-be-processed data according to the target business item of the target business scenario. For example, the target business item includes date and orderID, and it is determined that the business data corresponding to date is 20210623, and the business data corresponding to orderID is jx2398456748.

[0143] (2) The scene parser 7011 of the business processing end 701 sends the business data to the standard format converter 7014, and the standard format converter 7014 converts the business data into business data corresponding to the standard format.

[0144] In the embodiment of the present invention, for example, the business processing request is that Zhang San buys a ticket from Beijing to Shanghai on January 1, 2021, and the business data is / / / name / Zhang San / document type / second-generation ID card / document number / 35xxxxxxxxxxxxxxxx / quantity / 1 ticket / date / February 1, 2021 / starting point / Shanghai / end point / Changsha / of / ticket. The standard format converter 7014 converts the business data into standard atomic data, including [name, Zhang san], [producttype, air ticket], [from, shangh], [to, changs], [amount, 1], [flight, czXXXX], [date, 1feb], [time, 1730], etc.; among which, ID number, date, name, etc. all belong to a standard atomic data.

[0145] (3) The standard format converter 7014 of the business processing end 701 sends the business data corresponding to the standard format to the scene parser 7011.

[0146] (4) The scene parser 7011 of the business processing end 701 sends the business data corresponding to the standard format to the basic service orchestrator 7012.

[0147] (5) The basic service orchestrator 7012 of the business processing end 701 determines the processing method of the business data corresponding to the standard format according to the target business scenario, and sends the business data corresponding to the processing method and the standard format to the basic service forwarding parser 7013 of the business processing end 701.

[0148] (6) The basic service forwarding parser 7013 of the business processing end 701 selects and fills in a request message template according to the business data corresponding to the processing method and the standard format, and then generates a request message and sends the request message to the service processing end 703.

[0149] After receiving the request message, the service processing end 703 parses the request message, determines one or more basic service providers 7031 according to the parsed request message, enables the basic service provider 7031 to process, and generates a response message based on the processing result.

[0150] (7) The service processing end 703 sends the response message to the basic service forwarding parser 7013 of the business processing end 701.

[0151] (8) The basic service forwarding parser 7013 of the business processing end 701 parses the response message, determines the parsing result, and sends the parsing result to the standard format converter 7014 of the business processing end 701.

[0152] The standard format converter 7014 of the business processing end 701 converts the parsing result into a parsing result corresponding to the standard format.

[0153] (9) The standard format converter 7014 of the business processing end 701 sends the parsing result corresponding to the standard format to the basic service forwarding parser 7013 of the business processing end 701.

[0154] The basic service forwarding parser 7013 of the business processing terminal 701 determines the processing result of the business processing request according to the parsing result corresponding to the standard format.

[0155] (10) The basic service forwarding parser 7013 of the business processing end 701 sends the processing result to the basic service orchestrator 7012 of the business processing end 701.

[0156] (11) The basic service orchestrator 7012 of the business processing end 701 sends the processing result to the scene parser 7011 of the business processing end 701.

[0157] (12) The scene parser 7011 of the business processing end 701 sends the processing result to the requesting end, thereby responding to the business processing request.

[0158] Figure 8 is a schematic diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present invention, such as Figure 8 As shown, the computer system 800 of the terminal device or server of the embodiment of the present invention includes:

[0159] A central processing unit (CPU) 801 can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the system 800 are also stored in the RAM 803. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0160] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0161] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0162] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0163] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0164] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a receiving module, a scenario determination module, a parsing module, a processing method determination module, and a response module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the response module may also be described as "a module that responds to a business processing request based on the processing results returned by the service processing end."

[0165] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving a business processing request; the business processing request indicates the data to be processed corresponding to the business to be processed; determining the target business scenario of the business to be processed; according to one or more pre-configured target business items corresponding to the target business scenario, parsing the business data corresponding to the one or more target business items from the data to be processed; according to the target business scenario, determining the processing method of the business data, and sending the processing method and the business data to the service processing end, so that the service processing end processes the business data according to the processing method; responding to the business processing request according to the processing result returned by the service processing end.

[0166] According to the technical solution of the embodiment of the present invention, the business processing cost can be reduced, the business logic can be reused, there is no need to repeat the coding and build various services required for the business, the business processing efficiency can be improved, and a unified processing mechanism for different business scenarios can be realized.

[0167] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A business processing method, characterized in that: include: Receiving a business processing request; the business processing request indicates the to-be-processed data corresponding to the to-be-processed business; Determine the target business scenario of the business to be processed; the business scenarios include air ticket query scenario, train ticket query scenario, clothing query scenario, food query scenario, air ticket order scenario, train ticket order scenario, clothing order scenario, food order scenario, and payment scenario; According to one or more pre-configured target business items corresponding to the target business scenario, parsing business data corresponding to the one or more target business items from the data to be processed; Determine a processing method for the business data according to the target business scenario, and send the processing method and the business data to a service processing end, so that the service processing end processes the business data according to the processing method; Respond to the business processing request according to the processing result returned by the service processing end; The step of parsing the to-be-processed data to obtain business data corresponding to the one or more target business items according to the pre-configured one or more target business items corresponding to the target business scenario includes: Parsing one or more separators and a plurality of character strings separated by the separators from the data to be processed; According to the format of the character string and the standard formats respectively corresponding to the pre-configured multiple business items, respectively determine the multiple target business items corresponding to the multiple character strings, and use the character strings as business data corresponding to the target business items; or, The step of parsing the to-be-processed data to obtain business data corresponding to the one or more target business items according to the pre-configured one or more target business items corresponding to the target business scenario includes: Parsing one or more first characteristic characters from the data to be processed, and the data to be processed corresponding to the one or more first characteristic characters; According to the second characteristic characters respectively corresponding to the pre-configured plurality of business items, respectively determining the target business items corresponding to the plurality of first characteristic characters, and using the business data corresponding to the first characteristic characters as the business data corresponding to the target business items; The determining of the target business scenario of the business to be processed includes: Parsing the current keyword from the business processing request, and determining pre-configured scenario keywords corresponding to the plurality of business scenarios; Determining a target business scenario of the business to be processed according to a matching degree between the current keyword and the scenario keyword; In the case where multiple business scenarios corresponding to the current keyword are determined according to the matching degree, The target business scenario is determined according to one or more first business items corresponding to the multiple business scenarios, and one or more second business items corresponding to the data to be processed.

2. The method according to claim 1, characterized in that When there are multiple processing methods corresponding to the business data, sending the processing method and the business data to the service processing end includes: A plurality of request messages corresponding to the plurality of processing methods are respectively generated, and the request messages are sent to the basic service parties corresponding to the processing methods in the service processing end.

3. The method according to claim 2, characterized in that The responding to the business processing request according to the processing result returned by the service processing end includes: Receiving a response message from the basic service provider for processing the corresponding business data according to the processing method; Determine the processing result of the service processing request according to the response message.

4. The method according to claim 3, characterized in that The responding to the business processing request according to the processing result returned by the service processing end includes: Parsing the response message to determine the parsing result; The parsing result is format-converted according to the standard format of the one or more target business items, and the business processing request is responded to according to the converted format.

5. The method according to claim 4, characterized in that The sending of the request message to the basic service party corresponding to the processing method in the service processing end includes: According to the processing mode, determining the execution order of the basic service party; wherein the execution order includes: parallel execution, sequential execution or mixed execution; According to the execution order of the basic service providers, a request message is sent to the basic service providers.

6. The method according to claim 5, characterized in that In the case where the execution order is sequential execution or mixed execution, it also includes: Determine whether the multiple processing methods have a dependency relationship, and if so, determine the execution order of the basic service provider based on the dependency relationship.

7. A service processing device, characterized in that: include: A receiving module, used for receiving a business processing request; The business processing request indicates the data to be processed corresponding to the business to be processed; A scenario determination module, used to determine the target business scenario of the business to be processed; business scenarios include air ticket query scenario, train ticket query scenario, clothing query scenario, food query scenario, air ticket order scenario, train ticket order scenario, clothing order scenario, food order scenario, and payment scenario; and, parse the current keyword from the business processing request, and determine the pre-configured scenario keywords corresponding to multiple business scenarios respectively; determine the target business scenario of the business to be processed according to the matching degree between the current keyword and the scenario keyword; and, in the case where multiple business scenarios corresponding to the current keyword are determined according to the matching degree, determine the target business scenario according to one or more first business items corresponding to the multiple business scenarios, and one or more second business items corresponding to the data to be processed; A parsing module, configured to parse the data to be processed to obtain business data corresponding to the one or more target business items according to one or more pre-configured target business items corresponding to the target business scenario; A processing method determination module is used to determine a processing method for the business data according to the target business scenario, and send the processing method and the business data to a service processing end so that the service processing end processes the business data according to the processing method; And, parsing one or more separators and a plurality of character strings separated by the separators from the data to be processed; According to the format of the character string and the standard formats respectively corresponding to the pre-configured multiple business items, respectively determine the multiple target business items corresponding to the multiple character strings, and use the character strings as business data corresponding to the target business items; And, parsing out one or more first characteristic characters and the data to be processed corresponding to the one or more first characteristic characters from the data to be processed; determining the target business items corresponding to the multiple first characteristic characters respectively according to the pre-configured second characteristic characters corresponding to the multiple business items, and using the business data corresponding to the first characteristic characters as the business data corresponding to the target business items; The response module is used to respond to the business processing request according to the processing result returned by the service processing end.

8. A business processing electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Service request processing method and device, equipment and medium

    CN109739474A

  • Data processing method, device and system

    CN110866008A

  • Service processing method and device

    CN111104556A

  • Data splitting method and data splitting device

    CN111178867A

  • Data acquisition method and device, terminal equipment and storage medium

    CN111209031A