Service configuration method and device, equipment, storage medium and program product

Through the combination of builder and field filling and verification components, the business model is automatically built and verified, which solves the problem of low configuration efficiency of business requirements in the existing technology, and realizes efficient business model construction and code reuse.

CN119205218APending Publication Date: 2024-12-27BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411365144.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the existing technology, the configuration efficiency of business requirements is low, and business logic code is required to manually write business logic code to implement field filling and field verification, which leads to difficult code reuse and dependency verification, and the level of the business model is not clear, affecting iteration and expansion. .

Method used

By obtaining the configuration information of the target business, including the hierarchical relationship and construction information of the builder and builder, building the business model, using the field fill components and the field verification components to realize the field fill and verification process, and then perform persistence processing to generate the target Data model to avoid manual writing of business logic code.

Benefits of technology

It improves the efficiency of business model construction and configuration efficiency, realizes the isolation and reuse of different business functions, simplifies code management, and enhances the maintainability and expansion of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205218A_ABST
    Figure CN119205218A_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of computers, and discloses a service configuration method, apparatus and device, a storage medium and a program product, the method comprising: acquiring configuration information of a target service, the configuration information comprising at least one level builder and construction information of the builder, the construction information comprises a first external dependency, a field filling component and a first field verification component of the constructor; constructing a business model based on the constructors, the hierarchical relationship of the constructors and the construction information, the business model comprising at least one hierarchical first business entity, the first business entity being obtained based on the corresponding constructors and the construction information; and performing persistence processing on the business model to obtain a target data model, the target data model being used for processing the target business. According to the invention, the problem of low configuration efficiency of the service demand can be solved, so that the configuration efficiency of the service demand is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a service configuration method, apparatus, device, storage medium, and program product. Background Art

[0002] The creation service is a capability to create and modify advertisements, which is used to provide secure, complete and deliverable advertisement data to the advertisement delivery system. Among them, advertisement data needs to be created and modified through the creation system. When facing new business needs, the business model fills in and verifies fields based on external inputs, and constructs and returns responses when field verification succeeds, thereby realizing business needs. Among them, developers need to manually write corresponding business logic codes to implement field filling and field verification, which leads to low configuration efficiency of business needs. Summary of the invention

[0003] In view of this, the present disclosure provides a service configuration method, apparatus, device, storage medium and program product to solve the problem of low configuration efficiency of service requirements.

[0004] In a first aspect, the present disclosure provides a service configuration method, the method comprising:

[0005] Acquire configuration information of the target business, the configuration information including at least one level of builders and build information of the builders, the build information including a first external dependency, a field filling component, and a first field verification component of the builder;

[0006] Based on the builders, the hierarchical relationship between the builders and the build information, a business model is constructed, wherein the business model includes at least one hierarchical first business entity, and the first business entity is obtained based on the corresponding builders and the build information;

[0007] The business model is persisted to obtain a target data model, and the target data model is used to process the target business.

[0008] In a second aspect, the present disclosure provides a service configuration device, the device comprising:

[0009] A configuration information acquisition module, used to acquire configuration information of a target business, wherein the configuration information includes at least one level of a builder and construction information of the builder, wherein the construction information includes a first external dependency, a field filling component, and a first field verification component of the builder;

[0010] A first model building module, configured to build a business model based on the builder, the hierarchical relationship between the builders and the building information, wherein the business model includes at least one hierarchical first business entity, and the first business entity is obtained based on the corresponding builder and the building information;

[0011] The second model building module is used to perform persistence processing on the business model to obtain a target data model, and the target data model is used to process the target business.

[0012] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the service configuration method of the first aspect by executing the computer instructions.

[0013] 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 service configuration method of the first aspect.

[0014] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the service configuration method of the first aspect.

[0015] The business configuration method provided by the embodiment of the present disclosure obtains at least one level of the builder corresponding to the target business and the construction information of the builder; wherein the construction information includes the first external dependency of the builder, the field filling component and the first field verification component. Therefore, the business logic code of the field filling process and the field verification process of different business functions can be represented by the field filling component and the first field verification component. Then, based on the builder, the hierarchical relationship of the builder and the construction information, the business model is constructed; wherein the first business entity of each level in the business model is obtained based on the builder and the construction information. Therefore, by configuring the builder of the target business, and the first external dependency, field filling component and first field verification component required by the builder to construct the business entity of the target business, the business model of the target business can be quickly constructed without manually writing the corresponding business logic code to realize field filling and field verification, thereby improving the construction efficiency of the business model of the target business. Then, the business model is persisted to obtain the target data model for processing the target business. Therefore, the configuration efficiency of business needs can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] 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.

[0017] Figure 1 is a flowchart of a first service configuration method according to an embodiment of the present disclosure;

[0018] Figure 2 is a flow chart of a second service configuration method according to an embodiment of the present disclosure;

[0019] Figure 3 is a schematic diagram of a model tree according to an embodiment of the present disclosure;

[0020] Figure 4 is a schematic diagram of another model tree according to an embodiment of the present disclosure;

[0021] Figure 5 is a schematic diagram of generating a business model according to an embodiment of the present disclosure;

[0022] Figure 6 is a schematic diagram of generating a first business entity according to an embodiment of the present disclosure;

[0023] Figure 7 is a schematic diagram of components corresponding to a first business entity according to an embodiment of the present disclosure;

