Business plug-in arrangement method and device, electronic equipment and computer program product

Through the dynamic loading and arrangement of business plug -ins, the business plug -in arrangement method solves the problem of high development costs and low scalability in existing technologies, and realizes the flexibility and low -cost development of business functions.

CN119376716APending Publication Date: 2025-01-28中国邮政储蓄银行股份有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411446743.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the existing business engineering software development system, the development cost is high, the scalability is not high, and the testing and maintenance costs are high, so the test results cannot be effectively shared, and the development needs to be re-iterated when business needs change.

Method used

Through business plug -in arrangement methods, dynamically load and arrange business plug -ins, generate the business process after the arrangement, and use the preset parameter transmission method between the business plug -in for parameter transfer to achieve the implementation of the business process.

Benefits of technology

It improved the flexibility of business function development, reduced the threshold for development, realized the fine -grained and modularization of complex business, quickly responded to business changes, and reduced the cost of software development and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376716A_ABST
    Figure CN119376716A_ABST
Patent Text Reader

Abstract

The invention discloses a business plug-in arrangement method and device, electronic equipment and a computer program product. The method comprises the following steps: loading a plurality of business plug-ins according to configuration information of the business plug-ins; arranging the plurality of loaded service plug-ins according to the arrangement configuration information and a service plug-in arrangement rule, and generating an arranged service process; and calling each business plug-in in the arranged business process, and carrying out parameter transmission among the business plug-ins by adopting a preset parameter transmission mode. According to the method, the plug-ins are dynamically arranged in a mode of dynamically loading the business plug-ins, business changes can be quickly responded, the granularity of business functions is reasonably controlled, and fine granulation and modularization of complex businesses are realized. According to the technical scheme of the invention, both research and development personnel and business personnel can arrange complex businesses in a more intuitive and convenient manner and carry out trial operation on business logic generated by arrangement, so that effective combination of system development and business requirements is realized, and the software development threshold is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of plug-in arrangement, and in particular to a method, device, electronic device, and computer program product for business plug-in arrangement. Background Art

[0002] With the continuous development of Internet technology, especially the development of financial technology and the digital transformation of traditional enterprises, due to the increasingly large user base, software engineering requirements are becoming more and more complex, the scale and complexity of applications are also increasing, and the complexity of software engineering system development and maintenance is increasing. The corresponding R&D testing and maintenance costs are also increasing.

[0003] In terms of R&D, there are a lot of development work for similar functions during the development process, which wastes a lot of manpower and material resources. In terms of testing, each additional business function module in an engineering project needs to be tested for corresponding functions and business tests, and the various results generated during the testing process cannot be effectively shared. In terms of maintenance, each engineering project needs to be maintained separately, and when business requirements change, it needs to be re-developed iteratively, and the scalability is not high. In the existing business engineering software development system, a large number of developers and testers who are familiar with the business and have high programming skills are usually required, and the development cost is high. Summary of the invention

[0004] The embodiments of the present application provide a service plug-in arrangement method, device, electronic device, and computer program product to improve the flexibility of service function development and lower the development threshold.

[0005] The present application embodiment adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a service plug-in orchestration method, the service plug-in orchestration method comprising:

[0007] Load multiple business plug-ins according to the configuration information of the business plug-in;

[0008] Orchestrate multiple loaded business plug-ins according to the orchestration configuration information and business plug-in orchestration rules to generate an orchestrated business process;

[0009] Each business plug-in in the orchestrated business process is called, and a preset parameter transfer method is used to transfer parameters between each business plug-in to obtain a business process execution result.

[0010] Optionally, the loading of multiple service plug-ins according to configuration information of the service plug-ins includes:

[0011] When the project is started or the class loading mechanism is triggered, the configuration information of the business plug-in is obtained according to the orchestration configuration file and / or user configuration rules;

[0012] Loading the business plug-in through a custom class loader according to the configuration information of the business plug-in;

