Business processing method and device, equipment and storage medium

By configuring the node tree structure and service nodes in the business processing engine, the business data in the traditional business system is adjusted, and the problem of difficulty in adjusting traditional business systems when facing changes in business scenarios is solved, achieving more efficient response capabilities.

CN120215929APending Publication Date: 2025-06-27SHENZHEN AOZHE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510141668.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-08
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

When facing changes in business scenarios, traditional business systems are difficult to adjust and have a long adjustment cycle, and have weak ability to respond to changes in business scenarios.

Method used

By configuring the node tree structure in the business processing engine, using the service node to adjust the original domain model for business data, determine the running node until the node that terminates the operation is reached, thereby outputting the target domain model.

Benefits of technology

It has achieved a clearer definition of the boundaries of the corresponding modules of each field in the business processing engine, simplified the cross-domain and cross-model business implementation, reduced the difficulty of adjusting the business system, and improved the ability to respond to changes in business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215929A_ABST
    Figure CN120215929A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a service processing method and device, equipment and a storage medium. The service processing method comprises the steps of obtaining an original domain model of a target service; taking the first service node in the node tree structure as a current node, and performing service data adjustment on the original domain model based on the current node; if the current node is not the node of which the operation is terminated, determining an operation node in each child node of the current node based on the adjusted original domain model, the child node being a service node which is connected with the current node and is located at the lower layer of the current node in a node number structure; and taking the operation node as a new current node, performing service data adjustment on the original domain model again until the current node is a node of which the operation is terminated, determining the adjusted original domain model as a target domain model, and outputting the target domain model. According to the embodiment of the invention, the capability of responding to business scene changes can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to, but is not limited to, the field of computer technology, and particularly relates to a service processing method, apparatus, device, and storage medium. Background Art

[0002] Currently, in traditional service systems, the program codes of each module are usually not easy to demarcate boundaries, and the degree of mutual dependence between modules in different fields is relatively high, making it difficult for traditional service systems to achieve cross-domain and cross-model. Whenever the service changes, a large range of program codes need to be modified, resulting in a large adjustment difficulty and a long adjustment cycle for traditional service systems, and a weak response ability to service scenario changes. Summary of the Invention

[0003] The following is an overview of the subject matter described in detail in this document. This overview is not intended to limit the scope of protection of the claims.

[0004] Embodiments of this application provide a service processing method, apparatus, device, and storage medium, which can improve the response ability to service scenario changes.

[0005] To achieve the above object, a first aspect of the embodiments of this application proposes a service processing method, which is applied to a service processing engine. The service processing engine is configured with a node tree structure, and the node tree structure includes multiple service nodes. At least one service node is configured as a node that terminates operation. The service processing method includes: obtaining an original domain model of a target service; using the first service node in the node tree structure as the current node, and performing service data adjustment on the original domain model based on the current node; when the current node is not a node that terminates operation, determining a running node among the respective child nodes of the current node based on the adjusted original domain model, where the child node is a service node that is connected to the current node and is located below the current node in the node structure; using the running node as the new current node, and performing service data adjustment on the original domain model again until, when the current node is a node that terminates operation, determining the adjusted original domain model as the target domain model and outputting the target domain model.

[0006] In some embodiments, when the current node is not a node that terminates operation, determining a running node among the respective child nodes of the current node based on the adjusted original domain model includes: for any child node of the current node, when the current node is not a node that terminates operation and the child node of the current node is used to perform a conditional judgment task, determining a conditional judgment result of the conditional judgment task based on the adjusted original domain model; when the conditional judgment result indicates that the condition is met, determining the child node of the current node as the running node.

[0007] In some embodiments, using the running node as a new current node and performing business data adjustment on the original domain model again includes: when the running node is used to perform a non-conditional judgment task and the child nodes of the running node are used to perform non-conditional judgment tasks, constructing a logic unit based on the running node and the child nodes of the running node, and performing business data adjustment on the original domain model based on the logic unit; or when the running node is used to perform a non-conditional judgment task and the child nodes of the running node are used to perform conditional judgment tasks, using the running node as a new current node and performing business data adjustment on the original domain model again.

[0008] In some embodiments, the service node is configured with a task cache queue associated with the node tree structure, and constructing a logic unit based on the running node and the child nodes of the running node includes: sequentially adding the running node and the child nodes of the running node to the task cache queue; constructing a logic unit based on the task cache queue.

[0009] In some embodiments, the service node includes built-in functions and expressions, and constructing a logic unit based on the task cache queue includes: for the running node and the child nodes of the running node in the task cache queue, mapping the built-in functions to first execution segments and mapping the expressions to second execution segments; combining the first execution segments and the second execution segments to construct a logic unit.