[0024] Figure 8 is a schematic diagram of a service update scenario according to an embodiment of the present disclosure;

[0025] Fig. 9 is a schematic diagram of a first external dependency update scenario according to an embodiment of the present disclosure;

[0026] Fig.10 is a schematic diagram of updating a first business entity according to an embodiment of the present disclosure;

[0027] Fig.11 is a flowchart of a third service configuration method according to an embodiment of the present disclosure;

[0028] Fig.12 is a schematic diagram of a first model mapping according to an embodiment of the present disclosure;

[0029] Fig.13 is a schematic diagram of a second model mapping according to an embodiment of the present disclosure;

[0030] Fig.14is a schematic diagram of the third model mapping according to an embodiment of the present disclosure

[0031] Fig.15 is a schematic diagram of a business code framework according to an embodiment of the present disclosure;

[0032] Fig.16 is a schematic diagram of a business implementation scenario according to an embodiment of the present disclosure;

[0033] Fig.17 is a schematic diagram of a scenario of business configuration according to an embodiment of the present disclosure;

[0034] Fig.18 is a structural block diagram of a service configuration device according to an embodiment of the present disclosure;

[0035] Fig.19 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] 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, not all of 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.

[0037] 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 the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0038] For example, in response to receiving an active request from a user, a prompt message 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 information. Thus, the user can autonomously choose whether to provide personal information 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 message.

[0039] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information 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 information to the electronic device.

[0040] 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.

[0041] 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.

[0042] The creation service is a capability for creating and modifying advertisements, and is used to provide secure, complete, and deliverable advertising data to the advertising delivery system. Among them, the creation service is the core service for the business platform to connect with advertisers, and advertising data needs to go through the creation system to be created and modified. When faced with new business needs, the business model fills in and verifies fields based on external inputs. When the field verification is successful, it constructs and returns a response to meet business needs. With the access of multiple businesses, the original business framework logic is scattered, the hierarchy is unclear, and there is no clear division of code between business lines. In daily iterations, a small modification will affect the overall situation. Therefore, it is slightly weak in scenarios that deal with high-traffic, low-latency business demands.

[0043] At present, the main processes of the creation system include: Process 1, obtaining input data from the outside, for example, reading data from the request and querying data from the downstream. Process 2, performing field verification and filling based on the input data to construct the response of the business model. Process 3, outputting the response to the outside. Among them, there are a large number of codes with similar functions in the field verification and filling process. Although the codes with similar functions are placed in the installation package configuration file, some codes lack commonality, and some codes cannot be exported. Even if the codes with similar functions are found according to the requirements, it is difficult to reuse the codes with similar functions. Therefore, it is often necessary to rewrite a new piece of code to meet the requirements. Different writers have different ways of writing codes for the same function and different ways of writing codes for different data structures, which leads to a large number of codes with similar functions in the business demand warehouse. With the continuous expansion of the business demand warehouse, the codes with similar functions are different and scattered in many places, and it is difficult to find them by dependency verification. In addition, some simple codes are filled with a large number of judgment statements after combining error handling, resulting in too many handwritten lines and difficulty in covering codes with similar functions.

[0044] In response to the above problems, the related technologies have been extended in a single direction. In terms of component isolation, it is usually achieved by organizing files and splitting modules, which lacks a structural approach. In terms of component sharing, it is usually achieved by copying and pasting and sharing modules, which makes it difficult to form effective code reuse.

[0045] Based on this, when faced with new business needs, developers often need to manually write corresponding business logic code to implement field filling and field verification, resulting in low configuration efficiency of business needs.

[0046] In view of this, according to an embodiment of the present disclosure, a business configuration 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.

[0047] In this embodiment, a business configuration method is provided, which can be used to create a system. Figure 1 is a flow chart of a first service configuration method according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:

[0048] Step S101, obtaining configuration information of the target business, the configuration information includes at least one level of builder and construction information of the builder, the construction information includes the first external dependency of the builder, a field filling component and a first field verification component.

[0049] Specifically, the builder (also called Builder) serves a specific business line and is generated by cutting and pasting the business model of the target business on the business line, that is, cutting the business model into business entities that implement different business functions and generating builders for each business entity. It can be understood that the builder is used to build business entities of different business functions in the target business. The builder is similar to a view in a database and can achieve isolation of different business functions.

[0050] Specifically, the first external dependency is a specification table (SPEC) used to describe each business entity in the target business. The first external dependency is used to pass the dependencies such as fields and configurations required by the business entity to the first field verification component and the field filling component to implement the field verification and field filling process. In actual operation, you only need to configure the data source of the specification table to automatically generate and initialize the rule table to obtain the first external dependency.

[0051] Specifically, the field filling component (also called Fulfilment) is used to fill in the corresponding fields that do not need to be provided by the business party. In actual operation, the field filling component can be bound to the builder of a specific business line through configuration or programming.

[0052] Specifically, the first field verification component (also called Validator) is used to verify the fields filled by the builder based on the first external dependency and the field filling component. The first field verification component can work independently, or it can be configured or programmed to be bound to the builder of a specific business line.

[0053] Specifically, the configuration information of the target business is obtained by arranging the builders of the first business entities at each level in the target business, and the first external dependency, field filling component and first field checking component used by the builder when constructing the first business entity.