[0013] Register the implementation class in the loaded business plug-in into the Spring container, mark the loaded business plug-in as enabled, and complete the loading of the business plug-in.

[0014] Optionally, the step of orchestrating the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rule to generate an orchestrated service process includes:

[0015] Provide a visual arrangement interface;

[0016] Receiving a user's arrangement instruction through the visual arrangement interface;

[0017] The loaded multiple service plug-ins are orchestrated according to the user's orchestration instruction and the service plug-in orchestration rule to generate an orchestrated service process and corresponding orchestration configuration information.

[0018] Optionally, the step of orchestrating the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rule to generate an orchestrated service process includes:

[0019] After receiving the user's arrangement instruction, verify the user's authority;

[0020] When the authority verification is passed, the loaded multiple business plug-ins are orchestrated according to the user's orchestration instructions and business plug-in orchestration rules to generate an orchestrated business process and corresponding orchestration configuration information.

[0021] Optionally, the step of orchestrating the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rule to generate an orchestrated service process includes:

[0022] For the same type of business services, multiple loaded business plug-ins are orchestrated according to the orchestration configuration information and the business plug-in orchestration rules to obtain the common business process and corresponding orchestration configuration information corresponding to the same type of business services;

[0023] When the business requirements change, the target business plug-in in the general business process is dynamically uninstalled and the changed business plug-in is reloaded to obtain the updated business process and the corresponding orchestration configuration information.

[0024] Optionally, the adopting a preset parameter transfer mode to transfer parameters between various service plug-ins includes:

[0025] Generate input parameter information of any business plug-in in the business process according to the parameter cache information, and send it to the business plug-in;

[0026] Receiving the processing result returned by the service plug-in and performing parameter parsing to obtain the parameter parsing result of the service plug-in;

[0027] Update the parameter cache information according to the parameter parsing result of the service plug-in;

[0028] The input parameter information of the next-level service plug-in corresponding to the service plug-in is generated according to the updated parameter cache information, and sent to the next-level service plug-in corresponding to the service plug-in.

[0029] Optionally, the adopting a preset parameter transfer method to transfer parameters between various service plug-ins further includes:

[0030] Monitor business requests;

[0031] Parse the monitored business request to obtain the parsing result of the business request;

[0032] Updating parameter cache information according to the parsing result of the business request;

[0033] Monitor the processing result of the last business plug-in in the business process;

[0034] According to the processing result of the last monitored service plug-in, the parameter cache information corresponding to the service request is cleared.

[0035] In a second aspect, an embodiment of the present application further provides a service plug-in arrangement device, the service plug-in arrangement device comprising:

[0036] A loading unit, used to load multiple service plug-ins according to the configuration information of the service plug-ins;

[0037] An orchestration unit, used to orchestrate the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules, and generate an orchestrated business process;

[0038] The execution unit is used to call each business plug-in in the arranged business process, and use a preset parameter transfer method to transfer parameters between each business plug-in to obtain a business process execution result.

[0039] In a third aspect, an embodiment of the present application further provides an electronic device, including:

[0040] Processor; and

[0041] A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes any of the aforementioned service plug-in orchestration methods.

[0042] In a fourth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements any of the aforementioned service plug-in orchestration methods.

[0043] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: the embodiments of the present application provide a business plug-in orchestration method, firstly load multiple business plug-ins according to the configuration information of the business plug-in; then orchestrate the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules to generate an orchestrated business process; finally, call each business plug-in in the orchestrated business process, and use a preset parameter transfer method to transfer parameters between each business plug-in to obtain the business process execution result. The business plug-in orchestration method of the embodiment of the present application dynamically orchestrates plug-in components by dynamically loading business plug-ins, can quickly respond to business changes, reasonably control the granularity of business functions, and realize the fine-grained and modularization of complex businesses. In addition, both R&D personnel and business personnel can orchestrate complex businesses and test run the business logic generated by the orchestration in a more intuitive and convenient way, realizing the effective combination of system development and business needs and lowering the threshold for software development. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0045] Figure 1 A flowchart of a method for arranging business plug-ins in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of a loading process of a service plug-in in an embodiment of the present application;

