Data processing methods, apparatus, equipment, storage media and program products

By decoupling business scenarios from conditional expressions, strategy types from service interfaces through a data processing platform, the problem of inflexible adjustment of business data processing methods in existing technologies is solved, achieving efficient and flexible business data processing and reducing development costs and resource consumption.

CN119003044BActive Publication Date: 2025-12-02BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411147785.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2025-12-02
Estimated Expiration
2044-08-20

AI Technical Summary

Technical Problem

In existing technologies, it is difficult to centrally process and flexibly adjust business data processing methods for different business scenarios, resulting in low development efficiency, high resource consumption, and high code complexity, making it difficult to flexibly adjust business processing strategies.

Method used

By decoupling business scenarios from conditional expressions and strategy types from service interfaces through a data processing platform, and utilizing the pre-defined mapping relationship between conditional expressions and strategy types, flexible adjustments to business scenarios can be achieved, avoiding hard-coded logic, and processing can be performed by calling service interfaces via RPC.

Benefits of technology

It enables flexible adjustment of business processing strategies for different business scenarios without changing the business processing logic, thereby reducing development costs, improving processing efficiency, and ensuring business data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003044B_ABST
    Figure CN119003044B_ABST
Patent Text Reader

Abstract

This disclosure relates to the field of data processing technology, and discloses a data processing method, apparatus, device, storage medium, and program product. The method includes: responding to a data processing request sent by a first business system; parsing to obtain first business scenario information and preliminary processing results obtained by the first business system processing business data of a first business application; determining a target condition expression from preset condition expressions based on the first business scenario information, wherein the preset condition expression is used to characterize the judgment conditions corresponding to a strategy type; determining a target strategy type based on the preliminary processing results and the target condition expression; and calling the corresponding target service interface of the first business application to process the business data based on the target strategy type to obtain a target processing result, wherein the target service interface is used to execute the processing logic of the target business processing strategy. This disclosure can centrally process and flexibly adjust the processing methods of business data under different business scenarios to ensure business data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, specifically to data processing methods, apparatus, equipment, storage media, and program products. Background Technology

[0002] Currently, during the operation of business applications, some business data may pose security risks. Therefore, to ensure business data security and maintain order in the online community, it is necessary to audit the security of business data. Specifically, business data with security risks requires targeted processing, as different business scenarios require different processing methods. Therefore, related technologies require configuring corresponding code for each business scenario to pre-specify the processing method for business data in the current scenario. However, this data processing method necessitates reimplementing a set of processing logic whenever a new or modified business scenario is added. This is especially true when different business scenarios perform the same processing on the same business data, requiring a complete implementation of the same processing logic. This makes it difficult to centrally process and flexibly adjust the processing methods for business data under different business scenarios. Summary of the Invention

[0003] In view of this, the present disclosure provides a data processing method, apparatus, device, storage medium, and program product to solve the problem of difficulty in centrally processing and flexibly adjusting the processing methods of business data under different business scenarios.

[0004] Firstly, this disclosure provides a data processing method applied to a data processing platform, the method comprising:

[0005] In response to a data processing request sent by the first business system, the data processing request is parsed to obtain business processing data, which includes first business scenario information and preliminary processing results obtained by the first business system from processing business data of the first business application.

[0006] Based on the first business scenario information, a target condition expression is determined from the preset condition expressions. The preset condition expressions are used to characterize the judgment conditions corresponding to the strategy type.

[0007] Based on the preliminary processing results and the target condition expression, the target strategy type is determined;

[0008] Based on the target strategy type, the corresponding target service interface of the first business application is called to process the business data to obtain the target processing result. The target service interface is used to execute the processing logic of the target business processing strategy.

[0009] Secondly, this disclosure provides a data processing apparatus, the apparatus comprising:

[0010] The request and response processing module is used to respond to the data processing request sent by the first business system, parse the data processing request, and obtain business processing data. The business processing data includes first business scenario information and preliminary processing results obtained by the first business system from processing the business data of the first business application.

[0011] The expression confirmation module is used to determine the target condition expression from the preset condition expressions based on the first business scenario information. The preset condition expressions are used to characterize the judgment conditions corresponding to the strategy type.

[0012] The strategy type confirmation module is used to determine the target strategy type based on the preliminary processing result and the target condition expression;

[0013] The processing strategy execution module is used to call the corresponding target service interface of the first business application to process the business data based on the target strategy type, so as to obtain the target processing result. The target service interface is used to execute the processing logic of the target business processing strategy.

[0014] Thirdly, this disclosure provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the data processing method described in the first aspect or any corresponding embodiment.

[0015] Fourthly, this disclosure provides a computer-readable storage medium storing computer instructions for causing a computer to perform the data processing method described in the first aspect or any corresponding embodiment thereof.

[0016] Fifthly, this disclosure provides a computer program product, including computer instructions for causing a computer to execute the data processing method described in the first aspect or any corresponding embodiment thereof.

[0017] The data processing method provided in this disclosure, after parsing a data processing request from a first business system to obtain first business scenario information and preliminary processing results of business data, determines a target condition expression from preset condition expressions based on the first business scenario information, and then determines a target strategy type based on the preliminary processing results and the target condition expression. Then, based on the target strategy type, it calls the corresponding target service interface of the first business application to execute the target business processing strategy to process the business data, thereby obtaining the target processing result. Therefore, it can decouple the business scenario from the condition expression, the condition expression from the strategy type, and the strategy type from the service interface. Thus, without changing the processing logic of the business processing strategy, it can flexibly adjust the business processing strategy for business data in different business scenarios by adjusting the condition expression corresponding to the business scenario, adjusting the strategy type corresponding to the condition expression, or adjusting the service interface corresponding to the strategy type, thereby achieving centralized processing and maintenance of different business processing strategies. Therefore, it can flexibly select appropriate business processing strategies for different business scenarios to process business data with security risks, ensuring the security of business data. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating a first data processing method according to an embodiment of the present disclosure;

[0020] Figure 2 This is a flowchart illustrating a second data processing method according to an embodiment of the present disclosure;