[0054] Step S102, constructing a business model based on builders, hierarchical relationships between builders and construction information, the business model including at least one hierarchical first business entity, the first business entity being obtained based on the corresponding builder and construction information.

[0055] Specifically, a tree structure of builders is constructed based on the hierarchical relationship of the builders. For example, starting from the top-level builder, builders of the next level of the current builder are continuously created to obtain a tree structure of builders, which is a design pattern based on the builder pattern. Furthermore, the corresponding first external dependency, field filling component, and first field verification component are mounted on the builder of the current level to obtain a model tree. Then, the builders in the model tree are traversed based on a depth-first traversal order, and the builder constructs a first business entity through the mounted construction information; wherein the hierarchical relationship of the first business entity is consistent with the hierarchical relationship of the builder. Finally, based on the hierarchical relationship between the first business entity and the first business entity, a business model is constructed.

[0056] Step S103, persist the business model to obtain a target data model, which is used to process the target business.

[0057] Specifically, the business model is model mapped to convert the business model into a target data model. Then, the target data model is written into the data service system. And the writing feedback information fed back by the data service system is written into the business model, thereby realizing the persistence processing of the business model.

[0058] The business configuration method provided in this embodiment obtains at least one level of the builder corresponding to the target business and the construction information of the builder; wherein the construction information includes the first external dependency of the builder, the field filling component and the first field verification component. Therefore, the business logic code of the field filling process and the field verification process of different business functions can be represented by the field filling component and the first field verification component. Then, based on the builder, the hierarchical relationship of the builder and the construction information, the business model is constructed; wherein the first business entity of each level in the business model is obtained based on the builder and the construction information. Therefore, by configuring the builder of the target business, and the first external dependency, field filling component and first field verification component required by the builder to construct the business entity of the target business, the business model of the target business can be quickly constructed without manually writing the corresponding business logic code to realize field filling and field verification, thereby improving the construction efficiency of the business model of the target business. Furthermore, the business model is persisted to obtain the target data model for processing the target business. Therefore, the configuration efficiency of business needs can be effectively improved.

[0059] This embodiment also provides a second service configuration method, which can be used to create a system. Figure 2 is a flow chart of a second service configuration method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0060] Step S201, obtain the configuration information of the target business, the configuration information includes at least one level of builder and the construction information of the builder, the construction information includes the first external dependency of the builder, the field filling component and the first field verification component. See the above step S101 for details, and no more details will be given here.

[0061] Step S202: construct a business model based on the builders, the hierarchical relationship between the builders and the construction information. The business model includes at least one hierarchical first business entity, which is obtained based on the corresponding builders and the construction information.

[0062] Specifically, the business model is constructed based on the builders, the hierarchical relationship of the builders and the construction information in the above step S202, including:

[0063] Step S2021, construct a model tree based on the builder, hierarchical relationship and construction information, the nodes of the model tree are represented by the corresponding builder, and the builder is mounted with the corresponding construction information.

[0064] Exemplarily, it is assumed that the business model of the target business includes at least one level of first business entities, for example, Figure 3The first business entity 1, the first business entity 11, the first business entity 111, and the first business entity 12 with a hierarchical affiliation are shown. Each first business entity corresponds to a builder, for example, the first business entity 1 corresponds to builder 1, the first business entity 11 corresponds to builder 11, the first business entity 12 corresponds to builder 12, and the first business entity 111 corresponds to builder 111. For the target business, starting from the top-level builder 1 of the target business, a tree structure of builders is continuously created. The tree structure is a design pattern based on the builder pattern. During actual operation, the first external dependency, field filling component, and first field filler corresponding to each level in the business model are mounted to the builder of the corresponding level through the application programming interface (API) corresponding to the builder, thereby forming a model tree.

[0065] For example, Figure 4 As shown, for the first business entity 1, the first business entity 11 and the first business entity 12, the first business entity 1 corresponds to the builder 1, and the builder 1 is mounted with the first external dependency 1, the first field check component 1, and the field filling component 1. The first business entity 11 corresponds to the builder 11, and the builder 11 is mounted with the first external dependency 11, the first field check component 11, and the field filling component 11. The first business entity 12 corresponds to the builder 12, and the builder 12 is mounted with the first external dependency 12, the first field check component 12, and the field filling component 12. Thus, the following is obtained: Figure 4 The model tree is shown.

[0066] It should be noted that, in actual operation, you only need to focus on the business entities required by the target business in the model tree, rather than all the business entities provided by the model tree.

[0067] Step S2022, for the builders at each level in the model tree, based on the builders and the corresponding building information, construct the first business entity at the level where the builders are located to obtain a business model.

[0068] Specifically, for each level of the builder in the model tree, the first business entity is constructed based on the builder's construction information by calling the builder's construction method (also called Build method). The execution order of the builder is a depth-first traversal order. For example, Figure 5 In the example, the builders in the model tree are traversed in post-order traversal. That is, they are executed from left to right and from bottom to top (see Figure 51 to 7 in the execution order), recursively call the builder to obtain the first business entity of the corresponding level. For example, call builder 111, builder 112, builder 11, builder 121, builder 122, builder 12, and builder 1 in sequence to build the first business entity of the level, thereby combining into a complete business model.

[0069] Step S203, the business model is persisted to obtain a target data model, which is used to process the target business. See the above step S103 for details, which will not be described in detail here.