[0047] Figure 3 This is a schematic diagram of a service plug-in arrangement and management process in an embodiment of the present application;

[0048] Figure 4 This is a schematic diagram of a parameter context transfer process in an embodiment of the present application;

[0049] Figure 5 This is a schematic diagram of the structure of a service plug-in arrangement device in an embodiment of the present application;

[0050] Figure 6It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0052] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0053] Existing service orchestration solutions have at least the following technical problems:

[0054] 1) Existing technical solutions usually involve service orchestration at the API level, using the HTTP protocol to implement communication between orchestration components. This may result in network delays and long response times, and the service reuse granularity is large, resulting in high orchestration service costs.

[0055] 2) Existing technical solutions cannot truly achieve dynamic orchestration. After the orchestration is completed, if the business requirements change, the orchestration will become invalid and need to be re-orchestrated.

[0056] 3) When arranging complex business logic, the current technology is relatively cumbersome. The calling relationship between different services, data flow and other complex situations are very unfriendly to non-developers. The threshold for use is high, and it is impossible to achieve a deep integration of business needs and technology.

[0057] 4) Most of the current technical solutions require the orchestration of service functions on the basis of implementing compilation components, and cannot implement the pre-orchestration mechanism of complex business functions, which reduces development efficiency.

[0058] Based on this, the embodiment of the present application provides a service plug-in arrangement method, such as Figure 1 As shown, a flow chart of a service plug-in arrangement method in an embodiment of the present application is provided, and the service plug-in arrangement method at least includes the following steps S110 to S130:

[0059] Step S110: Load multiple service plug-ins according to the configuration information of the service plug-ins.

[0060] In the embodiment of the present application, when arranging a business plug-in, it is necessary to first obtain the configuration information of the business plug-in, where the configuration information of the business plug-in may mainly include configuration information such as the acquisition path of the business plug-in. The configuration information of the business plug-in can be flexibly determined based on business rules or the business arrangement requirements of the user, and the specific dimensions of information included are not specifically limited here.

[0061] According to the configuration information of the business plug-in obtained, the corresponding business plug-in jar package is dynamically loaded and instantiated, thereby completing the loading of the business plug-in. In the actual orchestration scenario, multiple business plug-ins can be loaded at the same time.

[0062] Step S120 , orchestrate the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rule to generate an orchestrated service process.

[0063] A complete business process instance can be regarded as a combination of multiple loaded business plug-ins connected in a certain execution order. Different business plug-ins are responsible for implementing different business functions in the business process, and each business plug-in can be regarded as a process node. Therefore, when choreographing multiple business plug-ins into a business process as required, it is necessary to determine the dependency relationship and choreography order between multiple business plug-ins according to the specific business scenario, so as to perform choreography according to the dependency relationship and choreography order between multiple business plug-ins and generate the choreographed business process.

[0064] The embodiment of the present application can implement an elegant hot refresh mechanism for business functions, thereby improving the flexibility and scalability of the software. The elegant hot refresh mechanism allows the system to update or replace a part of the system without interrupting existing services. This update process is usually transparent and has little impact on end users or other parts of the system.

[0065] Step S130 , calling each business plug-in in the arranged business process, and transferring parameters between each business plug-in using a preset parameter transfer method to obtain a business process execution result.

[0066] After generating the orchestrated business process, it is necessary to test whether the orchestrated business process can run normally to ensure the correctness of the business orchestration. Therefore, the embodiment of the present application can call the methods of each business plug-in in the orchestrated business process to realize the sequential execution of the business process according to the orchestration rules, and use the preset parameter transfer method to perform the context transfer of parameters between each business plug-in. The processing flow of the business is decoupled from the specific implementation, so that the implementation of the business function can be quickly completed according to the definition of the process. Finally, according to the result of the business process execution, it can be tested whether the currently orchestrated business process meets the expected requirements.