[0021] Figure 3 This is a flowchart illustrating a third data processing method according to an embodiment of the present disclosure;

[0022] Figure 4 This is a flowchart illustrating the fourth data processing method according to an embodiment of the present disclosure;

[0023] Figure 5 This is a flowchart illustrating a data processing method for a related technology;

[0024] Figure 6 This is a flowchart illustrating the fifth data processing method according to an embodiment of the present disclosure;

[0025] Figure 7 This is a structural block diagram of a data processing apparatus according to an embodiment of the present disclosure;

[0026] Figure 8 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0028] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the type, scope of use, and usage scenarios of the personal data involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0029] For example, in response to a user's active request, a prompt is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of their personal data. This allows the user to autonomously choose, based on the prompt, whether to provide personal data to the software or hardware such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution.

[0030] As an optional but non-limiting implementation, in response to a user's active request, sending prompt data to the user can be done via a pop-up window, where the prompt data can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal data to the electronic device.

[0031] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0032] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0033] In business processing scenarios, different processing methods are typically required for different business scenarios. In practice, the same business data may require multiple processing methods depending on the specific business data. For example, if the target object's business data does not meet preset data requirements, the first processing method is executed. If the target object's business data repeatedly fails to meet preset data requirements within a certain period, in addition to continuing to execute the first processing method, a second processing method also needs to be executed.

[0034] For example, taking business data as the data identifier, if the target object modifies the data identifier, but the modified data identifier does not meet the preset identifier requirements, then the first identifier must be reset or modified first. If the target object modifies the data identifier multiple times within a period of time to a data identifier that does not meet the preset identifier requirements, then in addition to continuing to reset or modify the data identifier, further business processing methods are needed, such as prohibiting modification of the data identifier.

[0035] It is evident that business data processing methods are often not singular; they typically require combining multiple judgment conditions for judgment and processing. Moreover, if there are multiple business processing methods, subsequent processing methods may depend on the results of previous processing methods.

[0036] Currently, in the process of business data processing, the data is often initially processed manually or by machines, and then further processed based on the business scenario. Typically, different business scenarios require different handling methods for the initial processing results. Therefore, related technologies require configuring corresponding business processing code for each business scenario to pre-specify how to handle the initial processing results for the current business scenario. However, this business processing method, whether integrating new business scenarios, adjusting the processing method, or modifying the invoked processing method, requires adjustments through code modification and service deployment.

[0037] In other words, in related technologies, each business scenario requires configuring a specific set of hard-coded judgment and execution logic to perform different business processing methods. However, this business processing method has the following drawbacks:

[0038] Firstly, when adding or modifying business scenarios, a new set of business processing logic needs to be implemented. This is especially true when different business scenarios use the same business processing method for the same entity, requiring a complete implementation of the business processing logic, which consumes significant development resources. Moreover, when adjusting business processing methods, even if the content being adjusted is the same, all related business scenarios need to be adjusted, resulting in high development and adjustment costs.

[0039] Secondly, when business processing logic is complex, a large amount of code needs to be written and maintained to complete a single business process, which may make the code difficult to read and understand. Furthermore, as the number of business scenarios increases, the code complexity also increases, and the possibility of errors becomes greater, potentially leading to more code defects and malfunctions. Additionally, when calling service interfaces for business processing, if dependent services need to be changed, or if the service provider modifies the service interface, then the code calling these service interfaces in each business scenario needs to be modified, making maintenance and upgrades difficult and time-consuming.

[0040] Third, when processing business data, only one business processing method can be applied at a time. If multiple processing methods are required simultaneously for the same business data, the decision logic must be hard-coded in the business code, specifying the invocation of multiple different service interfaces; each service interface corresponds to one business processing method. Moreover, if there are requirements regarding the execution order of the business processing methods, the corresponding coding logic will be particularly complex. If the business scenario or decision logic changes, requiring adjustments to the business processing method or changing the service interface invoking the business processing method, a large amount of hard-coded code is needed for adjustment, which is relatively inefficient.

[0041] In summary, each business scenario requires the configuration of corresponding code to pre-define the business processing method for the business data in the current scenario. When a new or modified business scenario is added, a new set of processing logic for this business processing method needs to be implemented. This is especially true for different business scenarios that perform the same processing on the same business data, requiring a complete implementation of the same processing logic. Particularly as the number of business scenarios increases, the workload of coding, testing, and maintaining these processing methods will increase significantly, potentially exceeding manageable limits. Furthermore, with increased code complexity, code quality becomes difficult to guarantee. Cumbersome business processing logic, service calls, and complex judgment logic implementations can make the process of modifying and extending the original code extremely difficult. Therefore, the development efficiency of business processing methods in related technologies is low, they lack flexibility, and require substantial R&D resources.

[0042] In view of the above, according to the embodiments of this disclosure, a data processing method embodiment is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0043] This embodiment provides a first data processing method, which can be used in a data processing platform. The data processing platform interfaces with at least one business system, and each business system interfaces with at least one business application. The data processing platform is used to deploy targeted business processing strategies for the business data of business applications in different business scenarios to ensure the security of the business data. Figure 1 This is a schematic flowchart of a first data processing method according to an embodiment of the present disclosure, as shown below. Figure 1 As shown, the process includes the following steps:

[0044] Step S101: In response to the data processing request sent by the first business system, the data processing request is parsed to obtain business processing data. The business processing data includes the first business scenario information and the preliminary processing results obtained by the first business system from processing the business data of the first business application.

[0045] Specifically, the client of the first business application reports business data to the server of the first business application. The server then reports the business data to the first business system, which performs preliminary processing on the business data to obtain preliminary results. This preliminary processing includes determining whether the business data meets preset data requirements (e.g., security requirements). Based on the preliminary processing results and the corresponding first business scenario information, the first business system generates a data processing request. The first business scenario information can be represented by a scenario identifier or an enumerated value. In addition to carrying the preliminary processing results and the first business scenario information, the data processing request may also include some business data reported by the server to the first business system, such as user identifiers.

