A service composition visualization implementation method and device
By obtaining a visual representation of service compositions from different sources through the service manager and generating service definition language source code, the problem of complex service composition orchestration is solved, and the efficiency of building composite services is improved.
Patent Information
- Application Number
- CN202211712630.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2042-12-29
AI Technical Summary
How to achieve service composition with 'zero code' through visualization in different application scenarios, improve the efficiency of building composed services, and solve the problem of complex service composition orchestration.
The service manager retrieves a list of services from different sources and displays it visually. A service composition generator is used to create a visualization space. Services are composed using drag-and-drop interactive operations, and the corresponding service definition language source code is generated.
It achieves a visual abstraction of service composition, improves the efficiency of building composite services, and reduces the difficulty of building composite services.
Smart Images

Figure CN116301794B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer software technology, and in particular to a method, apparatus, electronic device and storage medium for visualizing service composition. Background Technology
[0002] With the development of the Internet of Things (IoT), especially the emergence of atomic services, lightweight applications, and quick applications, the challenge lies in miniaturizing and lightweighting previously complex services, presenting them to users in the simplest way possible, and delivering services with lower usage costs and a more convenient user experience. In particular, combining multiple atomic services into a single service can improve the efficiency of service deployment and allow users to obtain multiple atomic services at once. However, service composition and orchestration are quite complex, requiring protocol conversion and adaptation, data mapping, logical judgment, and external interface service calls. Therefore, how to achieve service composition with "zero code" through visualization in different application scenarios, thereby improving the efficiency of building composite services, is a pressing technical problem that needs to be solved. Summary of the Invention
[0003] The purpose of this application is to provide a service composition visualization implementation method, apparatus, electronic device, and storage medium, which is beneficial to improving the user experience of intelligent response.
[0004] To solve the above-mentioned technical problems, the embodiments of this application are implemented as follows:
[0005] Firstly, a method for visualizing service composition is proposed, including:
[0006] Call the service manager to retrieve a list of services from different sources and display it visually;
[0007] The service composition generator is invoked to create a visualization space for service composition, and the service visualization data of the service list is input into the visualization space for composition through a drag-and-drop interactive operation.
[0008] The service composition controller is invoked to construct the form of the service composition;
[0009] The service composition generator is invoked to save the visualization space and generate the service composition.
[0010] Furthermore, the list of services obtained from different sources includes: system services, marketplace services, and / or proprietary services.
[0011] Furthermore, the service list is visualized, including:
[0012] Save the service list to local data storage space;
[0013] Based on the different sources of the service list, the corresponding service visualization data is categorized and displayed and loaded into the service composition generator.
[0014] Furthermore, the service composition controller is invoked to construct the form of the service composition, including:
[0015] Determine the business logic relationships between the services in the service composition;
[0016] Determine whether a communication connection has been established between the services;
[0017] Define the communication interface between the services after the communication connection is established.
[0018] Furthermore, the service composition generator is invoked to save the visualization space and generate the service composition, including generating the service definition language source code corresponding to the service composition.
[0019] Furthermore, it also includes: loading the service composition and the service definition language source code into the service attribute editor for editing according to business needs, and regenerating and saving the edited service composition and the corresponding service definition language source code.
[0020] Furthermore, suitable environments for service portfolio visualization include integrated development tools, online open platforms, and / or customized management platforms capable of generating target service portfolios.
[0021] Secondly, a service composition visualization implementation device is proposed, comprising:
[0022] The first module can call the service manager to obtain a list of services from different sources and display it visually.
[0023] The second module can call the service composition generator to create a visualization space for service composition, and input the service visualization data of the service list into the visualization space for composition through drag-and-drop interactive operation.
[0024] The third module can invoke the service composition controller to construct the form of the service composition;
[0025] The fourth module can call the service composition generator to save the visualization space and generate the service composition.
[0026] Thirdly, an electronic device is proposed, characterized in that it comprises:
[0027] Processor; and
[0028] A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the service composition visualization implementation method described in the first aspect.
[0029] Fourthly, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform the service composition visualization implementation method described in the first aspect.
[0030] This application can achieve at least the following technical effects:
[0031] The service composition visualization implementation method, apparatus, electronic device, and storage medium provided in this application embodiment call a service manager to obtain service lists from different sources and visualize them; call a service composition generator to create a visualization space for service composition; and input the service visualization data of the service list into the visualization space for combination through drag-and-drop interactive operation; call a service composition controller to construct the form of the service composition; and call the service composition generator to save the visualization space and generate the service composition. This application embodiment integrates services to be combined from different sources and in different scenarios for visual abstraction, constructs the form of the service composition through drag-and-drop interactive operation, and automatically generates the service composition and corresponding service definition language source code, effectively improving the efficiency of service composition construction and reducing the difficulty of service composition construction. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is one of the schematic diagrams illustrating a service composition visualization implementation method provided in an embodiment of this application.
[0034] Figure 2 This is a second schematic diagram of a service composition visualization implementation method provided in an embodiment of this application.
[0035] Figure 3 This is the third schematic diagram of a service composition visualization implementation method provided in the embodiments of this application.
[0036] Figure 4 This is the fourth schematic diagram of a service composition visualization implementation method provided in the embodiments of this application.
[0037] Figure 5 This is a schematic diagram of a service composition visualization implementation device provided in an embodiment of this application.
[0038] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0039] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0040] Key terms
[0041] Services: The services described in this application embodiment are divided into atomic services and composite services. An atomic service is one that cannot be further broken down into finer-grained services, while a composite service is a service composed of multiple services. Typically, an atomic service is a user application that has an independent entry point, can be triggered directly by a click, requires no installation, and provides one or more convenient services. A service engine can be used to flexibly nest and combine atomic services and composite services to form combined services that meet user needs.
[0042] The following detailed description of a service composition visualization implementation scheme involved in this application is illustrated with a specific example.
[0043] Example 1
[0044] This application focuses on how to improve the efficiency of service composition by achieving "zero-code" service composition through visualization in different application scenarios. Software visualization refers to visualizing software systems and related information through static, interactive, or animated methods, such as the architecture of their source code or metrics of their runtime behavior and development process. The purpose of software visualization is to support the understanding of software systems and algorithms, for example, by animing the behavior of sorting algorithms and analyzing and exploring software systems and their anomalies, as well as their development and evolution. One advantage of software visualization is that it can merge and correlate information from non-inherently linked software systems, for example, by projecting code changes onto the software execution trajectory. As an evolution of software visualization, low-code development platforms are development platforms that allow for the rapid generation of applications with zero or minimal code. Methods of application development through visualization, such as referencing visual programming languages, enable developers with varying levels of experience to create web and mobile applications using drag-and-drop components and model-driven logic through graphical user interfaces. For service composition, since the service development ecosystem platform is an open system, suitable environments for service composition visualization include integrated development tools, online open platforms, and / or customized management platforms capable of generating target service compositions. Service sources may include various types of services such as monolithic services, web services, and PWA services, as well as different service forms such as application distribution packages and application source code. Therefore, the visualization goal of service composition is to integrate proposed composite services from different sources and scenarios for visual abstraction. Through drag-and-drop interactive operations, the form of the service composition is constructed, automatically generating the service composition and corresponding service definition language source code, effectively improving the efficiency of service composition construction and reducing its difficulty.
[0045] Visualization tools for service composition involve both the backend logic implementation of the service composition business and the components of the visualization tool itself. These components include the merging of service lists from different sources, a service manager, a service composition controller, a service composition generator, and a service property editor. The backend logic implementation of the service composition business includes service creation bootstrapping, a service debugger, a service deployment manager, a cloud data synchronizer, a service package generator, a command-line toolset, and a service compiler. Furthermore, the interaction with the visualization tool involves local data storage to save different service lists obtained from different sources and in different scenarios locally. Therefore, as... Figure 1 The diagram shown is a schematic representation of a service composition visualization implementation method according to an embodiment of this application. The method includes:
[0046] S1: Call the service manager to obtain a list of services from different sources and display it visually.
[0047] Optionally, the list of services obtained from different sources includes: system services, marketplace services, and / or proprietary services.
[0048] S2: Call the service composition generator to create a visualization space for service composition, and input the service visualization data of the service list into the visualization space for composition through drag-and-drop interactive operation.
[0049] Optionally, such as Figure 2 As shown, the service list is displayed visually, including:
[0050] S21: Save the service list to the local data storage space;
[0051] S22: Based on the different sources of the service list, the corresponding service visualization data is categorized and displayed and loaded into the service composition generator.
[0052] S3: Invoke the service composition controller to construct the form of the service composition.
[0053] Optionally, such as Figure 3 As shown, the service composition controller is invoked to construct the form of the service composition, including:
[0054] S31: Determine the business logic relationships between the services in the service combination;
[0055] S32: Determine whether a communication connection has been established between the services;
[0056] S33: Define the communication interface between the services after the communication connection is established.
[0057] S4: Call the service composition generator to save the visualization space and generate the service composition.
[0058] Optionally, such as Figure 4 As shown, the process of calling the service composition generator to save the visualization space and generate the service composition includes:
[0059] S41: Generate the service definition language source code corresponding to the service composition.
[0060] S42: Based on business requirements, load the service composition and the service definition language source code into the service property editor for editing;
[0061] S43: Regenerate and save the edited service composition and the corresponding service definition language source code.
[0062] Optionally, suitable environments for service portfolio visualization include integrated development tools, online open platforms, and / or customized management platforms capable of generating target service portfolios.
[0063] The solution in this application embodiment obtains and visualizes service lists from different sources by calling a service manager; it then calls a service composition generator to create a visualization space for service composition, and inputs the service visualization data from the service list into the visualization space for composition through drag-and-drop interactive operations; it calls a service composition controller to construct the form of the service composition; and finally, it calls the service composition generator to save the visualization space and generate the service composition. This application embodiment integrates services from different sources and scenarios for visualization abstraction, constructs the form of the service composition through drag-and-drop interactive operations, and automatically generates the service composition and corresponding service definition language source code, effectively improving the efficiency and reducing the difficulty of constructing combined services.
[0064] Example 2
[0065] Figure 5 This is a schematic diagram of the structure of a service composition visualization implementation apparatus 500 provided in one embodiment of this application. Please refer to... Figure 5 In one embodiment, a service composition visualization implementation apparatus 500 includes:
[0066] The first module 501 can call the service manager to obtain a list of services from different sources and display it visually.
[0067] The second module 502 can call the service composition generator to create a visualization space for service composition, and input the service visualization data of the service list into the visualization space for composition through drag-and-drop interactive operation.
[0068] The third module 503 can call the service composition controller to construct the form of the service composition;
[0069] The fourth module 504 can call the service composition generator to save the visualization space and generate the service composition.
[0070] It should be understood that the service composition visualization implementation device 500 of this application embodiment can also perform... Figures 1 to 4 A method for implementing service composition visualization in a device (or apparatus), and for implementing service composition visualization in... Figures 1 to 4 The functionality of the example shown will not be elaborated upon here.
[0071] Example 3
[0072] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Please refer to it. Figure 6At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for other business operations.
[0073] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0074] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.
[0075] The processor reads the corresponding computer program from non-volatile memory into main memory and then executes it, forming a shared resource access control mechanism at the logical level. The processor executes the program stored in memory and specifically performs the following operations:
[0076] Call the service manager to retrieve a list of services from different sources and display it visually;
[0077] The service composition generator is invoked to create a visualization space for service composition, and the service visualization data of the service list is input into the visualization space for composition through a drag-and-drop interactive operation.
[0078] The service composition controller is invoked to construct the form of the service composition;
[0079] The service composition generator is invoked to save the visualization space and generate the service composition.
[0080] The above is as stated in this application. Figures 1 to 4The service composition visualization implementation method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0081] Of course, in addition to the software implementation, the electronic device in the embodiments of this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0082] Example 4
[0083] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by a portable electronic device including multiple applications, enable the portable electronic device to perform... Figures 1 to 4 The illustrated embodiment provides a method for visualizing service composition, specifically for executing the following methods:
[0084] Call the service manager to retrieve a list of services from different sources and display it visually;
[0085] The service composition generator is invoked to create a visualization space for service composition, and the service visualization data of the service list is input into the visualization space for composition through a drag-and-drop interactive operation.
[0086] The service composition controller is invoked to construct the form of the service composition;
[0087] The service composition generator is invoked to save the visualization space and generate the service composition.
[0088] In summary, the above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
[0089] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0090] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0091] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0092] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
Claims
1. A service composition visualization implementation method, characterized in that, The method comprises the following steps: calling a service manager to obtain a service list of different sources and to visualize the service list; calling a service composition generator to create a visualization space for service composition and to input service visualization data of the service list into the visualization space through a drag-and-drop interactive operation mode for combination; calling a service composition controller to build a form of the service composition; calling the service composition generator to save the visualization space and to generate the service composition; wherein the visualization of the service list comprises the following steps: saving the service list to a local data storage space; based on different sources of the service list, classifying and displaying corresponding service visualization data and loading the service visualization data into the service composition generator; the calling of the service composition controller to build the form of the service composition comprises the following steps: determining a business logic relationship between services of the service composition; judging whether a communication connection is established between the services; determining a communication interface definition between the services after the communication connection is established; and 2. The service combination visualization implementation method of claim 1, wherein, the calling of the service composition generator to save the visualization space and to generate the service composition comprises generating a service definition language source code corresponding to the service composition.
3. The service composition visualization implementation method of claim 1, wherein, The service list of different sources comprises system services, market services and / or self-owned services.
4. The method of claim 1 to 3, wherein, Further comprising the following steps: loading the service composition and the service definition language source code into a service attribute editor for editing according to business requirements, and regenerating and saving the edited service composition and the corresponding service definition language source code.
5. A service composition visualization implementation apparatus, characterized by, The environment suitable for service composition visualization comprises an integrated development tool, an online open platform and / or a customized management platform capable of generating a target service composition. The method comprises the following steps: a first module capable of calling a service manager to obtain a service list of different sources and to visualize the service list; a second module capable of calling a service composition generator to create a visualization space for service composition and to input service visualization data of the service list into the visualization space through a drag-and-drop interactive operation mode for combination; a third module capable of calling a service composition controller to build a form of the service composition; a fourth module capable of calling the service composition generator to save the visualization space and to generate the service composition; wherein the first module is configured to: save the service list to a local data storage space; based on different sources of the service list, classifying and displaying corresponding service visualization data and loading the service visualization data into the service composition generator; the third module is configured to: determine a business logic relationship between services of the service composition; judge whether a communication connection is established between the services; determine a communication interface definition between the services after the communication connection is established; and 6. An electronic device, comprising: the fourth module comprises generating a service definition language source code corresponding to the service composition. The method comprises the following steps: a processor; and a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the service composition visualization implementation method of any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores one or more programs, which when executed by an electronic device comprising a plurality of applications, cause the electronic device to perform the service combination visualization implementation method of any one of claims 1 to 4.
Citation Information
Patent Citations
Micro-application development method and device thereof, equipment, storage medium and program product
CN114064024A
Metacode-based low-code development system and method
CN115237380A