[0067] The service plug-in arrangement method of the embodiment of the present application dynamically arranges the plug-in components by dynamically loading the service plug-in, which can quickly respond to business changes, reasonably control the granularity of business functions, and realize the fine-grained and modularization of complex businesses. In addition, both R&D personnel and business personnel can arrange complex businesses and test run the business logic generated by the arrangement in a more intuitive and convenient way, realizing the effective combination of system development and business needs and lowering the threshold of software development.

[0068] In some embodiments of the present application, loading multiple business plug-ins according to the configuration information of the business plug-in includes: when the project is started or the class loading mechanism is triggered, the configuration information of the business plug-in is obtained according to the orchestration configuration file and / or user configuration rules; according to the configuration information of the business plug-in, the business plug-in is loaded through a custom class loader; the implementation class in the loaded business plug-in is registered with the Spring container, and the loaded business plug-in is marked as enabled to complete the loading of the business plug-in.

[0069] like Figure 2 As shown, a schematic diagram of the loading process of a business plug-in in an embodiment of the present application is provided. When the project starts, or when the class loading mechanism is triggered, the class loading module can load the business plug-in jar package of the specified path or remote warehouse according to the configuration file or business rules, and generate plug-in metadata information. Register the implementation classes existing in the plug-in with the Spring container and instantiate them as available plug-in objects. Finally, mark this plug-in as enabled to complete the plug-in loading and realize dynamic loading and instance isolation of plug-in components. Of course, the loaded plug-in can also be uninstalled according to actual business needs.

[0070] The embodiment of the present application can customize the class loader (inherited from URLClassLoader), and at the same time can specify that the plug-in class is loaded by the class loader instead of being loaded through the parent class loader, thereby breaking through the parent delegation mechanism and realizing dynamic loading of the plug-in.

[0071] After the plug-in is loaded, the embodiment of the present application registers the plug-in class as a Spring class instance through Spring's registration bean method, connects the Spring container between the plug-in and the main program, and realizes class instance interaction between plug-ins and plug-ins, and between plug-ins and the main program.

[0072] In some embodiments of the present application, the orchestration of the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules to generate the orchestrated business process includes: providing a visual orchestration interface; receiving the user's orchestration instructions through the visual orchestration interface; orchestrating the loaded multiple business plug-ins according to the user's orchestration instructions and the business plug-in orchestration rules to generate the orchestrated business process and the corresponding orchestration configuration information.

[0073] The embodiment of the present application provides a unified orchestration interface to realize the centralized management and orchestration management of plug-ins, which may include operations such as adding, deleting, modifying, enabling, and disabling plug-ins. The orchestration management process actually provides a visual drag-and-drop interface. According to business rules or user orchestration instructions, multiple loaded plug-in components are combined in a certain order to execute corresponding business logic codes. This orchestration method can make the entire application more flexible and scalable. Figure 3 As shown, a schematic diagram of a business plug-in orchestration and management process in an embodiment of the present application is provided.

[0074] In some embodiments of the present application, the orchestration of the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules to generate the orchestrated business process includes: after receiving the user's orchestration instructions, performing authority verification on the user; if the authority verification passes, the loaded multiple business plug-ins are orchestrated according to the user's orchestration instructions and the business plug-in orchestration rules to generate the orchestrated business process and the corresponding orchestration configuration information.

[0075] The embodiment of the present application also provides some security policies to ensure the security of business plug-in orchestration, for example, the identity and authority scope of the user who currently issues the orchestration instruction can be verified, and the specific verification method can be flexibly determined in combination with the existing technology and is not specifically limited here. The authentication and authorization of the plug-in component is realized through the verification of the security policy, and only authenticated and authorized users can modify and manage it.