[0070] The business configuration method provided in this embodiment can effectively isolate first business entities used to implement different business functions through the combination mechanism of the builder, the field filling component and the first field verification component. Therefore, it is convenient to manage the relationship between the first business entities of different business functions in the target business.

[0071] In some optional implementations, the step S2022 of constructing the first business entity at the level where the builder is located based on the builder and the corresponding construction information includes:

[0072] Step a1: construct a first structure based on the builder and the corresponding first external dependency.

[0073] Specifically, in the process of calling the builder to build the first business entity, the first external dependency is assembled first, that is, the first external dependency uses the dependencies required by the first business entity to perform field filling and field verification, and at the same time, obtains the field values ​​of other first business entities, thereby constructing the first structure.

[0074] Step a2, filling fields in the first structure based on the corresponding field filling component to obtain a second structure corresponding to the first structure.

[0075] Specifically, the field filling component is called based on the calling relationship of the field filling component to fill the unconstructed fields in the first structure to obtain the second structure, thereby ensuring that all fields in the first business entity are filled.

[0076] Step a3: perform field verification on the second structure based on the corresponding first field verification component to obtain a verification result of the second structure.

[0077] Specifically, the first field verification component is called based on the calling relationship of the first field verification component, so as to verify the fields in the second structure one by one through the first field verification component to ensure the integrity of the first business entity.

[0078] Step a4: if the second structure is successfully verified, the second structure is determined as the first business entity of the level where the corresponding builder is located.

[0079] It can be understood that if the second structure verification fails, the field filling and field verification are performed again to obtain a new first business entity.

[0080] The business configuration method provided in this embodiment first fills the fields that the first business entity depends on based on the first external dependency and performs field verification to obtain a first structure. Then, the fields of the first structure are filled based on the field filling component to obtain a second structure. Therefore, it can be ensured that all fields of the constructed first business entity can be filled. Finally, the fields in the second structure are verified by the first field verification component. Therefore, the integrity of the constructed first business entity can be ensured.

[0081] For example, Figure 6 As shown, for the builders at each level, the builder first fills in and verifies the fields based on the first external dependency to obtain a first structure. Then, the unbuilt fields are filled in by the mounted field filling component to obtain a second structure. Finally, the fields in the second structure are verified by the mounted first field verification component to obtain a first business entity.

[0082] It is worth noting that the business configuration method disclosed in the present invention can extract the common parts in the business configuration through the layout design of the builder, the first external dependency, the field filling component, and the first field verification component, and define them as reusable business components, such as the field filling component and the first field verification component. Therefore, the reuse and configuration of the system can be greatly improved.

[0083] In addition, in the business configuration method disclosed in the present invention, different builders are used to construct the first business entities of different business functions, so that top-level isolation is achieved, and the business components of different business functions can be isolated from each other, and the codes and data between different business components are independent of each other. Therefore, there will be no confusion and interference between business components. At the same time, the constructed first business entities can also be independent of each other, without confusion and interference, which is conducive to the maintainability and extensibility of the code.

[0084] It should be noted that different builders expose different fields and business entities according to actual needs. Therefore, the scope of fields that can be accessed by business lines can be limited, the redundancy of irrelevant codes can be reduced, and the problem of unavailable fields caused by unexpected operations can be avoided.

[0085] It should be noted that if Figure 7As shown, for the specific code of different first business entities, the builder can bind one or more field filling components and first field verification components. In actual operation, a warehouse of common field filling components and first field verification components can be configured. Different businesses (such as business 1 and business 2) can be dynamically mounted into the builder by selecting the field filling component and the first field verification component in the common code to build the specific code of the business. This can flexibly respond to changes in business needs and make the creation system more feasible.

[0086] In some optional implementations, the business configuration method of the present disclosure further includes: determining modification information of the first business entity in response to a modification instruction for the first business entity; and modifying the first business entity based on the modification information to obtain a second business entity to obtain an updated business model.

[0087] It is worth noting that in actual applications, there are the following three business update scenarios. The first business update scenario is to modify the first business entity, such as Figure 8 The update process of the marked 1. The second update scenario is that the entity value of the first business entity is not modified, but the first external dependency used by the first business entity is changed, such as Figure 8 The third business update scenario is to switch the entity type of the first business entity, such as Figure 8 The update process of the marked 3. For the first update scenario, the entity value of the first business entity can be modified directly, for example, the entity value of the first business entity is modified to obtain the second business entity.

[0088] The service configuration method provided in this embodiment modifies the first service entity based on the modification information of the first service entity to obtain the second service entity and thus obtain an updated service model. Therefore, the service model can be dynamically updated according to actual needs.

[0089] In some optional embodiments, the business configuration method of the present invention also includes: in response to an update instruction for a first external dependency corresponding to a first business entity, determining a second external dependency for updating; updating the corresponding first business entity based on the second external dependency to obtain a third business entity; adding a second field verification component to the first field verification component corresponding to the third business entity to obtain an updated business model, and the second field verification component is used to verify the third business entity.

[0090] It is worth noting that if Fig. 9As shown, for the second business update scenario mentioned above, it is necessary to add the interface of the field verification component of the change scenario. After the first business entity is updated, the first field verification component mainly verifies the second external dependency obtained by updating the first business entity, thereby verifying the legitimacy of the updated third business entity's own data. At the same time, it is necessary to add a second field verification component to verify the entity value before and after the update of the first business entity through the second field verification component, for example, to verify whether the change of external dependency before and after the update of the first business entity is legal.