[0010] In some embodiments, the service node includes a prompt node, and performing business data adjustment on the original domain model based on the current node includes: when the current node is a prompt node, performing business data adjustment on the original domain model based on the current node; extracting information from the adjusted original domain model based on the current node to generate prompt information.

[0011] In some embodiments, the original domain model includes a plurality of business data entities, and the business processing method further includes: in response to a viewing instruction carrying a target data entity, determining, among the plurality of business data entities, an associated data entity associated with the target data entity, where the target data entity is one of the business data entities; based on the target data entity, performing data extraction on the original domain model and the adjusted original domain model to obtain a first data set of the target data entity; based on the associated data entity, performing data extraction on the original domain model and the adjusted original domain model to obtain a second data set of the associated data entity; generating a data display graph of the target data entity based on the first data set and the second data set, and sending the data display graph.

[0012] To achieve the above object, a second aspect of the embodiments of the present application provides a business processing device, which is applied to a business processing engine. The business processing engine is configured with a node tree structure, and the node tree structure includes a plurality of service nodes, and at least one service node is configured as a node that terminates operation. The business processing device includes: an acquisition module, configured to acquire an original domain model of a target business; a first adjustment module, configured to use the first service node in the node tree structure as the current node, and perform business data adjustment on the original domain model based on the current node; an iteration module, configured to, when the current node is not a node that terminates operation, determine a running node among the respective child nodes of the current node based on the adjusted original domain model, where the child node is a service node that is connected to the current node and is located below the current node in the node tree structure; a second adjustment module, configured to use the running node as the new current node, and perform business data adjustment on the original domain model again until, when the current node is a node that terminates operation, determining the adjusted original domain model as the target domain model and outputting the target domain model.

[0013] To achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, where the electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the business processing method described in the first aspect above is implemented.

[0014] To achieve the above object, a fourth aspect of the embodiments of the present application provides a storage medium, where the storage medium is a computer-readable storage medium, the storage medium stores a computer program, and when the computer program is executed by a processor, the business processing method described in the first aspect above is implemented.

[0015] The embodiments of the present application at least include the following beneficial effects: obtaining the original domain model of the target service, then taking the first service node in the node tree structure as the current node, adjusting the service data of the original domain model based on the current node. If the current node is not the node that terminates the operation, determining the running node among the sub-nodes of the current node based on the adjusted original domain model, then taking the running node as the new current node, and adjusting the service data of the original domain model again until the current node is the node that terminates the operation, determining the adjusted original domain model as the target domain model, and outputting the target domain model. Since the original domain model and the service node achieve a higher-level abstraction of the domain involved in the target service, it is possible to more clearly define the boundaries of the corresponding modules in each domain of the service processing engine, and more simply implement cross-domain and cross-model services. When the service changes, the adjustments made in each domain are relatively independent, so that local adjustments to the node tree structure have less impact on other parts of the node tree structure, which can reduce the adjustment difficulty of the entire service system and improve the response ability of the entire service system to service scenario changes.

[0016] Other features and advantages of the present application will be described in the subsequent description, and part of them will become obvious from the description, or be understood by implementing the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the description. They are used together with the embodiments of the present application to explain the technical solutions of the present application, and do not constitute a limitation to the technical solutions of the present application.

[0018] Figure 1 It is an optional flowchart of the service processing method provided by the embodiment of the present application;

[0019] Figure 2 It is an optional flowchart of determining the running node provided by the embodiment of the present application;

[0020] Figure 3 It is an optional flowchart of adjusting the original domain model provided by the embodiment of the present application;

[0021] Figure 4 It is an optional specific flowchart of constructing the task cache queue provided by the embodiment of the present application;

[0022] Figure 5 It is an optional flowchart of generating the logic unit provided by the embodiment of the present application;

[0023] Figure 6An optional process schematic diagram for generating prompt information provided by an embodiment of the present application;

[0024] Figure 7 An optional process schematic diagram for data visualization provided by an embodiment of the present application;

[0025] Figure 8 An optional process schematic diagram for a service processing engine to perform service processing provided by an embodiment of the present application;

[0026] Figure 9 An optional structural schematic diagram of a service processing device provided by an embodiment of the present application;

[0027] Figure 10 An optional hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0028] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] It should be noted that in each specific implementation manner of the present application, when it comes to performing relevant processing based on data related to the characteristics of the target object, such as target object attribute information or attribute information set, etc., the permission or consent of the target object will be obtained first. Moreover, the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when an embodiment of the present application needs to obtain target object attribute information, it will obtain the separate permission or separate consent of the target object through methods such as popping up a window or jumping to a confirmation page. After clearly obtaining the separate permission or separate consent of the target object, the necessary target object-related data for the normal operation of the embodiment of the present application will be obtained.