[0046] Furthermore, the data processing method disclosed herein also includes: converting the format of the business processing data so that the converted business processing data has the same data format as the preset conditional expression.

[0047] Understandably, the data format of business processing data may differ from that of the data processing platform or preset conditional expressions. Therefore, to avoid the inability to extract parameter information related to preset conditional expressions from business processing data due to different data formats, the business processing data can be format-converted first. For example, field A in the business processing data can be mapped to field B in the data processing platform, which represents the same parameter.

[0048] Step S102: Based on the first business scenario information, determine the target condition expression from the preset condition expressions. The preset condition expressions are used to characterize the judgment conditions corresponding to the strategy type.

[0049] Specifically, considering the different judgment logic and execution logic of business processing strategies in different business scenarios, and to avoid the complex logic of hard-coded business processing strategies, a processing strategy module can be abstracted in the data processing platform. This module can be driven by business processing strategies and serve as the basis for composite processing of these strategies, facilitating centralized management and maintenance of the business processing strategies.

[0050] Specifically, multiple preset condition expressions can be written into the processing strategy module. Each preset condition expression represents the judgment condition corresponding to a strategy type. After obtaining the first business scenario information, the data processing platform can determine the matching preset condition expression from the processing strategy module based on the first business scenario information, and use it as the target condition expression.

[0051] Optionally, the default conditional expression is a Boolean expression.

[0052] Step S103: Based on the preliminary processing results and the target condition expression, determine the target strategy type.

[0053] Specifically, after determining the target condition expression, the preliminary processing result can be substituted into the target condition expression to determine whether the preliminary processing result matches the target condition expression, thus obtaining the judgment result of the target condition expression. Then, the target strategy type is determined based on the judgment result.

[0054] Step S104: Based on the target strategy type, call the corresponding target service interface of the first business application to process the business data to obtain the target processing result. The target service interface is used to execute the processing logic of the target business processing strategy.

[0055] Specifically, in practice, multiple service interfaces can be configured, each corresponding to the processing logic of a business processing strategy. The data processing platform stores the correspondence between strategy types and interface descriptions of the service interfaces. Therefore, the data processing platform can use the generalization capability of Remote Procedure Call (RPC) to call the target service interface of the first business application to process business data, thus eliminating the need to write specific client code for each strategy type.

[0056] Even when adjusting the strategy type, only the correspondence between the strategy type and the interface description information of the service interface needs to be adjusted, without modifying the processing logic code of the business strategy.

[0057] Furthermore, a mapping relationship between strategy types and business processing strategies can be created within the service, using strategy type as the key and business processing strategy as the key-value pair. After obtaining the target strategy type, the corresponding target business processing strategy is determined based on the target strategy type, and business data is processed according to the target business processing strategy.

[0058] The data processing method provided in this embodiment, after parsing the data processing request from the first business system to obtain the first business scenario information and the preliminary processing result of the business data, determines the target condition expression from the preset condition expressions based on the first business scenario information, and determines the target strategy type based on the preliminary processing result and the target condition expression. Then, based on the target strategy type, it calls the corresponding target service interface of the first business application to execute the target business processing strategy to process the business data, thereby obtaining the target processing result. Therefore, it can decouple the business scenario from the condition expression, the condition expression from the strategy type, and the strategy type from the service interface. Thus, without changing the processing logic of the business processing strategy, it can flexibly adjust the business processing strategy for business data in different business scenarios by adjusting the condition expression corresponding to the business scenario, adjusting the strategy type corresponding to the condition expression, or adjusting the service interface corresponding to the strategy type, thereby achieving centralized processing and maintenance of different business processing strategies. Therefore, it can flexibly select appropriate business processing strategies for different business scenarios to process business data with security risks, thereby ensuring the security of business data.

[0059] In some optional implementations, the step S103 above, which determines the target strategy type based on the preliminary processing results and the target condition expression, includes:

[0060] Step a1: Based on the preliminary processing results and the target condition expression, determine the target judgment result of the target condition expression.

[0061] Step a2: Obtain the first correspondence between the judgment result of the target conditional expression and the strategy type.

[0062] Step a3: Based on the target judgment result and the first correspondence, determine the target strategy type.

[0063] For example, taking the data labeling processing business scenario as an example, assume the target condition expression corresponding to the data labeling processing business scenario is: "scene == "data_labeling" && labeling_processing_result == "block""; where scene represents the parameters corresponding to the business scenario, data_labeling represents the first business scenario information, labeling_processing_result represents the parameters corresponding to the preliminary processing result, and block represents the specific data of the preliminary processing result. If the first business scenario information and the preliminary processing result match the target condition expression, the obtained judgment result is the first result (e.g., true). If the first business scenario information and the preliminary processing result do not match the target condition expression, the obtained judgment result is the second result (e.g., false). If the final judgment result is true, the target policy type corresponding to the judgment result of the target condition expression being true can be determined according to the first correspondence between the judgment result of the pre-configured target condition expression and the policy type. For example, the target policy type is "reset data labeling".

[0064] It should be noted that the preset conditional expression and the strategy type are decoupled. When the result of the target conditional expression is true, the corresponding strategy type can be "reset data identifier" or "prohibit modification of data identifier", etc.

[0065] The data processing method provided in this embodiment determines the target strategy type corresponding to the target judgment result of the target conditional expression based on a first correspondence between the judgment result of the target conditional expression and the strategy type. Therefore, it can decouple the target conditional expression from the target strategy type, thereby allowing for flexible adjustment of the business processing strategy corresponding to the business scenario by adjusting the correspondence between the judgment result of the target conditional expression and the strategy type.

[0066] In some optional implementations, the step a1 above, which determines the target judgment result of the target condition expression based on the preliminary processing result and the target condition expression, includes:

[0067] Step a11: Obtain the first parameter data of the first parameter in the target condition expression. The first parameter includes parameters other than those used to characterize the first business scenario information and the preliminary processing results.

[0068] Step a12: Based on the preliminary processing results, the first parameter data, and the target condition expression, determine the target judgment result.