[0076] In some embodiments of the present application, the orchestration of the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules to generate the orchestrated business process includes: for the same type of business services, the loaded multiple business plug-ins are orchestrated according to the orchestration configuration information and the business plug-in orchestration rules to obtain the general business process and the corresponding orchestration configuration information corresponding to the same type of business services; in the event of a change in business requirements, the target business plug-in in the general business process is dynamically unloaded and the changed business plug-in is reloaded to obtain an updated business process and the corresponding orchestration configuration information.

[0077] For the same type of business function services, a general link model can be first orchestrated. When a task node in the model responds to different business scenarios or changes in the demands of the demanders, the business function can be hot refreshed by dynamically unloading and reloading the plug-in component, thereby improving the system maintainability and high scalability.

[0078] In some embodiments of the present application, the parameter passing method using a preset parameter passing method between various business plug-ins includes: generating input parameter information of any business plug-in in the business process based on parameter cache information, and sending it to the business plug-in; receiving the processing result returned by the business plug-in and performing parameter parsing to obtain the parameter parsing result of the business plug-in; updating the parameter cache information based on the parameter parsing result of the business plug-in; generating the input parameter information of the next-level business plug-in corresponding to the business plug-in based on the updated parameter cache information, and sending it to the next-level business plug-in corresponding to the business plug-in.

[0079] The business method of each business plug-in class has parameter attributes, and there are dependencies and mutual exclusion relationships between multiple plug-in components. Therefore, when multiple plug-in components are combined and integrated, the parameters between the plug-ins must obtain both the effect of sharing and the effect of mutual exclusion, as well as the effect of unique identification. Therefore, the embodiment of the present application proposes to implement parameter transfer between various business plug-ins by means of identification + MVEL expression + dynamic binding.

[0080] The parameter transfer in the embodiment of the present application mainly consists of the following parts:

[0081] 1) Parameter adapter: Each plug-in component supports obtaining parameters from the context during the orchestration process. The parameter adapter is responsible for parsing and converting parameters and supports parsing MVEL expressions. In addition, when the orchestration is multi-level nested, it is also responsible for parsing the relationships between each level to pass the value of the parent level to each child level.

[0082] 2) Parameter Manager: The parameter manager is a wrapper class of the process instance context. Each process instance has a parameter manager. Each parameter manager is isolated from each other and is responsible for storing and obtaining parameters. All parameters are transmitted in the system in JSON format. The meaning of the data stored in the parameter manager is as follows:

[0083] fromID: the source process node number of the current process task, used to uniquely identify the starting node of the current process node;

[0084] toID: The target process node number of the current process task, which is used to uniquely identify the next target node when the current process node is executed;

[0085] reqID: The request ID of the current request is unique and is used to distinguish different requests.

[0086] Request: used to save the input parameters of each process node service in the process instance;

[0087] Response: used to save the final results returned after each process node in the process instance is run;

[0088] process: saves the intermediate variables generated during the process execution, and is used to record the variables that need to be passed in the context during the process service execution.

[0089] In some embodiments of the present application, the parameter transfer using a preset parameter transfer method between each business plug-in also includes: monitoring business requests; parsing the monitored business requests to obtain parsing results of the business requests; updating parameter cache information according to the parsing results of the business requests; monitoring the processing results of the last business plug-in in the business process; and clearing the parameter cache information corresponding to the business request according to the processing results of the last business plug-in monitored.

[0090] The parameter transfer process of the embodiment of the present application also includes a parameter listener, which is mainly responsible for the life cycle of the parameter, monitors the trigger operation of the process start node and is responsible for clearing the parameters stored in the parameter manager after the process ends, thereby reducing the use of JVM memory.