[0030] In the description of the present application, the meaning of several is one or more, the meaning of multiple is more than two, and understandings such as greater than, less than, exceeding, etc. do not include the present number, and understandings such as above, below, within, etc. include the present number.

[0031] It should be noted that although functional module division is performed in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the flowchart in the flowchart. Terms such as "first" and "second" in the specification, claims or the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.

[0032] To facilitate the understanding of the technical solutions provided by the embodiments of the present application, some key terms used in the embodiments of the present application are explained here first:

[0033] It should be noted that the domain refers to the scope of problems that the domain model can solve. For example, if the research scope is the entire system, the domain model is for this system. If the research problem is a part of the system, the domain model is limited to the specified range.

[0034] It should be noted that the domain model refers to a visual representation model that includes at least two classes in the domain and the association relationships between at least two classes, or the domain model is a visual representation of the conceptual classes in the domain or the entity classes (objects) in the real world, used to discover important business domain concepts and establish relationships between business domain concepts. The domain model can organize the concepts and relationships in the business. Therefore, generally, by developing a program for the domain model, the business functions in the business can be realized. Or, the domain model is an analysis model, a tool to help system analysts and users understand the real business. What is described in the domain model are the entity classes involved in the business and the relationships between the entity classes.

[0035] It should be noted that a class refers to a general term obtained by abstractly classifying entities. For example, if the entities are Xiaohong and Xiaoli, the class obtained by abstracting and generalizing them is: people.

[0036] It should be noted that the association relationship refers to the connection used to represent at least two classes. The association relationship includes at least one of the association relationship, the dependency relationship, the aggregation relationship, the composition relationship, and the inheritance relationship, but is not limited thereto. The embodiments of the present disclosure do not make specific limitations in this regard. For example, the association relationship refers to the static relationship between at least two classes. For example, the relationship between a person and an ID card; the dependency relationship refers to the dynamic relationship between at least two classes. For example, a person uses a rag to wipe the table, and the relationship between the person and the rag is a dependency relationship. The aggregation relationship refers to the relationship between the whole and the part of at least two classes, that is, when the whole class disappears, the part class still exists. For example, when the class is gone, the students still exist. The composition relationship refers to the composition relationship between at least two classes, that is, when the first class disappears, the second class is incomplete. For example, the bird is the second class, and the wing is the first class. When the wing is gone, the bird is incomplete.

[0037] Currently, in traditional business systems, the program codes of each module are usually not easy to divide the boundaries, and the degree of mutual dependence between modules in different domains is relatively high, making it difficult for traditional business systems to achieve cross-domain and cross-model. Whenever the business changes, a large range of program codes need to be modified, resulting in a relatively large adjustment difficulty and a long adjustment cycle for traditional business systems, and a relatively weak response ability to business scenario changes.

[0038] In view of the problem that the traditional business system has a weak response ability to changes in business scenarios, the present application provides a business processing method, apparatus, device, and storage medium, which are applied to a business processing engine. The business processing engine is configured with a node tree structure, and the node tree structure includes multiple service nodes. At least one service node is configured as a node that terminates operation. The business processing method includes: obtaining an original domain model of a target business; taking the first service node in the node tree structure as the current node, and adjusting business data of the original domain model based on the current node; when the current node is not a node that terminates operation, determining a running node among the respective child nodes of the current node based on the adjusted original domain model, where a child node is a service node that is connected to the current node and is located below the current node in the node number structure; taking the running node as the new current node, and adjusting the business data of the original domain model again until, when the current node is a node that terminates operation, determining the adjusted original domain model as the target domain model and outputting the target domain model. According to the solution provided by the embodiments of the present application, an original domain model of a target business is obtained, then the first service node in the node tree structure is taken as the current node, and the business data of the original domain model is adjusted based on the current node. When the current node is not a node that terminates operation, a running node is determined among the respective child nodes of the current node based on the adjusted original domain model, and then the running node is taken as the new current node, and the business data of the original domain model is adjusted again until, when the current node is a node that terminates operation, the adjusted original domain model is determined as the target domain model and outputted. Since the original domain model and the service nodes achieve a higher level of abstraction of the fields involved in the target business, it is possible to more clearly define the boundaries of the corresponding modules in each field in the business processing engine, and more simply implement cross-field and cross-model businesses. When the business changes, the adjustments made in each field are relatively independent, so that local adjustments to the node tree structure have less impact on other parts of the node tree structure, which can reduce the adjustment difficulty of the entire business system and improve the response ability of the entire business system to changes in business scenarios.

[0039] The business processing method, apparatus, device, and storage medium provided by the embodiments of the present application will be specifically described through the following embodiments. First, the business processing method in the embodiments of the present application will be described.

