Data processing method and device, equipment, storage medium and program product
By analyzing business scenario information and preliminary processing results in the data processing middle platform, determining the target policy type based on preset conditional expressions and calling the corresponding service interface, the business data processing method in the prior art is solved, which is difficult to centrally process and flexibly adjust the business scenario in the prior art. The problem of flexible business data processing and reduce development costs.
Patent Information
- Application Number
- CN202411147785.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The existing technology is difficult to centrally process and flexibly adjust the business data processing methods in different business scenarios, resulting in the need to re-implement the processing logic when adding or modifying business scenarios, which increases R&D resource consumption and development costs.
By analyzing the data processing request of the business system in the data processing middle platform, determining the business scenario information and preliminary processing results, determining the target policy type based on the preset condition expression, and calling the corresponding service interface to execute the target business processing strategy, realizing the business scenario and Decoupling of conditional expressions, policy types and service interfaces.
Without changing the processing logic of the business processing strategy, the processing strategies of different business scenarios are flexibly adjusted by adjusting the conditional expression or policy type, and centralized processing and maintenance of different business processing strategies is achieved, reducing development costs and maintenance complexity Spend.
Smart Images

Figure CN119003044A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a data processing method, device, equipment, storage medium and program product. Background Art
[0002] At present, during the operation of business applications, there may be some business data with security risks. Therefore, in order to ensure the security of business data and maintain the order of the network community, it is necessary to review the security of business data. Among them, targeted processing is required for business data with security risks, and different business scenarios have different processing methods for business data. Therefore, in the relevant technology, corresponding codes need to be configured for each business scenario to pre-specify the processing method for the business data of the current business scenario. However, this data processing method requires re-implementing a set of processing logic when adding or modifying business scenarios. In particular, even if different business scenarios perform the same processing on the same business data, they also need to fully implement a set of processing logic, which makes it difficult to centrally process and flexibly adjust the processing methods of business data in 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 that it is difficult to centrally process and flexibly adjust the processing method of business data in different business scenarios.
[0004] In a first aspect, the present disclosure provides a data processing method, which is applied to a data processing platform, and the method includes:
[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, where the business processing data includes first business scenario information and a preliminary processing result obtained by the first business system processing the business data of the first business application;
[0006] Determine a target conditional expression from a preset conditional expression based on the first business scenario information, where the preset conditional expression is used to characterize a judgment condition corresponding to a policy type;
[0007] Determining a target strategy type based on the preliminary processing result and the target condition expression;
[0008] Based on the target policy type, a target service interface corresponding to the first business application is called to process the business data to obtain a target processing result, wherein the target service interface is used to execute the processing logic of the target business processing policy.
[0009] In a second aspect, the present disclosure provides a data processing device, the device comprising:
[0010] a processing request response module, configured to respond to a data processing request sent by the first business system, parse the data processing request, and obtain business processing data, wherein the business processing data includes first business scenario information and a preliminary processing result obtained by the first business system processing the business data of the first business application;
[0011] An expression confirmation module, used to determine a target conditional expression from a preset conditional expression based on the first business scenario information, wherein the preset conditional expression is used to characterize a judgment condition corresponding to a policy type;
[0012] A strategy type confirmation module, used to determine a target strategy type based on the preliminary processing result and the target condition expression;
[0013] A processing strategy execution module is used to call the target service interface corresponding to the first business application based on the target strategy type to process the business data to obtain a target processing result, and the target service interface is used to execute the processing logic of the target business processing strategy.
[0014] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the data processing method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0015] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the data processing method of the first aspect or any corresponding embodiment thereof.
[0016] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, which are used to enable a computer to execute the data processing method of the first aspect or any corresponding embodiment thereof.
[0017] The data processing method provided by the embodiment of the present disclosure, after obtaining the first business scenario information and the preliminary processing result of the business data by parsing the data processing request based on the first business system, determines the target conditional expression from the preset conditional expression based on the first business scenario information, so as to determine the target policy type according to the preliminary processing result and the target conditional expression. Then, based on the target policy type, the corresponding target service interface of the first business application is called to execute the target business processing strategy to process the business data, so as to obtain the target processing result. Therefore, it is possible to decouple the business scenario from the conditional expression, decouple the conditional expression from the policy type, and decouple the policy type from the service interface. Thus, by adjusting the conditional expression corresponding to the business scenario, or adjusting the policy type corresponding to the conditional expression, or adjusting the service interface corresponding to the policy type, the business processing strategy for the business data of different business scenarios can be flexibly adjusted without changing the processing logic of the business processing strategy, so as to realize the centralized processing and maintenance of different business processing strategies. Thus, it is possible to flexibly select appropriate business processing strategies for different business scenarios to process the business data with security risks, so as to ensure the security of the business data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a flowchart of a first data processing method according to an embodiment of the present disclosure;
[0020] Figure 2 is a flow chart of a second data processing method according to an embodiment of the present disclosure;
[0021] Figure 3 is a flowchart of a third data processing method according to an embodiment of the present disclosure;
[0022] Figure 4 is a flowchart of a fourth data processing method according to an embodiment of the present disclosure;
[0023] Figure 5 is a flowchart of a data processing method of a related technology;
[0024] Figure 6 is a flowchart of a fifth data processing method according to an embodiment of the present disclosure;
[0025] Figure 7 is a structural block diagram of a data processing device according to an embodiment of the present disclosure;
[0026] Figure 8 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0028] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of personal data involved in the present disclosure should be informed to users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0029] For example, in response to receiving an active request from a user, prompt data is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal data. Thus, the user can autonomously choose whether to provide personal data to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt data.
[0030] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt data may be sent to the user in the form of a pop-up window, in which the prompt data may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal data to the electronic device.
[0031] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0032] It is understandable 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 relevant provisions.
[0033] In business processing scenarios, it is usually necessary to adopt different business processing methods for business data according to different business scenarios. In actual scenarios, multiple business processing methods may be required for the same business data in combination with actual business data. For example, when the business data of the target object does not meet the preset data requirements, the first business processing method is executed on the business data. If the business data of the target object does not meet the preset data requirements for multiple times within a period of time, in addition to continuing to execute the first business processing method on the business data, it is necessary to further execute the second business processing method.
[0034] For example, if the target object modifies the data identifier, but the modified data identifier does not meet the preset identifier requirements, the first identifier must be reset or modified. 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, in addition to continuing to reset or modify the data identifier, further business processing methods need to be adopted, such as prohibiting the modification of the data identifier.
[0035] It can be seen that the business processing method for business data is often not a single one, and usually requires a combination of multiple judgment conditions for judgment and processing. Moreover, if there are multiple business processing methods, the later business processing method may depend on the processing results of the previous business processing method.
[0036] At present, in the process of business processing of business data, business data is often simply processed manually or by machines, and then the preliminary processing results are further processed in combination with business scenarios. Usually, different business scenarios have different processing methods for the preliminary processing results. Therefore, in the relevant technology, it is necessary to configure the corresponding business processing method code for each business scenario to pre-specify the processing method for the preliminary processing results of the current business scenario. However, this business processing method, whether it is accessing a new business scenario, adjusting the business processing method, or modifying the called business processing method, needs to be adjusted by modifying the code to publish the service.
[0037] In other words, in the relevant technology, each business scenario needs to be configured with a specific set of code logic that relies on hard-coded judgment and execution to execute different business processing methods. However, this business processing method has the following disadvantages:
[0038] First, when adding or modifying a business scenario, it is necessary to re-implement a set of business processing logic. In particular, when different business scenarios use the same business processing method for the same entity, the business processing logic also needs to be fully implemented, which greatly consumes R&D resources. Moreover, when adjusting the business processing method, even if the content of the adjustment is the same, the relevant business scenarios need to be adjusted again, and the corresponding development and adjustment costs of the business processing method will be relatively high.
[0039] Secondly, when the business processing logic is complex, a large amount of code needs to be written and maintained in order to complete a business processing method, which may make the code difficult to read and understand. Moreover, as the number of business scenarios increases, the complexity of the code will also increase, and the possibility of errors will become greater, which may also lead to more code defects and failures. In addition, when calling the service interface of the business processing method for business processing, if the dependent service needs to be replaced, or the service provider has modified the service interface, then each business scenario needs to modify the calling code of these service interfaces, making maintenance and upgrade work difficult and time-consuming.
[0040] Third, when processing business data, only one business processing method can be used at a time. If the same business data needs to be processed in multiple ways at the same time, it is necessary to hard-code the judgment logic in the business code and specify the call of multiple different service interfaces; each service interface corresponds to a business processing method. Moreover, if there are requirements for the execution order of the business processing methods, the corresponding coding logic will be particularly complex. If the business scenario or judgment logic changes and the business processing method needs to be adjusted or the service interface that calls the business processing method needs to be changed, a large amount of code needs to be hard-coded for adjustment, and this adjustment method is relatively inefficient.
[0041] In summary, corresponding codes need to be configured for each business scenario to pre-specify the business processing methods for the business data of the current business scenario. When adding or modifying a business scenario, it is necessary to re-implement a set of processing logic for the business processing method. In particular, even if different business scenarios perform the same processing on the same business data, they all need to fully implement a set of processing logic. In particular, with the continuous increase in the number of business scenarios, the workload of coding, testing and maintenance of business processing methods will increase significantly, and may even exceed the controllable range. Not only that, as the complexity of the code increases, the quality of the code is also difficult to guarantee. The cumbersome business processing logic, service calls, and complex judgment logic implementation may make the process of transforming and expanding the original code extremely difficult. It can be seen that the development efficiency of the business processing methods in the relevant technology is low, and it lacks flexibility, which requires more R&D resources.
[0042] In view of this, according to an embodiment of the present disclosure, a data processing method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0043] In this embodiment, a first data processing method is provided, which can be used in a data processing middle station; wherein the data processing middle station is connected to at least one business system, and each business system is connected to at least one business application. The data processing middle station is used to deploy targeted business processing strategies for business data of business applications in different business scenarios to ensure the security of business data. Figure 1 is a flow chart of a first data processing method according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:
[0044] Step S101, in response to a data processing request sent by a first business system, the data processing request is parsed to obtain business processing data, where the business processing data includes first business scenario information and a preliminary processing result obtained by the first business system processing the business data of a first business application.
[0045] Specifically, the client of the first business application reports the business data to the server of the first business application. The server then reports the business data to the first business system, and the first business system performs preliminary processing on the business data to obtain preliminary processing results. Among them, preliminary processing includes determining whether the business data meets preset data requirements (such as security requirements). The first business system generates a data processing request based on the preliminary processing results and the first business scenario information corresponding to the business data. Among them, the first business scenario information can be represented by a scenario identifier or an enumeration 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 a user identifier.
[0046] Furthermore, the data processing method of the present disclosure further includes: performing format conversion on the business processing data so that the format of the business processing data after the format conversion is the same as the data format of the preset conditional expression.
[0047] It is understandable that the data format of the business processing data may be different from the data format of the data processing platform or the preset conditional expression. Therefore, in order to avoid the inability to extract parameter information related to the preset conditional expression from the 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 is mapped to field B representing the same parameter in the data processing platform.
[0048] Step S102: determining a target conditional expression from preset conditional expressions based on the first business scenario information, where the preset conditional expression is used to characterize a judgment condition corresponding to a policy type.
[0049] Specifically, considering the different judgment logic and processing logic of business processing strategies in different business scenarios, and avoiding the complex logic of hard-coded business processing strategies, a processing strategy module can be abstracted in the data processing center. The processing strategy module can be driven based on the business processing strategy and serve as the basis for compound processing of the business processing strategy, so as to facilitate the centralized management and maintenance of the business processing strategy.
[0050] Specifically, multiple preset conditional expressions can be written in the processing strategy module, and each preset conditional expression is used to characterize a judgment condition corresponding to a policy type. After obtaining the first business scenario information, the data processing center can determine a matching preset conditional expression from the processing strategy module according to the first business scenario information as the target conditional expression.
[0051] Optionally, the preset conditional expression is a Boolean expression.
[0052] Step S103, determining the target policy type based on the preliminary processing result and the target condition expression.
[0053] Specifically, after determining the target conditional expression, the preliminary processing result can be substituted into the target conditional expression to determine whether the preliminary processing result matches the target conditional expression to obtain the determination result of the target conditional expression. Then, the target policy type is determined according to the determination result.
[0054] Step S104: Based on the target policy type, the target service interface corresponding to the first business application is called to process the business data to obtain a target processing result. The target service interface is used to execute the processing logic of the target business processing policy.
[0055] Specifically, in actual operation, multiple service interfaces can be configured, each service interface corresponds to the processing logic of a business processing strategy, and the corresponding relationship between the strategy type and the interface description information of the service interface is stored in the data processing center. Therefore, the data processing center can call the target service interface of the server of the first business application to process the business data through the generalization capability of Remote Procedure Call (RPC), so there is no need to write specific client code for each strategy type.
[0056] Even when adjusting the policy type, only the corresponding relationship between the policy type and the interface description information of the service interface needs to be adjusted, and there is no need to modify the processing logic code of the business processing policy.
[0057] In addition, a mapping relationship between a policy type and a business processing policy can be created in the service with the policy type as the key and the business processing policy as the key value. After obtaining the target policy type, the corresponding target business processing policy is determined by the target policy type, so as to process the business data based on the target business processing policy.
[0058] The data processing method provided in this embodiment, after obtaining the first business scenario information and the preliminary processing result of the business data by parsing the data processing request based on the first business system, determines the target conditional expression from the preset conditional expression based on the first business scenario information, so as to determine the target policy type according to the preliminary processing result and the target conditional expression. Then, the target service interface corresponding to the first business application is called based on the target policy type to execute the target business processing strategy to process the business data, thereby obtaining the target processing result. Therefore, it is possible to decouple the business scenario from the conditional expression, decouple the conditional expression from the policy type, and decouple the policy type from the service interface. Thus, by adjusting the conditional expression corresponding to the business scenario, or adjusting the policy type corresponding to the conditional expression, or adjusting the service interface corresponding to the policy type, the business processing strategy for business data in different business scenarios can be flexibly adjusted without changing the processing logic of the business processing strategy, thereby realizing the centralized processing and maintenance of different business processing strategies. Thus, it is possible to flexibly select appropriate business processing strategies for different business scenarios to process business data with security risks to ensure the security of business data.
[0059] In some optional implementations, determining the target strategy type based on the preliminary processing result and the target condition expression in step S103 above includes:
[0060] Step a1, based on the preliminary processing result and the target condition expression, determine the target judgment result of the target condition expression.
[0061] Step a2: obtaining a first corresponding relationship between the judgment result of the target condition expression and the strategy type.
[0062] Step a3: determine the target strategy type based on the target judgment result and the first corresponding relationship.
[0063] Exemplarily, taking the business scenario of data identification processing as an example, it is assumed that the target condition expression corresponding to the business scenario of data identification processing is: "scene=="data_labeling"&&labeling_processing_result=="block""; wherein 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 judgment result obtained is the first result (such as true). If the first business scenario information and the preliminary processing result do not match the target condition expression, the judgment result obtained is the second result (such as flase). If the final judgment result is true, the target policy type corresponding to the judgment result of the target condition expression when it is true can be determined based on 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 identification".
[0064] It should be noted that the preset conditional expression and the policy type are decoupled. When the judgment result of the target conditional expression is true, the corresponding policy type can be "reset data identification" or "prohibit modification of data identification".
[0065] The data processing method provided in this embodiment determines the target policy type corresponding to the target judgment result of the target conditional expression based on the first correspondence between the judgment result of the target conditional expression and the policy type. Therefore, the target conditional expression and the target policy type can be decoupled, so that the business processing policy corresponding to the business scenario can be flexibly adjusted by adjusting the correspondence between the judgment result of the target conditional expression and the policy type.
[0066] In some optional implementations, determining the target judgment result of the target condition expression based on the preliminary processing result and the target condition expression in the above step a1 includes:
[0067] Step a11, obtaining first parameter data of a first parameter in the target conditional expression, wherein the first parameter includes parameters other than those used to characterize the first business scenario information and the preliminary processing result.
[0068] Step a12, determining the target judgment result based on the preliminary processing result, the first parameter data and the target condition expression.
[0069] It should be noted that, in actual operation, the target conditional expression may include other parameters for determining the policy type, such as user identification or the number of times the data identification is reset, in addition to the parameters for characterizing the first business scenario information and the parameters for characterizing the preliminary processing results. These parameters can be used as the first parameter, and the first parameter data of the first parameter can be obtained from part of the business data carried by the data processing request or the data pre-recorded by the data processing center. 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 to obtain 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 at the same time, multiple service interfaces can be determined based on the policy types corresponding to the judgment results of the multiple conditional expressions. Then, multiple service interfaces are called to process the business data with multiple business processing strategies.
[0071] In some optional implementations, the target conditional expression includes a first conditional expression and a second conditional expression, the parameters in the second conditional expression include parameters for characterizing the service interface call situation corresponding to the first conditional expression, and the first parameter data include the service interface call situation corresponding to the first conditional expression. Then, the determination of the target judgment result based on the preliminary processing result, the first parameter data and the target conditional expression in the above step a12 includes: determining the first target judgment result of the first conditional expression based on the preliminary processing result and the first conditional expression; determining the second target judgment result of the second conditional expression based on the service interface call situation and the second conditional 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. And determines the second target judgment result of the second conditional expression based on the service interface call situation of the first conditional expression. Therefore, the sequential processing logic between the first conditional expression and the second conditional expression can be implemented, so that multiple service interfaces can be called simultaneously in a certain order to execute multiple business processing strategies.
[0073] Exemplarily, taking business data as the data identifier, assume that 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"; wherein, data_labeling_reset_times_an_1_week represents the number of times the data identifier has been reset in the past week. If the preliminary processing result matches the first conditional expression, the corresponding first target judgment result of the first conditional expression is true, and the corresponding target policy type is "reset data identifier" when the first target judgment result of the first conditional expression is true, then the corresponding service interface is called to reset the data identifier, and the number of times the data identifier is reset is recorded. Then, based on the number of resets of the data identifier, it is matched with the second conditional expression to determine whether the number of resets of the data identifier is greater than 3, so as to obtain the second target judgment result of the second conditional expression. If the number of resets of the data identifier is greater than 3, the second target judgment result of the second conditional expression is true. And query the policy type corresponding to the second target judgment result of the second conditional expression being true, such as "prohibit modification of the data identifier", and call the corresponding service interface to prohibit modification of the data identifier.
[0074] At this time, the business process of "prohibiting modification of data identification" also depends on the business process of "resetting data identification". It is necessary to first execute the business process of "resetting data identification" and then determine whether the number of times the data identification is reset is greater than 3 before executing the business process of "prohibiting modification of data identification". If this set of business processing functions is implemented according to the configuration code logic in the relevant technology, a large amount of business processing logic needs to be hard-coded. According to the data processing method disclosed in the present invention, it is only necessary to write two conditional expressions in the data processing center to achieve it. Compared with the relevant technology, the implementation method of the data processing method disclosed in the present invention is simpler.
[0075] Furthermore, in addition to prohibiting modification of the data identifier when the number of times the data identifier is reset is greater than 3, a third conditional expression for the first business scenario information can also be configured. In the third conditional expression, configure the judgment condition that the number of times the data identifier is reset is greater than 3 and the number of times the data identifier is prohibited from being modified is greater than 2 under the first business scenario information, so as to match the new policy type when the judgment condition is met, such as "banning the account". It should be noted that although "prohibiting modification of the data identifier" and "banning the account" belong to two different business processing strategies, since the calling of the business processing strategy or the service interface is maintained in the data processing middle station, the business processing strategies and corresponding parameter data of different business scenarios can also be reused, and the implementation logic is simple.
[0076] Not only that, when the first business scenario information needs to add other business processing strategies (or service interfaces) and strategy types, if the hard-coded logic in the relevant technology is followed, the coding will become more and more complicated as the condition judgment and policy types increase. In comparison, the data processing method of the present invention will further combine the service interface call situation of the first conditional expression (that is, the execution situation of the executed business processing strategy) to recycle the judgment of the policy type after calling the corresponding service interface to execute the corresponding business processing strategy based on the policy type returned by the first conditional expression. The judgment of the policy type is not completed until the returned policy type does not need to execute the business processing strategy, and the execution of the business processing strategy is terminated. Therefore, in one data processing request, all the policy types that meet the conditions under the first business scenario information can be obtained, and multiple service interfaces are called according to the policy types that meet the conditions to execute multiple business processing strategies on the business data.
[0077] As an example, the following is a specific embodiment to illustrate the decision process of the strategy type of the data processing method of the present disclosure. Figure 2 As shown, in the data processing method of the present disclosure, the process of determining the strategy type includes the following steps:
[0078] Step S201: Perform a judgment based on the target condition expression corresponding to the first business scenario information to determine the target policy type.
[0079] Step S202, based on the target policy type, determines whether it is necessary to call a service interface to process the business data. If so, execute step S203, otherwise, this determination process ends.
[0080] Step S203: calling the target service interface corresponding to the target policy type to process the business data.
[0081] Step S204: Perform another judgment based on the processing result of the target service interface and the target condition expression corresponding to the first business scenario information to determine a new target policy type, and then return to step S202.
[0082] It should be noted that the processing result of the target service interface is the calling status of the target service interface.
[0083] In some optional implementations, the calling of the target service interface corresponding to the first business application based on the target policy type in step S104 to process the business data to obtain the target processing result includes:
[0084] Step b1, obtaining a second correspondence between a policy type and interface description information of a preset service interface, where different preset service interfaces are used to execute processing logics of different business processing policies.
[0085] Step b2: Determine the target interface description information based on the target policy type and the second corresponding relationship.
[0086] Step b3: Based on the target interface description information, the target service interface corresponding to the first business application is called to process the business data to obtain a target processing result.
[0087] It should be noted that the interface description information is also called the Interface Description Language (IDL for short). The interface description information includes the service name of the corresponding service interface, the interface name and parameter definition of the corresponding business processing strategy. The data processing middle station can pre-store the second correspondence between each policy type and the interface description information, and then use the generalized calling capability of RPC to call the corresponding target service interface of the first business system based on the target interface description information to process the business data to obtain the target processing result. Therefore, based on the correspondence between the policy type and the interface description information, the target service interface can be automatically called to process the business data without having 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 policy type based on the second correspondence between the policy type and the interface description information of the preset service interface, so as to call the target service interface based on the target interface description information. Therefore, by adjusting the interface description information corresponding to the policy type, the business processing policies corresponding to different business scenarios can be flexibly adjusted.
[0089] In some optional implementations, the step b3 of calling the target service interface corresponding to the first business application based on the target interface description information to process the business data to obtain the target processing result includes:
[0090] Step b31, determining a second parameter for calling the target service interface.
[0091] Step b32, obtaining second parameter data of the second parameter.
[0092] Step b33, performing format conversion on the second parameter data to obtain parameter data after format conversion, wherein the parameter data after format conversion 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, calling the target service interface corresponding to the first business application to process the business data to obtain the target processing result.
[0094] It should be noted that the second parameter is a parameter that needs to be transmitted to the target service interface, such as a user identifier, so that the target service interface executes the corresponding target business processing strategy for the business data of the user identifier. Among them, it is considered that the field definition of the user identifier in the data processing center may be different from the field definition of the user identifier in the target service interface. Therefore, before the second parameter is transmitted to the target service interface, it is necessary to first convert the format of the second parameter data to obtain the parameter data after the format conversion. Then the parameter data after the format conversion is transmitted to the target service interface to execute the corresponding target business processing strategy. For example, the target service interface defines the field of user identification as "User ID", and the data processing center defines the field of user identification as "user_id". Before the user identification is transmitted to the target service interface, "user_id" needs to be converted to "User ID". In addition, if the data types of the two fields are different, for example, one field is an integer and the other field is a string, type conversion of the two fields is also supported to facilitate the understanding of 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 based on the target interface description information and the parameter data after the format conversion, calls the target service interface corresponding to the first business application to process the business data. Therefore, it can avoid that the target service interface cannot correctly process the business data due to the inconsistent data format.
[0096] As an example, the following is a specific embodiment to illustrate the calling process of the service interface of the data processing method of the present disclosure. Figure 3 As shown, in the data processing method of the present disclosure, the calling process of the service interface includes the following steps:
[0097] Step S301: determine a target service interface and a target business processing policy corresponding to the target service interface based on a target policy type.
[0098] Step S302: calling the target service interface to execute the processing logic of the target business processing strategy.
[0099] Step S303, obtaining the target processing result and recording the target business processing strategy of this time.
[0100] It should be noted that when executing the corresponding target business processing strategy, the data processing method disclosed in the present invention will automatically obtain the call service of the corresponding target service interface according to the strategy type, so as to generalize the call of the target service interface and execute the target business processing strategy. Therefore, it can effectively reduce the development cost and improve the processing efficiency of business data.
[0101] In some optional implementations, the data processing method of the present disclosure further includes:
[0102] Step c1, in response to the configuration update instruction for the second business scenario information, acquiring an update object corresponding to the second business scenario information and update data of the update object;
[0103] Step c2: updating the data of the update object corresponding to the second business scenario information based on the update data.
[0104] The data processing method provided in this embodiment obtains the update object and update data of the update object corresponding to the second business scenario information. Then, based on the update data, the data of the update object corresponding to the second business scenario information is updated. Therefore, the processing method of business data for different business scenarios can be flexibly adjusted.
[0105] In some optional embodiments, 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 data of the update object corresponding to the second business scenario information based on the update data in the above step c2 is updated, including: 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 when it is necessary to update the judgment logic of the second business scenario information for different policy types, so as to replace 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 policy types without changing the processing logic of the existing business processing policy.
[0107] In some optional embodiments, 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 data of the update object corresponding to the second business scenario information is updated based on the update data in the above step c2, including: 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 the service interface corresponding to the second business scenario information needs to be updated to replace the first interface description information originally corresponding to the second business scenario information. Therefore, the business processing strategy adopted by the second business scenario information for business data can be flexibly adjusted without changing the processing logic of the existing business processing strategy.
[0109] As an example, the process of updating the service interface or business processing strategy adopted by the data processing method of the present disclosure is described below with a specific embodiment. Figure 4 As shown, in the data processing method of the present disclosure, the update process of the service interface or business processing strategy includes the following steps:
[0110] Step S401: configuring a correspondence between a policy type and interface description information of a preset service interface.
[0111] Step S402: periodically poll to obtain the latest policy type and the interface description information of the corresponding preset service interface.
[0112] Step S403, determine whether the interface description information is updated, if yes, execute step S404, if no, the update process ends.
[0113] Step S404, obtaining updated interface description information to update the interface description information stored locally in the data processing center.
[0114] Step S405: Generate and cache a call service for the new service interface based on the updated interface description information configuration.
[0115] In some optional embodiments, 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 data of the update object corresponding to the second business scenario information based on the update data in the above step c2 is updated, including: 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 policy has not been configured in the data processing middle station, it is necessary to configure the correspondence between the policy type of the updated business processing policy and the description information of the service interface, as well as the parameters of the service interface corresponding to the updated business processing policy, and the format conversion relationship between the parameters and the parameters of the data processing middle station in the data processing middle station, so as to configure the updated business processing policy in the data processing middle station.
[0117] In the data processing method provided in this embodiment, when it is necessary to update the parameters of the second preset conditional expression corresponding to the second business scenario information, the fourth parameter for updating can be obtained to replace the original third parameter of the second preset conditional expression. Therefore, the judgment conditions of the second business scenario information for different policy types can be flexibly adjusted without changing the processing logic of the existing business processing policy.
[0118] In some optional embodiments, if the update object is the first policy type of the third preset conditional expression corresponding to the second business scenario information, and the update data is the second policy type, then the data of the update object corresponding to the second business scenario information based on the update data in the above step c2 is updated, including: updating the first policy type of the third preset conditional expression corresponding to the second business scenario information based on the second policy type.
[0119] In the data processing method provided in this embodiment, when it is necessary to update the policy type of the third preset conditional expression corresponding to the second business scenario information, the second policy type for updating can be obtained to replace the first policy type originally corresponding to the third preset conditional expression. Therefore, the processing method of the second business scenario information for business data can be flexibly adjusted without changing the processing logic of the existing business processing policy.
[0120] As an example, the effects that can be achieved by the data processing method of the present disclosure are described below through specific examples. Figure 5As shown, in the related technology, the client of the business application reports the 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, to determine whether the business data meets the preset data requirements. Then, the business platform feeds back the preliminary processing results to the server. After obtaining the preliminary processing results, the server hard codes in combination with other business processing conditions to determine whether business processing is required for the business data. If so, the service interface of the adopted business processing strategy is called by writing code to process the business data. If not, the data processing process ends. However, this business processing method, whether it is to access new business scenarios, adjust the business processing method, or modify the called business processing method, needs to be adjusted by modifying the code to publish the service, and it is difficult to flexibly adjust the processing method of business data in different business scenarios.
[0121] In contrast, Figure 6 As shown, in the data processing method of the present invention, the client of the first business application reports the 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, to determine whether the business data meets the preset data requirements (such as security requirements). Then, the first business system generates a data processing request based on the preliminary processing results and sends it to the data processing middle station. The data processing middle station parses the data processing request to obtain business processing data. The data processing middle station determines the target condition expression based on the business processing data to determine the target policy type according to the target condition expression. Then, based on the target policy type, determine whether the business data needs to be processed. If so, the target service interface corresponding to the target policy type is called to execute the corresponding target business processing policy on the business data. If not, the data processing process ends.
[0122] Compared with the related art, the data processing method disclosed in the present invention has the following advantages:
[0123] First, the business processing strategies of the business are converged and unified in the middle platform, and the corresponding service interfaces can also be reused between different business scenarios, which reduces the cost of processing business data of business applications and improves the overall development efficiency of business applications. For each business scenario, there is no need to develop and implement a complete set of business processing strategies separately. Business applications only need to call the reported interface once for the business data that needs to be processed, and the subsequent judgment and processing logic of the business data are transparent to the business application. Even if the corresponding service interface and business processing strategy are adjusted, it is only necessary to change the relevant configuration on the data processing middle platform, without changing the code, which reduces the burden of processing business data and calling business processing strategies. Improve development efficiency.
[0124] Second, unlike the static code rule setting in the related art, in a single data processing request, the data processing method disclosed in the present invention can flexibly apply multiple business processing strategies. In particular, when the business processing strategy and strategy type need to be temporarily adjusted, the data processing method disclosed in the present invention standardizes and configures the complex business logic to achieve low-code or code-free business data processing, thereby greatly reducing the complexity of the code, improving the code quality, and reducing the burden of maintenance and upgrading. Even if some service interfaces that rely on other services need to be adjusted or upgraded, only one change is needed in the data processing center to take effect in all business scenarios. Moreover, due to the unification and standardization of business logic, the modification of business processes and the access of new business scenarios have become faster, and the iteration speed of business applications has also been accelerated. In particular, in a single business scenario, even if there are requirements for the order of business processing strategies, or there is a mutual dependency between the processing results of business data in multiple business scenarios, it can also be achieved by creating or adjusting conditional expressions. When a new business processing strategy or service interface is accessed, it can also be accessed in a configured manner, which improves the access efficiency and business processing efficiency of business processing strategies and service interfaces.
[0125] Third, by identifying and parsing the metadata of the service (i.e. the name of the business processing strategy, interface description information, etc.), the data processing center can dynamically determine the service interface to be called based on the strategy type, and can connect to various types of atomic capability services (i.e. service interfaces) at the lowest cost without changing the code. This data processing method is more flexible and efficient, and can quickly respond to business processing needs. And when there is an adjustment, just adjust one place and it will take effect everywhere.
[0126] Fourth, the plug-in system implemented by strategies and generalized calls allows users to flexibly customize their own 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 components and services, making complex judgments and processing logic clearer and easier to adjust and expand. All business processing strategies and corresponding service interfaces (also known as the atomic capabilities of business processing) are managed and maintained in the data processing middle platform. Business processing strategies and strategy types are decoupled. Users can write business processing strategies for different business scenarios and select corresponding strategy types.
[0127] In the present embodiment, a data processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0128] This embodiment provides a data processing device, such as Figure 7 As shown, including:
[0129] The processing request response 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, where the business processing data includes the first business scenario information and the preliminary processing result obtained by the first business system processing the business data of the first business application;
[0130] An expression confirmation module 702 is used to determine a target conditional expression from a preset conditional expression based on the first business scenario information, where the preset conditional expression is used to characterize a judgment condition corresponding to a policy type;
[0131] A strategy type confirmation module 703 is used to determine a target strategy type based on the preliminary processing result and the target condition expression;
[0132] The processing strategy execution module 704 is used to call the target service interface corresponding to the first business application based on the target strategy type to process the business data to obtain a 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 policy type confirmation module 703 includes:
[0134] A judgment result determination unit, used to determine a target judgment result of the target conditional expression based on the preliminary processing result and the target conditional expression;
[0135] A first relationship acquisition unit, used to acquire a first corresponding relationship between a judgment result of a target condition expression and a 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 corresponding relationship.
[0137] In some optional implementations, the judgment result determination unit includes:
[0138] A first data acquisition subunit is used to acquire first parameter data of a first parameter in a target conditional expression, where 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 result, the first parameter data and the target condition expression.
[0140] In some optional implementations, the target conditional expression includes a first conditional expression and a second conditional expression, the parameters in the second conditional expression include parameters for characterizing the service interface call situation corresponding to the first conditional expression, and the first parameter data includes the service interface call situation corresponding to the first conditional expression. Then, the judgment result determination subunit is specifically used to: determine the first target judgment result of the first conditional expression based on the preliminary processing result and the first conditional expression; determine the second target judgment result of the second conditional expression based on the service interface call situation and the second conditional expression.
[0141] In some optional implementations, the processing strategy execution module 704 includes:
[0142] A second relationship acquisition unit, used to acquire a second corresponding relationship between a policy type and interface description information of a preset service interface, where different preset service interfaces are used to execute processing logics of different business processing policies;
[0143] A description information determining unit, configured to determine the target interface description information based on the target policy type and the second corresponding relationship;
[0144] The business data processing unit is used to call the target service interface corresponding to the first business application based on the target interface description information to process the business data to obtain a target processing result.
[0145] In some optional implementations, the business data processing unit includes:
[0146] An interface parameter determination subunit, used to determine a second parameter for calling a target service interface;
[0147] A second data acquisition subunit, used to acquire second parameter data of a second parameter;
[0148] The data format conversion subunit is used to perform format conversion on the second parameter data to obtain parameter data after format conversion, and the parameter data after format conversion is the same as the data format supported by the target service interface;
[0149] The business data processing subunit 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 and the parameter data after format conversion to obtain a target processing result.
[0150] In some optional implementations, the data processing device of the present disclosure further includes:
[0151] An update instruction response module, used to obtain an update object corresponding to the second business scenario information and update data of the update object in response to a configuration update instruction for the second business scenario information;
[0152] A configuration data update module is used to update the data of the update object corresponding to the second business scenario information based on the update data.
[0153] In some optional implementations, the configuration data updating module includes:
[0154] The first data updating unit is used to update the first preset conditional expression corresponding to the second business scenario information based on the second preset conditional expression 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.
[0155] In some optional implementations, the configuration data updating module includes:
[0156] The second data updating 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 updating module includes:
[0158] The third data updating 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 updating module includes:
[0160] The fourth data updating unit is used to update the first policy type of the third preset conditional expression corresponding to the second business scenario information based on the second policy type if the update object is the first policy type of the third preset conditional expression corresponding to the second business scenario information and the update data is the second policy type.
[0161] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0162] The data processing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0163] The present disclosure also provides an electronic device having the above Figure 7 The data processing device shown.
[0164] See also Figure 8 , Figure 8 is a structural block diagram of an electronic device provided by an optional embodiment of the present disclosure, such as Figure 8 As shown, the electronic device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical data of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 801 is taken as an example.
[0165] The processor 801 may be a central processing unit, a network processor or a combination thereof. The processor 801 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.
[0166] The memory 802 stores instructions executable by at least one processor 801, so that the at least one processor 801 executes the method shown in the above embodiment.
[0167] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 802 may optionally include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0168] The memory 802 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a 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, which is used for the electronic device to communicate with other devices or a communication network.
[0170] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0171] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0172] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all 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, where the business processing data includes first business scenario information and a preliminary processing result obtained by the first business system processing the business data of the first business application; Determine a target conditional expression from a preset conditional expression based on the first business scenario information, where the preset conditional expression is used to characterize a judgment condition corresponding to a policy type; Determining a target strategy type based on the preliminary processing result and the target condition expression; Based on the target policy type, a target service interface corresponding to the first business application is called to process the business data to obtain a target processing result, wherein the target service interface is used to execute the processing logic of the target business processing policy.
2. The data processing method according to claim 1, characterized in that: The determining of the target strategy type based on the preliminary processing result and the target condition expression includes: Determining a target judgment result of the target condition expression based on the preliminary processing result and the target condition expression; Obtaining a first corresponding relationship between a judgment result of the target condition expression and a strategy type; Based on the target judgment result and the first corresponding relationship, a target policy type is determined.
3. The data processing method according to claim 2, characterized in that: The determining, based on the preliminary processing result and the target condition expression, a target judgment result of the target condition expression includes: Acquire first parameter data of a first parameter in the target condition expression, where the first parameter includes parameters other than those used to characterize the first business scenario information and the preliminary processing result; The target judgment result is determined based on the preliminary processing result, the first parameter data and the target condition expression.
4. The data processing method according to claim 3, characterized in that: The target conditional expression includes a first conditional expression and a second conditional expression, the parameters in the second conditional expression include parameters used to characterize the service interface call situation corresponding to the first conditional expression, and the first parameter data includes the service interface call situation corresponding to the first conditional expression; The determining the target judgment result based on the preliminary processing result, the first parameter data and the target condition expression includes: Determining a first target judgment result of the first conditional expression based on the preliminary processing result and the first conditional expression; Based on the service interface calling situation and the second conditional expression, a second target judgment result of the second conditional expression is determined.
5. The data processing method according to claim 1, characterized in that: The calling of a target service interface corresponding to the first business application based on the target policy type to process the business data to obtain a target processing result includes: Acquire a second correspondence between the policy type and the interface description information of the preset service interface, where different preset service interfaces are used to execute processing logics of different business processing policies; Determine target interface description information based on the target policy type and the second corresponding relationship; The target service interface corresponding to the first business application is called based on the target interface description information to process the business data to obtain the target processing result.
6. The data processing method according to claim 5, characterized in that: The calling the target service interface corresponding to the first business application based on the target interface description information to process the business data to obtain the target processing result includes: Determining a second parameter for calling the target service interface; Obtain second parameter data of the second parameter; Performing format conversion on the second parameter data to obtain parameter data after format conversion, wherein the parameter data after format conversion is in the same data format as supported by the target service interface; Based on the target interface description information and the parameter data after the format conversion, the target service interface corresponding to the first business application is called to process the business data to obtain the target processing result.
7. The data processing method according to claim 1, characterized in that: The method further comprises: In response to a configuration update instruction for the second business scenario information, acquiring an update object corresponding to the second business scenario information and update data of the update object; The data of the update object corresponding to the second business scenario information is updated based on the update data.
8. The data processing method according to claim 7, characterized in that: 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 updating the data of the update object corresponding to the second business scenario information based on the update data includes: The first preset conditional expression corresponding to the second business scenario information is updated based on the second preset conditional expression.
9. The data processing method according to claim 7, characterized in that: 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 updating the data of the update object corresponding to the second business scenario information based on the update data includes: The first interface description information corresponding to the second business scenario information is updated based on the second interface description information.
10. The data processing method according to claim 7, characterized in that: 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 updating the data of the update object corresponding to the second business scenario information based on the update 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.
11. The data processing method according to claim 7, characterized in that: If the update object is the first policy type of the third preset conditional expression corresponding to the second business scenario information, and the update data is the second policy type, then updating the data of the update object corresponding to the second business scenario information based on the update data includes: The first policy type of the third preset conditional expression corresponding to the second business scenario information is updated based on the second policy type.
12. A data processing device, characterized in that: The device comprises: a processing request response module, configured to respond to a data processing request sent by the first business system, parse the data processing request, and obtain business processing data, wherein the business processing data includes first business scenario information and a preliminary processing result obtained by the first business system processing the business data of the first business application; An expression confirmation module, used to determine a target conditional expression from a preset conditional expression based on the first business scenario information, wherein the preset conditional expression is used to characterize a judgment condition corresponding to a policy type; A strategy type confirmation module, used to determine a target strategy type based on the preliminary processing result and the target condition expression; A processing strategy execution module is used to call the target service interface corresponding to the first business application based on the target strategy type to process the business data to obtain a target processing result, and the target service interface is used to execute the processing logic of the target business processing strategy.
13. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the data processing method according to any one of claims 1 to 11 by executing the computer instructions.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data processing method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the data processing method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Business data processing method and device, computer equipment and storage medium
CN111460298A
Business processing method and device, electronic equipment and storage medium
CN115733885A
Service decision processing system, service decision processing method and device
CN116151631A
Interface display method and device, storage medium, and electronic device
US20230038513A1
Conditional role decision based on source environments
US20230047320A1
