Service orchestration method and device, electronic equipment, storage medium and product
The service orchestration method and device enable flexible and secure creation of service units with advanced node configurations, addressing limitations in current tools by supporting personalized service creation and secure data transmission.
Patent Information
- Application Number
- CN202411083468.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-12-03
AI Technical Summary
Current service orchestration tools lack flexibility and security, failing to support personalized service creation methods, secure data transmission, and complex node configurations.
A method and device for service orchestration that allows creating service units with preset methods, including start and end nodes, basic and conditional nodes, and configuring node parameters with encryption and decryption strategies, supporting branch, assignment, and waiting nodes, and enabling secure data transmission.
Enhances flexibility and personalization in service orchestration, improves data security, and supports diverse user needs by allowing comprehensive and secure configuration of service units.
Smart Images

Figure CN119065653A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a service orchestration method, device, electronic device, storage medium and product. Background Art
[0002] With the continuous improvement of the complexity of data service systems and the rapid development of scenario-based services, users' business needs for service configuration are also constantly changing. This requires relevant combinations of single simple services according to different business scenarios and business rules in order to better monitor and manage the entire service process and ensure the stability and reliability of the service process, thus forming corresponding service orchestration tools; low-code platforms and various visualization tools are emerging in an endless stream, and developers combine them with service orchestration tools to form a visual orchestration platform, which greatly improves development efficiency.
[0003] However, the service types involved in individual services in the service orchestration tools currently on the market are very simple, and do not support users' personalized service creation methods; the security level is low and cannot guarantee the security and privacy of sensitive data; the node types are relatively simple and do not support the configuration of personalized nodes such as waiting nodes and assignment nodes. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a service orchestration method, device, electronic device, storage medium and product, which can enhance the flexibility of creating service units, improve data security, and meet the diverse needs of users.
[0005] In order to achieve the above objectives, the technical solutions provided by the embodiments of the present disclosure are as follows:
[0006] In a first aspect, the present disclosure provides a service orchestration method, comprising:
[0007] Create service units by presetting;
[0008] For the service unit, render the start node and the end node, arrange the basic node and the conditional node, and configure the node parameters; wherein the conditional node includes at least one of a branch node, an assignment node, and a waiting node, and the node parameters include a request parameter, a return parameter, and a corresponding pre-selected encryption and decryption strategy;
[0009] Configure the connection relationship between the start node, basic node, condition node and end node to obtain the orchestration service;
[0010] After testing the orchestration service, release the orchestration service.
[0011] As an optional implementation of the embodiment of the present disclosure, the preset method includes any one of the following: a data table, a data set, a custom structured query language SQL statement, a registration interface, a quick data table and a file resource.
[0012] As an optional implementation of the embodiment of the present disclosure, after creating a service unit in a preset manner, and for the service unit, rendering the start node and the end node, arranging the basic nodes and the conditional nodes, and before configuring the node parameters, the method also includes: configuring the parameters of the service unit, including the service name, service category, service address, service label, service description and service parameters, and security policy; wherein the service parameters include the interface protocol, request method and return type; the security policy includes the call frequency, security group, anti-replay switch, and return result encryption.
[0013] As an optional implementation of the embodiment of the present disclosure, for a service unit, rendering a start node and an end node, arranging basic nodes and conditional nodes, and configuring node parameters include executing the following steps for the service unit: rendering a start node and an end node, configuring parameters of the start node, including header parameters and request parameters and pre-selected encryption and decryption strategies corresponding to the request parameters; selecting a basic node, configuring parameters of the basic node, including request parameters and return parameters, and corresponding pre-selected encryption and decryption strategies; the basic node includes a data programming interface node and an external programming interface node; selecting a conditional node, configuring parameters of the conditional node, including branch parameters, assignment parameters and waiting parameters; wherein the branch parameters include a judgment parameter, an operator and a judgment value; the assignment parameters include a parameter name and a parameter value; and the waiting parameters include a waiting time.
[0014] As an optional implementation of the embodiment of the present disclosure, after configuring the connection relationship between the start node, the basic node, the conditional node and the end node, obtaining the orchestration service, and after testing the orchestration service, before publishing the orchestration service, the method also includes: testing the orchestration service to send an orchestration service request to the server to obtain a test result, and the test result includes a return result and a test log.
[0015] As an optional implementation of the embodiment of the present disclosure, after the orchestration service is tested, the orchestration service is released, including: after the return result indicates that the server successfully responds to the orchestration service request, the orchestration service is released.
[0016] In a second aspect, the present disclosure provides a service orchestration device, the device comprising:
[0017] A creation module, used to create a service unit in a preset manner;
[0018] A configuration module, for rendering start nodes and end nodes, arranging basic nodes and conditional nodes, and configuring node parameters for a service unit; wherein the conditional node includes at least one of a branch node, an assignment node, and a waiting node, and the node parameters include a request parameter, a return parameter, and a corresponding pre-selected encryption and decryption strategy;
[0019] A connection module is used to configure the connection relationship between the start node, the basic node, the condition node and the end node to obtain the orchestration service;
[0020] The test release module is used to release the orchestration service after testing the orchestration service.
[0021] As an optional implementation of the embodiment of the present disclosure, the preset method includes any one of the following: a data table, a data set, a custom structured query language SQL statement, a registration interface, a quick data table and a file resource.
[0022] As an optional implementation of the embodiment of the present disclosure, the configuration module is also used to: configure the parameters of the service unit, including service name, service category, service address, service label, service description and service parameters, and security policy; wherein the service parameters include interface protocol, request method and return type; the security policy includes call frequency, security group, anti-replay switch, and return result encryption.
[0023] As an optional implementation mode of the embodiment of the present disclosure, the configuration module is specifically used to perform the following steps for the service unit: rendering the start node and the end node, configuring the parameters of the start node, including the header parameters and the request parameters and the pre-selected encryption and decryption strategy corresponding to the request parameters; selecting the basic node, configuring the parameters of the basic node, including the request parameters and the return parameters, and the corresponding pre-selected encryption and decryption strategy; the basic node includes the data programming interface node and the external programming interface node; selecting the conditional node, configuring the parameters of the conditional node, including the branch parameter, the assignment parameter and the waiting parameter; wherein the branch parameter includes the judgment parameter, the operator and the judgment value; the assignment parameter includes the parameter name and the parameter value; the waiting parameter includes the waiting time.
[0024] As an optional implementation of the embodiment of the present disclosure, the test publishing module is further used to: test the orchestration service to send an orchestration service request to the server to obtain a test result, and the test result includes a return result and a test log.
[0025] As an optional implementation of the embodiment of the present disclosure, the test publishing module is further used to: publish the orchestration service after the returned result indicates that the server successfully responds to the orchestration service request.
[0026] In a third aspect, the present disclosure provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the service orchestration method as described in the first aspect or any optional implementation manner thereof is implemented.
[0027] In a fourth aspect, the present disclosure provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the service orchestration method as described in the first aspect or any optional implementation manner thereof is implemented.
[0028] In a fifth aspect, the present disclosure provides a computer program product, including: the computer program product includes a computer program, and when the computer program runs on a computer, the computer implements the service orchestration method as described in the first aspect or any optional implementation manner thereof.
[0029] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0030] The embodiment of the present disclosure provides a service arrangement method, device, electronic device, storage medium and product, wherein the method first creates a service unit by a preset method, renders a start node and an end node for the service unit, arranges the basic stage and conditional node and configures the node parameters, the arranged conditional node is at least one of a branch node, an assignment node and a waiting node, and the configured node parameters include a request parameter, a return parameter and a corresponding pre-selected encryption and decryption strategy; then configures the connection relationship between the start node, the basic node, the conditional node and the end node, obtains the arrangement service, and then releases it after testing the arrangement service. In this way, the present disclosure supports users to create service units by a variety of preset methods, expands the user's operation options and application scenarios, meets the diverse user needs, and makes the visual arrangement service more comprehensive, safe and flexible; supports the configuration of conditional nodes including branch, assignment and waiting types, improves the richness of node types in the service arrangement process, thereby increasing the user's freedom of process design and improving the personalization of service arrangement; node parameters in the service unit support encryption and decryption, and improves data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0033] Figure 1 A flow chart of a service orchestration method provided in an embodiment of the present disclosure;
[0034] Figure 2A A schematic diagram of a service orchestration interface provided in an embodiment of the present disclosure Figure 1 ;
[0035] Figure 2B Schematic diagram 2 of the service orchestration interface provided for the embodiment of the present disclosure;
[0036] Figure 2C Schematic diagram 3 of the service orchestration interface provided for the embodiment of the present disclosure;
[0037] Figure 3A Schematic diagram of the service orchestration interface corresponding to the basic node provided in the embodiment of the present disclosure Figure 1 ;
[0038] Figure 3B Schematic diagram 2 of the service orchestration interface corresponding to the basic node provided in the embodiment of the present disclosure;
[0039] Figure 3C Schematic diagram 3 of the service orchestration interface corresponding to the basic node provided in the embodiment of the present disclosure;
[0040] Figure 4A Schematic diagram of node connection in the service orchestration interface provided in the embodiment of the present disclosure Figure 1 ;
[0041] Figure 4B Schematic diagram 2 of node connection in the service orchestration interface provided in an embodiment of the present disclosure;
[0042] Figure 4C Schematic diagram 3 of node connection in the service orchestration interface provided in an embodiment of the present disclosure;
[0043] Figure 5A A schematic diagram of a service orchestration interface corresponding to a branch node provided in an embodiment of the present disclosure;
[0044] Figure 5B A schematic diagram of a service orchestration interface corresponding to a waiting node provided in an embodiment of the present disclosure;
[0045] Figure 5C A schematic diagram of a service orchestration interface corresponding to a value assignment node provided in an embodiment of the present disclosure;
[0046] Figure 6 A schematic diagram of an orchestration service provided by an embodiment of the present disclosure;
[0047] Fig. 7A Schematic diagram of the test window provided in the embodiment of the present disclosure Figure 1 ;
[0048] Figure 7B Schematic diagram 2 of a test window provided for an embodiment of the present disclosure;
[0049] Figure 8 A schematic diagram of the structure of a service orchestration device provided in an embodiment of the present disclosure;
[0050] Fig. 9 The present invention is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the technical terms required to be used in the embodiments or the prior art description are briefly introduced below:
[0052] Service orchestration: is the ability to develop services through simple drag-and-drop process orchestration and parameter configuration, and supports the re-combination and orchestration of developed service units. Users can quickly develop services and expand richer business functions in the form of graphical orchestration in the service orchestration editor, and can bind with the Application Programming Interface (API) interface to provide services to the outside in the form of API.
[0053] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0055] In order to solve some or all of the technical problems existing in the related art, the embodiment of the present disclosure provides a service arrangement method, device, electronic device, storage medium and product, wherein the method first creates a service unit by a preset method, renders a start node and an end node for the service unit, and arranges the basic stage and conditional node and configures the node parameters, the arranged conditional node is at least one of a branch node, an assignment node and a waiting node, and the configured node parameters include a request parameter, a return parameter and a corresponding pre-selected encryption and decryption strategy; then configures the connection relationship between the start node, the basic node, the conditional node and the end node, obtains the arrangement service, and then releases it after testing the arrangement service. In this way, the present disclosure supports users to create service units by a variety of preset methods, expands the user's operation selection and application scenarios, meets the diverse user needs, and makes the visual arrangement service more comprehensive, safe and flexible; supports the configuration of conditional nodes including branch, assignment and waiting types, improves the richness of node types in the service arrangement process, thereby increasing the user's process design freedom and improving the personalization of service arrangement; the node parameters in the service unit support encryption and decryption, and improves data security.
[0056] A service orchestration method provided in the embodiments of the present disclosure can be implemented by a service orchestration device or an electronic device, and the electronic device includes but is not limited to a server, a personal computer, a laptop computer, a tablet computer, a smart phone, etc. The operating system of the electronic device may include Android, a mobile operating system (iOS) developed by Apple, an operating system (Windows) developed by Microsoft Corporation of the United States, etc., and the embodiments of the present disclosure are not limited to this. The electronic device can be operated alone to implement the present disclosure, or it can be connected to a network and implement the present disclosure through interactive operations with other computer devices in the network. Among them, the network in which the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN) network, etc.
[0057] It should be noted that the protection scope of the service orchestration method described in the embodiment of the present disclosure is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present disclosure are included in the protection scope of the present disclosure.
[0058] like Figure 1 As shown, Figure 1 This is a flow chart of a service orchestration method according to an embodiment of the present disclosure. The method may be executed by a service orchestration device, wherein the device may be implemented using software and / or hardware and may generally be integrated into an electronic device.
[0059] like Figure 1As shown, the method mainly includes the following steps S101 to S104:
[0060] S101. Create a service unit in a preset manner.
[0061] In some embodiments, the preset method includes any of the following: a data table, a data set, a custom structured query language SQL statement, a registration interface, a quick data table, and a file resource. Among them, Structured Query Language (SQL) is a standardized query language for managing relational database systems. SQL allows users to retrieve, insert, update, and delete data from a database, as well as manage the structure and mode of a database. SQL is a powerful and versatile language that is widely used in various relational database management systems (RDBMS), such as MySQL, PostgreSQL, Oracle, SQL Server, etc.
[0062] Specifically, when creating a service unit, you can create it through any one of the data table, data set, custom SQL statement, registration interface, quick data table and file resource. For example, you can create a service unit by customizing SQL statement, or registering a third-party interface to create a service unit, or you can choose a quick data table to complete the creation of the service unit, or you can choose multiple file resources to complete the creation of the service unit.
[0063] The above embodiments support the creation of service units through various methods such as data tables, data sets, custom SQL statements, registration interfaces, quick data tables, file resources, etc., making the visual orchestration service more comprehensive, secure and flexible, which is conducive to improving the flexibility of service orchestration, meeting the needs of users to create personalized service units, and expanding users' operation options and application scenarios.
[0064] S102: For the service unit, render the start node and the end node, arrange the basic nodes and the conditional nodes, and configure the node parameters.
[0065] Among them, the role of the start node is to ensure that the process can be gradually carried out according to the predetermined logic and steps, so as to achieve the expected goals and results. The end node is used to mark the end point of the process, ensuring that all steps and activities are completed according to the preset logic and sequence. The setting of the start node and the end node in the process design of the service unit together constitute the basic framework of the process, ensuring that the start and end of the process are clearly marked, which is of great significance for ensuring the effective execution of the process and the convenience of management. The start node does not allow inflow lines, and the end node does not allow outflow lines. This design principle ensures a single entrance and a single exit for the process, simplifying the management and maintenance of the process.
[0066] Basic nodes include data programming interface nodes (data API nodes) and external programming interface nodes (external API nodes). Among them, the data programming interface node is an interface for communication and data exchange between two separate software systems. It is usually used to implement scenarios in business processes that require data interaction with other systems, such as order processing, customer information updates, etc. The data API node can ensure the accuracy and consistency of the data while improving the automation and efficiency of the business process. The external programming interface node refers to an interface provided by a service or application for external systems or applications to interact with and exchange data with it. Among them, the Application Programming Interface (API) is a programming interface that allows applications to access and manipulate data. Through the data API, developers can communicate with the data source through predefined request and response formats, thereby realizing data reading, writing, updating and deleting operations.
[0067] The conditional node includes at least one of a branch node, an assignment node, and a waiting node. It is understandable that the present disclosure provides multiple types of conditional nodes, including branch, assignment, and waiting, which are rich in types and can support multiple personalized scene services.
[0068] Conditional nodes are often used for process control and decision making. In programming and process design, conditional nodes determine the execution path of a program or process based on whether a specific condition is true or not. Among them, branch nodes are often used to describe control flow structures in computer science, especially nodes that select different paths based on conditions during program execution. In programming, branch nodes usually refer to conditional statements (such as if statements), which determine different branches of program execution based on the truth or falsehood of the conditions. Assignment nodes usually refer to an operation in programming that assigns (i.e., assigns) a value or expression to the location of a variable, attribute, or other data structure. Waiting nodes refer to a special type of node that pauses or delays execution under certain conditions until a specific condition is met. Waiting nodes can be divided into conditional waiting and delayed waiting. Conditional waiting means that after a period of time, the node will continue to execute if a specific condition is met, otherwise it will continue to wait; delayed waiting means that after a period of time, the node will continue to execute regardless of whether the condition is met.
[0069] Node parameters include request parameters, return parameters, and corresponding pre-selected encryption and decryption strategies. The pre-selected encryption and decryption strategy performs encryption and decryption operations on request parameters and return parameters to ensure the security of data transmission. Node parameters also include basic information of each node, which will be described in detail later. Different nodes have different parameters.
[0070] The pre-selected encryption and decryption strategies include but are not limited to: at least one of an encryption algorithm, an SM4 encryption algorithm, a 3DES algorithm, an RSA algorithm, an AES algorithm, and a DEC decryption algorithm.
[0071] Encryption algorithm: contains test_Des, a symmetric encryption algorithm, which is usually used for data encryption and decryption. DES is a block encryption algorithm based on a 56-bit key. It divides 64-bit input data into 64-bit data blocks and then encrypts each data block. The encryption process of the DES algorithm includes initial permutation, 16 rounds of Feistel network operations, and final permutation. During the decryption process, the encryption process is reversed and the same key is used for decryption operations. Because each 8th bit is used for parity check; the 64-bit plaintext is divided into left and right parts, and encrypted through 16 rounds of Feistel network operations.
[0072] The SM4 encryption algorithm is a symmetric encryption algorithm, also known as the national secret algorithm. It was proposed by Chinese cryptographers and is widely used in China's commercial encryption standards. The SM4 algorithm is a block cipher algorithm that supports 128-bit keys and 128-bit block lengths, including round functions, key expansion, and encryption and decryption steps. Its features include support for 128-bit keys, providing higher security; a block length of 128 bits, suitable for most application scenarios; including nonlinear S-box transformations, linear transformations, and round key addition operations; it has good obfuscation and diffusion characteristics and can resist common cryptanalysis attacks.
[0073] 3DES algorithm, 3DES improves security by encrypting data using the DES algorithm three times, while retaining the structure and algorithm of DES. Using a 24-byte key (usually composed of three 8-byte subkeys), the plaintext data is encrypted with the first subkey, decrypted with the second subkey, and encrypted with the third subkey, thus completing a round of encryption and decryption operations.
[0074] The RSA algorithm is mainly used in the fields of secure communication such as encryption and decryption of data, digital signatures and key exchange. The RSA algorithm can use the public key to encrypt data, and only the entity holding the corresponding private key can decrypt and read the data; this encryption method protects the confidentiality of the data and ensures that only authorized entities can access the data. The RSA algorithm can use the private key to sign the data to verify the integrity and authenticity of the data; the recipient can use the corresponding public key to verify the signature to ensure that the data has not been tampered with. The RSA algorithm can be used to securely exchange keys for symmetric encryption algorithms; the communicating parties can use the RSA algorithm to negotiate the session key, and then use the symmetric encryption algorithm to encrypt the communication data, improving the efficiency and security of communication.
[0075] The AES algorithm uses a fixed-length key to encrypt and decrypt data, and supports three key lengths: 128 bits, 192 bits, and 256 bits. The plaintext data is divided into fixed-length data blocks (128 bits), each of which is called a state; the implementation process is that at the beginning, the plaintext data block is subjected to a bitwise XOR operation with the key. After multiple rounds of round function (SubBytes, ShiftRows, MixColumns, AddRoundKey) operations, each round of operation includes byte replacement, row shift, column confusion, and round key addition operations on the state. After the last round of operations, the encrypted data block is output as ciphertext. The AES algorithm is highly secure, efficient, and flexible.
[0076] DEC decryption algorithm, the decryption algorithm is the same as the encryption algorithm, but the inverse operation is performed in the process of using the key. The steps of the DEC decryption algorithm are as follows: 1. Use the same key to decrypt the ciphertext. 2. Divide the ciphertext into data blocks of fixed length. 3. Apply the decryption algorithm to each data block, usually the inverse operation of DES. 4. Finally, the decrypted plaintext data is obtained. The key to the DEC decryption algorithm is to use the same key as the encryption, and apply the inverse operation of the encryption algorithm in the reverse order.
[0077] In some embodiments, after executing step S101 (creating a service unit in a preset manner) and before executing step S102 (rendering the start node and the end node, arranging the basic nodes and the conditional nodes, and configuring the node parameters for the service unit), the encryption and decryption strategies corresponding to the request parameters and the return parameters are pre-selected to facilitate direct configuration during the subsequent arrangement of the combined nodes, thereby ensuring the security of data transmission and improving data security.
[0078] In some embodiments, after executing step S101 (creating a service unit in a preset manner) and before executing step S102 (rendering the start node and the end node, arranging the basic nodes and the conditional nodes, and configuring the node parameters for the service unit), the parameters of the service unit are also configured. The parameters of the service unit include: service name, service category, service address, service label, service description and service parameters, and security policy. Among them, the service parameters include interface protocol, request method and return type; the security policy includes call frequency, security group, anti-replay switch, and return result encryption. It should be noted that anti-replay refers to preventing operating elements such as buttons on the user interface from being illegally or accidentally clicked repeatedly.
[0079] like Figure 2A As shown, Figure 2A A schematic diagram of a service orchestration interface provided in an embodiment of the present disclosure Figure 1 , the service arrangement interface diagram includes a new window, which is a floating window on the right side of the service arrangement interface. The new window includes a basic information area 201, a service parameter area 202, and a security policy area 203. Among them, the basic information area 201 includes the following operation elements: service name input box, service classification option, service address input box, service tag input box, service description input box; the service parameter area 202 includes the following operation elements: interface protocol option, request method option and return type option; the security policy area 203 includes the following operation elements: call frequency input box, security group option, anti-replay switch and return result encryption option.
[0080] For example, the user can Figure 2AIn the new window shown, edit the service name "Test Service Orchestration", service address " / ceshi", service label, service description "ceshi" and call frequency "100 times / second", select service type "11111 / 11111", interface protocol "HTTP", request method "GET", return type "JSON", security group and return result encryption. After editing and selecting various parameters, click the OK control to complete the configuration of the service unit parameters.
[0081] In some embodiments, the process of executing step S102 (rendering the start node and the end node, arranging the basic node and the conditional node, and configuring the node parameters for the service unit) includes executing the following steps S1021 to S1023 for the service unit:
[0082] S1021 . Render the start node and the end node, and configure the parameters of the start node.
[0083] The parameters of the start node include: header parameters and request parameters, as well as the pre-selected encryption and decryption strategies corresponding to the request parameters. Headers are a block of information containing metadata that describes the properties and characteristics of a request or response. Headers are usually organized in the form of key-value pairs, where the key represents the name of the attribute and the value represents the value of the attribute. Headers can contain various information, such as content type, content length, authorization information, cache control, user agent, etc. Developers can control the behavior of requests and responses by setting and parsing Headers to meet customized communication needs.
[0084] When executing step S1021, if Figure 2B As shown, Figure 2B Schematic diagram 2 of the service orchestration interface provided for the embodiment of the present disclosure shows a component bar 211 and a canvas 212, which supports users to layout components on the canvas 212 by dragging and dropping to achieve visual orchestration. Among them, the component bar 211 includes basic components and process events, the basic components include data API and external interface API, and the process events include branch components, assignment components and waiting components. With reference to the foregoing, the data API corresponds to the data API node, the external interface API corresponds to the external API node, the branch component corresponds to the branch node, the assignment component corresponds to the assignment node, and the waiting component corresponds to the waiting node. The diagram is for exemplary purposes only. Figure 2B The service orchestration interface shown in the figure renders the start node and the end node. Both the start node and the end node support user operations.
[0085] After selecting the start node, the parameter configuration window of the start node is displayed on the service orchestration node, such as Figure 2CAs shown, the parameter configuration window of the start node includes: basic information area 221, request parameter area 222 and Headers area (in Figure 2C The basic information area includes a node name input box. The node name of the start node is the default and is set to "Start". The request parameter area includes a parameter name option, a parameter type option, a mandatory check option and a description input box, as well as a new row of controls.
[0086] Exemplarily, when performing step S1021 to render the start node and the end node and configuring the parameters of the start node, such as Figure 2B Render the start node and end node on the canvas as shown. Double-click the "start node" to switch to Figure 2C The parameter configuration window shown completes the configuration of the request parameters of the start node in response to the user's selection of the parameter name "inpParams", the parameter type "string", the check of whether it is required, and the input of the description content "input parameter".
[0087] S1022. Select a basic node and configure parameters of the basic node.
[0088] The parameters of the basic node include: request parameters and return parameters, as well as the corresponding pre-selected encryption and decryption strategies.
[0089] refer to Figure 3A As shown, when executing step S1022, in response to the user dragging a basic component (such as data API node 1) in the component bar 211, the basic node is selected; when the basic component is dragged onto the canvas 212, the Figure 3B As shown, the parameter editing window of the basic node includes a basic information area 231, a request parameter area 232 and a return parameter area; the basic information area includes a node name input box, a node alias input box, and a data API option; the request parameter area includes: batch setting request source control, parameter name, parameter Chinese name, parameter type, whether it is required or not, request data source option, source API input box and reference parameter input box; as shown Figure 3C As shown, the return parameter area 233 includes a batch setting output result control, a parameter name input box, a parameter Chinese name input box and an output result option.
[0090] For example, after the user drags the basic node (data API node 1) onto the canvas 212, Figure 3BThe parameter editing window shown configures the parameters of the basic node. The node name is the default value "Data API Node 1", the node alias is set to "Data API Node 1", the data API is selected as "Data Table Service / test001 Query Service", the parameter name is "id", the parameter Chinese name is "id", the parameter type is "STRING", whether it is required is "No", and the request data source option is "Do not enter data". Figure 3C In the parameter editing window shown, set the return parameter. The parameter name is "id", the parameter Chinese name is "id", and the output result option is "output result to the calling end"; the parameter name is "name", the parameter Chinese name is "name", and the output result option is "output result to the calling end".
[0091] In some embodiments, after executing step S1022, the connection relationship between the base node and the start node may be configured. Figure 4A As shown, the start node and the base node (data API node 1) are connected.
[0092] Step S1022 can be performed multiple times, such as Figure 4B As shown, after selecting data API node 1, select data API node 2, and Figure 4C The following table shows the configuration parameters of Data API Node 2: the node name of Data API Node 2 is "Data API Node 2", the node alias is "Data API Node 2", the data API is "Data Table Service / FW_SS_API Query Service", the parameter name of the request parameter is "mc", the Chinese name of the parameter is "API Name", the parameter type is "VARCHAR", whether it is required is "No", the source of the request data is "Predecessor Node Response Data", the source API is "Data API Node 1", and the reference parameter is "name". In addition, the connection relationship between Data API Node 2 and Data API Node 1 is configured to connect Data API Node 2 and Data API Node 1, as shown in the following figure. Figure 4B shown.
[0093] S1023. Select a conditional node, and configure parameters of the conditional node, including branch parameters, assignment parameters, and wait parameters.
[0094] As mentioned above, conditional nodes include branch nodes, assignment nodes, and wait nodes. When executing step S1023, you can select a branch node, for example, drag a branch component from the component bar to the canvas, and then configure the parameters of the branch node (i.e., score parameters). The parameters of the branch node include: node name, node alias and judgment parameters, operator, and judgment value. Figure 5AThe parameter editing window of the branch node shown includes a basic information area 241 and a judgment condition area 242. The basic information area 241 includes a node name input box and a node alias input box; the judgment condition area 242 includes: judgment parameter options, operator options, and a value input box.
[0095] Users can Figure 5A Customized parameters in the parameter editing window of the branch node shown. For example, in the parameter editing window, the branch parameters are edited, the node name of the branch node defaults to "branch component node 1", the node alias is "branch node 1", the judgment parameter is "apiLx", the operator is "equal", and the value is "2".
[0096] When executing step S1023, you can select a waiting node, for example, drag a waiting component from the component bar to the canvas, and then configure the parameters of the waiting node. The parameters of the waiting node include: node name, node alias, and waiting time. Figure 5B The parameter editing window of the waiting node shown includes a basic information area 251 and a waiting parameter area 252. The basic information area 251 includes a node name input box and a node alias input box; the waiting parameter area 252 includes a waiting time input box.
[0097] Users can Figure 5B The parameter editing window of the waiting node is shown as a customized parameter. For example, the node name defaults to "wait component node 1", the node alias is "wait component node 1", and the waiting time is 7MS.
[0098] When executing step S1023, you can select an assignment node, for example, drag an assignment component from the component bar to the canvas, and then configure the parameters of the assignment node. The parameters of the assignment node include: node name, node alias, parameter English name, parameter Chinese name, and parameter value. Figure 5C The parameter editing window of the assignment node shown includes a basic information area 261 and an assignment parameter area 262. The basic information area 261 includes a node name input box and a node alias input box; the assignment parameter area 262 includes a parameter English name input box, a parameter Chinese name input box, a parameter value input box and new controls.
[0099] Users can Figure 5C The custom parameters in the parameter editing window of the assignment node are shown. For example, the node name defaults to "Assignment Component Node 1", the node alias is "Assignment Component Node 1", the parameter English name is "id", the parameter Chinese name is "Unique Flag", and the parameter value is "xiao".
[0100] The above steps S1022 and S1023 may be repeated to complete the selection and configuration of the basic node and the conditional node. Figure 6As shown, the basic nodes: data API node 1, data API node 2, data API node 3, data API node 4 and data API node 5, and the conditional nodes: branch node 1 and assignment node 2 are selected and configured.
[0101] The above embodiment supports the configuration of conditional nodes including branch, assignment and waiting types, improves the richness of node types in the service orchestration process, thereby increasing the freedom of user process design and improving the personalization of service orchestration.
[0102] S103: Configure the connection relationship between the start node, the basic node, the condition node and the end node to obtain the orchestration service.
[0103] For example, Figure 6 As shown, the start node, basic nodes (data API node 1, data API node 2, data API node 3, data API node 4 and data API node 5), conditional nodes (branch node 1 and assignment node 2) and end node are connected to obtain the orchestration service.
[0104] S104: After testing the orchestration service, publish the orchestration service.
[0105] After executing step S103, the orchestration service is tested to send an orchestration service request to the server to obtain a test result, which includes a return result and a test log.
[0106] The test log includes the start execution time and execution results of each node of the orchestration service.
[0107] For example, Fig. 7A and 7B As shown, the test window includes a request method (GET), a test interface control, a request parameter area 701, a Headers parameter area (not expanded in the figure), a return result area 702, and a test log area 703. The request parameter area 701 includes a sequence number "1", a parameter name "inpParams", a parameter type "string", whether it is required "No", a description "input parameter" and a parameter value. The parameter name, parameter type, whether it is required, and the description are the request parameters corresponding to the aforementioned start node, which are displayed in the test results. The return result area 702 includes the test code script. The test log area 703 includes the start execution time and execution results of each node in the orchestration service.
[0108] In some embodiments, after executing step S104, after the return result indicates that the server has successfully responded to the orchestration service request, the orchestration service is published. Exemplarily, when the return result includes a code corresponding to the field "the server has successfully processed the request", it means that the server has provided the requested web page, the orchestration service test is successful, and the orchestration service can be published.
[0109] In summary, the service orchestration method provided by the present disclosure supports users to define multiple ways to create service units, and supports users to configure different security policies for each field when creating service units to improve data security; when configuring the orchestration process, it can support the configuration of multiple conditional nodes such as branches, assignments, and waiting nodes, improve the richness of service nodes, improve the user's freedom and flexibility, and support more personalized scenario services. It supports encryption and decryption operations on the fields required when configuring service units to ensure the security of data transmission.
[0110] like Figure 8 As shown, Figure 8 A schematic diagram of the structure of a service orchestration device provided in an embodiment of the present disclosure, the device comprising:
[0111] A creation module 801 is used to create a service unit in a preset manner;
[0112] Configuration module 802, for rendering start nodes and end nodes, arranging basic nodes and conditional nodes, and configuring node parameters for the service unit; wherein the conditional node includes at least one of a branch node, an assignment node, and a waiting node, and the node parameters include request parameters, return parameters, and corresponding pre-selected encryption and decryption strategies;
[0113] A connection module 803 is used to configure the connection relationship between the start node, the basic node, the condition node and the end node to obtain the orchestration service;
[0114] The test release module 804 is used to release the orchestration service after testing the orchestration service.
[0115] As an optional implementation of the embodiment of the present disclosure, the preset method includes any one of the following: a data table, a data set, a custom structured query language SQL statement, a registration interface, a quick data table and a file resource.
[0116] As an optional implementation of the embodiment of the present disclosure, the configuration module 802 is also used to: configure the parameters of the service unit, including the service name, service category, service address, service label, service description and service parameters, and security policy; wherein the service parameters include the interface protocol, request method and return type; the security policy includes the call frequency, security group, anti-replay switch, and return result encryption.
[0117] As an optional implementation of the embodiment of the present disclosure, the configuration module 802 is specifically used to perform the following steps for the service unit: rendering the start node and the end node, configuring the parameters of the start node, including the header parameters and the request parameters and the pre-selected encryption and decryption strategy corresponding to the request parameters; selecting the basic node, configuring the parameters of the basic node, including the request parameters and the return parameters, and the corresponding pre-selected encryption and decryption strategy; the basic node includes the data programming interface node and the external programming interface node; selecting the conditional node, configuring the parameters of the conditional node, including the branch parameter, the assignment parameter and the waiting parameter; wherein the branch parameter includes the judgment parameter, the operator and the judgment value; the assignment parameter includes the parameter name and the parameter value; the waiting parameter includes the waiting time.
[0118] As an optional implementation of the embodiment of the present disclosure, the test publishing module 804 is further used to: test the orchestration service to send an orchestration service request to the server to obtain a test result, and the test result includes a return result and a test log.
[0119] As an optional implementation of the embodiment of the present disclosure, the test publishing module 804 is further configured to: publish the orchestration service after the returned result indicates that the server successfully responds to the orchestration service request.
[0120] For the specific definition of the service orchestration device, please refer to the definition of the service orchestration method above, which will not be repeated here. Each module in the above service orchestration device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0121] In one embodiment, the present disclosure provides an electronic device, which may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for detecting a jam is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0122] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0123] In one embodiment, the service orchestration device provided by the present disclosure can be implemented in the form of a computer program. The computer program can be Fig. 9 The service arrangement device is run on the electronic device shown. The memory of the electronic device may store various program modules constituting the service arrangement device. The computer program composed of various program modules enables the processor to execute the steps of the service arrangement method of various embodiments of the present disclosure described in this specification.
[0124] In one embodiment, the present disclosure provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, each process of the service orchestration method in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0125] Those skilled in the art will understand that the structure of the above-mentioned electronic device is only a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those mentioned above, or combine certain components, or have a different arrangement of components.
[0126] An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the service orchestration method in the above method embodiment is implemented, and the same technical effect can be achieved.
[0127] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0128] The embodiments of the present disclosure provide a computer program product, which stores a computer program. When the computer program is executed by a processor, each process of the service orchestration method in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0129] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0130] In several embodiments provided by the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0131] In the present disclosure, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0132] In the present disclosure, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0133] In the present disclosure, computer-readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0134] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0135] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A service orchestration method, characterized in that: include: Create service units by presetting; For the service unit, rendering the start node and the end node, arranging the basic node and the conditional node, and configuring the node parameters; wherein the conditional node includes at least one of a branch node, an assignment node and a waiting node, and the node parameters include a request parameter, a return parameter and a corresponding pre-selected encryption and decryption strategy; configuring a connection relationship between the start node, the basic node, the condition node, and the end node to obtain an orchestration service; After testing the orchestration service, the orchestration service is released.
2. The method according to claim 1, characterized in that: The preset method includes any one of the following: a data table, a data set, a custom structured query language SQL statement, a registration interface, a quick data table, and a file resource.
3. The method according to claim 1, characterized in that After creating the service unit in a preset manner, and before rendering the start node and the end node, arranging the basic node and the conditional node, and configuring the node parameters for the service unit, the method further includes: Configuring parameters of the service unit, including service name, service category, service address, service label, service description, service parameters, and security policy; Among them, the service parameters include interface protocol, request method and return type; the security policy includes call frequency, security group, anti-replay switch, and return result encryption.
4. The method according to claim 1, characterized in that: The rendering of the start node and the end node, arranging the basic node and the conditional node, and configuring the node parameters for the service unit includes executing the following steps for the service unit: Rendering the start node and the end node, and configuring parameters of the start node, including header parameters and request parameters and pre-selected encryption and decryption strategies corresponding to the request parameters; Select the basic node, configure the parameters of the basic node, including request parameters and return parameters, and corresponding pre-selected encryption and decryption strategies; The basic nodes include data programming interface nodes and external programming interface nodes; Select the conditional node and configure the parameters of the conditional node, including branch parameters, assignment parameters and waiting parameters; wherein the branch parameters include judgment parameters, operators and judgment values; the assignment parameters include parameter names and parameter values; and the waiting parameters include waiting time.
5. The method according to claim 1, characterized in that After configuring the connection relationship between the start node, the basic node, the condition node and the end node to obtain the orchestration service, and after testing the orchestration service and before publishing the orchestration service, the method further includes: The orchestration service is tested to send an orchestration service request to a server to obtain a test result, wherein the test result includes a return result and a test log.
6. The method according to claim 5, characterized in that After testing the orchestration service, publishing the orchestration service includes: After the returned result indicates that the server successfully responds to the orchestration service request, the orchestration service is published.
7. A service arrangement device, characterized in that: include: A creation module, used to create a service unit in a preset manner; A configuration module, for rendering a start node and an end node, arranging basic nodes and conditional nodes, and configuring node parameters for the service unit; wherein the conditional node includes at least one of a branch node, an assignment node, and a waiting node, and the node parameters include a request parameter, a return parameter, and a corresponding pre-selected encryption and decryption strategy; A connection module, used to configure the connection relationship between the start node, the basic node, the conditional node and the end node to obtain an orchestration service; The test publishing module is used to publish the orchestration service after testing the orchestration service.
8. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the service orchestration method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the service orchestration method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that include: The computer program product comprises a computer program, and when the computer program is executed on a computer, the computer is enabled to implement the service orchestration method according to any one of claims 1 to 5.