[0040] The business processing method provided by the embodiments of the present application relates to the field of computer technology. The business processing method provided by the embodiments of the present application is applied to a business processing engine. The business processing engine can be applied to a terminal, or to a server side, or can also be software running on a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the business processing method, etc., but is not limited to the above forms.

[0041] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment, where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0042] The following further elaborates on the embodiments of the present application with reference to the accompanying drawings.

[0043] As Figure 1 shown, Figure 1 FIG. is an optional flowchart of the business processing method provided by the embodiments of the present application. The business processing method is applied to a business processing engine. The business processing engine is configured with a node tree structure. The node tree structure includes multiple service nodes. At least one service node is configured as a node that terminates operation. The business processing method includes but is not limited to the following steps S110 to step S140:

[0044] Step S110, obtain the original domain model of the target business.

[0045] Step S120, use the first service node in the node tree structure as the current node, and perform business data adjustment on the original domain model based on the current node.

[0046] It should be noted that the first client is the party that provides services through the business processing engine; the second client is the party that receives the services provided by the first client through the business processing engine.

[0047] Among them, the service node refers to the domain service node. The domain service is an execution action for the domain model. Therefore, the service node can adjust the business data of the original domain model. For example, for the employee domain model related to employees, the domain service can be to add employees, specifically generating an employee entity corresponding to the new employee, then adding the employee entity to the database associated with the employee domain model, and modifying business data such as the number of employees.

[0048] Among them, the node tree structure is pre-configured by the first client. The first client can configure the node tree structure according to the business domain and business scenario. The node tree structure is a set in which the service nodes associated with the original domain model are arranged in a tree structure.

[0049] Among them, the original domain model is a domain model related to the target business, which is used to describe one of the multiple domains involved in the target business. The original domain model includes various business data entities in the corresponding domain and the association relationships between the various business data entities.

[0050] It should be noted that when the business processing engine is called, the business processing engine first obtains a command object. The command object is used to indicate the operation expected by the second client, references the original domain model or part of the business data of the original domain model through the command object, and is also used to collect other data required for processing the original domain model for use by the service nodes of the node tree structure. For example, if the second client's goal is to place an order, the command identifier corresponding to the command object is to add an order. The command object references the original domain model regarding the order domain. The collected data can include value objects of other domain models, such as the identifier of the second client, the shopping cart list, and physical information, etc. A new order is constructed based on the value objects of other domain models, and then the new order is stored in the database associated with the original domain model of the order domain for management.

[0051] Among them, the command object can reference multiple original domain models, which is not limited in this embodiment of the present disclosure.

[0052] It can be understood that by adjusting the business data of the domain model through different domain services, each domain service focuses on specific business logic or operations. When the business requirements change, it is easier to modify or expand the functions of specific parts without affecting other parts, thereby improving the response ability of the entire business system to business scenario changes.

[0053] Step S130, when the current node is not a node that terminates the operation, based on the adjusted original domain model, determine the running nodes among the respective child nodes of the current node.

[0054] Among them, a child node is a service node that is connected to the current node and is located below the current node in the node number structure.

[0055] Among them, if the current node has child nodes, the number of child nodes can be one or more; if the current node has no child nodes, the current node is a leaf node of the node tree structure, and the leaf node belongs to the node that terminates the operation.

[0056] Among them, at the same time, the number of running nodes can be multiple, that is, the respective child nodes of the current node can be determined as running nodes simultaneously.

[0057] It can be understood that multiple running nodes implement the concurrent operation of the business logic engine, which can improve the business processing efficiency of the business logic engine.

[0058] Step S140, use the running node as the new current node, and adjust the business data of the original domain model again until when the current node is a node that terminates the operation, determine the adjusted original domain model as the target domain model and output the target domain model.

[0059] Among them, the node that terminates the operation is used to trigger the output behavior of the current round of business processing, thereby completing the business processing.

[0060] It should be noted that the adjustment of the business data to the original domain model can be to modify the business data entities in the original domain model, or to combine the business data entities in the original domain model with the business data entities in other domain models, or to perform operations based on the business data entities in the original domain model and the data collected by the command object. The embodiments of the present disclosure do not limit this here.

[0061] Among them, the target domain model can be the adjusted original domain model, or the domain model of other domains obtained based on the original domain model. The embodiments of the present disclosure do not limit this here.