[0091] In order to facilitate the understanding of the above embodiments, Figure 4 As shown, a schematic diagram of the parameter context transfer process in an embodiment of the present application is provided. Taking the business process instance composed of plug-in 1 and plug-in 2 as an example, the parameter listener set after the source process node listens to the trigger request of the business process. After listening to the trigger request, the parameter adapter parses the request and stores the parsed parameter information in the parameter manager, and then encapsulates the request and forwards it to plug-in 1 for processing according to the flow order between the nodes in the business process. After plug-in 1 completes the processing according to the internal processing logic, it returns the processing result of plug-in 1. The parameter manager parses and stores the processing result of plug-in 1, and then encapsulates the request and forwards it to plug-in 2. After plug-in 2 completes the processing according to the internal processing logic, it returns the processing result of plug-in 2. The parameter manager parses and stores the processing result of plug-in 2. After the parameter listener monitors that all plug-in nodes of the entire business process have been executed, the parameters stored in the parameter manager are cleared.

[0092] In summary, the key points of the service plug-in arrangement method of this application mainly include:

[0093] 1) Dynamically arrange plug-in packages according to business rules to achieve fine-grained and modularized complex businesses and improve system flexibility;

[0094] 2) Propose a method for arranging plug-in components, which can dynamically replace business functions by dynamically loading and unloading specified components without re-arranging;

[0095] 3) Through the dynamic management of plug-in components and the pre-definition of orchestration components, a pre-orchestration mechanism for complex business functions is provided to achieve pre-defined implementation of business requirements, thereby achieving deep integration of business requirements and technology.

[0096] The service plug-in arrangement method of the present application has achieved at least the following technical effects:

[0097] 1) By dynamically loading business plug-in jar packages, the plug-in packages are dynamically arranged according to business rules, so as to quickly respond to business changes, reasonably control the granularity of business functions, and realize the fine-grained and modularization of complex businesses.

[0098] 2) Through plug-in programming, plug-in components can be loaded or unloaded through a specified path or remote warehouse, so that business functions can be replaced without modifying the source code.

[0099] 3) Both R&D personnel and business personnel can orchestrate complex businesses and test-run the business logic generated by the orchestration in a more intuitive and convenient way, achieving an effective combination of system development and business needs and lowering the threshold for software development.

[0100] 4) This application intuitively displays the basic description information and implementation function information of each orchestration component, allowing business personnel and developers to clearly understand the business function composition and system structure, and provides an overall perspective for technical implementation to analyze complex business needs.

[0101] 5) Through dynamic management of plug-in components, the plug-in components are provided as pre-implementation of complex business adhesives, and one-click online and offline of business functions are realized, which greatly improves the flexibility of development and the efficiency of operation and maintenance.

[0102] The business plug-in arrangement method of the present application can be widely used in the construction of business-driven software engineering projects without complicated R&D processes and costs. By dynamically arranging standardized plug-in components, the flexibility and scalability of the business are improved, the development cost and maintenance cost of business functions are reduced, the software development process is greatly simplified, and the development efficiency is improved.

[0103] The present application embodiment also provides a service plug-in arrangement device 500, such as Figure 5As shown, a schematic diagram of the structure of a service plug-in arrangement device in an embodiment of the present application is provided. The service plug-in arrangement device 500 includes: a loading unit 510, an arrangement unit 520 and an execution unit 530, wherein:

[0104] A loading unit 510, configured to load multiple service plug-ins according to configuration information of the service plug-ins;

[0105] The orchestration unit 520 is used to orchestrate the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules to generate an orchestrated business process;

[0106] The execution unit 530 is used to call each business plug-in in the arranged business process, and use a preset parameter transfer method to transfer parameters between each business plug-in to obtain a business process execution result.

[0107] In some embodiments of the present application, the loading unit 510 is specifically used to: obtain the configuration information of the business plug-in according to the orchestration configuration file and / or user configuration rules when the project is started or the class loading mechanism is triggered; load the business plug-in through a custom class loader according to the configuration information of the business plug-in; register the implementation class in the loaded business plug-in with the Spring container, and mark the loaded business plug-in as enabled to complete the loading of the business plug-in.