[0069] It should be noted that in practice, the target conditional expression, in addition to parameters representing the first business scenario information and parameters representing the preliminary processing result, may also include other parameters for determining the strategy type, such as the user identifier or the number of times the data identifier is reset. These parameters can be used as the first parameter, and the first parameter data can be obtained from the partial business data carried in the data processing request or the data pre-recorded by the data processing platform. Then, the preliminary processing result and the first parameter data are substituted into the target conditional expression to determine whether the preliminary processing result and the first parameter data match the target conditional expression, thereby obtaining the target judgment result.

[0070] It should be noted that the first business scenario information may correspond to multiple conditional expressions. If the preliminary processing result and the first parameter data match multiple conditional expressions simultaneously, multiple service interfaces can be determined based on the strategy types corresponding to the judgment results of multiple conditional expressions. Then, multiple service interfaces are called to process the business data using various business processing strategies.

[0071] In some optional implementations, the target condition expression includes a first condition expression and a second condition expression. The parameters in the second condition expression include parameters characterizing the service interface call status corresponding to the first condition expression, and the first parameter data includes the service interface call status corresponding to the first condition expression. Therefore, step a12 above, determining the target judgment result based on the preliminary processing result, the first parameter data, and the target condition expression, includes: determining the first target judgment result of the first condition expression based on the preliminary processing result and the first condition expression; and determining the second target judgment result of the second condition expression based on the service interface call status and the second condition expression.

[0072] The data processing method provided in this embodiment determines the first target judgment result of the first conditional expression based on the preliminary processing result. It then determines the second target judgment result of the second conditional expression based on the service interface call status of the first conditional expression. Therefore, it can realize the sequential processing logic between the first and second conditional expressions, thereby enabling the simultaneous invocation of multiple service interfaces in a certain order to execute multiple business processing strategies.

[0073] For example, taking business data as the data identifier, assume the first conditional expression is: "scene == "data_labeling" && labeling_processing_result == "block", and the second conditional expression is: "scene == "data_labeling" && data_labeling_reset_times_an_1_week > 3"; where data_labeling_reset_times_an_1_week represents the number of times the data identifier has been reset in the past week. If the initial processing result matches the first conditional expression, the first target judgment result of the corresponding first conditional expression is true. When the first target judgment result of the first conditional expression is true, the corresponding target strategy type is "reset data identifier". Then, the corresponding service interface is called to reset the data identifier and record the number of times the data identifier has been reset. Then, based on the number of times the data identifier has been reset, the second conditional expression is matched to determine whether the number of times the data identifier has been reset is greater than 3, so as to obtain the second target judgment result of the second conditional expression. If the number of times the data identifier has been reset is greater than 3, then the second target judgment result of the second conditional expression is true. It then queries the policy type corresponding to the second objective judgment result of the second conditional expression being true, such as "prohibit modification of data identifier", and calls the corresponding service interface to prohibit modification of data identifier.

[0074] At this point, the "prohibit modification of data identifiers" business process still relies on the "reset data identifiers" business process. The "reset data identifiers" business process must be executed first, and then it must be determined whether the number of times the data identifier has been reset is greater than 3 before the "prohibit modification of data identifiers" business process can be executed. If this business processing function is implemented according to the configuration code logic in related technologies, a large amount of business processing logic needs to be hard-coded. However, according to the data processing method disclosed in this disclosure, it can be achieved by only writing two conditional expressions in the data processing platform. Compared with related technologies, the implementation method of the data processing method disclosed in this disclosure is much simpler.

[0075] Furthermore, besides prohibiting modification of data identifiers when the number of times the data identifier is reset exceeds 3, a third conditional expression for the first business scenario information can also be configured. This third conditional expression specifies the condition that the number of times the data identifier is reset exceeds 3 and the number of times modification of the data identifier is prohibited exceeds 2 under the first business scenario information. When this condition is met, a new policy type, such as "account banning," will be matched. It should be noted that although "prohibiting modification of data identifiers" and "account banning" are two different business processing policies, since the business processing policies or service interface calls are maintained in the data processing platform, the business processing policies and corresponding parameter data for different business scenarios can be reused, simplifying the implementation logic.

[0076] Furthermore, when additional business processing strategies (or service interfaces) and strategy types need to be added to the first business scenario information, the coding would become increasingly complex as the number of condition judgments and strategy types increases, following the hard-coded logic in related technologies. In contrast, the data processing method disclosed herein, after calling the corresponding service interface to execute the corresponding business processing strategy based on the strategy type returned by the first conditional expression, further combines the service interface call status of the first conditional expression (i.e., the execution status of the executed business processing strategy) to iterate and judge the strategy type again. The judgment of the strategy type ends and the execution of the business processing strategy is terminated only when the returned strategy type is that no business processing strategy needs to be executed. Therefore, in a single data processing request, all policy types that meet the conditions under the first business scenario information can be obtained, and multiple service interfaces can be called to execute multiple business processing strategies on the business data according to the policy types that meet the conditions.

[0077] As an example, the following describes the strategy type determination process of the data processing method of this disclosure using a specific embodiment. Figure 2 As shown, in the data processing method disclosed herein, the strategy type determination process includes the following steps:

[0078] Step S201: Based on the target condition expression corresponding to the first business scenario information, a judgment is made to determine the target strategy type.

[0079] Step S202: Determine whether it is necessary to call the service interface to process business data based on the target strategy type. If yes, proceed to step S203; otherwise, the current judgment process ends.

[0080] Step S203: Call the target service interface corresponding to the target strategy type to process the business data.

[0081] Step S204: Based on the processing result of the target service interface and the target condition expression corresponding to the first business scenario information, make another judgment to determine the new target strategy type, and then return to step S202.

[0082] It should be noted that the processing result of the target service interface is the call status of the target service interface.

[0083] In some optional implementations, step S104 above, which involves calling the corresponding target service interface of the first business application based on the target policy type to process the business data and obtain the target processing result, includes:

[0084] Step b1: Obtain the second correspondence between the strategy type and the interface description information of the preset service interface. Different preset service interfaces are used to execute the processing logic of different business processing strategies.