[0062] Based on this, obtain the original domain model of the target business, and then use the first service node in the node tree structure as the current node. Based on the current node, adjust the business data of the original domain model. If the current node is not the node for terminating the operation, based on the adjusted original domain model, determine the running node among the respective child nodes of the current node, and then use the running node as the new current node to adjust the business data of the original domain model again until the current node is the node for terminating the operation, determine the adjusted original domain model as the target domain model, and output the target domain model. Since the original domain model and the service node achieve a higher-level abstraction of the domain involved in the target business, it is possible to more clearly define the boundaries of the corresponding modules in each domain in the business processing engine, and more simply implement cross-domain and cross-model operations. When the business changes, the adjustments made in each domain are relatively independent, making the local adjustment of the node tree structure have less impact on other parts of the node tree structure, being able to reduce the adjustment difficulty of the entire business system and improve the response ability of the entire business system to business scenario changes.

[0063] Specifically, improving the response ability of the entire business system to business scenario changes can specifically be improving the response speed and business processing quality, etc.

[0064] In addition, referring to Figure 2 , in an embodiment, if the current node is not the node for terminating the operation, based on the adjusted original domain model, determining the running node among the respective child nodes of the current node includes, but is not limited to, the following steps:

[0065] Step S210, for any one of the child nodes of the current node, if the current node is not the node for terminating the operation and the child node of the current node is used to perform a conditional judgment task, based on the adjusted original domain model, determine the conditional judgment result of the conditional judgment task.

[0066] Step S220, when the conditional judgment result indicates that the condition is met, determine the child node of the current node as the running node.

[0067] Among them, for any one of the child nodes of the current node, if the current node is not the node for terminating the operation and the child node of the current node is used to perform a non-conditional judgment task, determine the child node of the current node as the running node.

[0068] It should be noted that the conditional judgment task can be to judge the business data entities of the original domain model. For example, when the original domain model is an order domain model, the conditional judgment task of one of the child nodes of the current node is to determine whether the order amount of the second client is greater than 100 yuan. When the order amount of the second client is greater than 100 yuan, the conditional judgment result indicates that the condition is met, and the current node is determined as the running node; the conditional judgment task of one of the child nodes of the current node is to determine whether the order amount of the second client is less than 100 yuan. When the order amount of the second client is less than 100 yuan, the conditional judgment result indicates that the condition is met, and the current node is determined as the running node.

[0069] Based on this, by determining the conditional judgment structure of the conditional judgment task through the adjusted original domain model to determine the running node, it is possible to achieve richer business functions, meet more complex business scenarios, and improve the practicality of the business processing engine.

[0070] In addition, referring to Figure 3 , in an embodiment, the running node is used as the new current node, and the business data of the original domain model is adjusted again, including but not limited to the following steps:

[0071] Step S310, when the running node is used to execute a non-conditional judgment task, and the child nodes of the running node are used to execute non-conditional judgment tasks, a logic unit is constructed based on the running node and the child nodes of the running node, and based on the logic unit, the business data of the original domain model is adjusted.

[0072] Step S320, when the running node is used to execute a non-conditional judgment task, and the child nodes of the running node are used to execute conditional judgment tasks, the running node is used as the new current node, and the business data of the original domain model is adjusted again.

[0073] Among them, the logic unit is the execution entity for adjusting the business data of the original domain model.

[0074] Among them, the running node and the child nodes of the running node respectively construct logic units. The logic units determine the execution order based on the node tree structure. The logic unit corresponding to the parent node is executed before the logic unit corresponding to the child node. For example, after the logic unit corresponding to the running node adjusts the business data of the original domain model, the logic unit corresponding to the child node then adjusts the business data of the original domain model.

[0075] For better illustration, the above running node is replaced by a preparatory node for explanation. When there are at least two levels of child nodes under the preparatory node, the process of generating a logic unit is as follows: When the preparatory node is used to execute a non-conditional judgment task and the child nodes of the preparatory node are used to execute non-conditional judgment tasks, a logic unit corresponding to the preparatory node and a logic unit corresponding to the child nodes of the preparatory node are generated;

[0076] Then, the child nodes of the above preparatory node are determined as new preparatory nodes. When the child nodes of the preparatory node are used to execute non-conditional judgment tasks, the logic unit corresponding to the child nodes of the preparatory node is generated again until the preparatory node is used to execute a conditional judgment task.

[0077] It should be noted that the above service node can generate a logic unit first or generate logic simultaneously. The embodiments of the present disclosure do not make any limitations in this regard.

[0078] Based on this, when the running node is used to execute a non-conditional judgment task and the child nodes of the running node are used to execute non-conditional judgment tasks, a logic unit is constructed based on the running node and the child nodes of the running node. Based on the logic unit, the business data of the original domain model is adjusted. Or, when the running node is used to execute a non-conditional judgment task and the child nodes of the running node are used to execute a conditional judgment task, the running node is used as the new current node, and the business data of the original domain model is adjusted again, so that a relatively certain execution branch can generate the corresponding execution entity in advance, that is, the logic unit, realizing the dynamic generation of the logic unit, which can reduce the memory occupied by the business processing engine and improve the response speed of the business processing engine.

