CN-121996224-A - Method, device, storage medium and program product for arranging flow interface
Abstract
The application provides a method, equipment, storage medium and program product for arranging a flow interface, wherein the method comprises the steps of configuring metadata of the flow interface and metadata of an atomic interface of the flow interface, and analyzing first natural language description information, the metadata of the flow interface, the metadata of the atomic interface and an arrangement template of the flow interface through an AI auxiliary arrangement module to generate an arrangement definition of the flow interface, wherein the first natural language description information comprises first operation logic of the flow interface. In the embodiment of the application, the flow interface is arranged by the AI auxiliary arrangement module, only metadata of the flow interface operation logic, the flow interface and the atomic interface described by natural language are input into the AI auxiliary arrangement module, so that the arrangement efficiency of the flow interface can be remarkably improved, and meanwhile, the arrangement template of the flow interface is input into the AI auxiliary arrangement module, so that the reliability of a service system can be ensured.
Inventors
- XIE RUIDONG
Assignees
- 联通智网科技股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251215
Claims (10)
- 1. A method for arranging a flow interface, comprising: configuring metadata of a flow interface and metadata of an atomic interface of the flow interface; And analyzing the first natural language description information, the metadata of the flow interface, the metadata of the atomic interface and the layout template of the flow interface through an AI auxiliary layout module to generate a layout definition of the flow interface, wherein the first natural language description information comprises first operation logic of the flow interface.
- 2. The method of claim 1, further comprising, prior to said generating the orchestration definition for the flow interface: and analyzing second natural language description information through an AI auxiliary programming module to obtain metadata of the configured atomic interface, wherein the second natural language description information comprises second operation logic of the flow interface.
- 3. The method of claim 1, further comprising, after said generating the orchestration definition for the flow interface: The programming definition of the flow interface is tested through an AI auxiliary test module, and a programming test result of the flow interface is obtained; If the arrangement test result of the flow interface meets the preset condition, issuing the arrangement definition of the flow interface; And if the arrangement test result of the flow interface does not meet the preset condition, optimizing the arrangement definition of the flow interface.
- 4. The method of claim 3, wherein the testing the orchestration definition of the flow interface by the AI-assisted test module to obtain orchestration test results for the flow interface comprises: the AI auxiliary test module generates a flow instance of the flow interface according to the arrangement definition of the flow interface; The AI auxiliary test module generates a test case of the flow interface according to the metadata of the flow interface and the arrangement definition of the flow interface; And the AI auxiliary test module tests the flow instance of the flow interface according to the test instance of the flow interface to obtain the arranging test result of the flow interface.
- 5. The method of claim 1, wherein parsing, by the AI-assisted orchestration module, the first natural language description information, the metadata of the flow interface, the metadata of the atomic interface, and the orchestration template of the flow interface, generates an orchestration definition of the flow interface, comprising: Sending first natural language description information, metadata of the flow interface, metadata of the atomic interface and an arrangement template of the flow interface to a large language model through an AI auxiliary arrangement module; Analyzing the first natural language description information, the metadata of the flow interface, the metadata of the atomic interface and the arrangement template of the flow interface through the large language model to generate arrangement definition of the flow interface; the AI-assisted orchestration module receives orchestration definitions for the flow interfaces sent by the large language model.
- 6. The method of claim 1, wherein the metadata of the flow interface and the metadata of the atomic interface of the flow interface comprise: and the authentication information of the atomic interface of the flow interface.
- 7. The method of claim 1, wherein the orchestration template of the flow interface is JSON formatted.
- 8. An electronic device, comprising: A processor; A memory; And a computer program, wherein the computer program is stored in the memory, which when executed by the processor, causes the electronic device to perform the method of any one of claims 1 to 7.
- 9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
- 10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
Description
Method, device, storage medium and program product for arranging flow interface Technical Field The present application relates to the field of software development technologies, and in particular, to a method, an apparatus, a storage medium, and a program product for arranging a flow interface. Background With the rapid development of information technology and the deep transformation of enterprise digitization, software system architecture has evolved from traditional monolithic applications to micro-service architecture. Under a micro-service architecture, complex business functions are broken down into a series of independent mini-services, each of which typically provides its specific functions externally through a standardized application programming interface. The architecture mode improves the expandability, flexibility and maintainability of the system, but at the same time, reasonable combination of the interfaces is needed, so that the required business flow is realized. The process interface arrangement technology is used as a key technology for integrating interface resources and realizing business processes, and the application value of the process interface arrangement technology is increasingly remarkable. Specifically, the process interface arrangement technology is used for combining and linking a plurality of atomic interfaces with single functions and mutually independent according to required business logic, and defining calling relations and data flows between the atomic interfaces, so that a process interface which can be uniformly called by an upper layer application and is used for meeting specific business requirements is generated through aggregation. The process interface encapsulates the internal complex interaction details, integrates the scattered service capability into a business-oriented whole, thereby realizing multiplexing and unified management of business logic and simplifying development complexity of upper-layer application. In the related art, the arrangement of the flow interface generally needs to manually perform the combination of the atomic interfaces and the definition of the call relationship and the data flow inside the flow interface, and finally generates the arrangement definition of the flow interface. However, when the business system is huge and the number of interfaces is large, the workload of flow arrangement is huge, and the efficiency of manual processing is low. Meanwhile, when complex business logic is processed, a large number of expression formulas are generally written, logic errors of programming definition of a flow interface are easily introduced due to human negligence, and the reliability of a business system is low. It should be noted that the information disclosed in the background section of the present application is only for enhancement of understanding of the general background of the present application and should not be taken as an admission or any form of suggestion that this information forms the prior art that is well known to a person skilled in the art. Disclosure of Invention The application provides a method, equipment, storage medium and program product for arranging a flow interface, which are beneficial to solving the problems that the arrangement efficiency of the flow interface is low and the reliability of a service system is difficult to ensure because the arrangement of the flow interface is carried out manually in the related technology. In a first aspect, an embodiment of the present application provides a method for arranging a flow interface, including: configuring metadata of a flow interface and metadata of an atomic interface of the flow interface; And analyzing the first natural language description information, the metadata of the flow interface, the metadata of the atomic interface and the layout template of the flow interface through an AI auxiliary layout module to generate a layout definition of the flow interface, wherein the first natural language description information comprises first operation logic of the flow interface. In one possible implementation, before the generating the orchestration definition of the flow interface, the method further includes: and analyzing second natural language description information through an AI auxiliary programming module to obtain metadata of the configured atomic interface, wherein the second natural language description information comprises second operation logic of the flow interface. In one possible implementation manner, after the generating the orchestration definition of the flow interface, the method further includes: The programming definition of the flow interface is tested through an AI auxiliary test module, and a programming test result of the flow interface is obtained; If the arrangement test result of the flow interface meets the preset condition, issuing the arrangement definition of the flow interface; And if the arrangement test result of the