[0085] Step b2: Determine the target interface description information based on the target strategy type and the second correspondence.

[0086] Step b3: Based on the target interface description information, call the corresponding target service interface of the first business application to process the business data and obtain the target processing result.

[0087] It should be noted that interface description information is also known as Interface Description Language (IDL). Interface description information includes the service name of the corresponding service interface, the interface name of the corresponding business processing strategy, and parameter definitions. The data processing platform can pre-store a second correspondence between each strategy type and interface description information. Then, through the generalized invocation capability of RPC, it can call the corresponding target service interface of the first business system based on the target interface description information to process the business data and obtain the target processing result. Therefore, it can automatically call the target service interface to process business data based on the correspondence between strategy type and interface description information, without needing to specify the service interface to be called by writing code.

[0088] The data processing method provided in this embodiment determines the target interface description information corresponding to the target strategy type based on a second correspondence between strategy types and interface description information of preset service interfaces, and then calls the target service interface based on the target interface description information. Therefore, it is possible to flexibly adjust the business processing strategies corresponding to different business scenarios by adjusting the interface description information corresponding to the strategy type.

[0089] In some optional implementations, step b3 above, which involves calling the corresponding target service interface of the first business application based on the target interface description information to process the business data and obtain the target processing result, includes:

[0090] Step b31: Determine the second parameter used to call the target service interface.

[0091] Step b32: Obtain the second parameter data of the second parameter.

[0092] Step b33: Convert the format of the second parameter data to obtain the converted parameter data. The converted parameter data is the same as the data format supported by the target service interface.

[0093] Step b34: Based on the target interface description information and the parameter data after format conversion, call the corresponding target service interface of the first business application to process the business data to obtain the target processing result.

[0094] It's important to note that the second parameter, such as the user identifier, needs to be transmitted to the target service interface so that the target service interface can execute the corresponding target business processing strategy based on the business data of that user identifier. However, considering that the field definition for the user identifier in the data processing platform may differ from that in the target service interface, the second parameter data needs to be formatted before being transmitted to the target service interface. The formatted parameter data is then transmitted to the target service interface to execute the corresponding target business processing strategy. For example, if the target service interface defines the user identifier field as "User ID" while the data processing platform defines it as "user_id", then "user_id" needs to be converted to "User ID" before transmitting the user identifier to the target service interface. Furthermore, if the two fields have different data types, such as one field being an integer and the other a string, type conversion between the two fields is also supported to facilitate understanding by the target service interface.

[0095] The data processing method provided in this embodiment converts the format of the second parameter data used to call the target service interface, and then calls the corresponding target service interface of the first business application to process the business data based on the target interface description information and the converted parameter data. Therefore, it can avoid the target service interface being unable to process the business data correctly due to inconsistent data formats.

[0096] As an example, the following specific embodiment illustrates the service interface invocation flow of the data processing method disclosed herein. For example... Figure 3 As shown, in the data processing method disclosed herein, the service interface invocation process includes the following steps:

[0097] Step S301: Determine the target service interface and the target business processing strategy corresponding to the target service interface based on the target strategy type.

[0098] Step S302: Call the target service interface to execute the processing logic of the target business processing strategy.

[0099] Step S303: Obtain the target processing result and record the target business processing strategy for this time.

[0100] It should be noted that, when executing the corresponding target business processing strategy, the data processing method disclosed herein automatically obtains the corresponding target service interface call service based on the strategy type, thereby generalizing the call to the target service interface and executing the target business processing strategy. Therefore, it can effectively reduce development costs and improve the efficiency of business data processing.

[0101] In some optional implementations, the data processing method of this disclosure further includes:

[0102] Step c1: In response to the configuration update command for the second business scenario information, obtain the update object corresponding to the second business scenario information and the update data of the update object;

[0103] Step c2: Update the data of the update object corresponding to the second business scenario information based on the updated data.

[0104] The data processing method provided in this embodiment obtains the update object and its update data corresponding to the second business scenario information. Then, it updates the data of the update object corresponding to the second business scenario information based on the update data. Therefore, it can flexibly adjust the processing method of business data for different business scenarios.

[0105] In some optional implementations, if the update object is the first preset conditional expression corresponding to the second business scenario information, and the update data is the second preset conditional expression, then the update of the data of the update object corresponding to the second business scenario information based on the update data in step c2 above includes: updating the first preset conditional expression corresponding to the second business scenario information based on the second preset conditional expression.

[0106] The data processing method provided in this embodiment can obtain a second preset condition expression for updating the judgment logic of the second business scenario information for different strategy types when it is necessary to update the first preset condition expression originally corresponding to the second business scenario information. Therefore, it is possible to flexibly adjust the judgment conditions of the second business scenario information for different strategy types without changing the processing logic of the existing business processing strategy.

[0107] In some optional implementations, if the update object is the first interface description information corresponding to the second business scenario information, and the update data is the second interface description information, then the update of the data of the update object corresponding to the second business scenario information based on the update data in step c2 above includes: updating the first interface description information corresponding to the second business scenario information based on the second interface description information.

[0108] The data processing method provided in this embodiment can obtain the second interface description information for updating when it is necessary to update the service interface corresponding to the second business scenario information, so as to replace the original first interface description information corresponding to the second business scenario information. Therefore, it is possible to flexibly adjust the business processing strategy adopted by the second business scenario information for business data without changing the processing logic of the existing business processing strategy.

[0109] As an example, the following describes the process of updating the service interface or business processing strategy used in the data processing method of this disclosure using a specific embodiment. For example... Figure 4 As shown, in the data processing method disclosed herein, the update process for the service interface or business processing strategy includes the following steps:

[0110] Step S401: Configure the correspondence between the policy type and the interface description information of the preset service interface.

[0111] Step S402: Periodically poll to obtain the latest policy type and the corresponding interface description information of the preset service interface.

[0112] Step S403: Determine if the interface description information has been updated. If yes, proceed to step S404; otherwise, the update process ends.

[0113] Step S404: Obtain updated interface description information to update the interface description information stored locally in the data processing platform.