[0079] In addition, referring to Figure 4 , in an embodiment, the business processing engine is configured with a task cache queue associated with the node tree structure. Constructing a logic unit based on the running node and the child nodes of the running node includes but is not limited to the following steps:

[0080] Step S410, adding the running node and the child nodes of the running node to the task cache queue in sequence.

[0081] Step S420, constructing a logic unit based on the task cache queue.

[0082] Among them, the task cache queue can store the identifiers of service nodes, and then based on the stored identifiers of service nodes, associate the identifiers of service nodes with the logic units of service nodes; the task cache queue can also directly construct and store the logic units corresponding to service nodes when the service nodes are added to the task cache queue. The embodiments of the present disclosure do not make any limitations in this regard.

[0083] Based on this, the running nodes and the child nodes of the running nodes are sequentially added to the task cache queue. Based on the task cache queue, a logic unit is constructed, and the logic unit is managed through the task cache queue. Based on the first-in, first-out characteristic of the queue, when there are too many logic units to be generated in a short period of time, the logic units with a higher execution time priority can be constructed first and added to the task cache queue, so that the logic units with a higher time priority can be executed as soon as possible. At the same time, the logic units with a lower time priority are generated. When the logic units with a lower time priority reach the execution time, they can immediately dequeue and execute, improving the response speed of the business processing engine.

[0084] In addition, referring to Figure 5 , in an embodiment, the service node includes built-in functions and expressions. Based on the task cache queue, constructing a logic unit includes, but is not limited to, the following steps:

[0085] Step S510, for the running nodes and the child nodes of the running nodes in the task cache queue, map the built-in functions to the first execution segments and map the expressions to the second execution segments.

[0086] Step S520, combine the first execution segments and the second execution segments to construct a logic unit.

[0087] It should be noted that the built-in functions can be functions that provide non-mathematical operation functions (such as time functions and string functions), and the built-in functions are provided by the business processing engine, and the corresponding first execution segments can be directly found in the business processing engine; the expressions are functions that provide mathematical operation functions, and their expression forms are mathematical symbols (such as the plus sign in the four arithmetic operations), and the expressions are also provided by the business processing engine, and the corresponding second execution segments can be directly found in the business processing engine;

[0088] Among them, both the first execution segment and the second execution segment can be combined into a logic unit as the execution subject, or can be used as the execution subject alone.

[0089] It should be noted that a single service node may only have built-in functions, or only have expressions, or may have both built-in functions and expressions at the same time. The embodiments of the present disclosure do not make any limitations here.

[0090] Based on this, for the running nodes and the child nodes of the running nodes in the task cache queue, mapping the built-in functions to the first execution segments, mapping the expressions to the second execution segments, and combining the first execution segments and the second execution segments to construct a logic unit can improve the generation efficiency of the logic unit and improve the response speed of the business logic engine.

[0091] In addition, referring to Figure 6, in one embodiment, the service node includes a prompt node, and the business data of the original domain model is adjusted based on the current node, including but not limited to the following steps:

[0092] Step S610, when the current node is a prompt node, the business data of the original domain model is adjusted based on the current node.

[0093] Step S620, information is extracted from the adjusted original domain model based on the current node to generate a prompt message.

[0094] Among them, the prompt node can be one of an IM (Instant Messaging, IM) notification node, a short message node, an email node, and a prompt information node.

[0095] It should be noted that the prompt node is a service node with a prompt function, and the prompt object of the prompt message is the user of the second client. For example, when the second client completes an order placement operation, the business logic engine can extract some information of the order and send it to the second client.

[0096] Based on this, when the current node is a prompt node, the business data of the original domain model is adjusted based on the current node, and information is extracted from the adjusted original domain model based on the current node to generate a prompt message, which can prevent users from ignoring important information and improve the user experience of the second client.

[0097] It should be noted that the service node also includes an add node, a modify node, a delete node, a query node, a logic node, a judgment node, a traversal node, an abnormal termination node, an assignment node, etc. The nodes are all service nodes with specific functions, which are not elaborated in this embodiment of the present disclosure.

[0098] Among them, the business processing engine can process multiple target services simultaneously. The logic node can call the services provided by other target services in the current business line. For example, when the current business line of the logic node is the order processing business line, when an order is completed, the logic node can call the business line of the logistics service to complete the business connection from order placement to logistics.

[0099] In addition, referring to Figure 7 , in one embodiment, the original domain model includes multiple business data entities, and the business processing method further includes but not limited to the following steps:

[0100] Step S710, in response to a viewing instruction carrying a target data entity, determine an associated data entity associated with the target data entity among the multiple business data entities.

[0101] Step S720: Based on the target data entity, perform data extraction on the original domain model and the adjusted original domain model to obtain the first data set of the target data entity.