[0108] In some embodiments of the present application, the orchestration unit 520 is specifically used to: provide a visual orchestration interface; receive a user's orchestration instructions through the visual orchestration interface; orchestrate multiple loaded business plug-ins according to the user's orchestration instructions and business plug-in orchestration rules, and generate an orchestrated business process and corresponding orchestration configuration information.

[0109] In some embodiments of the present application, the orchestration unit 520 is specifically used to: after receiving the user's orchestration instructions, perform authority verification on the user; if the authority verification passes, orchestrate the loaded multiple business plug-ins according to the user's orchestration instructions and business plug-in orchestration rules, and generate an orchestrated business process and corresponding orchestration configuration information.

[0110] In some embodiments of the present application, the orchestration unit 520 is specifically used to: for the same type of business services, orchestrate multiple loaded business plug-ins according to the orchestration configuration information and business plug-in orchestration rules to obtain the general business process and corresponding orchestration configuration information corresponding to the same type of business services; when the business requirements change, dynamically unload the target business plug-in in the general business process and reload the changed business plug-in to obtain the updated business process and the corresponding orchestration configuration information.

[0111] In some embodiments of the present application, the execution unit 530 is specifically used to: generate input parameter information of any business plug-in in the business process based on parameter cache information, and send it to the business plug-in; receive the processing result returned by the business plug-in and perform parameter parsing to obtain the parameter parsing result of the business plug-in; update the parameter cache information based on the parameter parsing result of the business plug-in; generate input parameter information of the next-level business plug-in corresponding to the business plug-in based on the updated parameter cache information, and send it to the next-level business plug-in corresponding to the business plug-in.

[0112] In some embodiments of the present application, the execution unit 530 is specifically used to: monitor business requests; parse the monitored business requests to obtain the parsing results of the business requests; update the parameter cache information according to the parsing results of the business requests; monitor the processing results of the last business plug-in in the business process; and clear the parameter cache information corresponding to the business request according to the processing results of the last business plug-in monitored.

[0113] It can be understood that the above-mentioned service plug-in orchestration device can implement each step of the service plug-in orchestration method provided in the above-mentioned embodiment, and the relevant explanations about the service plug-in orchestration method are applicable to the service plug-in orchestration device, which will not be repeated here.

[0114] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 6 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0115] The processor, network interface and memory can be interconnected through 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. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0116] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0117] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a business plug-in arrangement device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0118] Load multiple business plug-ins according to the configuration information of the business plug-in;

[0119] Orchestrate multiple loaded business plug-ins according to the orchestration configuration information and business plug-in orchestration rules to generate an orchestrated business process;

[0120] Each business plug-in in the orchestrated business process is called, and a preset parameter transfer method is used to transfer parameters between each business plug-in to obtain a business process execution result.

[0121] The above application Figure 1The method performed by the service plug-in arrangement device 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. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above 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 gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0122] The electronic device may also perform Figure 1 The method for executing the service plug-in arrangement device in the Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

[0123] The embodiment of the present application further proposes a computer program product, including a computer program or an instruction, which, when executed by a processor, implements any of the aforementioned service plug-in orchestration methods, and is specifically used to execute:

[0124] Load multiple business plug-ins according to the configuration information of the business plug-in;

[0125] Orchestrate multiple loaded business plug-ins according to the orchestration configuration information and business plug-in orchestration rules to generate an orchestrated business process;

[0126] Each business plug-in in the orchestrated business process is called, and a preset parameter transfer method is used to transfer parameters between each business plug-in to obtain a business process execution result.

[0127] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0128] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0129] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0130] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0131] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0132] The memory may include non-permanent storage 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. The memory is an example of a computer-readable medium.

[0133] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic 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. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0134] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0135] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0136] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for arranging business plug-ins, characterized in that: The service plug-in arrangement method comprises: Load multiple business plug-ins according to the configuration information of the business plug-in; Orchestrate multiple loaded business plug-ins according to the orchestration configuration information and business plug-in orchestration rules to generate an orchestrated business process; Each business plug-in in the orchestrated business process is called, and a preset parameter transfer method is used to transfer parameters between each business plug-in to obtain a business process execution result.