[0114] Step S405: Based on the updated interface description information, configure and generate a service call for the new service interface and cache it.

[0115] In some optional implementations, if the update object is the third parameter of the second preset conditional expression corresponding to the second business scenario information, and the update data is the fourth parameter, then the update of the data of the update object corresponding to the second business scenario information based on the update data in step c2 above includes: updating the third parameter of the second preset conditional expression corresponding to the second business scenario information based on the fourth parameter.

[0116] It should be noted that when the updated business processing strategy has not been configured in the data processing platform, the mapping relationship between the strategy type and service interface description information of the updated business processing strategy, as well as the parameters of the service interface corresponding to the updated business processing strategy, and the format conversion relationship between these parameters and the parameters in the data processing platform, need to be configured in the data processing platform to enable the updated business processing strategy.

[0117] The data processing method provided in this embodiment can obtain a fourth parameter for updating the parameters of the second preset conditional expression corresponding to the second business scenario information when it is necessary to update the parameters of the second preset conditional expression. This fourth parameter replaces the original third parameter of the second preset conditional expression. Therefore, it is possible to flexibly adjust the judgment conditions of the second business scenario information for different strategy types without changing the processing logic of the existing business processing strategy.

[0118] In some optional implementations, if the update object is the first strategy type of the third preset conditional expression corresponding to the second business scenario information, and the update data is the second strategy type, then the update of the data of the update object corresponding to the second business scenario information based on the update data in step c2 above includes: updating the first strategy type of the third preset conditional expression corresponding to the second business scenario information based on the second strategy type.

[0119] The data processing method provided in this embodiment, when it is necessary to update the strategy type of the third preset conditional expression corresponding to the second business scenario information, can obtain the second strategy type for updating, and replace the first strategy type originally corresponding to the third preset conditional expression. Therefore, it is possible to flexibly adjust the processing method of the second business scenario information for business data without changing the processing logic of the existing business processing strategy.

[0120] As an example, the effects achievable by the data processing method of this disclosure will be illustrated below through specific examples. For instance, as shown... Figure 5As shown, in related technologies, the client of a business application reports business data to the server of the business application, and then the server reports the business data to the business platform. The business platform performs preliminary processing on the business data manually or by machine, for example, determining whether the business data meets preset data requirements. Then, the business platform feeds back the preliminary processing result to the server. After receiving the preliminary processing result, the server combines it with other business processing conditions through hard coding to determine whether business processing of the business data is required. If so, it calls the service interface of the adopted business processing strategy through code to process the business data. If not, the data processing flow ends. However, this business processing method requires adjustments by modifying code and republishing services, whether it is integrating new business scenarios, adjusting business processing methods, or modifying the called business processing methods, making it difficult to flexibly adjust the processing methods of business data under different business scenarios.

[0121] In comparison, such as Figure 6 As shown, in the data processing method disclosed herein, the client of the first business application reports business data to the server of the first business application, and then the server reports the business data to the first business system. The first business system performs preliminary processing on the business data manually or by machine, for example, determining whether the business data meets preset data requirements (e.g., security requirements). Then, the first business system generates a data processing request based on the preliminary processing result and sends it to the data processing platform. The data processing platform parses the data processing request to obtain the business processing data. The data processing platform determines the target condition expression based on the business processing data, and determines the target strategy type based on the target condition expression. Then, it determines whether the business data needs to be processed based on the target strategy type. If so, it calls the target service interface corresponding to the target strategy type to execute the corresponding target business processing strategy on the business data. If not, the data processing process ends.

[0122] Compared with related technologies, the data processing method disclosed herein has the following advantages:

[0123] Firstly, the centralized platform consolidates and unifies business processing strategies, allowing corresponding service interfaces to be reused across different business scenarios. This reduces the cost of processing business data for business applications and improves the overall development efficiency of these applications. For each business scenario, there's no need to develop and implement a separate, complete business processing strategy. Business applications only need to call the reporting interface once for the business data they need to process; subsequent judgments and processing logic for the business data are transparent to the application. Even if the corresponding service interfaces and business processing strategies are adjusted, only the relevant configurations on the data processing platform need to be modified, without changing the code. This reduces the burden of processing business data and calling business processing strategies, thus improving development efficiency.

[0124] Secondly, unlike the static code rules in related technologies, the data processing method disclosed herein can flexibly apply multiple business processing strategies within a single data processing request. Especially when temporary adjustments to business processing strategies and strategy types are required, the data processing method of this disclosure standardizes and configures complex business logic, achieving low-code or no-code business data processing. This significantly reduces code complexity, improves code quality, and alleviates the burden of maintenance and upgrades. Even if some service interfaces that depend on other services need adjustment or upgrades, only a single change to the data processing platform is needed to take effect in all business scenarios. Moreover, due to the unification and standardization of business logic, modifications to business processes and the integration of new business scenarios become much faster, accelerating the iteration speed of business applications. Particularly in a single business scenario, even if there are requirements for the order of business processing strategies, or if multiple business scenarios have interdependencies in the processing results of business data, this can be achieved by creating or adjusting conditional expressions. When new business processing strategies or service interfaces are integrated, they can also be integrated through configuration, improving the integration efficiency of business processing strategies and service interfaces, as well as the overall business processing efficiency.

[0125] Third, by identifying and parsing service metadata (i.e., the name of the business processing strategy, interface description information, etc.), the data processing platform can dynamically determine the service interfaces to be called based on the strategy type, and can connect to various atomic capability services (i.e., service interfaces) at the lowest cost without modifying the code. This data processing method is more flexible and efficient, and can quickly respond to business processing needs. Moreover, when adjustments are made, only one adjustment needs to be made, and the changes will take effect everywhere.

[0126] Fourth, the plugin system, implemented using strategies and generalized invocations, allows users to flexibly customize their processing logic according to business needs, making the processing flow more flexible and personalized. This "plug-and-play" approach improves the efficiency of business processing configuration and reduces the coupling between various components and services, making complex judgment and processing logic clearer and easier to adjust and extend. Furthermore, all business processing strategies and their corresponding service interfaces (also known as atomic capabilities of business processing) are managed and maintained in the data processing platform. Business processing strategies and strategy types are decoupled, allowing users to write business processing strategies and select the corresponding strategy types for different business scenarios.