[0102] Step S730: Based on the associated data entity, perform data extraction on the original domain model and the adjusted original domain model to obtain the second data set of the associated data entity.

[0103] Step S740: Based on the first data set and the second data set, generate a data display graph of the target data entity and send the data display graph.

[0104] Among them, the target data entity is one of the business data entities.

[0105] It should be noted that the relationship between the target data entity and the associated data entity is predefined in the original domain model.

[0106] Among them, the first data set can be the attributes of the target data entity, and the second data set can be the attributes of the associated data entity. For example, if the domain model is a commodity service domain model, the target data entity describes a merchant, the first data set can be the name, positive review rate, and delivery speed of the merchant, etc., and the associated data entity describes the merchant, and the second data set can be the name, amount, and sales volume of the merchant's best-selling products, etc.

[0107] It should be noted that it is necessary to obtain the first icon data corresponding to the first data set and the second icon data corresponding to the second data set, associate the first data set with the first icon data to generate a data display graph, and associate the second data set with the second icon data and load it into the data display graph.

[0108] Among them, the data display graph needs to be sent to the front end of the second client for display.

[0109] Based on this, in response to a viewing instruction carrying a target data entity, associated data entities associated with the target data entity are determined among multiple business data entities. Then, based on the target data entity, data extraction is performed on the original domain model and the adjusted original domain model to obtain a first data set of the target data entity. Then, based on the associated data entities, data extraction is performed on the original domain model and the adjusted original domain model to obtain a second data set of the associated data entities. Then, based on the first data set and the second data set, a data display graph of the target data entity is generated and the data display graph is sent. Since the association between the associated data entities and the target data entity is relatively strong, the first data set is the data that the user expects to view, and the second data set has a high probability of being viewed by the user. By simultaneously displaying the first data set and the second data set to the user through the data display graph, the cost for the user to search for data can be reduced and the user experience can be improved.

[0110] It should be noted that, referring to Figure 8 , Figure 8 is an optional process schematic diagram for the business processing engine provided by the embodiments of the present application to perform business processing. The business logic metadata is a node number structure, and the service nodes include built-in functions and expressions. The process of the business logic engine performing business processing is as follows: The original domain model is input into the business processing engine. The business processing engine first parses the business logic metadata, then determines the scheduling order according to the parsing result, and then, according to the determined scheduling order, calls the service nodes in the node tree structure to adjust the business data of the original domain model, determines the final original domain model as the target domain model, and finally outputs the target domain model.

[0111] In addition, referring to Figure 9 , the present application also provides a business processing device 900, which is applied to the business processing engine. The business processing engine is configured with a node tree structure, and the node tree structure includes multiple service nodes. At least one service node is configured as a node that terminates operation. The business processing device includes:

[0112] An acquisition module 910, configured to acquire the original domain model of the target business;

[0113] A first adjustment module 920, configured to use the first service node in the node tree structure as the current node, and perform business data adjustment on the original domain model based on the current node;

[0114] An iteration module 930, configured to, when the current node is not a node that terminates operation, determine a running node among the respective child nodes of the current node based on the adjusted original domain model, where the child nodes are service nodes that are connected to the current node and are located below the current node in the node number structure;

[0115] A second adjustment module 940 is configured to use the running node as the new current node, and perform business data adjustment on the original domain model again until, when the current node is a node that terminates operation, determine the adjusted original domain model as the target domain model and output the target domain model.

[0116] It can be understood that the specific implementation manner of the service processing apparatus 900 is basically the same as the specific embodiments of the above service processing method, and will not be elaborated here.

[0117] In addition, referring to Figure 10 , Figure 10 illustrates the hardware structure of an electronic device according to another embodiment. The electronic device includes:

[0118] A processor 1001, which can be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is configured to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0119] A memory 1002, which can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 1002 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1002 and are called by the processor 1001 to execute the service processing method of the embodiments of the present application.

[0120] An input / output interface 1003 is configured to implement information input and output;

[0121] A communication interface 1004 is configured to implement communication interaction between this device and other devices, and can implement communication through a wired manner (such as USB, network cable, etc.) or through a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0122] A bus 1005 transmits information between various components of the device (such as the processor 1001, the memory 1002, the input / output interface 1003, and the communication interface 1004);

[0123] Wherein, the processor 1001, the memory 1002, the input / output interface 1003, and the communication interface 1004 are communicatively connected to each other inside the device through the bus 1005.

[0124] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned service processing method.

[0125] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include memories remotely provided with respect to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0126] The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0127] Those skilled in the art can understand that Figures 1 to 10 the technical solutions shown in do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine certain steps, or different steps.

[0128] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0129] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices can be implemented as software, firmware, hardware, and appropriate combinations thereof.