[0091] The business configuration method provided in this embodiment updates the first business entity based on the second external dependency to obtain a third business entity when the first external dependency is updated. Then, the second field verification component is added to the first field verification component corresponding to the third business entity to obtain an updated business model. Therefore, the legality of the external dependency change can be verified by the second field verification component.

[0092] It is worth noting that if Fig.10 As shown, for the third business update scenario mentioned above, assuming that the first business entity is updated to the fourth business entity, it is necessary to add a third field verification component and a fourth field verification component. Among them, the third field verification component is used to verify the legitimacy of the fourth business entity's own data, that is, to verify the legitimacy of the third external dependency corresponding to the fourth business entity. The fourth field verification component is used to verify whether the process of updating from the first business entity to the fourth business entity is legal, that is, the legitimacy of the change from the first external dependency to the third external dependency.

[0093] This embodiment also provides a third business configuration method, which can be used to create a system. Fig.11 is a flow chart of a third service configuration method according to an embodiment of the present invention. Fig.11 As shown, the process includes the following steps:

[0094] Step S1101, obtain the configuration information of the target business, the configuration information includes at least one level of builder and the construction information of the builder, the construction information includes the first external dependency of the builder, the field filling component and the first field verification component. See the above step S101 for details, and no further details will be given here.

[0095] Step S1102: Based on the builder, the hierarchical relationship of the builder and the building information, a business model is built, wherein the business model includes at least one hierarchical first business entity, and the first business entity is obtained based on the corresponding builder and the building information. See the above step S202 for details, which will not be described in detail here.

[0096] Step S1103, persist the business model to obtain a target data model, which is used to process the target business.

[0097] Specifically, the business model is persisted in step S1103 to obtain the target data model, including:

[0098] Step S11031, converting the business model into a target data model.

[0099] Specifically, a mapping component of the first business entity constructed by the configuration builder is used, and field mapping is performed on the first business entity based on the mapping component to convert the business model into a target data model.

[0100] Step S11032, write the target data model into the data service system and obtain write feedback information.

[0101] Specifically, the data service system includes at least one of a database and a data service.

[0102] Specifically, after the data service system writes into the target data model, it allocates a data service identifier to the target data model, and feeds the data service identifier back to the creation system as writing feedback information.

[0103] Step S11033, writing the feedback information into the business model.

[0104] Specifically, the write feedback information is written into the business model to determine the write area of ​​the target data model in the data service system, so that the target data model can be called according to the write feedback information to process the target business.

[0105] The service configuration method provided in this embodiment converts the service model into a target data model, then writes the target data model into the data service system, and writes the write feedback information fed back by the data service system into the service model, thereby ensuring the security of the service data.

[0106] In some optional implementations, the configuration information also includes a mapping component corresponding to the first business entity constructed by the builder, and the mapping component is used to characterize a target mapping rule between the corresponding first business entity and the data access object of the target business. The above-mentioned step S11031 converts the business model into a target data model, including:

[0107] Step b1: Mapping the corresponding first business entity to a data access object based on a mapping component to obtain a target data entity of at least one level.

[0108] Specifically, the corresponding first business entity is mapped to the data access object based on the mapping component, that is, the first business entity is mapped to the data model of the data access object through the target mapping rule to obtain the target data model.

[0109] It should be noted that the model mapping based on the mapping component (also known as Mapper) is similar to the process of building business entities with the builder, and the design pattern follows the builder system. Fig.12 As shown in the figure, the mapping component is responsible for the concatenation of the entire mapping process. The mapping component is used to manage the data access object to call the data access object to read the field from the business model and write it into the data model. The field of the business model is read in the data model and assigned to obtain the target data model. Then, the target data model is written into the data service system to realize the persistence of the business model.

[0110] Step b2: constructing a target data model based on at least one level of target data entities.

[0111] Specifically, the target data entities are combined based on the hierarchical relationship of the target data entities to obtain a target data model.

[0112] The business configuration method provided in this embodiment maps the corresponding first business entity to the data access object based on the mapping component to obtain at least one level of target data entity to construct the target data model. Therefore, the mapping rules can be represented by the mapping component without manually writing the mapping code from the field of the business model to the field of the data model. Therefore, the configuration efficiency of business requirements can be further improved.

[0113] In some optional implementations, the step b1 above maps the corresponding first business entity to a data access object based on a mapping component to obtain at least one level of target data entity, including:

[0114] Step b11: Mapping the first field in the corresponding first business entity to the data access object based on the mapping component to obtain the second field, so as to form a third structure of at least one level.

[0115] Specifically, Fig.13 As shown, the model mapping of the business model includes field mapping, entity type mapping and foreign key processing. Among them, field mapping includes direct mapping, complex mapping and compatible value writing. Complex mapping includes calculation writing and reading parsing. Entity type mapping includes field mapping of proprietary fields and reused fields. In the business configuration method disclosed in the present invention, different mapping components can be configured to represent different mapping rules. Then, in the process of actual business configuration, field mapping, entity type mapping and foreign key processing of different mapping rules can be implemented by calling mapping components.

