Method, device, equipment and storage medium for establishing operation management system
By defining a unified interface and function processor for business object operation methods, the problem of differences in data processing of different businesses in enterprise information management software is solved, and code redundancy is reduced and application flexibility is improved.
Patent Information
- Application Number
- CN202410139418.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2044-01-31
AI Technical Summary
In the existing technology, enterprise information management software lacks a unified operation management system when processing different business data, resulting in code redundancy and poor flexibility, and is unable to effectively and uniformly process the same operations between different businesses.
Define the interfaces corresponding to each operation method of the business object, and limit the operation methods through the function processor, establish an operation management system, eliminate the differences between different business objects, and enhance the rationality and flexibility of the application.
By setting up a unified interface and function processor, the development workload of different business processing codes is reduced, the rationality and flexibility of the application are enhanced, and the configurability requirements of the enterprise are met.
Smart Images

Figure CN117891441B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software development, and in particular to a method, device, equipment and storage medium for establishing an operation management system. Background Art
[0002] With the development of information technology, enterprises have increasingly higher requirements for information management software. Platforms such as PaaS and SaaS can provide digital information services to enterprises.
[0003] In related technologies, when cloud computing software platforms provide services to enterprises, the software's organization and processing methods for different business data require different processing codes to be implemented. However, the data processing methods between some business function modules have commonalities or high similarities. Traditional technical solutions cannot uniformly deal with such differences, and require a large amount of code development to implement different businesses, which has poor flexibility and high redundancy.
[0004] Based on the above analysis of the development status of this technology field, the existing technical solutions lack a data management system that uniformly handles the same operations between different businesses. Summary of the Invention
[0005] The purpose of the present invention is to provide a method, device, equipment and storage medium for establishing an operation management system, aiming to solve the above-mentioned problems in the prior art.
[0006] According to a first aspect of an embodiment of the present invention, there is provided a method for establishing an operation management system, comprising:
[0007] Define the interface implemented by each operation method of the business object. The interface corresponding to the same operation method of different business objects is consistent.
[0008] Define the functional processors that business objects can select when performing tasks, establish an operation management system that includes business objects, interfaces and functional processors and reflects the relationship between them, where the functional processors include logical rules for restricting the execution of operation methods.
[0009] According to a second aspect of an embodiment of the present invention, there is provided an apparatus for establishing an operation management system, comprising:
[0010] The interface corresponding module is used to define the interface corresponding to each operation method of the business object. The interface corresponding to the same operation method of different business objects is consistent;
[0011] The function processor corresponding module is used to define the function processors that business objects can select when performing tasks, establish an operation management system that includes business objects, interfaces and function processors and reflects the relationship between them, among which the function processor includes logical rules for restricting the execution of operation methods.
[0012] According to a third aspect of an embodiment of the present invention, an electronic device is provided, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for establishing an operation management system as provided in the first aspect of the present disclosure are implemented.
[0013] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a program for implementing information transmission is stored. When the program is executed by a processor, the steps of the method for establishing an operation management system provided in the first aspect of the present disclosure are implemented.
[0014] The technical solution provided by the embodiment of the present invention includes the following beneficial effects: the same operation steps between different business objects are called by the interface of the same encapsulation module, thereby eliminating the differences between different types of data processing, and by setting a function processor to limit some operation methods, that is, limiting the user's operations on some step nodes in the task execution process, which can enhance the rationality and flexibility of the application.
[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a flow chart of a method for establishing an operation management system according to an embodiment of the present invention;
[0018] Figure 2 is a schematic diagram of the execution of a system application according to an embodiment of the present invention;
[0019] Figure 3 is a schematic diagram of an apparatus for establishing an operation management system according to an embodiment of the present invention;
[0020] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this document.
[0022] Method Example
[0023] According to an embodiment of the present invention, a method for establishing an operation management system is provided. Figure 1 FIG. 1 is a flow chart of a method for establishing an operation management system according to an embodiment of the present invention. Figure 1 As shown, the method for establishing an operation management system according to an embodiment of the present invention specifically includes:
[0024] In step S110, the interfaces corresponding to the implementation of each operation method of the business object are defined, wherein the interfaces corresponding to the same operation method of different business objects are consistent, specifically including:
[0025] Define all the operation methods required by different business objects, obtain the API interface name of the operation method implementation module, and match the API interface name with the operation method.
[0026] In this embodiment, taking project management in the engineering construction industry as an example, a payment application to a supplier is a business and can be defined as a payment application object. An expense reimbursement document incurred on a project is also a business and can be defined as an expense reimbursement object. These two data types are shown in Table 1, and the defined interfaces are shown in Table 2:
[0027] Table 1. Data type definitions
[0028] Object ID Object Name Object API 101 Payment Application payment 102 expense reimbursement reimbursement
[0029] Table 2. Interface definition
[0030] Method ID Method Name Method API Object Name Object API 201 New insert Payment Application payment 202 Revise update Payment Application payment 203 delete delete Payment Application payment 204 Approval approve Payment Application payment 205 Details detail Payment Application payment 211 New insert expense reimbursement reimbursement 212 Revise update expense reimbursement reimbursement 213 delete delete expense reimbursement reimbursement 214 copy copy expense reimbursement reimbursement
[0031] The two business objects, payment application and expense reimbursement, share some common operations, such as creating, modifying, and deleting. Therefore, when performing these common operations, they can call the same method API. The method API itself does not need to know which specific business object is calling the method, but only needs to execute the corresponding action.
[0032] In step S120, the function processors that the business object can select when executing a task are defined, and an operation management system is established that includes business objects, interfaces, and function processors and reflects the relationship between them. The function processors include logic rules for restricting the execution of operation methods, specifically including:
[0033] The logical rules in the application are determined by needs. For example, when an enterprise needs to control the use of funds for certain application expenses, it needs to use the fund planning application module, so the fund verification processor will have fund management logic processing content. When an enterprise calculates the actual costs incurred on a project, it needs to use the cost management application module, so the cost management application processor will have logic processing content for aggregating cost documents.
[0034] According to the types that the business object can control when executing tasks, determine all the function processors that the business object can select, obtain the key values corresponding to the function processors, and match the key values with the operation methods that need to be controlled in the business object.
[0035] The logic rules include the corresponding operational threshold interval rules when the operation method is executed.
[0036] In this embodiment, the functional processors include a fund verification processor and a cost collection processor, as shown in Table 3:
[0037] Table 3. Functional Processor Examples
[0038] Processor ID Application Name Application API Processor Name Processor Key 301 Funding plan application fundManageApp Funds Verification fund_check_hander 302 Cost management applications costManageApp Cost aggregation cost_collect_hander
[0039] It should be noted that the control of logic rules is part of the purpose of the processor, and its internal specific calculation process, storage function and other functions are not limited in the embodiment of the present invention.
[0040] The method further comprises:
[0041] In step S130, based on the operation management system, the current business object to be executed for the specific task is determined, the required current function manager is determined according to the execution logic requirements, and the current execution system is screened in the operation management system according to the current business object and the current function manager;
[0042] Execute each operation method on the system platform. During the execution process, the system platform calls the corresponding interface in the current execution system to implement the specific operation. The logic rules of the corresponding operation of the function processor in the current execution system are used to determine whether the current specific operation is reasonable. If it is unreasonable, an error is prompted. Specifically, it includes:
[0043] For the payment application business object, a function manager can be used to control user operations on the system interface at the create, update, and approve nodes. In this embodiment, the current function manager selected is the funds verification processor. Table 4 shows some of the contents of the current execution system. Some node operations do not require logical restrictions, such as the delete operation, which does not require the allocation of a function processor, but is still part of the current execution system:
[0044] Table 4. Examples of some current implementation systems
[0045] Processor ID Object API Method API Application API Processor Key 401 payment insert fundManageApp fund_check_hander 402 payment update fundManageApp fund_check_hander 403 payment approve fundManageApp fund_check_hander
[0046] Logical rules are used to determine whether user operations on the system interface are reasonable. For example, whether the amount that can be applied for exceeds the threshold defined. It should be noted that business objects can participate in the logical control of multiple function processors. Payment applications can participate in fund verification control and cost aggregation plans. In other words, the current function processor can contain multiple function processors.
[0047] The system platform specifically includes: PaaS platform or SaaS platform.
[0048] The above technical solutions of the embodiments of the present invention are illustrated with reference to the following drawings.
[0049] Figure 2 FIG. 1 is a schematic diagram of the system application execution of an embodiment of the present invention, such as Figure 2 As shown, it shows that based on the established operation management system, when a user operation occurs, the corresponding function processor is found and the list is fed back to the location where the operation is currently executed. Then, the function processor is triggered in sequence according to the processor to perform logical rule processing. The application operation executor in the figure corresponds to the user's operation, and the application operation connector feeds back the list contained in the current execution system to the user. The application processor is a specific function processor.
[0050] To sum up, in response to the existing problems, the method for establishing an operation management system of this invention calls the interface of the same encapsulation module for the same operation steps between different business objects, eliminates the differences between different types of data processing, and reduces the development amount of different business processing codes on the PaaS or SaaS platform. It also limits some operation methods by setting function processors, that is, limiting the user's operations on some step nodes in the process of executing tasks, which meets the enterprise's configurability needs to a certain extent and enhances the rationality and flexibility of the application.
[0051] Device embodiment
[0052] According to an embodiment of the present invention, a device for establishing an operation management system is provided. Figure 3Schematic diagram of an apparatus for establishing an operation management system according to an embodiment of the present invention. Figure 3 As shown, the device for establishing the operation management system according to an embodiment of the present invention specifically includes:
[0053] The interface corresponding module 30 is used to define the interface corresponding to each operation method of the business object. The interface corresponding to the same operation method of different business objects is consistent. Specifically, it is used to:
[0054] Define all the operation methods required by different business objects, obtain the API interface name of the operation method implementation module, and match the API interface name with the operation method.
[0055] The function processor module 32 is used to define the function processors that business objects can select when executing tasks, and to establish an operation management system that includes business objects, interfaces, and function processors and reflects the relationship between them. The function processors include logical rules for restricting the execution of operation methods, specifically for:
[0056] According to the types that the business object can control when executing tasks, determine all the function processors that the business object can select, obtain the key values corresponding to the function processors, and match the key values with the operation methods that need to be controlled in the business object.
[0057] The logic rules include the corresponding operational threshold interval rules when the operation method is executed.
[0058] The device further comprises:
[0059] Application module 34 is configured to determine the current business object required to execute a specific task based on the operation management system, determine the current function manager required based on the execution logic requirements, and select the current execution system within the operation management system based on the current business object and the current function manager. The application module 34 then executes each operation method on the system platform. During execution, the system platform calls the corresponding interface in the current execution system to implement the specific operation. The application module then determines whether the current specific operation is reasonable based on the logic rules corresponding to the operation of the function processor in the current execution system, and issues an error message if the current specific operation is unreasonable. Specifically, the system platform includes a PaaS platform or a SaaS platform.
[0060] To sum up, in response to the existing problems, the device for establishing the operation management system of this invention calls the interface of the same encapsulation module for the same operation steps between different business objects, eliminates the differences between different types of data processing, and reduces the development amount of different business processing codes on the PaaS or SaaS platform. It also limits some operation methods by setting function processors, that is, limiting the user's operations on some step nodes in the process of executing tasks, which meets the enterprise's configurability needs to a certain extent and enhances the rationality and flexibility of the application.
[0061] Electronic device embodiment
[0062] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. Electronic device 400 may include at least one processor 410 and memory 420. Processor 410 can execute instructions stored in memory 420. Processor 410 is communicatively coupled to memory 420 via a data bus. In addition to memory 420, processor 410 may also be communicatively coupled to input device 430, output device 440, and communication device 450 via the data bus.
[0063] The processor 410 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processing unit (GPU), a field programmable gate array (FPGA), a system on chip (SOC), an application specific integrated circuit (ASIC), or a combination thereof.
[0064] The memory 420 may be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0065] In the embodiment of the present disclosure, executable instructions are stored in the memory 420, and the processor 410 can read the executable instructions from the memory 420 and execute the instructions to implement all or part of the steps of the method for establishing an operation management system in any of the above exemplary embodiments.
[0066] Computer readable storage medium embodiments
[0067] In addition to the above-mentioned methods and devices, the exemplary embodiments of the present disclosure may also be a computer program product or a computer-readable storage medium storing the computer program product, wherein the computer product includes computer program instructions that can be executed by a processor to implement all or part of the steps described in the method for establishing an operation management system in any of the above-mentioned exemplary embodiments.
[0068] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, etc., as well as conventional procedural programming languages such as "C" or similar programming languages and scripting languages (e.g., Python). The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0069] Computer-readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. More specific examples of readable storage media include: static random access memory (SRAM) electrically connected with one or more wires, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk, or any suitable combination thereof.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for establishing an operation management system, characterized in that: include: Define the interface implemented by each operation method of the business object, where the interface corresponding to the same operation method is consistent between different business objects; defining various function processors that the business object can select when executing a task, and establishing an operation management system that includes the business object, the interface, and the function processor and reflects the relationship between them, wherein the function processor internally includes logic rules for limiting the execution of the operation method, and the logic rules include operable threshold interval rules corresponding to the execution of the operation method; The method further comprises: Based on the operation management system, determine the current business object that needs to be executed for the specific task, determine the required current function manager according to the execution logic requirements, and select the current execution system in the operation management system according to the current business object and the current function manager; Execute each operation method on the system platform. During the execution process, the system platform calls the corresponding interface in the current execution system to implement specific operations, and judges whether the current specific operation is reasonable through the logical rules of the corresponding operation of the functional processor in the current execution system. If it is unreasonable, an error is prompted. The system platform specifically includes: PaaS platform or SaaS platform.
2. The method according to claim 1, characterized in that The interfaces corresponding to the implementation of each operation method of the business object are specifically defined as follows: Define all the operation methods required by different business objects, obtain the API interface name of the operation method implementation module, and match the API interface name with the operation method.
3. The method according to claim 1, characterized in that The function processors that can be selected by the business object when executing a task specifically include: According to the types that the business object can control when executing tasks, determine all function processors that the business object can select, obtain the key value corresponding to the function processor, and correspond the key value to the operation method that needs to be controlled in the business object.
4. A device for establishing an operation management system, characterized in that: include: The interface corresponding module is used to define the interface corresponding to each operation method of the business object, wherein the interface corresponding to the same operation method of different business objects is consistent; a function processor corresponding module, configured to define the function processors that the business object can select when executing a task, and to establish an operation management system that includes the business object, the interface, and the function processor and reflects the relationship between them, wherein the function processor internally includes logic rules for limiting the execution of the operation method, and the logic rules include operable threshold interval rules corresponding to the execution of the operation method; The device further comprises: An application module is used to determine the current business object that needs to be executed for a specific task based on the operation management system, determine the required current function manager according to the execution logic requirements, and screen the current execution system in the operation management system according to the current business object and the current function manager; execute each operation method on the system platform, and during the execution process, call the corresponding interface in the current execution system through the system platform to implement specific operations, and judge whether the current specific operation is reasonable through the logical rules of the corresponding operation of the function processor in the current execution system, and prompt an error if it is unreasonable. The system platform specifically includes: PaaS platform or SaaS platform.
5. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for establishing an operation management system according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores an information transmission implementation program, and when the program is executed by a processor, the steps of the method for establishing an operation management system according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Service request processing method and device, electronic equipment and computer storage medium
CN113391860A
Processor interface management method and device, equipment and storage medium
CN114968622A
Asynchronous task processing method and device, equipment and medium
CN115756802A