[0130] In the description of this application and the above-mentioned drawings, terms such as "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0131] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression refers to any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0132] In several embodiments provided by this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above-mentioned division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces, and the indirect coupling or communication connection of devices or units can be in an electrical, mechanical or other form.

[0133] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present application. The foregoing storage medium includes: various media that can store programs such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0136] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings, and thus do not limit the scope of the rights of the embodiments of the present application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the rights of the embodiments of the present application.

Claims

1. A business processing method, characterized in that: Applied to a business processing engine, the business processing engine is configured with a node tree structure, the node tree structure includes a plurality of service nodes, at least one service node is configured as a node that terminates operation, and the business processing method includes: Obtain the original domain model of the target business; Taking the first service node in the node tree structure as the current node, and adjusting the business data of the original domain model based on the current node; If the current node is not a node that has terminated operation, determining an operating node from among the child nodes of the current node based on the adjusted original domain model, wherein the child node is the service node that is connected to the current node and is located at a lower layer of the current node in the node number structure; The running node is used as a new current node, and the business data of the original domain model is adjusted again until the current node is a node that terminates operation, the adjusted original domain model is determined as the target domain model, and the target domain model is output.

2. The service processing method according to claim 1, characterized in that: If the current node is not a node that has terminated operation, determining an operating node from among the child nodes of the current node based on the adjusted original domain model includes: For any child node of the current node, if the current node is not a node that has terminated operation, and the child node of the current node is used to perform a conditional judgment task, determine a conditional judgment result of the conditional judgment task based on the adjusted original domain model; When the condition judgment result indicates that the condition is met, the child node of the current node is determined as the running node.

3. The service processing method according to claim 2, characterized in that: The step of taking the running node as a new current node and adjusting the business data of the original domain model again includes: When the running node is used to execute a non-conditional judgment task, and the child node of the running node is used to execute the non-conditional judgment task, a logic unit is constructed based on the running node and the child node of the running node, and business data adjustment is performed on the original domain model based on the logic unit; Alternatively, when the running node is used to execute a non-conditional judgment task, and the child node of the running node is used to execute a conditional judgment task, the running node is used as a new current node, and the business data of the original domain model is adjusted again.

4. The service processing method according to claim 3, characterized in that: The business processing engine is configured with a task cache queue associated with the node tree structure, and the logic unit is constructed based on the running node and the sub-nodes of the running node, including: Adding the running node and the child nodes of the running node to the task cache queue in sequence; Based on the task cache queue, a logical unit is constructed.

5. The service processing method according to claim 4, characterized in that: The service node includes built-in functions and expressions, and the logical unit is constructed based on the task cache queue, including: For the running node and the child nodes of the running node in the task cache queue, mapping the built-in function to a first execution fragment and mapping the expression to a second execution fragment; The first execution fragment and the second execution fragment are combined to construct a logic unit.

6. The service processing method according to claim 1, characterized in that: The service node includes a prompt node, and the adjusting the business data of the original domain model based on the current node includes: When the current node is a prompt node, adjusting the business data of the original domain model based on the current node; Information is extracted from the adjusted original domain model based on the current node to generate prompt information.

7. The service processing method according to claim 1, characterized in that: The original domain model includes a plurality of business data entities, and the business processing method further includes: In response to a viewing instruction carrying a target data entity, determining an associated data entity associated with the target data entity from among the plurality of business data entities, wherein the target data entity is one of the business data entities; Based on the target data entity, extracting data from the original domain model and the adjusted original domain model to obtain a first data set of the target data entity; Based on the associated data entity, extracting data from the original domain model and the adjusted original domain model to obtain a second data set of the associated data entity; Based on the first data set and the second data set, a data presentation graph of the target data entity is generated, and the data presentation graph is sent.

8. A service processing device, characterized in that: Applied to a business processing engine, the business processing engine is configured with a node tree structure, the node tree structure includes a plurality of service nodes, at least one service node is configured as a node that terminates operation, and the business processing device includes: The acquisition module is used to obtain the original domain model of the target business; A first adjustment module, configured to take the first service node in the node tree structure as a current node, and perform business data adjustment on the original domain model based on the current node; an iteration module, configured to determine, if the current node is not a terminated node, a running node from among the child nodes of the current node based on the adjusted original domain model, wherein the child node is the service node connected to the current node and located at a lower layer of the current node in the node number structure; The second adjustment module is used to take the running node as the new current node and adjust the business data of the original domain model again until the current node is a node that terminates operation, the adjusted original domain model is determined as the target domain model, and the target domain model is output.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the business processing method described in any one of claims 1 to 7 when executing the computer program.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the business processing method described in any one of claims 1 to 7 is implemented.