2. The service plug-in arrangement method according to claim 1, characterized in that: The step of loading multiple service plug-ins according to the configuration information of the service plug-in includes: When the project is started or the class loading mechanism is triggered, the configuration information of the business plug-in is obtained according to the orchestration configuration file and / or user configuration rules; Loading the business plug-in through a custom class loader according to the configuration information of the business plug-in; Register the implementation class in the loaded business plug-in into the Spring container, mark the loaded business plug-in as enabled, and complete the loading of the business plug-in.

3. The service plug-in arrangement method according to claim 1, characterized in that: The step of orchestrating the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rules to generate an orchestrated service process includes: Provide a visual arrangement interface; Receiving a user's arrangement instruction through the visual arrangement interface; The loaded multiple service plug-ins are orchestrated according to the user's orchestration instruction and the service plug-in orchestration rule to generate an orchestrated service process and corresponding orchestration configuration information.

4. The service plug-in arrangement method according to claim 3, characterized in that: The step of orchestrating the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rules to generate an orchestrated service process includes: After receiving the user's arrangement instruction, verify the user's authority; When the authority verification is passed, the loaded multiple business plug-ins are orchestrated according to the user's orchestration instructions and business plug-in orchestration rules to generate an orchestrated business process and corresponding orchestration configuration information.

5. The service plug-in arrangement method according to claim 1, characterized in that: The step of orchestrating the loaded multiple service plug-ins according to the orchestration configuration information and the service plug-in orchestration rules to generate an orchestrated service process includes: For the same type of business services, multiple loaded business plug-ins are orchestrated according to the orchestration configuration information and the business plug-in orchestration rules to obtain the common business process and corresponding orchestration configuration information corresponding to the same type of business services; When the business requirements change, the target business plug-in in the general business process is dynamically uninstalled and the changed business plug-in is reloaded to obtain the updated business process and the corresponding orchestration configuration information.

6. The service plug-in arrangement method according to claim 1, characterized in that: The method of transferring parameters between service plug-ins by using a preset parameter transfer method includes: Generate input parameter information of any business plug-in in the business process according to the parameter cache information, and send it to the business plug-in; Receiving the processing result returned by the service plug-in and performing parameter parsing to obtain the parameter parsing result of the service plug-in; Update the parameter cache information according to the parameter parsing result of the service plug-in; The input parameter information of the next-level service plug-in corresponding to the service plug-in is generated according to the updated parameter cache information, and sent to the next-level service plug-in corresponding to the service plug-in.

7. The service plug-in arrangement method according to claim 6, characterized in that: The method of transferring parameters between service plug-ins by using a preset parameter transfer method also includes: Monitor business requests; Parse the monitored business request to obtain the parsing result of the business request; Updating parameter cache information according to the parsing result of the business request; Monitor the processing result of the last business plug-in in the business process; According to the processing result of the last monitored service plug-in, the parameter cache information corresponding to the service request is cleared.

8. A service plug-in arrangement device, characterized in that: The service plug-in arrangement device comprises: A loading unit, used to load multiple service plug-ins according to the configuration information of the service plug-ins; An orchestration unit, used to orchestrate the loaded multiple business plug-ins according to the orchestration configuration information and the business plug-in orchestration rules, and generate an orchestrated business process; The execution unit is used to call each business plug-in in the arranged business process, and use a preset parameter transfer method to transfer parameters between each business plug-in to obtain a business process execution result.

9. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the service plug-in orchestration method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program or an instruction, wherein the computer program or the instruction, when executed by a processor, implements the service plug-in arrangement method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Data exchange arrangement system, method, equipment and medium

    CN120780373A

  • A data exchange orchestration system, method, device, and medium

    CN120780373B