Modular system code development method, device, equipment and system
Through the modular system code development method, formatted message information is generated according to business needs and processes, and code is generated using preset process executors, which solves the problems of repeated development and high costs in the existing technology, and improves development efficiency and code quality. .
Patent Information
- Application Number
- CN202011364744.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-11-27
AI Technical Summary
Existing system code development solutions involve repeated development, waste of development resources, low development efficiency, high maintenance and testing costs, and unguaranteed operational quality.
The modular system code development method is adopted to determine the target module according to the business needs and business processes of the system to be developed, generate formatted message information, and generate code files through the preset process executor to avoid repeated development and reduce maintenance and testing costs.
It improves system development efficiency, ensures code quality and compatibility, and reduces development cycles and resource waste.
Smart Images

Figure CN112433722B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology (Fintech), and in particular to a modular system code development method, device, equipment and system. Background Art
[0002] With the rapid development of Internet technology, especially Internet financial technology (Fintech), more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are being applied in the financial field, resulting in an explosive growth in financial services and business data related to financial services.
[0003] At present, when providing system services for different business areas in the financial business platform, it is necessary to develop the corresponding system code. One feasible solution is that due to the differences in business requirements and business content and fields in different business areas, the corresponding system processing procedures and contents must be different. Therefore, the business process code matching each business product can be redeveloped in each subsystem. Another solution is to quickly reuse the corresponding functional modules based on the software development kit (Software Development Kit, referred to as SDK). For example, the underlying framework of the application system of the financial business platform is integrated on the SDK, and the business process code required for the business is developed on the basis of the system framework through rapid reuse. Among them, during the code development process, if the corresponding business process code exists in the SDK, the relevant code can be directly referenced. If the corresponding business process code does not exist in the SDK, the similar business process code can be queried in other systems, and the similar business process code can be modified to obtain the required business process code.
[0004] However, there are many problems with the above-mentioned system code development solution. For example, redeveloping the code for the business process of a newly created subsystem may lead to the duplication of existing functional modules or similar functional modules of some other subsystems, wasting development manpower and low development efficiency. When rapid reuse is performed based on SDK, differences are likely to occur in the subsequent system service process, and the development, maintenance and testing costs will be relatively high, and the operation quality cannot be guaranteed. Summary of the invention
[0005] The present application provides a modular system code development method, device, equipment and system, which are used to solve the technical problems of existing system code development solutions, such as repeated development, waste of development resources and low development efficiency, high maintenance and testing costs and unguaranteed operation quality.
[0006] In a first aspect, the present application provides a modular system code development method, comprising:
[0007] Determine the target module according to the business requirements and business process of the system to be developed, wherein the target module is used to represent the code information corresponding to the business node in the business process;
[0008] Generate corresponding formatted message information according to the business process and the target module, wherein the formatted message information describes the business process and the target module in a preset programming language;
[0009] The formatted message information is sent to the service unit.
[0010] In a possible design, determining the target module according to the business requirements and business processes of the system to be developed includes:
[0011] A common module is determined from a preset module library according to the business requirement and the business process, so as to determine the common module as the target module, wherein the preset module library includes a plurality of the common modules.
[0012] In a possible design, when the service node includes differential service attributes, the method further includes:
[0013] Generate a blank module, and edit the code of the blank module according to the differential business attributes to obtain a custom module and corresponding module information;
[0014] The custom module is determined as the target module, and the code information in the custom module is used to characterize the differential service attributes of the corresponding service node.
[0015] In a possible design, before determining the common module from the preset module library according to the business requirements and the business process, the method further includes:
[0016] Generate corresponding code information according to preset business requirements and in a preset unified format to obtain multiple code modules;
[0017] Define the corresponding initialization function, stage indication function and output result function for the code information in each code module according to the preset specifications;
[0018] Graphically encapsulate each defined code module to obtain the corresponding common module;
[0019] The module information corresponding to each common module is stored in a preset module library according to a preset list format, wherein the module information at least includes module name information, module description information, module path information and condition field information.
[0020] In a possible design, the generating corresponding formatted message information according to the business process and the target module includes:
[0021] Generate the formatted message information according to each business node in the business process and the corresponding target module, the formatted message information including process name information, process code path information, process description information and node module information of the business process;
[0022] The node module information includes type information, content attribute description information and sub-node description information of the service node, and the content attribute description information is used to describe the target module corresponding to the service node.
[0023] In a second aspect, the present application provides a modular system code development method, comprising:
[0024] Receive formatted message information sent by the process design unit, wherein the formatted message information includes process name information, process code path information, process description information, and node module information of the business process in the system to be developed, wherein the node module information includes type information, content attribute description information, and sub-node description information of the business node;
[0025] Based on the preset process executor, a code file is generated according to the formatted message information to complete the code development of the system to be developed.
[0026] In a possible design, the generating of the code file based on the formatted message information by the preset process executor includes:
[0027] Preprocessing the formatted message information according to the business process to obtain target data corresponding to each business node;
[0028] Storing each target data into a preset source code list, each target data includes a corresponding target module and annotation code information, wherein the annotation code information is used to mark the corresponding information corresponding to the target module;
[0029] Based on the preset process executor, the corresponding code file is generated according to the preset source code list.
[0030] In a possible design, preprocessing the formatted message information according to the service process to obtain target data corresponding to each service node includes:
[0031] Read the formatted message information according to the business process, and convert the formatted message information into request object information through a preset annotation algorithm;
[0032] Acquire the process name information and the process description information according to the request object information to determine the first service node;
[0033] Determine the corresponding annotation code information according to the content attribute description information corresponding to the first business node to obtain the corresponding target data;
[0034] The target data corresponding to the next service node is determined by the sub-node description information corresponding to the current service node until the sub-node description information corresponding to the current service node is empty.
[0035] In a possible design, the generating the corresponding code file based on the preset process executor according to the preset source code list includes:
[0036] Running the preset process executor to determine the process name information of the business process according to the preset source code list, obtaining an executable bean, and determining the entry of the business process;
[0037] The preset process executor performs code generation operations on each target module corresponding to all business nodes in sequence through the entry of the business process to obtain the code file corresponding to each business node.
[0038] In a possible design, the preset process executor sequentially generates code for each target module corresponding to all business nodes through the entry of the business process, including:
[0039] The preset process executor performs a code generation operation on the first target module, and after executing the corresponding output result function, the first target module feeds back its corresponding stage indicator function to the preset process executor;
[0040] The preset process executor performs a code generation operation on the target module corresponding to the next service node indicated by the stage indicator function;
[0041] Until the current target module does not feed back the stage indication function to the preset process executor, or the preset process executor receives the end indication function, the code generation operations corresponding to all service nodes are completed.
[0042] In a third aspect, the present application provides a modular system code development method, comprising:
[0043] When the source of the target module is a public module, the corresponding code file is called from the service unit by referencing a preset data package through a preset link, and the preset data package includes code information corresponding to the public module; and / or
[0044] When the source of the target module is a custom module, a custom file is generated to call a corresponding code file from the service unit according to the custom file, and the custom file includes code information corresponding to each custom module.
[0045] In a fourth aspect, the present application provides a modular system code development device, comprising:
[0046] A processing module, used to determine a target module according to the business requirements and business processes of the system to be developed, wherein the target module is used to represent code information corresponding to a business node in the business process;
[0047] A generating module, used for generating corresponding formatted message information according to the business process and the target module, wherein the formatted message information describes the business process and the target module in a preset programming language;
[0048] The sending module is used to send the formatted message information to the service unit.
[0049] In a possible design, the processing module is specifically used to:
[0050] A common module is determined from a preset module library according to the business requirement and the business process, so as to determine the common module as the target module, wherein the preset module library includes a plurality of the common modules.
[0051] In a possible design, when the service node includes differential service attributes, the processing module is further specifically configured to:
[0052] Generate a blank module, and edit the code of the blank module according to the differential business attributes to obtain a custom module and corresponding module information;
[0053] The custom module is determined as the target module, and the code information in the custom module is used to characterize the differential service attributes of the corresponding service node.
[0054] In a possible design, the processing module is further used for:
[0055] Generate corresponding code information according to preset business requirements and in a preset unified format to obtain multiple code modules;
[0056] Define the corresponding initialization function, stage indication function and output result function for the code information in each code module according to the preset specifications;
[0057] Graphically encapsulate each defined code module to obtain the corresponding common module;
[0058] The module information corresponding to each common module is stored in a preset module library according to a preset list format, wherein the module information at least includes module name information, module description information, module path information and condition field information.
[0059] In a possible design, the generating module is specifically used for:
[0060] Generate the formatted message information according to each business node in the business process and the corresponding target module, the formatted message information including process name information, process code path information, process description information and node module information of the business process;
[0061] The node module information includes type information, content attribute description information and sub-node description information of the service node, and the content attribute description information is used to describe the target module corresponding to the service node.
[0062] In a fifth aspect, the present application provides a modular system code development device, comprising:
[0063] A receiving module, used to receive formatted message information sent by the process design unit, wherein the formatted message information includes process name information, process code path information, process description information and node module information of the business process in the system to be developed, wherein the node module information includes type information, content attribute description information and sub-node description information of the business node;
[0064] A generation module is used to generate a code file according to the formatted message information based on a preset process executor to complete the code development of the system to be developed.
[0065] In a possible design, the generating module includes:
[0066] A preprocessing submodule, used to preprocess the formatted message information according to the business process to obtain target data corresponding to each business node;
[0067] A storage submodule, used for storing each target data into a preset source code list, each target data includes a corresponding target module and annotation code information, and the annotation code information is used for marking the corresponding information corresponding to the target module;
[0068] A generating submodule is used to generate the corresponding code file according to the preset source code list based on the preset process executor.
[0069] In a possible design, the preprocessing submodule is specifically used for:
[0070] Read the formatted message information according to the business process, and convert the formatted message information into request object information through a preset annotation algorithm;
[0071] Acquire the process name information and the process description information according to the request object information to determine the first service node;
[0072] Determine the corresponding annotation code information according to the content attribute description information corresponding to the first business node to obtain the corresponding target data;
[0073] The target data corresponding to the next service node is determined by the sub-node description information corresponding to the current service node until the sub-node description information corresponding to the current service node is empty.
[0074] In a possible design, the generating submodule is specifically used for:
[0075] Running the preset process executor to determine the process name information of the business process according to the preset source code list, obtaining an executable bean, and determining the entry of the business process;
[0076] The preset process executor performs code generation operations on each target module corresponding to all business nodes in sequence through the entry of the business process to obtain the code file corresponding to each business node.
[0077] In a possible design, the generating submodule further has a function for:
[0078] The preset process executor performs a code generation operation on the first target module, and after executing the corresponding output result function, the first target module feeds back its corresponding stage indicator function to the preset process executor;
[0079] The preset process executor performs a code generation operation on the target module corresponding to the next service node indicated by the stage indicator function;
[0080] Until the current target module does not feed back the stage indication function to the preset process executor, or the preset process executor receives the end indication function, the code generation operations corresponding to all service nodes are completed.
[0081] In a sixth aspect, the present application provides a modular system code development device, including: a calling module; the calling module is used to:
[0082] When the source of the target module is a public module, the corresponding code file is called from the service unit by referencing a preset data package through a preset link, and the preset data package includes code information corresponding to the public module; and / or
[0083] When the source of the target module is a custom module, a custom file is generated to call a corresponding code file from the service unit according to the custom file, and the custom file includes code information corresponding to each custom module.
[0084] In a seventh aspect, the present application provides an electronic device, including:
[0085] Processor; and
[0086] A memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the modular system code development method described in any one of the first aspect and the optional scheme of the first aspect.
[0087] In an eighth aspect, the present application provides an electronic device, including:
[0088] Processor; and
[0089] A memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the modular system code development method described in any one of the second aspect and the optional scheme of the second aspect.
[0090] In a ninth aspect, the present application provides an electronic device, including:
[0091] Processor; and
[0092] A memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the modular system code development method described in the third aspect.
[0093] In a tenth aspect, the present application provides a modular system code development system, comprising:
[0094] A process design unit, comprising a modular system code development device as described in any one of the fourth aspect and its optional solutions;
[0095] A service unit, comprising the modular system code development device according to any one of the fifth aspect and its optional solutions;
[0096] An application unit, comprising the modular system code development device according to the sixth aspect;
[0097] Wherein, the service unit is communicatively connected with the process design unit and the application unit respectively.
[0098] The present application provides a modular system code development method, device, equipment and system. The process design unit in the modular system code development system first determines the target module according to the business requirements and business processes of the system to be developed. The target module is used to characterize the code information corresponding to the business node in the business process, and then generates the corresponding formatted message information according to the business process and the target module, and sends the formatted message information to the service unit in the code development system. The service unit generates a code file based on the received formatted message information based on the preset process executor to complete the code development of the system to be developed. The application unit in the code development system provides users with corresponding services that meet business needs by calling the code file. Thus, a modular code development idea is provided for developers, and there is no need to repeatedly develop codes for the system to be developed, which avoids the waste of development resources and effectively reduces the subsequent testing and maintenance costs. In addition, the code file is generated based on the preset process executor, without considering the code logic in each target module, and can be directly run while ensuring the operation quality, effectively shortening the system development cycle, thereby improving the system development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0100] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0101] Figure 2 A flowchart of a modular system code development method provided in an embodiment of the present application;
[0102] Figure 3 A business process diagram provided for an embodiment of the present application;
[0103] Figure 4 A schematic diagram of formatting message information provided in an embodiment of the present application;
[0104] Figure 5 A flowchart of another modular system code development method provided in an embodiment of the present application;
[0105] Figure 6 A flowchart of another modular system code development method provided in an embodiment of the present application;
[0106] Figure 7A flowchart of another modular system code development method provided in an embodiment of the present application;
[0107] Figure 8 A flowchart of another modular system code development method provided in an embodiment of the present application;
[0108] Fig. 9 A schematic diagram of the structure of a modular system code development device provided in an embodiment of the present application;
[0109] Fig.10 A schematic diagram of the structure of another modular system code development device provided in an embodiment of the present application;
[0110] Fig.11 A schematic diagram of the structure of a generation module provided in an embodiment of the present application;
[0111] Fig.12 A schematic diagram of the structure of another modular system code development device provided in an embodiment of the present application;
[0112] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0113] Fig.14 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0114] Fig.15 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0115] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of methods and devices consistent with some aspects of the present application as detailed in the appended claims.
[0116] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0117] In the field of Internet financial technology, for financial business platforms, when providing system services for different business fields, such as loan services, it is necessary to develop corresponding system codes. In the prior art, one feasible solution is that due to the differences in business requirements, business content and fields in different business fields, the corresponding system processing procedures and contents must also be different. Therefore, in order to meet the needs of business processes, it is necessary to redevelop business process codes that match business products in each subsystem. Another feasible solution is to quickly reuse corresponding functional modules directly according to business processes based on software development kits (SDKs). For example, the underlying framework of the application system of the financial business platform is integrated into the SDK in advance, and then the corresponding code required for the business is developed on the basis of the system framework through rapid reuse. In the process of code development, when there is a corresponding business process code in the SDK, it can be directly referenced. When there is no corresponding business process code in the SDK, the required business process code is obtained by querying similar codes in other systems and modifying them.
[0118] However, there are many problems with existing solutions. For example, the redevelopment of the business process code for a new subsystem may lead to the duplication of the corresponding code for existing functional modules or similar functional modules in other subsystems, wasting development resources, extending the development cycle, and reducing development efficiency. The rapid reuse of code based on SDK is prone to differences in the subsequent system service process, and the development, maintenance and testing costs are high, and the operation quality cannot be guaranteed.
[0119] In response to the above technical problems in the prior art, the inventive concept of the modular system code development method provided by the present application is that the process design unit can directly determine the modular target module according to the business requirements and business processes of the system to be developed, without the need to redevelop the code information corresponding to each business node, thereby effectively reducing the development maintenance and testing costs. The service unit can generate a code file based on the formatted message information based on the preset process executor, wherein the preset process executor only needs to perform the code generation operation on the target module corresponding to each business node according to the business process cycle, without considering the code logic in each target module, which not only ensures the code quality but also ensures the compatibility and operability in the application unit. The application unit can directly call the code file from the service unit to run directly, which can shorten the system development cycle and improve the system development efficiency.
[0120] The following is an introduction to exemplary application scenarios of the embodiments of the present application.
[0121] The modular system code development method provided in the embodiment of the present application can be applied to the modular system code development system provided in the embodiment of the present application, and the system code development system includes a process design unit, a service unit and an application unit, and the service unit is respectively connected to the process design unit and the application unit in communication. Among them, the process design unit, the service unit and the application unit each include a corresponding modular system code development device, each modular system code development device can execute the corresponding modular system code development method, and the electronic device corresponding to each modular system code development device can be a terminal device, a server or a server cluster and other devices. Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 1 As shown, the network is used to provide a medium for the communication link between the server 11, the server 12 and the terminal device 13. The network may include various connection types, such as wired, wireless communication links or fiber optic cables, etc. The server 11, the server 12 and the terminal device 13 can interact through the network to receive or send messages. Among them, the server 11 and the server 12 can be configured in the process design unit and the service unit respectively, and the terminal device 13 can be configured in the application unit to respectively execute their own modular system code development methods, and realize the code development of the system to be developed through mutual interaction. In addition, the embodiment of the present application does not limit the types of servers and terminal devices described above. For example, the terminal device 13 can be a smart phone, smart glasses, smart bracelet, smart watch, tablet computer, etc. Figure 1 The terminal device 13 in FIG. 1 is shown by taking a smart phone as an example.
[0122] It should be noted that the above application scenarios are merely illustrative, and the modular system code development method, apparatus, device and system provided in the embodiments of the present application include but are not limited to the above application scenarios.
[0123] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0124] Figure 2 A flowchart of a modular system code development method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method provided in this embodiment includes:
[0125] S101: Determine the target module according to the business requirements and business processes of the system to be developed.
[0126] Among them, the target module is used to represent the code information corresponding to the business node in the business process.
[0127] As the front-end process interface design end, the process design unit can design the target module required to meet the business needs according to the business needs of the system to be developed and the business process. The target module (Module) can be understood as modularized code information. In other words, the target module can represent the code information corresponding to the business node in the business process. It can be understood that the business process includes multiple business nodes, and each business node corresponds to a target module. The system to be developed can be a corresponding service system in a financial platform such as a loan system, and the business process can be a loan transaction process in a loan system, etc.
[0128] The target module can be an existing public module being maintained, or a custom module developed by developers for differentiated business attributes of business requirements in the system to be developed. Therefore, in a possible design, a possible implementation method for the process design unit to determine the target module in step S101 is to determine a public module from a preset module library according to business requirements and business processes, so as to determine the public module as the target module.
[0129] For example, the developers have set up and maintained a preset module library in advance, which includes multiple common modules. Each common module is code information that can represent the corresponding business attributes in the business node. The process design unit can directly select the common module that matches the business attributes corresponding to the current business node from the preset module library according to business needs and business processes, and determine the selected common module as the target module.
[0130] In actual working conditions, the current business node of the system to be developed may include differential business attributes, and selecting a common module as the target module may not meet the business requirements of the current business node, so the process design unit needs to determine a custom module. Therefore, the possible implementation methods for the process design unit to determine the target module in step S101 include:
[0131] Generate a blank module, and edit the code of the blank module according to the differentiated business attributes to obtain a custom module and corresponding module information;
[0132] The custom module is determined as the target module, and the code information in the custom module is used to characterize the differential business attributes of the corresponding business node.
[0133] If a public module is determined from the preset module library and used as the target module, the process design unit only needs to directly select it, and the public modules stored in the preset module library cannot be edited. When the business node includes differential business attributes, the corresponding code editing is required according to the differential business attributes. For example, a blank module is first generated, and then the code of the blank module is edited according to the differential business attributes to obtain the custom module created by the developer in the process design unit according to the differential business attributes and the module information corresponding to the custom module, and then the custom module is determined as the target module to characterize the differential business attributes of this business node through the code information therein.
[0134] The module information of the custom module is used to describe all relevant information of the custom module, such as the corresponding module name information, module description information, module path information, condition field information, etc., so that the corresponding code developed can guarantee the actual situation of the system to be developed. In addition, business nodes with different business attributes can be quickly embedded in the business process.
[0135] Figure 3 A business process diagram provided in an embodiment of the present application, such as Figure 3 As shown, the process design unit can determine all target modules that meet the business attributes of the system to be developed based on the business requirements and business processes of the system to be developed. Figure 3 As shown, in a completed business process of the system to be developed, from the beginning to the end of the business process, common modules 21, common modules 22, common modules 23, common modules 24 and common modules 25 are selected, and custom modules can be determined as target modules at business nodes including differential business attributes, such as embedding custom modules 26 and custom modules 27, thereby completing the design of target module 20 for the entire business process.
[0136] S102: Generate corresponding formatted message information according to the business process and the target module.
[0137] The formatted message information describes the business process and the target module through a preset programming language.
[0138] After determining the target module of the entire business process, the process design unit further generates corresponding formatted message information according to the business process and the target module. The formatted message information refers to the relevant information describing the business process and its corresponding target module in the system to be developed in a preset programming language.
[0139] For example, the process design unit generates formatted message information according to each business node and the corresponding target module in the business process. The formatted message information includes the process name information, process code path information, process description information, and node module information of the business process. The process name information, process code path information, and process description information are all used to describe the business process in a preset programming language.
[0140] Among them, the node module information refers to the target module corresponding to each business node in the business process described by the corresponding preset programming language, such as the type information, content attribute description information and sub-node description information of the business node. The type information of the business node refers to the type of the current business node, which can be determined according to the specific business process of the system to be developed, such as the business node is a transaction, verification, query and other types. The content attribute description information is used to describe the target module corresponding to the current business node, for example, it can include the module information corresponding to the target module and the output result information, and the output result information is the result corresponding to the condition field information in the module information. The sub-node description information refers to whether there is a next business node adjacent to the current business node. For example, if the sub-node description information is empty, it indicates that there is no next business node after the current business node, otherwise, there is a next business node. Thus, the sub-node description information can be indicated from the current business node to the next business node to form the entire business process. It can be understood that when the sub-node description information flows to the next business node, the node module information corresponding to the next business node is included in the formatted message information.
[0141] It is worth noting that the preset programming language in the above embodiment can be a programming language such as C++ or Java, and this embodiment of the present application is not limited to this.
[0142] Figure 4 A schematic diagram of formatting message information provided in an embodiment of the present application, such as Figure 4As shown, for example, the business process of the business system to be developed is a transaction process, the process name information is the name of the transaction process, that is, the transaction process name; the process code path information is the path of the code corresponding to the transaction process, that is, the path where the transaction code is located; the process description information can be the Chinese description of the transaction process, that is, the Chinese description of the transaction process; the node module information is the corresponding information used by the business process to describe the target module corresponding to all business nodes, that is, the module node description. Continue to refer to Figure 4 As shown, the node module information can be understood as the description and definition of the module node in the above transaction process, for example, it may include Figure 4 The node type, node detailed content attribute description, and module subnode description shown in.
[0143] S103: Send formatted message information to the service unit.
[0144] Correspondingly, the service unit receives the formatted message information sent by the process design unit.
[0145] After generating the formatted message information, the process design unit sends it to the service unit, so that the service unit further generates a code file according to the received formatted message information.
[0146] The formatted message information may include process name information, process code path information, process description information and node module information of the business process in the system to be developed, and the node module information includes type information, content attribute description information and sub-node description information of the business node. For the specific content of the formatted message information, please refer to the detailed description in step S102, which will not be repeated here.
[0147] S104: Generate a code file based on the formatted message information based on a preset process executor to complete the code development of the system to be developed.
[0148] After receiving the formatted message information, the service unit generates the corresponding code file based on the formatted message information based on the preset process executor to complete the code development of the system to be developed. Among them, the preset process executor is a process executor (State Executor) designed in the underlying framework for executing the code generation operation of the target module. The preset process executor can perform the code generation operation on each target module according to the preset standard mode, where it is only used to perform the code generation operation on the code information represented by each target module, without considering the specific code logic of each target module. Thereby, the compatibility and good operability of the finally generated code file at runtime can be guaranteed.
[0149] After the service unit generates the corresponding code file based on the formatted message information generated by the process design unit based on the preset process executor, the code development of the system to be developed is completed. At this time, the application unit can directly download the code file from the service unit and run it. When the code development is completed, for the convenience of subsequent maintenance and testing, the generated code files are classified according to the source of the target module, so that the application unit can call the corresponding code file according to the source of the target module according to their own different storage methods, that is, the application unit executes step S105 and / or step S106.
[0150] S105: When the source of the target module is a public module, a corresponding code file is called from the service unit by referencing a preset data package through a preset link.
[0151] The preset data package includes code information corresponding to each common module.
[0152] S106: When the source of the target module is a custom module, a custom file is generated to call a corresponding code file from the service unit according to the custom file.
[0153] The custom file includes code information corresponding to each custom module.
[0154] After the service unit generates the code file of the entire business process, when the target module therein is determined by the public module, that is, the source of the target module is the public module, the code files corresponding to these target modules can be stored through a preset data package. In other words, the preset data package includes the code information corresponding to the public module. The application unit can download from the service unit through a preset connection mapped to the preset data package, that is, call the corresponding code file from the service unit by referencing the preset data package through the preset connection. Since the public module is not editable, directly calling the code file through the preset data package can effectively avoid modifying the source code information corresponding to the public module.
[0155] The preset data package may be a compressed package, for example, when the preset programming language is java, the preset data package is a preset jar package. This embodiment does not limit the parameters such as the specific form of the preset data package.
[0156] When the target module is determined by a custom module, that is, the source of the target module is a custom module, a custom file is generated while obtaining the custom module, and the obtained custom module is stored in the custom file. In other words, the custom file includes the code information corresponding to each custom module. The application unit can directly download the custom file from the service unit to call the corresponding code file, that is, the application unit calls the corresponding code file from the service unit according to the custom file. Therefore, in the subsequent code testing and maintenance stage, it can be directly based on the corresponding content in the custom file, which improves a certain convenience.
[0157] The application unit can directly obtain the code file developed for the system to be developed through steps S105 and / or S106, and put it into the operating environment to provide corresponding system services.
[0158] The modular system code development method provided by the embodiment of the present application is that the process design unit first determines the target module according to the business requirements and business processes of the system to be developed, wherein the determined target module is used to characterize the code information corresponding to the business node in the business process, and then generates the corresponding formatted message information according to the business process and the target module, so as to describe the business process and the target module through a preset programming language. After that, the process design unit sends the formatted message information to the service unit. The service unit generates a code file based on the formatted message information based on the preset process executor to complete the code development of the system to be developed. The application unit uses a corresponding method to call the code file from the service unit according to the source of the target module as a public module and / or a custom module, so as to provide users with corresponding services that meet business requirements by putting it into the operating environment. The embodiment of the present application provides a modular code development idea for developers, determines the public module as the target module, does not need to repeatedly develop the modules that realize the same function, and avoids the waste of development resources. The existence of public modules and custom modules can effectively reduce the subsequent testing and maintenance costs. In addition, based on the preset process executor to generate code files, there is no need to consider the code logic in each target module, and it has good compatibility and operability while ensuring the operation quality. Based on different sources of target modules, the application unit can directly download and run corresponding code files in different ways. Based on the above characteristics, the system code development method provided by the embodiment of the present application can effectively shorten the system development cycle and thus improve the system development efficiency.
[0159] Based on the above embodiment, the target module in step S101 can be determined by a common module, specifically, it can be determined from a preset module library including multiple common modules. Therefore, before determining the common module from the preset module library, the modular system code development method provided in the embodiment of the present application also includes a process design unit creating a preset module library. Figure 5A flowchart of another modular system code development method provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, this embodiment includes:
[0160] S201: Generate corresponding code information according to preset business requirements and in a preset unified format to obtain multiple code modules.
[0161] Developers can develop corresponding code information in advance according to some preset business requirements in a preset unified format, thereby obtaining multiple code modules. The preset business requirements can be corresponding requirements based on any business attributes in the financial platform and other fields, so as to ensure that the corresponding code modules have high versatility. The preset unified format can be understood as that for all preset business requirements, code development is carried out in accordance with the preset unified format when generating the corresponding code information, so that the multiple code modules obtained can all inherit the abstract class.
[0162] S202: defining corresponding initialization functions, stage indication functions and output result functions for the code information in each code module according to preset specifications.
[0163] In the case where each code module inherits the abstract class, the specific code information in each code module is defined according to the preset specifications, including the corresponding initialization function (init()), the stage pointer function (Next State), and the output result function (proc()). Among them, the initialization function is used to implement data initialization, external interface call, etc. The stage pointer function is used to implement data feedback between different code modules to meet the corresponding order of the business process. The output result function is used to implement the result processing of the data to indicate that the corresponding code module has ended with execution. Among them, the preset specification can be the above-mentioned functions provided in this embodiment, but it can also be set to other contents according to the actual working conditions, and this embodiment does not limit this.
[0164] S203: Graphically encapsulate each defined code module to obtain a corresponding common module.
[0165] Furthermore, each code module defined according to the preset specification is graphically encapsulated to obtain the corresponding common module. The graphical encapsulation can be understood as graphically encapsulating the code module according to the attribute characteristics of the business requirements corresponding to the code module, so that when selecting the common module, only the corresponding graphical module needs to be selected according to the business process.
[0166] S204: storing the module information corresponding to each common module in a preset module library according to a preset list format.
[0167] The module information includes at least module name information, module description information, module path information and condition field information.
[0168] After obtaining multiple common modules, in order to facilitate the direct selection of the process design unit according to the business process, the module information corresponding to each common module can be stored in the preset module library according to the preset list format. When the process design unit designs the target module corresponding to the entire business process, it only needs to query the preset module library and browse the module information of each common module in the preset module library to realize the selection of the common module. Table 1 is a part of the preset module library exemplarily listed. As shown in Table 1, the module information of each common module can include module name information (Module Name), module description information (Module_Desc), module path information (Module Path), and conditional field information, such as registrant (Registrant), creation time (Created_Datetime) and update time (Modified_Datetime) and other information.
[0169] Table 1
[0170]
[0171] As shown in Table 1, the module name information is the name of the current public module, the module description information can be the Chinese description of the public module, the module path information is the storage path of the public module in the process design unit, and the condition field information is some relevant information set by the developer according to the actual situation when creating the public module. The module information in Table 1 is only a schematic list. In actual working conditions, it can be set according to the business attributes in the business to be developed. This embodiment does not limit this. Among them, the specific format corresponding to the preset list format can be determined according to the content included in the module information, and its purpose is to facilitate the query of the preset module library to directly select the public module.
[0172] The modular system code development method provided by the embodiment of the present application requires the process design unit to generate a common module before determining the target module to create a preset module library. First, the corresponding code information is generated in a preset unified format according to the preset business requirements to obtain multiple code modules. Then, the code information in each code module is defined according to the preset specification, and the corresponding initialization function, stage indication function and output result function are defined. Each defined code module is then graphically encapsulated to obtain the corresponding common module. Finally, the module information corresponding to each common module is stored in the preset module library according to the preset list format. When the common module is determined, it can be directly selected by querying the preset module library. In addition, the developer can also maintain the common modules therein based on the preset module library to ensure the high quality of each common module.
[0173] The above embodiment describes the steps performed by the process design unit and the interaction between the process design unit, the service unit and the application unit to implement code development for the system to be developed. Further, the following embodiment will describe the steps performed by the service unit in detail.
[0174] In a possible design, a possible implementation of step S104 is as follows: Figure 6 As shown, Figure 6 A flowchart of another modular system code development method provided in an embodiment of the present application is shown as follows: Figure 6 As shown, the service unit provided in this embodiment generates a code file based on the formatted message information based on the preset process executor, including:
[0175] S301: pre-processing the formatted message information according to the business process to obtain target data corresponding to each business node;
[0176] S302: storing each target data into a preset source code list;
[0177] S303: Generate corresponding code files according to the preset source code list based on the preset process executor.
[0178] Each target data includes a corresponding target module and annotation code information, and the annotation code information is used to mark the corresponding information corresponding to the target module.
[0179] In other words, after receiving the formatted message information, the service unit pre-processes the formatted message information according to the business process, parses the target module corresponding to each business node in the business process and the annotation code information (Autowired) corresponding to the target module, thereby obtaining the target data corresponding to each business node. Among them, the annotation code information is used to mark the relevant information corresponding to the target module to create a corresponding relationship for all information related to the target module. For example, through the annotation code information, the node module information of the business node to which the target module belongs, the various information included in the node module information, and the relevant information of the business process to which the business node belongs can all be established in a corresponding relationship, so that the code information in each target module can generate a complete code file.
[0180] After obtaining each target data, each target data can be further stored in a preset source code list (Row Code List), so that the service unit generates a corresponding code file based on the preset process executor according to the preset source code list, which is conducive to standardizing the code file generation process and thus improving the system code development process.
[0181] Further, Figure 7 A possible implementation of step S301 is shown. Figure 7 A flowchart of another modular system code development method provided in an embodiment of the present application is shown as follows: Figure 7 As shown, in this embodiment, the service unit pre-processes the formatted message information according to the business process to obtain the target data corresponding to each business node, including:
[0182] S401: Read formatted message information according to the business process, and convert the formatted message information into request object information through a preset annotation algorithm.
[0183] The service unit first reads the formatted message information according to the business process, and first converts the formatted message information into request object information readable by the service unit through a preset annotation algorithm, where the preset annotation algorithm can be @Request Mapping in a Spring Web application, that is, mapping the HTTP request corresponding to the formatted message information to the MVC and REST controllers in the service unit to obtain the request object information (Flow Request) readable by the service unit.
[0184] S402: Obtain process name information and process description information according to the request object information to determine the first business node.
[0185] After obtaining the request object information readable inside the service unit, the process name information and process description information of the business process corresponding to the formatted message information are obtained according to the request object information to determine the first business node in the business process. The first business node is the first business node in the business process.
[0186] S403: Determine corresponding annotation code information according to the content attribute description information corresponding to the first business node to obtain corresponding target data.
[0187] After determining the first business node, the content attribute description information in the node module information corresponding to the first business node can be injected into the corresponding current target module to obtain annotation code information and create a corresponding relationship for all information related to the current target module, thereby determining the target data corresponding to the first business node.
[0188] S404: Determine the target data corresponding to the next service node through the sub-node description information corresponding to the current service node, until the sub-node description information corresponding to the current service node is empty.
[0189] After determining the target data corresponding to the first service node, further, the target data corresponding to the next service node is determined through the sub-node description information in the node module information corresponding to the first service node. It can be understood that when the sub-node description information is not empty, it indicates that there is a next service node relative to the service node.
[0190] Furthermore, the content attribute information in the node module information corresponding to the next business node can be determined according to step S403, and the target module corresponding to the next business node can be injected to obtain the corresponding annotation code information, thereby obtaining the target data corresponding to the next business node. When the sub-node description information is not empty, step S403 is repeated by analogy, so that the target data corresponding to the next business node can be determined through the sub-node description information corresponding to the current business node. Until the sub-node description information corresponding to the current business node is empty, it indicates that the current business node is the last business node in the business process, and the entire preprocessing process of formatting the message information has been completed, and the target data corresponding to each business node has been obtained.
[0191] In the modular system code development method provided in the embodiment of the present application, the service unit first reads the formatted message information according to the business process, converts the formatted message information through a preset annotation algorithm, and obtains the request object information. Then, the process name information and process description information of the business process are obtained according to the request object information to determine the first business node in the business process. Then, the corresponding annotation code information is determined according to the content attribute description information corresponding to the first business node, and the target data corresponding to the first business node is obtained. Furthermore, if the sub-node description information corresponding to the current business node is not empty, the target data corresponding to the next business node can be determined by the sub-node description information corresponding to the current business node, and so on, until the sub-node description information corresponding to the current business node is empty, it indicates that the entire process of pre-processing the formatted message information is completed, and the target data corresponding to each business node is obtained. This provides a favorable data basis for the preset process executor to generate code files, making the code file generation process more standardized.
[0192] Furthermore, possible implementations of the service unit generating a corresponding code file based on a preset process executor according to a preset source code list include:
[0193] Run the preset process executor to determine the process name information corresponding to the business process according to the preset source code list, obtain the executable bean, and determine the entry of the business process.
[0194] The preset process executor performs code generation operations on each target module corresponding to all business nodes in turn through the entrance of the business process to obtain a code file corresponding to each business node.
[0195] First, the service unit runs the preset process executor, determines the process name information of the business process according to the preset source code list, converts the first letter of the process name information to lowercase, obtains the executable bean, and uses it as the entry of the business process, that is, determines the target module corresponding to the first business node, that is, the first target module. Among them, the executable bean can be obtained through BeanFactory, or it can be obtained according to the corresponding tool corresponding to the underlying framework, which is not limited in this embodiment.
[0196] After determining the entry of the business process, the preset process executor performs code generation operations on target modules corresponding to all business nodes in sequence through the entry of the business process to obtain code files corresponding to each business node.
[0197] In the above embodiment, the preset process executor performs the code generation operation on each target module corresponding to all service nodes in turn in the following manner: Figure 8 As shown, Figure 8 A flowchart of another modular system code development method provided in an embodiment of the present application is shown as follows: Figure 8 As shown, in this embodiment, the preset process executor performs code generation operations on each target module corresponding to all business nodes in turn through the entrance of the business process, including:
[0198] S501: The preset process executor performs a code generation operation on the first target module, and after executing the corresponding output result function, the first target module feeds back its corresponding stage indicator function to the preset process executor.
[0199] The preset process executor first performs a code generation operation on the first target module, wherein the process of executing the code generation operation can be to sequentially execute the initialization function, stage indication function and output result function in the code information corresponding to the first target module, or it can be performed according to the content corresponding to the specific code information of the target module, that is, the preset standard mode. This embodiment does not limit this, and its purpose is to generate a corresponding code file from the code information corresponding to the target module.
[0200] After executing the output result function corresponding to the first target module, the first target module feeds back its corresponding stage indicator function to the preset process executor, so that the preset process executor transfers from the target module to the next target module according to the stage indicator function to execute step S602.
[0201] S502: The preset process executor performs a code generation operation on a target module corresponding to a next business node indicated by the stage indicator function.
[0202] The preset process executor responds to the phase indicator function to generate code for the target module corresponding to the next service node indicated by the phase indicator function, that is, the next target module. The specific content is similar to step S501 and will not be repeated here.
[0203] S503: until the current target module does not feed back the stage indication function to the preset process executor, or the preset process executor receives the end indication function, the code generation operation corresponding to all business nodes is completed.
[0204] After each target module executes the output result function, if there is a next business node for the business node corresponding to the current target module, it will feed back its own stage indicator function to the preset process executor, so that the preset process executor continues to execute step S502 and completes the code generation operation for all business nodes in turn.
[0205] On the contrary, if the current target module does not feedback its own stage indicator function to the preset process executor after executing the output result, it means that the business node corresponding to the current target module is the last business node in the business process, and the preset process executor has completed the code generation operation for all business nodes, that is, the production code operation corresponding to all business nodes is completed.
[0206] Exemplarily, after the preset process executor executes the output result function of the current target module, the current target module may also send an end indication function to the preset process executor, so as to indicate that the business node corresponding to the current target module is the last one in the business process through the end indication function. In other words, when the preset process executor receives the end indication function, it indicates that the code generation operation corresponding to all business nodes is completed.
[0207] The modular system code development method provided by the embodiment of the present application is that the preset process executor in the service unit first performs a code generation operation on the first target module, and after executing the corresponding output result function, the first target module feeds back its corresponding stage indicator function to the preset process executor, so that the preset process executor performs a code generation operation on the target function corresponding to the next business node indicated by it according to the stage indicator function. By analogy, until the current target module does not feed back the stage indicator function to the preset process executor, or the preset process executor receives the end indicator function sent by the current target module, it indicates that the execution code generation operation of each target module corresponding to all business nodes has been completed, that is, the code generation operation corresponding to all business nodes is terminated. The code generation operation provided by the preset executor in this embodiment, wherein the preset executor only needs to perform the code generation operation on each target module in the business process in turn according to the preset standard mode, without considering the code logic of the code information in each target module, so as to ensure that the generated code file has good compatibility and operability in the operating environment.
[0208] The following are device embodiments of the present application, which can be used to execute the corresponding method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the corresponding method embodiments of the present application.
[0209] Fig. 9 A schematic diagram of the structure of a modular system code development device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the modular system code development device 300 provided in this embodiment includes:
[0210] The processing module 301 is used to determine the target module according to the business requirements and business processes of the system to be developed.
[0211] Among them, the target module is used to represent the code information corresponding to the business node in the business process.
[0212] The generating module 302 is used to generate corresponding formatted message information according to the business process and the target module.
[0213] The formatted message information describes the business process and the target module through a preset programming language.
[0214] The sending module 303 is used to send the formatted message information to the service unit.
[0215] In a possible design, the processing module 301 is specifically configured to:
[0216] According to business requirements and business processes, a common module is determined from a preset module library to determine the common module as a target module. The preset module library includes a plurality of common modules.
[0217] When the service node includes differential service attributes, the processing module 301 is further specifically configured to:
[0218] Generate a blank module, and edit the code of the blank module according to the differentiated business attributes to obtain a custom module and corresponding module information;
[0219] The custom module is determined as the target module, and the code information in the custom module is used to characterize the differential business attributes of the corresponding business node.
[0220] In a possible design, the processing module 301 is further configured to:
[0221] Generate corresponding code information according to preset business requirements and in a preset unified format to obtain multiple code modules;
[0222] Define the corresponding initialization function, stage indication function and output result function for the code information in each code module according to the preset specifications;
[0223] Graphically encapsulate each defined code module to obtain the corresponding common module;
[0224] The module information corresponding to each common module is stored in a preset module library according to a preset list format, and the module information at least includes module name information, module description information, module path information and condition field information.
[0225] In a possible design, the generating module 302 is specifically configured to:
[0226] Generate formatted message information according to each business node and the corresponding target module in the business process, the formatted message information includes the process name information, process code path information, process description information and node module information of the business process;
[0227] The node module information includes the type information of the service node, content attribute description information and sub-node description information. The content attribute description information is used to describe the target module corresponding to the service node.
[0228] It is worth noting that the modular system code development device provided in the above embodiment can be used to execute the steps on the process design unit side of the modular system code development method provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be repeated here.
[0229] Fig.10 A schematic diagram of the structure of another modular system code development device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the modular system code development device 400 provided in this embodiment includes:
[0230] The receiving module 401 is used to receive the formatted message information sent by the process design unit.
[0231] The formatted message information includes the process name information, process code path information, process description information and node module information of the business process in the system to be developed. The node module information includes the type information, content attribute description information and sub-node description information of the business node;
[0232] The generating module 402 is used to generate a code file according to the formatted message information based on a preset process executor to complete the code development of the system to be developed.
[0233] exist Fig.10 Based on the embodiment shown, Fig.11 A schematic diagram of a structure of a generation module provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the generation module 402 provided in this embodiment includes:
[0234] The preprocessing submodule 4021 is used to preprocess the formatted message information according to the business process to obtain the target data corresponding to each business node;
[0235] The storage submodule 4022 is used to store each target data into a preset source code list, each target data includes a corresponding target module and annotation code information, and the annotation code information is used to mark the corresponding information corresponding to the target module;
[0236] The generation submodule 4023 is used to generate corresponding code files according to the preset source code list based on the preset process executor.
[0237] In a possible design, the preprocessing submodule 4021 is specifically used for:
[0238] Read the formatted message information according to the business process, and convert the formatted message information into request object information through a preset annotation algorithm;
[0239] Obtain process name information and process description information according to the request object information to determine the first business node;
[0240] Determine corresponding annotation code information according to the content attribute description information corresponding to the first business node to obtain corresponding target data;
[0241] The target data corresponding to the next service node is determined by the sub-node description information corresponding to the current service node, until the sub-node description information corresponding to the current service node is empty.
[0242] In a possible design, the generating submodule 4023 is specifically used for:
[0243] Run the preset process executor to determine the process name information of the business process according to the preset source code list, obtain the executable bean, and determine the entry of the business process;
[0244] The preset process executor performs code generation operations on each target module corresponding to all business nodes in turn through the entrance of the business process to obtain a code file corresponding to each business node.
[0245] In one possible design, the generating submodule 4023 further has a function for:
[0246] The preset process executor performs a code generation operation on the first target module, and after executing the corresponding output result function, the first target module feeds back its corresponding stage indicator function to the preset process executor;
[0247] The preset process executor performs a code generation operation on a target module corresponding to a next business node indicated by the stage indicator function;
[0248] Until the current target module does not feed back the stage indication function to the preset process executor, or the preset process executor receives the end indication function, the code generation operation corresponding to all business nodes is completed.
[0249] It is worth noting that the above Fig.10 and Fig.11 And the modular system code development device provided in the optional embodiment can be used to execute the steps on the service unit side of the modular system code development method provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be repeated here.
[0250] Fig.12 A schematic diagram of the structure of another modular system code development device provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the modular system code development device 500 provided in this embodiment includes: a calling module 501, which is used to:
[0251] When the source of the target module is a public module, the corresponding code file is called from the service unit by referencing a preset data package through a preset link, and the preset data package includes code information corresponding to the public module; and / or
[0252] When the source of the target module is a custom module, a custom file is generated to call the corresponding code file from the service unit according to the custom file, and the custom file includes code information corresponding to each custom module.
[0253] It is worth mentioning that Fig.12The modular system code development device provided in the embodiment can be used to execute the steps on the application unit side of the modular system code development method provided in the above embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0254] The above-mentioned device embodiments provided in the present application are merely illustrative, and the module division therein is merely a logical function division, and there may be other division methods in actual implementation. For example, multiple modules may be combined or integrated into another system. The coupling between the modules may be achieved through some interfaces, which are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed to different locations of the same or different devices.
[0255] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, the electronic device 600 provided in this embodiment includes:
[0256] Processor 601; and
[0257] A memory 602 is connected to the processor 601 in communication; wherein,
[0258] The memory 602 stores instructions that can be executed by the processor 601. The instructions are executed by the processor 601 so that the processor 601 can execute the various steps of the modular system code development method on the process design unit side in the above method embodiment. For details, please refer to the relevant description in the above method embodiment.
[0259] Optionally, the memory 602 may be independent or integrated with the processor 601 .
[0260] When the memory 602 is a device independent of the processor 601, the electronic device 600 may further include:
[0261] The bus 603 is used to connect the processor 601 and the memory 602 .
[0262] In addition, the embodiment of the present application also provides a non-transient computer-readable storage medium storing computer instructions, and the computer instructions are used to make the computer execute each step of the modular system code development method on the process design unit side in the above embodiments. For example, the readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
[0263] Fig.14A schematic diagram of the structure of another electronic device provided in an embodiment of the present application, such as Fig.14 As shown, the electronic device 700 provided in this embodiment includes:
[0264] Processor 701; and
[0265] A memory 702 is connected to the processor 701 in communication; wherein,
[0266] The memory 702 stores instructions executable by the processor 701, and the instructions are executed by the processor 701 so that the processor 701 can execute each step of the modular system code development method on the service unit side in the above method embodiment. For details, please refer to the relevant description in the above method embodiment.
[0267] Optionally, the memory 702 may be independent or integrated with the processor 701 .
[0268] When the memory 702 is a device independent of the processor 701, the electronic device 700 may further include:
[0269] The bus 703 is used to connect the processor 701 and the memory 702 .
[0270] In addition, the embodiment of the present application also provides a non-transient computer-readable storage medium storing computer instructions, and the computer instructions are used to make the computer execute each step of the modular system code development method on the service unit side in the above embodiments. For example, the readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
[0271] Fig.15 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application is shown in FIG. Fig.15 As shown, the electronic device 800 provided in this embodiment includes:
[0272] Processor 801; and
[0273] A memory 802 is connected to the processor 801 in communication; wherein,
[0274] The memory 802 stores instructions that can be executed by the processor 801. The instructions are executed by the processor 801 so that the processor 801 can execute the various steps of the modular system code development method on the application unit side in the above method embodiment. For details, please refer to the relevant description in the above method embodiment.
[0275] Optionally, the memory 802 may be independent or integrated with the processor 801 .
[0276] When the memory 802 is a device independent of the processor 801, the electronic device 800 may further include:
[0277] The bus 803 is used to connect the processor 801 and the memory 802 .
[0278] In addition, the embodiment of the present application also provides a non-transient computer-readable storage medium storing computer instructions, and the computer instructions are used to make the computer execute the various steps of the modular system code development method on the application unit side in the above embodiments. For example, the readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
[0279] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0280] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A modular system code development method, It is characterized in that include: Determine the target module according to the business requirements and business process of the system to be developed, wherein the target module is used to represent the code information corresponding to the business node in the business process; The system to be developed is a corresponding service system in the financial platform; the financial platform includes a loan system; the business process is a loan transaction process in the loan system; Generate corresponding formatted message information according to the business process and the target module, wherein the formatted message information describes the business process and the target module in a preset programming language; The formatted message information is sent to the service unit, and the service unit generates a code file based on the received formatted message information based on the preset process executor to complete the code development of the system to be developed, specifically: performing a code generation operation on each of the target modules according to a preset standard mode, wherein the code generation operation is only performed on the code information represented by each of the target modules, without considering the code logic in each of the target modules; The application unit in the code development system provides users with corresponding services that meet the business needs by calling the code file.
2. The modular system code development method according to claim 1, It is characterized in that Determining the target module according to the business requirements and business processes of the system to be developed includes: A common module is determined from a preset module library according to the business requirement and the business process, so as to determine the common module as the target module, wherein the preset module library includes a plurality of the common modules.
3. The modular system code development method according to claim 2, It is characterized in that When the service node includes differential service attributes, the method further includes: Generate a blank module, and edit the code of the blank module according to the differential business attributes to obtain a custom module and corresponding module information; The custom module is determined as the target module, and the code information in the custom module is used to characterize the differential service attributes of the corresponding service node.
4. The modular system code development method according to claim 2, It is characterized in that Before determining the common module from the preset module library according to the business requirements and the business process, the method further includes: Generate corresponding code information according to preset business requirements and in a preset unified format to obtain multiple code modules; Define the corresponding initialization function, stage indication function and output result function for the code information in each code module according to the preset specifications; Graphically encapsulate each defined code module to obtain the corresponding common module; The module information corresponding to each common module is stored in a preset module library according to a preset list format, wherein the module information at least includes module name information, module description information, module path information and condition field information.
5. The modular system code development method according to any one of claims 1 to 4, It is characterized in that The generating corresponding formatted message information according to the business process and the target module includes: Generate the formatted message information according to each business node in the business process and the corresponding target module, the formatted message information including process name information, process code path information, process description information and node module information of the business process; The node module information includes type information, content attribute description information and sub-node description information of the service node, and the content attribute description information is used to describe the target module corresponding to the service node.
6. A modular system code development method, It is characterized in that include: Receive formatted message information sent by the process design unit, the formatted message information includes process name information, process code path information, process description information and node module information of the business process in the system to be developed, the node module information includes type information, content attribute description information and sub-node description information of the business node; the system to be developed is a corresponding service system in the financial platform; the financial platform includes a loan system; the business process is a loan transaction process in the loan system; Generate a code file based on the formatted message information based on a preset process executor to complete the code development of the system to be developed, specifically: perform a code generation operation on each target module according to a preset standard mode, wherein the code generation operation is only performed on the code information represented by each target module, without considering the code logic in each target module; The application unit in the code development system provides users with corresponding services that meet business needs by calling the code files.
7. The modular system code development method according to claim 6, It is characterized in that The generating of the code file based on the formatted message information by the preset process executor includes: Preprocessing the formatted message information according to the business process to obtain target data corresponding to each business node; Storing each target data into a preset source code list, each target data includes a corresponding target module and annotation code information, wherein the annotation code information is used to mark the corresponding information corresponding to the target module; Based on the preset process executor, the corresponding code file is generated according to the preset source code list.
8. The modular system code development method according to claim 7, It is characterized in that The preprocessing of the formatted message information according to the business process to obtain target data corresponding to each business node includes: Read the formatted message information according to the business process, and convert the formatted message information into request object information through a preset annotation algorithm; Acquire the process name information and the process description information according to the request object information to determine the first service node; Determine the corresponding annotation code information according to the content attribute description information corresponding to the first business node to obtain the corresponding target data; The target data corresponding to the next service node is determined by the sub-node description information corresponding to the current service node until the sub-node description information corresponding to the current service node is empty.
9. The modular system code development method according to claim 8, It is characterized in that The generating the corresponding code file based on the preset process executor according to the preset source code list includes: Running the preset process executor to determine the process name information of the business process according to the preset source code list, obtaining an executable bean, and determining the entry of the business process; The preset process executor performs code generation operations on each target module corresponding to all business nodes in sequence through the entry of the business process to obtain the code file corresponding to each business node.
10. The modular system code development method according to claim 9, It is characterized in that The preset process executor performs code generation operations on each target module corresponding to all business nodes in sequence through the entry of the business process, including: The preset process executor performs a code generation operation on the first target module, and after executing the corresponding output result function, the first target module feeds back its corresponding stage indicator function to the preset process executor; The preset process executor performs a code generation operation on the target module corresponding to the next service node indicated by the stage indicator function; Until the current target module does not feed back the stage indication function to the preset process executor, or the preset process executor receives the end indication function, the code generation operations corresponding to all service nodes are completed.
11. A modular system code development method, It is characterized in that include: When the source of the target module is a public module, the corresponding code file is called from the service unit by referencing a preset data package through a preset link, and the preset data package includes code information corresponding to the public module; and / or When the source of the target module is a custom module, a custom file is generated to call a corresponding code file from the service unit according to the custom file, wherein the custom file includes code information corresponding to each custom module; The target module is used to represent the code information corresponding to the business node in the business process; The system to be developed is a corresponding service system in a financial platform; the financial platform includes a loan system; the business process is a loan transaction process in the loan system; The service unit generates a code file based on the received formatted message information based on the preset process executor to complete the code development of the system to be developed, specifically: performing a code generation operation on each of the target modules according to a preset standard mode, wherein the code generation operation is only performed on the code information represented by each of the target modules, without considering the code logic in each of the target modules; The application unit in the code development system provides users with corresponding services that meet business needs by calling the code files.
12. A modular system code development device, It is characterized in that include: A processing module, used to determine a target module according to the business requirements and business processes of the system to be developed, wherein the target module is used to represent code information corresponding to a business node in the business process; The system to be developed is a corresponding service system in the financial platform; the financial platform includes a loan system; the business process is a loan transaction process in the loan system; A generating module, used for generating corresponding formatted message information according to the business process and the target module, wherein the formatted message information describes the business process and the target module in a preset programming language; A sending module, used for sending the formatted message information to a service unit, wherein the service unit generates a code file according to the received formatted message information based on a preset process executor to complete the code development of the system to be developed, specifically: performing a code generation operation on each of the target modules according to a preset standard mode, wherein the code generation operation is only performed on the code information represented by each of the target modules, without considering the code logic in each of the target modules; The application unit in the code development system provides users with corresponding services that meet the business needs by calling the code file.
13. A modular system code development device, It is characterized in that include: A receiving module, used for receiving formatted message information sent by the process design unit, wherein the formatted message information includes process name information, process code path information, process description information and node module information of the business process in the system to be developed, wherein the node module information includes type information, content attribute description information and sub-node description information of the business node; the system to be developed is a corresponding service system in a financial platform; the financial platform includes a loan system; and the business process is a loan transaction process in the loan system; A generation module is used to generate a code file according to the formatted message information based on a preset process executor to complete the code development of the system to be developed, specifically: performing a code generation operation on each target module according to a preset standard mode, wherein the code generation operation is only performed on the code information represented by each target module, without considering the code logic in each target module; The application unit in the code development system provides users with corresponding services that meet business needs by calling the code files.
14. A modular system code development device, It is characterized in that include: A calling module; the calling module is used to: When the source of the target module is a public module, the corresponding code file is called from the service unit by referencing a preset data package through a preset link, and the preset data package includes code information corresponding to the public module; and / or When the source of the target module is a custom module, a custom file is generated to call a corresponding code file from the service unit according to the custom file, wherein the custom file includes code information corresponding to each custom module; The target module is used to represent the code information corresponding to the business node in the business process; The system to be developed is a corresponding service system in a financial platform; the financial platform includes a loan system; the business process is a loan transaction process in the loan system; The service unit generates a code file based on the received formatted message information based on the preset process executor to complete the code development of the system to be developed, specifically: performing a code generation operation on each of the target modules according to a preset standard mode, wherein the code generation operation is only performed on the code information represented by each of the target modules, without considering the code logic in each of the target modules; The application unit in the code development system provides users with corresponding services that meet business needs by calling the code files.
15. An electronic device, It is characterized in that include: processor; as well as A memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the modular system code development method according to any one of claims 1 to 5.
16. An electronic device, It is characterized in that include: processor; as well as A memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the modular system code development method according to any one of claims 6 to 10.
17. An electronic device, It is characterized in that include: processor; as well as A memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the modular system code development method described in claim 11.
18. A modular system code development system, It is characterized in that include: A process design unit, comprising the modular system code development device as claimed in claim 12; A service unit, comprising the modular system code development device according to claim 13; An application unit, comprising the modular system code development device according to claim 14; Wherein, the service unit is communicatively connected with the process design unit and the application unit respectively.