[0116] Specifically, the data access object includes a data writing object (also called Writer) and a data reading object (also called Parser). The mapping component calls the data writing object to read the first field of each first business entity in the business model, and then, based on the target mapping rule corresponding to the mapping component, the first field is subjected to entity type mapping, field mapping and foreign key processing to obtain the second field. Among them, the third structure is composed of the second field. Therefore, the calculation writing of complex mapping can be realized.

[0117] Step b12: assigning a value to the second field in the third structure based on the data access object to obtain at least one level of target data entity.

[0118] Specifically, the mapping component calls the data reading object to parse and read the second field in the third structure and assigns a value to the second field to obtain the target data entity. Therefore, the reading and parsing of complex mapping can be achieved.

[0119] The business configuration method provided in this embodiment maps the first field in the corresponding first business entity to the data access object based on the mapping component to obtain the second field to form a third structure of at least one level. Then, the second field in the third structure is assigned a value based on the data access object to obtain a target data entity of at least one level. Therefore, the fields of the business model can be classified through the mapping component to facilitate the mapping relationship between the business model and the data model.

[0120] In some optional embodiments, the above step b11 maps the first field in the corresponding first business entity to the data access object based on the mapping component to obtain the second field to constitute a third structure of at least one level, including: calling the data access object based on the mapping component to perform entity type mapping and / or field mapping on the first field in the corresponding first business entity to obtain the second field to constitute a third structure of at least one level.

[0121] It should be noted that entity class mapping includes the field mapping process.

[0122] Specifically, Fig.14 As shown, the mapping components of the first business entities at each level in the business model can be configured through the mapping component configuration, for example, mapping component 1, mapping component 11, mapping component 12, mapping component 111, and mapping component 112 are configured. The data reading object and the data writing object in the data access object are managed through the mapping component, so as to realize the mapping from the business model to the data model by using the data access object. Therefore, for simple entity type mapping and field mapping, the efficiency of business configuration can be improved through the configuration of the mapping component.

[0123] As a specific application example, Fig.15 As shown, the business code framework using the business configuration method disclosed in the present invention mainly includes an interface layer, a logic layer and a data layer. Among them, the logic layer is used to describe the fields that carry the business, define the model tree to obtain the business model, and build and verify the business model. The logic layer is used to expose the structural layer of the business model building capability. The data layer is used to map the business model to other data structures. In this business code framework, the fixed parts in the business configuration process that do not need to be manually written by developers are replaced in the form of generated code, which is represented by the connecting lines in the business code framework. Then, the parts that need to be written are configured to provide user extension points for each layer, for example, the auxiliary class component of the interface layer, the first field verification component and the field filling component of the logic layer, and the data writing object and the data reading object of the data layer. Developers can implement the extension interface through the business code framework, and declare the reference interface in the configuration information to complete the logic extension access, which is finally reflected in the generated business code.

[0124] Specifically, the interface layer includes an interactive data language (IDL) component, an asynchronous message processing component, an auxiliary class component (also known as Helper), and a registration (also known as Registry) component. Among them, the call from the interactive data language component to the application program interface of the builder can be planned as automatic generation and pluggable component implantation. The corresponding interactive data language component can be generated while generating the runtime code of the target business according to the configuration information to further reduce the code development work of the target business. The auxiliary class component is used to convert the business request of the business line into the corresponding builder to achieve mutual isolation between business lines, and the isolation of business lines can also be achieved through the asynchronous message processing component. That is, different auxiliary class components of the same business line can call different builders.

[0125] Specifically, the logic layer includes business models, builders, field validation components, and field filling components. Among them, the business model can be generated through configuration. The business model is a pure data object that contains all possible fields of the target business and manages business entities in groups. The builder serves a specific business line and is generated based on the business model to achieve business isolation. The field validation component can be bound to the builder of a specific business line through configuration or programming, or it can work independently. The field filling component can be bound to the builder of a specific business line through configuration or programming. The field filling component is used to fill in fields that do not need to be provided by the business party.

[0126] Specifically, the data layer includes warehouses (also known as Repo), mapping components, data writing objects, data reading objects, and data objects (also known as DataObject). Among them, the mapping component can map the business model to the data access objects corresponding to the data writing objects and data reading objects, and is responsible for processing the field grouping of the business model, which can be automatically generated without configuration. The data writing objects and data reading objects can be generated according to the configuration fields, or the objects can be customized and configured to achieve business line binding.

[0127] It is worth noting that in the above business code framework, the logic in the business configuration is abstracted into business components such as auxiliary class components, field validation components, field filling components, data writing objects, and data reading objects. Therefore, through the configuration of business components, a new set of business lines can be quickly built to better assist in the visualization and configuration of the entire business chain and form a more organized layout. At the same time, since the code of each business component is pre-configured, it can effectively reduce the process of manually configuring business codes and improve the configuration efficiency of business needs.

[0128] For example, Fig.16 As shown in the figure, if you need to create business 1, business 2, and business 3, you can build the business model of each business by configuring the auxiliary class component, registration component, field verification component, field filling component, and builder of each business. And configure the mapping component of each business model, so as to use the mapping component to convert the business model into the data model corresponding to each business.

[0129] It is worth noting that the business configuration method disclosed in the present invention creates an executable business code framework, allowing logic with a unified format to be inserted into the process of the business code framework in the form of pluggable components (e.g., a first field check component, a field filling component, a mapping component) to automatically generate the business code of the target business. Therefore, different business functions can be split and freely combined according to business scenarios, so that the business code of the same business function can be reused in multiple business scenarios. At the same time, the mapping component can realize the conversion of unequal structures to each other, providing powerful mapping capabilities.