[0127] This embodiment also provides a data processing apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0128] This embodiment provides a data processing device, such as... Figure 7 As shown, it includes:

[0129] The request and response processing module 701 is used to respond to the data processing request sent by the first business system, parse the data processing request, and obtain business processing data. The business processing data includes the first business scenario information and the preliminary processing result obtained by the first business system from processing the business data of the first business application.

[0130] The expression confirmation module 702 is used to determine the target condition expression from the preset condition expressions based on the first business scenario information. The preset condition expressions are used to characterize the judgment conditions corresponding to the strategy type.

[0131] The strategy type confirmation module 703 is used to determine the target strategy type based on the preliminary processing results and the target condition expression;

[0132] The processing strategy execution module 704 is used to call the corresponding target service interface of the first business application to process the business data based on the target strategy type in order to obtain the target processing result. The target service interface is used to execute the processing logic of the target business processing strategy.

[0133] In some optional implementations, the strategy type confirmation module 703 includes:

[0134] The judgment result determination unit is used to determine the target judgment result of the target condition expression based on the preliminary processing result and the target condition expression;

[0135] The first relation acquisition unit is used to acquire the first correspondence between the judgment result of the target condition expression and the strategy type;

[0136] The strategy type determination unit is used to determine the target strategy type based on the target judgment result and the first correspondence.

[0137] In some optional implementations, the determination result unit includes:

[0138] The first data acquisition subunit is used to acquire the first parameter data of the first parameter in the target condition expression. The first parameter includes parameters other than those used to characterize the first business scenario information and the preliminary processing result.

[0139] The judgment result determination subunit is used to determine the target judgment result based on the preliminary processing results, the first parameter data, and the target condition expression.

[0140] In some optional implementations, the target condition expression includes a first condition expression and a second condition expression. The parameters in the second condition expression include parameters characterizing the service interface call status corresponding to the first condition expression, and the first parameter data includes the service interface call status corresponding to the first condition expression. Therefore, the judgment result determination subunit is specifically used to: determine the first target judgment result of the first condition expression based on the preliminary processing result and the first condition expression; and determine the second target judgment result of the second condition expression based on the service interface call status and the second condition expression.

[0141] In some optional implementations, the processing policy execution module 704 includes:

[0142] The second relationship acquisition unit is used to acquire the second correspondence between the strategy type and the interface description information of the preset service interface. Different preset service interfaces are used to execute the processing logic of different business processing strategies.

[0143] The description information determination unit is used to determine the target interface description information based on the target strategy type and the second correspondence relationship;

[0144] The business data processing unit is used to call the corresponding target service interface of the first business application based on the target interface description information to process the business data and obtain the target processing result.

[0145] In some optional implementations, the business data processing unit includes:

[0146] The interface parameter determination subunit is used to determine the second parameter used to call the target service interface;

[0147] The second data acquisition subunit is used to acquire the second parameter data of the second parameter.

[0148] The data format conversion subunit is used to convert the format of the second parameter data to obtain the converted parameter data, which is the same as the data format supported by the target service interface.

[0149] The business data processing subunit is used to call the corresponding target service interface of the first business application to process the business data based on the target interface description information and the parameter data after format conversion, so as to obtain the target processing result.

[0150] In some optional embodiments, the data processing apparatus of this disclosure further includes:

[0151] The update command response module is used to respond to configuration update commands for the second business scenario information, and to obtain the update object corresponding to the second business scenario information and the update data of the update object;

[0152] The configuration data update module is used to update the data of the update object corresponding to the second business scenario information based on the updated data.

[0153] In some optional implementations, the configuration data update module includes:

[0154] The first data update unit is used to update the first preset condition expression corresponding to the second business scenario information based on the second preset condition expression if the update object is the first preset condition expression corresponding to the second business scenario information and the update data is the second preset condition expression.

[0155] In some optional implementations, the configuration data update module includes:

[0156] The second data update unit is used to update the first interface description information corresponding to the second business scenario information based on the second interface description information if the update object is the first interface description information corresponding to the second business scenario information and the update data is the second interface description information.

[0157] In some optional implementations, the configuration data update module includes:

[0158] The third data update unit is used to update the third parameter of the second preset conditional expression corresponding to the second business scenario information based on the fourth parameter if the update object is the third parameter of the second preset conditional expression corresponding to the second business scenario information and the update data is the fourth parameter.

[0159] In some optional implementations, the configuration data update module includes:

[0160] The fourth data update unit is used to update the first strategy type of the third preset conditional expression corresponding to the second business scenario information based on the second strategy type if the update object is the first strategy type of the third preset conditional expression corresponding to the second business scenario information and the update data is the second strategy type.

[0161] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0162] In this embodiment, the data processing device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0163] This disclosure also provides an electronic device having the above-described features. Figure 7 The data processing device shown.

[0164] Please see Figure 8 , Figure 8 This is a structural block diagram of an electronic device provided in an optional embodiment of this disclosure, such as... Figure 8 As shown, the electronic device includes one or more processors 801, a memory 802, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical data of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 8 Take the 801 processor as an example.

[0165] Processor 801 may be a central processing unit, a network processor, or a combination thereof. Processor 801 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0166] The memory 802 stores instructions executable by at least one processor 801 to cause at least one processor 801 to perform the method shown in the above embodiments.

[0167] The memory 802 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 802 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 802 may optionally include memory remotely located relative to the processor 801, and these remote memories can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0168] The memory 802 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 802 may also include a combination of the above types of memory.

[0169] The electronic device also includes a communication interface 803 for communicating with other devices or communication networks.

