Business orchestration method and device, electronic equipment, and storage medium
By constructing a directed graph model to automatically configure workflow parameters in cloud network orchestration, the problem of time-consuming and laborious configuration caused by a large number of API nodes is solved, enabling rapid design and orchestration of cloud network services.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2021-07-09
- Publication Date
- 2026-06-12
AI Technical Summary
Existing technologies in cloud network orchestration involve a large number of API nodes and input parameters, making manual configuration time-consuming and labor-intensive, which hinders the rapid design and orchestration of cloud network services.
By constructing a directed graph model and utilizing the parameter assignments and mappings of historical business processes, the workflow parameters of the business to be orchestrated can be automatically configured, reducing the amount of manual configuration work.
It improves the efficiency and accuracy of workflow parameter configuration and simplifies the design and orchestration process of cloud network services.
Smart Images

Figure CN115660245B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of network technology and security technology, and more specifically, to a service orchestration method and apparatus, electronic equipment, and computer-readable storage medium. Background Technology
[0002] Cloud network orchestration requires the rapid design and orchestration of cloud network services from end to end, thereby enabling the rapid deployment, activation, troubleshooting, and maintenance of cloud network services. During cloud network orchestration, it is necessary to perform business and network design on the workflow design state and provide centralized design and management of the design state content.
[0003] Currently, when designing workflows, multiple existing APIs (Application Programming Interfaces) or newly created APIs are often used as nodes. These are logically combined with branch nodes, start nodes, and end nodes in an orderly manner to complete the basic workflow framework for a certain business. When editing API nodes, the input parameters of the API need to be manually entered with fixed values or their sources need to be manually specified. Common sources are the input or output parameters of the upstream node (API node or start node) in the workflow. However, due to the large number of API nodes in the process and the large number of input parameters for each API, the traditional manual configuration method is time-consuming and laborious, which is not conducive to the rapid design and orchestration of cloud network services. Summary of the Invention
[0004] To address the aforementioned technical problems, embodiments of this application provide a business orchestration method and apparatus, electronic device, and computer-readable storage medium, thereby improving the efficiency and accuracy of workflow parameter configuration.
[0005] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0006] According to one aspect of the embodiments of this application, a service orchestration method is provided, comprising: logically concatenating multiple service nodes of a service to be orchestrated to obtain a logical relationship between the multiple service nodes; wherein the multiple service nodes include a first service node;
[0007] The node parameters of the first business node among the multiple business nodes are automatically configured according to the pre-built directed graph model; wherein, the parameter triplet of the second business node corresponding to the historical business is used to form the graph node of the directed graph model, the parameter mapping relationship between the node parameters of the second business node is used to form the edge between the corresponding graph nodes, and the first business node and the second business node belong to the same node type.
[0008] Based on the logical relationships between the multiple business nodes and the node parameters automatically configured for the first business node, a workflow for the business to be orchestrated is formed.
[0009] In some embodiments, automatically configuring node parameters for the first business node among the business nodes according to a pre-built directed graph model includes:
[0010] Generate the parameter triplet corresponding to the first business node among the plurality of business nodes;
[0011] Search the directed graph model for a target graph node that has the same parameter triplet as the first service node;
[0012] If the target graph node is found, then the node parameters are configured according to the parameter triplet corresponding to the first service node based on the target graph node.
[0013] In some embodiments, if the target graph node is found, configuring node parameters based on the parameter triplet corresponding to the first service node according to the target graph node includes:
[0014] Using the target graph node as the root node, a breadth-first traversal is performed in the directed graph model to obtain a set of candidate points;
[0015] Obtain all upstream nodes of the first business node in the logical relationship, filter the target nodes contained in the upstream nodes that are of the same node type as the first business node, and obtain a target node set;
[0016] Construct parameter triples for the target nodes in the target node set to obtain a triple set;
[0017] Based on all graph nodes in the candidate point set, a search is performed in the triplet set, and the first parameter triplet found in the triplet set is automatically configured.
[0018] In some embodiments, the step of performing a breadth-first traversal of the directed graph model, with the target graph node as the root node, to obtain a set of candidate nodes includes:
[0019] After performing a breadth-first traversal, the graph nodes at the same level in the directed graph model are sorted from largest to smallest according to the edge weights of the directed graph model to obtain the candidate point set; wherein, the edge weight is the number of times the parameter mapping relationship between the node parameters of the second business node appears in the historical business.
[0020] In some embodiments, the method further includes:
[0021] When the target graph node is not found, the upstream node of the first business node in the logical relationship is obtained to form a set of nodes to be configured.
[0022] Based on the parameter triplets corresponding to each service node in the set of nodes to be configured, search for target parameter triplets with the same parameter name as the first service node.
[0023] If a target parameter triple exists, then the parameters of the first service node are configured according to the target parameter triple.
[0024] In some embodiments, configuring parameters for the first service node based on the target parameter triplet includes:
[0025] Obtain the target parameter triplet corresponding to the business node that is closest to the first business node in the logical relationship, and configure the parameters of the first business node.
[0026] In some embodiments, after automatically configuring node parameters for the first node among the plurality of business nodes according to a pre-built directed graph model, the method further includes:
[0027] Identify the target first business node among the plurality of business nodes that has not configured its node parameters according to the directed graph model;
[0028] Obtain node parameters corresponding to the target first service node from the node parameter configuration terminal, wherein the node parameter configuration terminal is used to collect node parameters manually configured by the user for the target first service node.
[0029] According to one aspect of the embodiments of this application, a business orchestration apparatus is provided, including: a workflow framework module configured to logically connect multiple business nodes of a business to be orchestrated, thereby obtaining a logical relationship between the multiple business nodes;
[0030] The parameter configuration module is configured to automatically configure node parameters for the first business node in the business nodes according to a pre-built directed graph model; wherein, the parameter triplet of the second business node corresponding to the historical business is used to form the graph node of the directed graph model, the parameter mapping relationship between the node parameters of the second business node is used to form the edge between the corresponding graph nodes, and the first business node and the second business node belong to the same node type.
[0031] The workflow module is configured to form the workflow of the business to be orchestrated based on the logical relationship between the multiple business nodes and the node parameters automatically configured for the first business node.
[0032] According to one aspect of the embodiments of this application, an electronic device is provided, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, they implement the service orchestration method as described above.
[0033] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the business orchestration method as described above.
[0034] In the technical solution provided by the embodiments of this application, a directed graph model is constructed by the parameter assignment and mapping in historical business. When designing the required target workflow, some parameters in the target workflow are automatically mapped and assigned based on the directed graph model, which reduces the workload of manual configuration and improves the efficiency of workflow parameter configuration.
[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0037] Figure 1 This is a flowchart illustrating a business orchestration method as shown in an exemplary embodiment;
[0038] Figure 2 This is an exemplary embodiment illustrating the structure of a directed graph model;
[0039] Figure 3 This is an exemplary embodiment illustrating the access-side on-demand network configuration workflow structure diagram;
[0040] Figure 4 This is an exemplary embodiment illustrating the structure of a directed graph model;
[0041] Figure 5 This is an exemplary embodiment illustrating a flowchart of automatically configuring node parameters for a first business node among the business nodes based on a pre-built directed graph model;
[0042] Figure 6 This is an exemplary embodiment illustrating a flowchart of configuring node parameters based on the parameter triplet corresponding to the first service node according to the target graph node;
[0043] Figure 7 This is a flowchart illustrating a business orchestration method as shown in an exemplary embodiment;
[0044] Figure 8 This is a flowchart illustrating a business orchestration method as shown in an exemplary embodiment;
[0045] Figure 9 This is a block diagram illustrating a service orchestration apparatus in an exemplary embodiment;
[0046] Figure 10 This is a schematic diagram illustrating the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application. Detailed Implementation
[0047] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0048] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0049] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0050] It should also be noted that "multiple" as mentioned in this application refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0051] It should also be noted that, unless otherwise specified, the subscripts or superscripts in the formulas / representations in this application are only used to distinguish different representations.
[0052] A probabilistic graphical model consists of nodes (also called vertices) and links (also called edges or arcs) between them. In a probabilistic graphical model, each node represents one or a set of random variables, and the links represent the probabilistic relationships between these variables.
[0053] Probabilistic graphical models are mainly divided into two types: directed graphical models, also known as Bayesian networks, where the links are directional, as reflected in the method of linking two nodes; and undirected graphical models, also known as Markov random fields, where the links are not directional.
[0054] Please see Figure 1 , Figure 1 This is a flowchart illustrating a service orchestration method according to an exemplary embodiment. Specifically, the service orchestration method includes at least steps S110 to S150, which are described in detail below:
[0055] Step S110: Logically connect multiple service nodes of the service to be orchestrated to obtain the logical relationship between the multiple service nodes.
[0056] Select the corresponding business nodes according to the cloud network service requirements. The business nodes include API nodes, branch nodes, start nodes and end nodes. Edit the start node and end node, and then complete the definition of the input parameters and output parameters in the business nodes respectively. Finally, combine the branch nodes to logically connect the various business nodes to obtain the logical relationship between multiple business nodes, that is, the workflow framework of the business to be orchestrated.
[0057] Step S130: Automatically configure node parameters for the first business node among the multiple business nodes according to the pre-built directed graph model.
[0058] Using a pre-built directed graph model, node parameters are automatically configured for the first business node among multiple business nodes in step S110, where the first business node is an API node.
[0059] It should be noted that the pre-built directed graph model is constructed by assigning and mapping node parameters in historical business data that has been successfully orchestrated in the existing database. The parameter configuration in the historical business data can be manually configured or obtained by configuring the node parameters in the business data using other methods. No specific restrictions are imposed here.
[0060] For example, historical business can be defined as {w i |i∈[1,M]}, M is the number of historical transactions, i is the i-th historical transaction, and each historical transaction w i Use F(w) i )={P i L i} represents the set of historical business nodes Pi = {p ij |j∈[1,N]}, N represents historical business data w i The number of business nodes in the data, where j is the j-th node, and for each historical business, the business node p... ij Its parameters are S represents the parameter type, including input and output parameters, and L represents the set of relationships between historical business nodes (i.e., the set of logical relationships between historical business nodes). i ={p is p ie |p is p ie ∈P i ,is,ie∈[1,T]},T is the historical business w i The number of historical business nodes in the data, is and ie are the historical business nodes respectively. i Historical business nodes s and e in the data.
[0061] In one embodiment, a graphical model is first defined, denoted as G = {O, I}, where O = {o i |i∈[1,E]} represents the set of graph nodes in the graph model, where E is the number of graph nodes, and I={i t |t∈[1,F]} represents the set of edges in the graph model, where F is the number of edges connecting two graph nodes.
[0062] Furthermore, point o in the graph model is represented using parameter triples. i ,Right now<Api,Dir,Par> Here, Api is an API node contained in a business process, Par is a parameter in the API node, and Dir takes the value In or Out, that is, whether the parameter Par is an input parameter or an output parameter in Api.
[0063] After defining the vertices and edges in the graph model, parameter triples are constructed for different parameters of each API node in the historical business. Since there are mapping relationships between the nodes in the historical business, this is reflected in the constructed triples as follows: <Api i In, Par i >→ <Api j ,Out,Par j >Indicates that an API exists in the historical process.i Input parameters Par i Source: API j Output parameters PaT j By integrating the mapping relationships between parameters in all historical business processes, edge i in the graph model is defined. t Also construct a mapping relationship, i.e., edge i t This represents the mapping relationship between two graph nodes in a graph model, and also represents edge i. t Assign edge weights, where the edge weight is the number of times the mapping relationship corresponding to that edge appears in all historical transactions.
[0064] After assigning mapping relationships and edge weights to the edges in the graph model, a directed graph model is obtained. For details, please refer to... Figure 2 , Figure 2 A directed graph model structure diagram is shown as an exemplary embodiment. Of course, Figure 2 This is just a simple example; other structures may exist in other applications, and one should not be limited to it. Figure 2 The structure shown.
[0065] Based on the obtained directed graph model, the parameters of each API node in the workflow framework of the business to be orchestrated are searched in the directed graph model, and the node parameters of each API node in the workflow framework of the business to be orchestrated are automatically configured.
[0066] Step S150: Based on the logical relationship between the multiple business nodes and the node parameters automatically configured for the first business node, form the workflow of the business to be orchestrated.
[0067] After obtaining the workflow framework for the business to be orchestrated and configuring the parameters of the API nodes in the workflow framework, a workflow that can complete the business to be orchestrated is obtained.
[0068] Based on the service orchestration method proposed in this embodiment, taking the design of an intelligent leased line service workflow as an example, the processes involved in service activation include the access-side on-demand network configuration workflow, the access-side internet access configuration workflow, the cloud-side on-demand network configuration workflow, and the on-demand network-cloud configuration workflow. These can be combined as needed to complete the activation of cloud access, network access, and cloud-network services. The structure of the access-side on-demand network configuration workflow can be referenced. Figure 3 This includes tasks such as retrieving VSGW (gateway) and resource nodes. When configuring parameters based on a directed graph model, taking the parameter "interface ID" as an example, the constructed directed graph model references... Figure 4API nodes containing "Interface ID" include "Get Resource", "Create Sub-interface", and "Configure Sub-interface". Parameter mapping relationships also exist between nodes in the on-demand network configuration workflow on the access side. Based on the above method, the "Interface ID" parameter configuration for the corresponding interface can be completed automatically.
[0069] Therefore, this embodiment constructs a directed graph model based on the parameter assignments and mappings of API nodes in historical business processes. When designing the required target workflow, the graph model is used to recommend automatic mappings and assignments of some parameters in the target workflow, reducing manual configuration workload and improving the efficiency of workflow parameter configuration.
[0070] Figure 5 This is an exemplary embodiment of the present application illustrating a flowchart of automatically configuring node parameters for a first business node among the business nodes based on a pre-built directed graph model. For example... Figure 5 As shown, the process of automatically configuring node parameters for the first business node among the business nodes according to the pre-built directed graph model includes at least steps S510 to S550, which are described in detail below:
[0071] Step S510: Generate the parameter triplet corresponding to the first service node among the plurality of service nodes;
[0072] The first business node is the API node in the workflow framework of the business to be orchestrated. In this embodiment, the workflow framework w for the business to be orchestrated is... t Traverse its set of business nodes P t For the set of business nodes P t A certain business node p in tj Let the business node p tj The upstream node in the workflow framework for the business to be orchestrated is P. t_up ={p tk |k∈[1,j-1]}, if p tj In workflow framework w t The middle part is the API node (hereinafter referred to as the first API node), which is for each parameter of this business node. Construct a parameter triple <Api, Dir, Par>, where Api is the business node P tj The corresponding API, where Par is the parameter. The name, Dir is the parameter Position (input parameter or output parameter).
[0073] Step S530: Search the directed graph model for a target graph node that has the same parameter triplet as the first service node;
[0074] For the parameter triple o of the first API nodei =<Api,Dir,Par> The recommended parameters are obtained by searching and locating them in a pre-built directed graph model. Specifically, the search is conducted in the directed graph model to determine whether the parameter exists at position o. i Same target graph nodes.
[0075] In step S510, each construction parameter triplet of the first API node is used, and each graph node in the directed graph model is also represented by a parameter triplet. In this embodiment, in the directed graph model search, the target graph node can be obtained by searching and locating the graph nodes in the directed graph model based on the parameter triplet of the first API node.
[0076] Step S550: If the target graph node is found, configure the node parameters according to the parameter triplet corresponding to the first service node based on the target graph node.
[0077] When a target graph node is found, the parameter triplet corresponding to the first API node (i.e., the parameter triplet in the first API node that participated in the search for the target graph node) is configured according to the parameter triplet corresponding to the target graph node.
[0078] Using the methods in steps S510-S550, all first API nodes in the workflow framework of the business to be orchestrated are traversed, and parameters are configured for the first API node for which the target graph node is found.
[0079] In this embodiment, by automatically mapping and assigning values to some parameters in the target workflow based on graph model parameter recommendation, the workload of manual configuration is reduced and the efficiency of workflow parameter configuration is improved.
[0080] For example, such as Figure 6 As shown, configuring node parameters for the first service node based on the parameter triplet corresponding to the target graph node includes steps S410 to S470, which are detailed below:
[0081] Step S610: Using the target graph node as the root node, perform a breadth-first traversal in the directed graph model to obtain a set of candidate points.
[0082] After searching for a node in the target graph, a breadth-first traversal is performed in the directed graph model, using that target node as the root node, to obtain a set of candidate nodes. In this process, points at the same level can be sorted in descending order of edge weight, thereby ensuring that graph nodes with high frequency of mapping relationships in historical business are listed first.
[0083] Step S630: Obtain all upstream nodes of the first business node in the logical relationship, filter the target nodes contained in the upstream nodes that are of the same node type as the first business node, and obtain a target node set.
[0084] In this embodiment, all upstream nodes of the first API node in the logical relationship are obtained, i.e., P t_up Then filter P t_up Nodes of the same type as the first API node, i.e., in P t_up Filter all API nodes to obtain the target node set.
[0085] Step S650: Construct parameter triples for the target nodes in the target node set to obtain a triple set.
[0086] By constructing parameter triples from the parameters of all API nodes in the target node set, a parameter triple set O is obtained. t_up .
[0087] Step S670: Based on all graph nodes in the candidate point set, search the triplet set, and automatically configure the parameters of the first parameter triplet found in the triplet set.
[0088] In this embodiment, candidate point sets are selected sequentially. Points in Check if it exists in Ot_up, and select the parameter triplet set O. t_up The first successfully found parameter triplet is used as the recommended mapping parameter.
[0089] In this embodiment, the best recommended parameters are obtained by combining the graph model and the upstream node information of the business node to be assigned parameters in the target workflow, thereby improving the accuracy of workflow parameter configuration.
[0090] For example, such as Figure 7 As shown, this embodiment also provides another exemplary service orchestration method, which includes steps S710 to S750, detailed below:
[0091] Step S710: When the target graph node is not found, obtain the upstream node of the first service node in the logical relationship to form a set of nodes to be configured.
[0092] If no target graph node for the first API node is found in the directed graph model, the upstream node of the first API node in the logical relationship (workflow framework of the business to be orchestrated) is obtained to form a set of nodes to be configured.
[0093] Step S730: Based on the parameter triplets corresponding to each service node in the set of nodes to be configured, search for a target parameter triplet with the same parameter name as the first service node.
[0094] For the business node p forming the set of nodes to be configured tj Each parameter according to The name search finds nodes with the same parameter name in the set of nodes to be configured.
[0095] Specifically, each API node in the set of nodes to be configured has a pre-built parameter triplet, and a target parameter triplet with the same parameter name as the parameter triplet of the first API node is searched among all the parameter triplets in the set of nodes to be configured.
[0096] Step S750: If a target parameter triple exists, then configure the parameters for the first service node according to the target parameter triple.
[0097] If the target parameter triple is found, then the parameters are configured for the first API node.
[0098] Specifically, when multiple target parameter triples with the same parameter names as the first API node are found in the set of nodes to be configured, the target parameter triples corresponding to the business nodes closest to the first API node are selected to configure the parameters of the first API node according to the relationship between the business nodes in the workflow framework of the business to be orchestrated.
[0099] If only one target parameter triplet with the same parameter name as the parameter triplet of the first API node is found in the set of nodes to be configured, then the first API node is configured with the parameter of that target parameter triplet.
[0100] If no target parameter triple is found, no parameter configuration is performed on the first API node.
[0101] For example, such as Figure 8 As shown, this embodiment also provides another exemplary service orchestration method, which includes steps S810 to S830, detailed below:
[0102] Step S810: Determine the target first service node among the plurality of service nodes that has not configured node parameters according to the directed graph model;
[0103] Step S830: Obtain the node parameters corresponding to the target first service node from the node parameter configuration terminal, wherein the node parameter configuration terminal is used to collect the node parameters manually configured by the user for the target first service node.
[0104] Users can manually configure parameters for the first business node in the workflow framework of the business to be orchestrated that has not been configured with parameters through the parameter configuration terminal, so as to prevent the business processing capacity from being reduced or unable to process business due to the lack of parameter configuration for some business nodes in the workflow.
[0105] In this embodiment, the accuracy of workflow parameter configuration is improved by manually configuring the business nodes that do not have automatically configured parameters.
[0106] Furthermore, after obtaining the workflow through the above embodiments, the parameter configuration of the workflow is verified by simulating the operation of the workflow. After the verification is completed, the workflow is published to the running state so that the cloud network orchestrator can actually call the process.
[0107] Figure 9 This is a block diagram illustrating a service orchestration apparatus as shown in an exemplary embodiment of this application. Figure 9 As shown, the device includes:
[0108] Workflow framework module 910 is configured to logically connect multiple business nodes of the business to be orchestrated, so as to obtain the logical relationship between the multiple business nodes.
[0109] The parameter configuration module 930 is configured to automatically configure node parameters for the first business node in the business nodes according to a pre-built directed graph model; wherein, the parameter triplet of the second business node corresponding to the historical business is used to form the graph node of the directed graph model, the parameter mapping relationship between the node parameters of the second business node is used to form the edge between the corresponding graph nodes, and the first business node and the second business node belong to the same node type.
[0110] Workflow module 950 is configured to form a workflow for the business to be orchestrated based on the logical relationship between the multiple business nodes and the node parameters automatically configured for the first business node.
[0111] In another exemplary embodiment, the parameter configuration module includes:
[0112] The first parameter triplet acquisition unit is configured to generate a parameter triplet corresponding to the first business node among the plurality of business nodes;
[0113] The target graph node search unit is configured to search for target graph nodes in the directed graph model that have the same parameter triplet as the first service node;
[0114] The first target parameter configuration unit is configured to configure node parameters for the parameter triplet corresponding to the first service node based on the target graph node if the target graph node is found.
[0115] In another exemplary embodiment, the target parameter configuration unit includes:
[0116] The candidate point set is obtained by sub-units, configured to perform a breadth-first traversal in the directed graph model with the target graph node as the root node, to obtain the candidate point set.
[0117] The target node set acquisition subunit is configured to acquire all upstream nodes of the first business node in the logical relationship, filter the upstream nodes to obtain target nodes of the same type as the first business node, and obtain the target node set.
[0118] The triplet set is obtained by acquiring the sub-unit, configuring it as the target node construction parameter triplet in the target node set, and obtaining the triplet set.
[0119] The automatic parameter configuration subunit is configured to search the triplet set based on all graph nodes in the candidate point set, and to automatically configure the parameters of the first parameter triplet found in the triplet set.
[0120] In another exemplary embodiment, the parameter configuration module further includes:
[0121] The node set acquisition unit is configured to acquire the upstream node of the first business node in the logical relationship when the target graph node is not found, and form a node set to be configured.
[0122] The second parameter triplet acquisition unit is configured to search for a target parameter triplet with the same parameter name as the first service node based on the parameter triplets corresponding to each service node in the node set to be configured.
[0123] The second target parameter configuration unit is configured to configure parameters for the first service node based on the target parameter triplet if a target parameter triplet exists.
[0124] In another exemplary embodiment, the service orchestration apparatus further includes:
[0125] The parameter detection module is configured to determine the first target business node among the plurality of business nodes that has not configured node parameters according to the directed graph model;
[0126] The manual parameter configuration module is configured to obtain node parameters corresponding to the target first business node from the node parameter configuration terminal, wherein the node parameter configuration terminal is used to collect the node parameters manually configured by the user for the target first node.
[0127] It should be noted that the apparatus provided in the above embodiments and the method provided in the above embodiments belong to the same concept, and the specific way in which each module and unit performs operations has been described in detail in the method embodiments, and will not be repeated here.
[0128] Embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions that, when executed by the processor, implement the business orchestration method as described above.
[0129] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0130] It should be noted that, Figure 10 The computer system 1600 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0131] like Figure 10 As shown, the computer system 1600 includes a Central Processing Unit (CPU) 1601, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1602 or programs loaded from storage portion 1608 into Random Access Memory (RAM) 1603, such as performing the methods described in the above embodiments. Various programs and data required for system operation are also stored in RAM 1603. The CPU 1601, ROM 1602, and RAM 1603 are interconnected via bus 1604. An Input / Output (I / O) interface 1605 is also connected to bus 1604.
[0132] The following components are connected to I / O interface 1605: an input section 1606 including a keyboard, mouse, etc.; an output section 1607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1608 including a hard disk, etc.; and a communication section 1609 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1609 performs communication processing via a network such as the Internet. A drive 1610 is also connected to I / O interface 1605 as needed. Removable media 1611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1610 as needed so that computer programs read from them can be installed into storage section 1608 as needed.
[0133] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1609, and / or installed from removable medium 1611. When the computer program is executed by central processing unit (CPU) 1601, it performs various functions defined in the system of this application.
[0134] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0135] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0136] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0137] Another aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the business orchestration method as described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.
[0138] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various embodiments described above.
[0139] The above description is merely a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.
Claims
1. A business orchestration method, characterized in that, include: Logically connect multiple business nodes of the business to be orchestrated to obtain the logical relationship between the multiple business nodes; The multiple service nodes include a first service node; Generate a parameter triplet corresponding to the first business node among the plurality of business nodes; wherein the parameter triplet includes the application programming interface corresponding to the business node, the parameter name of the business node, and the parameter position of the business node; Search for target graph nodes in a pre-constructed directed graph model that have the same parameter triplet as the first business node; wherein, the graph nodes of the directed graph model are formed by the parameter triplet of the second business node in the historical business, and the parameter mapping relationship between the node parameters of the second business node is used to form the edges between the corresponding graph nodes, and the first business node and the second business node belong to the same node type. If the target graph node is found, then the node parameters are configured according to the parameter triplet corresponding to the first service node based on the target graph node; Based on the logical relationships between the multiple business nodes and the node parameters automatically configured for the first business node, a workflow for the business to be orchestrated is formed.
2. The method according to claim 1, characterized in that, The step of configuring node parameters based on the parameter triplet corresponding to the first service node according to the target graph node includes: Using the target graph node as the root node, a breadth-first traversal is performed in the directed graph model to obtain a set of candidate points; Obtain all upstream nodes of the first business node in the logical relationship, filter the target nodes contained in the upstream nodes that are of the same node type as the first business node, and obtain a target node set; Construct parameter triples for the target nodes in the target node set to obtain a triple set; Based on all graph nodes in the candidate point set, a search is performed in the triplet set, and the first parameter triplet found in the triplet set is automatically configured.
3. The method according to claim 2, characterized in that, The process involves using the target graph node as the root node and performing a breadth-first traversal in the directed graph model to obtain a set of candidate points, including: After performing a breadth-first traversal, the graph nodes at the same level in the directed graph model are sorted from largest to smallest according to the edge weights of the directed graph model to obtain the candidate point set; wherein, the edge weight is the number of times the parameter mapping relationship between the node parameters of the second business node appears in the historical business.
4. The method according to claim 1, characterized in that, The method further includes: When the target graph node is not found, the upstream node of the first business node in the logical relationship is obtained to form a set of nodes to be configured. Based on the parameter triplets corresponding to each service node in the set of nodes to be configured, search for target parameter triplets with the same parameter name as the first service node. If a target parameter triple exists, then the parameters of the first service node are configured according to the target parameter triple.
5. The method according to claim 4, characterized in that, The step of configuring parameters for the first service node based on the target parameter triplet includes: Obtain the target parameter triplet corresponding to the business node that is closest to the first business node in the logical relationship, and configure the parameters of the first business node.
6. The method according to any one of claims 1-5, characterized in that, After automatically configuring node parameters for the first node among the plurality of business nodes according to the pre-built directed graph model, the method further includes: Identify the target first business node among the plurality of business nodes that has not configured its node parameters according to the directed graph model; Obtain node parameters corresponding to the target first service node from the node parameter configuration terminal, wherein the node parameter configuration terminal is used to collect node parameters manually configured by the user for the target first service node.
7. A service orchestration apparatus, characterized in that, include: The workflow framework module is configured to logically connect multiple business nodes of the business to be orchestrated, thereby obtaining the logical relationship between the multiple business nodes; The parameter configuration module is configured to generate a parameter triplet corresponding to the first business node among the plurality of business nodes; wherein the parameter triplet includes the application programming interface corresponding to the business node, the parameter name of the business node, and the parameter position of the business node; search for a target graph node in a pre-constructed directed graph model that has the same parameter triplet as the first business node; wherein the parameter triplet of the second business node corresponding to the historical business is used to form the graph node of the directed graph model, the parameter mapping relationship between the node parameters of the second business node is used to form the edges between the corresponding graph nodes, and the first business node and the second business node belong to the same node type; if the target graph node is found, then the node parameters of the parameter triplet corresponding to the first business node are configured according to the target graph node; The workflow module is configured to form the workflow of the business to be orchestrated based on the logical relationship between the multiple business nodes and the node parameters automatically configured for the first business node.
8. An electronic device, characterized in that, include: Memory, which stores computer-readable instructions; A processor reads computer-readable instructions stored in memory to perform the method described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by the processor of a computer, cause the computer to perform the method described in any one of claims 1-6.