[0130] For example, Fig.17As shown, by adopting the business configuration method disclosed in the present invention, component developers can develop the code of business components such as field verification components, field filling components, mapping components, and metadata definitions of business components through the component production platform to obtain business components for implementing different business functions. Then, when facing the configuration of the target business, the business choreography personnel can configure the metadata of the business model of the target business through the configuration platform, and perform business choreography based on the business components to obtain the configuration information of the target business. Furthermore, the tool developers generate the business system of the target business through the business code framework, model code template, process code template and glue code template in the R&D tool. Therefore, in the configuration process of the target business, it is only necessary to focus on the R&D business components and the business choreography based on the business components, without paying attention to the glue code in the business process of the target business, to complete the business configuration. Among them, the creation system is composed of a component generation platform, a configuration platform and a R&D tool.

[0131] It is worth mentioning that the business configuration method disclosed in the present invention has the following advantages: First, through business components such as field validation components, field filling components, and mapping components, a new set of business paths can be quickly built, which can effectively save relevant manpower. Second, the focus of business needs can be focused on the core business logic, mainly focusing on the code of pluggable business components such as field validation components and field filling components, without having to worry about the business code generation process. Third, it can provide a unified business code framework for the actions of creating and editing models, thereby improving the configurability of the overall business logic, and can better assist in the visualization and configuration of the entire business chain.

[0132] In this embodiment, a service configuration 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 conceivable.

[0133] This embodiment provides a service configuration device, such as Fig.18 As shown, including:

[0134] The configuration information acquisition module 1801 is used to acquire the configuration information of the target business, where the configuration information includes at least one level of builder and the construction information of the builder, where the construction information includes the first external dependency of the builder, the field filling component and the first field checking component;

[0135] A first model building module 1802 is used to build a business model based on builders, hierarchical relationships between builders, and building information, where the business model includes at least one hierarchical first business entity, where the first business entity is obtained based on the corresponding builder and building information;

[0136] The second model building module 1803 is used to perform persistence processing on the business model to obtain a target data model, and the target data model is used to process the target business.

[0137] In some optional implementations, the first model building module 1802 includes:

[0138] A model tree construction unit is used to construct a model tree based on a builder, a hierarchical relationship and construction information. The nodes of the model tree are represented by corresponding builders, and the builders are mounted with corresponding construction information.

[0139] The business entity construction unit is used to construct the first business entity at the level where the builder is located based on the builder and the corresponding construction information for the builders at each level in the model tree to obtain a business model.

[0140] In some optional implementations, the business entity construction unit includes:

[0141] A structure construction subunit, used to construct a first structure based on the builder and the corresponding first external dependency;

[0142] A field filling subunit, used to fill the fields of the first structure based on the corresponding field filling component to obtain a second structure corresponding to the first structure;

[0143] A field check subunit, used to perform field check on the second structure based on the corresponding first field check component to obtain a check result of the second structure;

[0144] The entity determination subunit is used to determine the second structure as the first business entity of the level where the corresponding builder is located if the second structure verification succeeds.

[0145] In some optional implementations, the service configuration device of the present disclosure further includes:

[0146] A modification instruction response module, configured to determine modification information of the first business entity in response to a modification instruction for the first business entity;

[0147] The business entity modification module is used to modify the first business entity based on the modification information to obtain the second business entity, so as to obtain an updated business model.

[0148] In some optional implementations, the service configuration device of the present disclosure further includes:

[0149] An update instruction response module, configured to determine a second external dependency for updating in response to an update instruction for a first external dependency corresponding to a first business entity;

[0150] A business entity updating module, used to update the corresponding first business entity based on the second external dependency to obtain a third business entity;

[0151] The verification component adding module is used to add a second field verification component to the first field verification component corresponding to the third business entity to obtain an updated business model. The second field verification component is used to verify the third business entity.

[0152] In some optional implementations, the second model building module 1803 includes:

[0153] A model conversion unit, used for converting a business model into a target data model;

[0154] A first writing unit, used to write the target data model into the data service system and obtain writing feedback information;

[0155] The second writing unit is used to write the writing feedback information into the business model.

[0156] In some optional implementations, the configuration information further includes a mapping component corresponding to the first business entity constructed by the builder, and the mapping component is used to characterize a target mapping rule between the corresponding first business entity and the data access object of the target business. The model conversion unit includes:

[0157] An entity mapping subunit, configured to map the corresponding first business entity to a data access object based on a mapping component to obtain a target data entity of at least one level;

[0158] The model building subunit is used to build a target data model based on at least one level of target data entities.

[0159] In some optional embodiments, the entity mapping subunit is specifically used to: map the first field in the corresponding first business entity to the data access object based on the mapping component to obtain the second field to form a third structure of at least one level; assign a value to the second field in the third structure based on the data access object to obtain a target data entity of at least one level.

[0160] In some optional embodiments, the entity mapping subunit is specifically used to map the first field in the corresponding first business entity to the data access object based on the mapping component to obtain the second field to constitute a third structure of at least one level, including: calling the data access object based on the mapping component to perform entity type mapping and / or field mapping on the first field in the corresponding first business entity to obtain the second field to constitute a third structure of at least one level.