[0170] This disclosure also provides a computer-readable storage medium in which the methods described in this disclosure can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded over a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium may be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0171] A portion of this disclosure can be applied to computer program products, such as computer program instructions, which, when executed by a computer, can invoke or provide methods and / or technical solutions according to this disclosure through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, and installation package files. Accordingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions; the computer compiling the instructions and then executing the corresponding compiled program; the computer reading and executing the instructions; or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0172] Although embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A data processing method, characterized in that, Applied to a data processing platform, the method includes: In response to a data processing request sent by the first business system, the data processing request is parsed to obtain business processing data, which includes first business scenario information and preliminary processing results obtained by the first business system from processing business data of the first business application. Based on the first business scenario information, a target condition expression is determined from the preset condition expressions. The preset condition expressions are used to characterize the judgment conditions corresponding to the strategy type. The target condition expression includes a first condition expression and a second condition expression. The parameters in the second condition expression include parameters used to characterize the service interface call status corresponding to the first condition expression. Based on the preliminary processing results and the target condition expression, the target strategy type is determined; Based on the target strategy type, the corresponding target service interface of the first business application is called to process the business data to obtain the target processing result. The target service interface is used to execute the processing logic of the target business processing strategy. The step of determining the target strategy type based on the preliminary processing result and the target condition expression includes: determining the target judgment result based on the preliminary processing result, first parameter data, and the target condition expression, wherein the first parameter data includes the service interface call information corresponding to the first condition expression; obtaining a first correspondence between the judgment result of the target condition expression and the strategy type; and determining the target strategy type based on the target judgment result and the first correspondence. The step of calling the corresponding target service interface of the first business application to process the business data based on the target strategy type to obtain the target processing result includes: obtaining a second correspondence between the strategy type and the interface description information of the preset service interface, wherein different preset service interfaces are used to execute the processing logic of different business processing strategies; determining the target interface description information based on the target strategy type and the second correspondence; and calling the corresponding target service interface of the first business application to process the business data based on the target interface description information to obtain the target processing result.

2. The data processing method according to claim 1, characterized in that, The step of determining the target judgment result based on the preliminary processing result, the first parameter data, and the target condition expression includes: Based on the preliminary processing result and the first conditional expression, determine the first target judgment result of the first conditional expression; Based on the service interface call information and the second conditional expression, determine the second target judgment result of the second conditional expression.

3. The data processing method according to claim 1, characterized in that, The step of calling the corresponding target service interface of the first business application based on the target interface description information to process the business data and obtain the target processing result includes: Determine the second parameter used to invoke the target service interface; Obtain the second parameter data of the second parameter; The second parameter data is converted to a new format to obtain the converted parameter data, which is in the same format as the data format supported by the target service interface. Based on the target interface description information and the format-converted parameter data, the corresponding target service interface of the first business application is called to process the business data to obtain the target processing result.

4. The data processing method according to claim 1, characterized in that, The method further includes: In response to a configuration update command for the second business scenario information, the update object corresponding to the second business scenario information and the update data of the update object are obtained. The data of the update object corresponding to the second business scenario information is updated based on the updated data.

5. The data processing method according to claim 4, characterized in that, If the updated object is a first preset conditional expression corresponding to the second business scenario information, and the updated data is a second preset conditional expression, then updating the data of the updated object corresponding to the second business scenario information based on the updated data includes: The first preset condition expression corresponding to the second business scenario information is updated based on the second preset condition expression.

6. The data processing method according to claim 4, characterized in that, If the updated object is the first interface description information corresponding to the second business scenario information, and the updated data is the second interface description information, then updating the data of the updated object corresponding to the second business scenario information based on the updated data includes: The first interface description information corresponding to the second business scenario information is updated based on the second interface description information.

7. The data processing method according to claim 4, characterized in that, If the updated object is the third parameter of the second preset conditional expression corresponding to the second business scenario information, and the updated data is the fourth parameter, then updating the data of the updated object corresponding to the second business scenario information based on the updated data includes: The third parameter of the second preset conditional expression corresponding to the second business scenario information is updated based on the fourth parameter.

8. The data processing method according to claim 4, characterized in that, If the updated object is a first strategy type of a third preset conditional expression corresponding to the second business scenario information, and the updated data is a second strategy type, then updating the data of the updated object corresponding to the second business scenario information based on the updated data includes: The first strategy type of the third preset conditional expression corresponding to the second business scenario information is updated based on the second strategy type.

9. A data processing apparatus, characterized in that, The device includes: The request and response processing module is used to respond to the data processing request sent by the first business system, parse the data processing request, and obtain business processing data. The business processing data includes first business scenario information and preliminary processing results obtained by the first business system from processing the business data of the first business application. The expression confirmation module is used to determine the target condition expression from the preset condition expressions based on the first business scenario information. The preset condition expressions are used to characterize the judgment conditions corresponding to the strategy type. The target condition expression includes a first condition expression and a second condition expression. The parameters in the second condition expression include parameters used to characterize the service interface call status corresponding to the first condition expression. The strategy type confirmation module is used to determine the target strategy type based on the preliminary processing result and the target condition expression; The processing strategy execution module is used to call the corresponding target service interface of the first business application to process the business data based on the target strategy type, so as to obtain the target processing result. The target service interface is used to execute the processing logic of the target business processing strategy. The strategy type confirmation module includes: The judgment result determination unit is used to determine the target judgment result based on the preliminary processing result, the first parameter data, and the target condition expression, wherein the first parameter data includes the service interface call information corresponding to the first condition expression; The first relationship acquisition unit is used to acquire the first correspondence between the judgment result of the target condition expression and the strategy type; The strategy type determination unit is used to determine the target strategy type based on the target judgment result and the first correspondence relationship; The processing strategy execution module includes: The second relationship acquisition unit is used to acquire the second correspondence between the strategy type and the interface description information of the preset service interface, wherein different preset service interfaces are used to execute the processing logic of different business processing strategies. The description information determination unit is used to determine the target interface description information based on the target strategy type and the second correspondence relationship; The business data processing unit is used to call the target service interface corresponding to the first business application to process the business data based on the target interface description information, so as to obtain the target processing result.

10. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the data processing method of any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data processing method according to any one of claims 1 to 8.

12. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the data processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Business processing method and device, electronic equipment and storage medium

    CN115733885A