[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 service configuration 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 Fig.18 The business configuration device shown.

[0164] See also Fig.19 , Fig.19 is a structural block diagram of an electronic device provided by an optional embodiment of the present disclosure, such as Fig.19 As shown, the electronic device includes: one or more processors 1901, memory 1902, 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 instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information 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). Fig.19 A processor 1901 is taken as an example.

[0165] The processor 1901 may be a central processing unit, a network processor or a combination thereof. The processor 1901 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 gate array, a general purpose array logic or any combination thereof.

[0166] The memory 1902 stores instructions executable by at least one processor 1901, so that at least one processor 1901 executes the method shown in the above embodiment.

[0167] The memory 1902 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 1902 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 1902 may optionally include a memory remotely arranged relative to the processor 1901, 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 1902 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 1902 may also include a combination of the above types of memory.

[0169] The electronic device also includes an input device 1903 and an output device 1904. The processor 1901, the memory 1902, the input device 1903 and the output device 1904 may be connected via a bus or other means. Fig.19 The example of connecting through bus is taken in the following.

[0170] The input device 1903 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick, etc. The output device 1904 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0171] 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.

[0172] 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.

[0173] 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 service configuration method, characterized in that: The method comprises: Acquire configuration information of the target business, the configuration information including at least one level of builders and build information of the builders, the build information including a first external dependency, a field filling component, and a first field verification component of the builder; Based on the builders, the hierarchical relationship between the builders and the build information, a business model is constructed, wherein the business model includes at least one hierarchical first business entity, and the first business entity is obtained based on the corresponding builders and the build information; The business model is persisted to obtain a target data model, and the target data model is used to process the target business.

2. The method according to claim 1, characterized in that The constructing of a business model based on the builder, the hierarchical relationship of the builder and the construction information includes: Based on the builder, the hierarchical relationship and the building information, a model tree is constructed, wherein the nodes of the model tree are represented by the corresponding builder, and the builder is mounted with the corresponding building information; For the builders at each level in the model tree, based on the builders and the corresponding building information, a first business entity at the level where the builders are located is constructed to obtain the business model.

3. The method according to claim 2, characterized in that The step of constructing a first business entity at a level where the builder is located based on the builder and the corresponding construction information includes: Based on the builder and the corresponding first external dependency, construct a first structure; Filling fields of the first structure based on the corresponding field filling component to obtain a second structure corresponding to the first structure; Performing field verification on the second structure based on the corresponding first field verification component to obtain a verification result of the second structure; If the verification of the second structure succeeds, the second structure is determined as the first business entity of the level where the corresponding builder is located.

4. The method according to claim 1, characterized in that The method further comprises: In response to a modification instruction for the first business entity, determining modification information of the first business entity; The first business entity is modified based on the modification information to obtain a second business entity, so as to obtain the updated business model.

5. The method according to claim 1, characterized in that The method further comprises: In response to an update instruction for a first external dependency corresponding to the first business entity, determining a second external dependency for updating; Based on the second external dependency, the corresponding first business entity is updated to obtain a third business entity; A second field verification component is added to the first field verification component corresponding to the third business entity to obtain the updated business model, wherein the second field verification component is used to verify the third business entity.

6. The method according to claim 1, characterized in that The process of performing persistence processing on the business model to obtain a target data model includes: Converting the business model into a target data model; Writing the target data model into a data service system to obtain writing feedback information; The write feedback information is written into the business model.

7. The method according to claim 6, characterized in that The configuration information also includes a mapping component corresponding to the first business entity constructed by the builder, and the mapping component is used to characterize a target mapping rule between the corresponding first business entity and the data access object of the target business; the converting the business model into a target data model includes: Mapping the corresponding first business entity to the data access object based on the mapping component to obtain at least one level of target data entity; The target data model is constructed based on the target data entities of the at least one hierarchy.

8. The method according to claim 7, characterized in that The mapping of the corresponding first business entity to the data access object based on the mapping component to obtain at least one level of target data entity includes: Based on the mapping component, the first field in the corresponding first business entity is mapped to the data access object to obtain a second field, so as to form a third structure of at least one level; The second field in the third structure is assigned a value based on the data access object to obtain a target data entity of at least one level.

9. The method according to claim 8, characterized in that The mapping component maps the first field in the corresponding first business entity to the data access object to obtain the second field to form a third structure of at least one level, including: Based on the mapping component, the data access object is called to perform entity type mapping and / or field mapping on the first field in the corresponding first business entity to obtain the second field to form the third structure of the at least one level.

10. A service configuration device, characterized in that: The device comprises: A configuration information acquisition module, used to acquire configuration information of a target business, wherein the configuration information includes at least one level of a builder and construction information of the builder, wherein the construction information includes a first external dependency, a field filling component, and a first field verification component of the builder; A first model building module, configured to build a business model based on the builder, the hierarchical relationship between the builders and the building information, wherein the business model includes at least one hierarchical first business entity, and the first business entity is obtained based on the corresponding builder and the building information; The second model building module is used to perform persistence processing on the business model to obtain a target data model, and the target data model is used to process the target business.

11. 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 service configuration method according to any one of claims 1 to 9 by executing the computer instructions.

12. 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 service configuration method according to any one of claims 1 to 9.

13. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the service configuration method according to any one of claims 1 to 9.