A method, device and system for automatically generating business software
Through the application of business modularization and DARU model, combined with the SAC² development process, software code is automatically generated, which solves the problems of responding to changes in business needs and relying on specific personnel in traditional software development methods, and achieves efficient and accurate software development and iteration.
Patent Information
- Application Number
- CN202411156725.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Traditional software development methods are difficult to respond quickly to changes in business needs and rely on specific personnel, resulting in low development efficiency and quality.
Using business modularization, module modeling, model structure and process standardization methods, software code is automatically generated through DARU model and SAC² development process to achieve rapid and efficient transformation and iteration of business needs.
It improves the efficiency and quality of software development, reduces the workload and probability of manual coding, realizes accurate expression and efficient implementation of business needs, and is suitable for software development in different industries and fields.
Smart Images

Figure CN118689480B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of software development, and relates to an automatic generation method for business software, in particular to a general automatic generation technology for software applicable to different business fields. Background Art
[0002] Traditional software development methods often face many challenges, such as inconsistency between technical implementation and business requirements, and difficulty in quickly responding to changes in business requirements. In the traditional software development process, software developers need to manually convert business requirements expressed by business personnel in unstructured natural language into structured program code. This conversion process is not only time-consuming and labor-intensive, but also easily leads to deviations in understanding requirements, resulting in the developed software products failing to meet business requirements. In addition, the traditional software development process relies heavily on specific personnel, and personnel changes can easily affect project progress and quality. In order to improve software development efficiency and quality and respond to business changes in a timely manner, an automated development method is urgently needed to solve these problems. Summary of the invention
[0003] The purpose of the present invention is to provide a business software automation development method, which realizes rapid and high-quality software development by business personnel and software developers through business modularization, module modeling, model structuring, process standardization and software development automation. If there is a need for subsequent business changes, business personnel can lead the software iteration to meet the business software development needs of different industries and provide more flexible and efficient solutions. This method can adapt to the software development needs of different business fields, has strong versatility and flexibility, and provides a general software automation development technology suitable for different industries and fields. Its technical solution is as follows:
[0004] A method for automatically generating business software, characterized in that the method comprises the following steps:
[0005] (1) Based on the business software requirements, the business software is divided into several business modules according to the business process. All business process modules are regarded as data processing processes and abstracted into an ordered combination of input-output-processing nodes;
[0006] (2) Check whether there is a template for the current business module in the template library. If so, jump to step (5); if not, execute sequentially;
[0007] (3) Abstract the business module into a DARU model consisting of four dimensions: data, action, role, and user;
[0008] (4) According to the actual business scenario, design a business description template based on the DARU model according to the Story-Abstract-Concrete-Config (SAC²) and incorporate it into the template library as the basis for software development;
[0009] (5) Fill in and configure the business software requirements according to the business description template to form a structured requirements document;
[0010] (6) parsing the structured requirement document, extracting DARU elements, and automatically assembling them into DARU expressions;
[0011] (7) Automatically generate software code based on the parsed DARU expression to form an executable business software module;
[0012] (8) Repeat steps (2) to (7) for all business modules to generate the corresponding business module software code and iteratively generate the business software.
[0013] Based on the above generation method, the present invention discloses a business software automatic generation device, which is characterized by:
[0014] (1) Business modularization: Based on business software requirements, the business software is divided into several business modules according to the business process. All business process modules are regarded as data processing processes and abstracted into an orderly combination of input-output-processing nodes.
[0015] (2) Query module storage status: Query whether there is a current business module template in the template library. If yes, jump to step (5); if not, execute sequentially;
[0016] (3) Module modeling: abstract the business module into a DARU model consisting of four dimensions: data, action, role, and user;
[0017] (4) Model standardization: Based on the actual business scenarios, we designed a business description template based on the DARU model according to the “Story-Abstract-Concrete-Config (SAC²)” and incorporated it into the template library as the basis for software development.
[0018] (5) Fill in the business description template: fill in and configure the business software requirements according to the business description template to form a structured requirements document;
[0019] (6) Parsing the business description template: parsing the structured requirement document, extracting DARU elements, and automatically assembling them into DARU expressions;
[0020] (7) Generating software code: Based on the parsed DARU expression, automatically generate software code to form an executable business software module;
[0021] (8) Generate business software part: Generate the corresponding business module software code and iteratively generate business software.
[0022] The invention also discloses a business software automatic generation system, which is used to execute the business software automatic generation method.
[0023] Optionally, the business software automatic generation system includes the following functional modules:
[0024] (a) Template library module, used to generate and store business description templates of business modules according to the DARU model and SAC² development process;
[0025] (b) An interactive module, which is used to receive business requirements input by users, fill in business description templates, and form a structured requirements document;
[0026] (c) a parsing module for parsing the structured requirement document into DARU elements;
[0027] (d) Assembly module, used to automatically assemble DARU elements into DARU expressions to form business processes;
[0028] (e) a generation module, used to generate software code from the parsed DARU expression;
[0029] (f) A deployment module, used to dynamically deploy the generated software code to form executable business software. Beneficial Effects
[0030] By adopting the DARU model and SAC² standardized development process, business requirements can be quickly and efficiently converted, thereby improving the efficiency and quality of software development; business description templates and development methods can be updated in a timely manner according to business requirements and technical progress to ensure accurate expression and efficient implementation of business requirements; by quickly iterating software versions, the software product is highly adaptable to the business and meets the ever-changing business needs; this business software automatic generation method is business-independent and has no restrictions on specific industries and fields. Based on a specific design, the expression of business requirements and technical function codes unrelated to the business can be automatically converted into software implementation.
[0031] Specifically, the method divides the business software into several business modules according to the business process, and regards all business process modules as data processing processes, abstracting them into an ordered combination of input-output-processing nodes, thereby realizing rapid conversion of business requirements and improving development efficiency. Abstracting the business module into a DARU model consisting of four dimensions: data, action, role, and user helps to clearly and accurately express business requirements and improve development quality. The business description template is designed according to the "scenario understanding-abstract design-concrete implementation-template configuration" (SAC²) process and incorporated into the template library. This standardized process ensures the accurate expression and efficient implementation of business requirements. The business description template is filled in and configured to form a structured requirement document, which further ensures the accuracy of the requirements and the consistency of development. The structured requirement document is parsed, DARU elements are extracted, and automatically assembled into DARU expressions, and software code is automatically generated based on this. This technical means reduces the workload of manual coding, reduces the probability of errors, and improves development efficiency and software quality. The business software modules generated by the above steps can be quickly iterated to ensure that the software products are highly adapted to the business and meet the ever-changing business needs. This automatic business software generation method is business-independent and has no restrictions on specific industries and fields. Through specific design, it automatically converts the expression of business requirements and technical function codes unrelated to the business into software implementation, which is suitable for various business requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of the automatic generation method of the business software in the present invention;
[0033] Figure 2 It is a simplified schematic diagram of the overall architecture provided by the present invention. DETAILED DESCRIPTION
[0034] The technical solution in the embodiment of the present invention is further described in detail below with reference to the automatic generation of logistics system software as an example.
[0035] Logistics system software refers to a software system that monitors the entire logistics process in real time and records information in order to meet the needs of logistics management. It consists of modules such as cargo management, waybill management, vehicle management, financial management, and report center. Logistics system software monitors key nodes such as cargo owner shipment, transport vehicles, transport tracks, and arrival and unloading, and uses the Internet of Things, the Internet, and other networks to gather relevant logistics information in a certain area to the management center, providing effective support for strengthening logistics management, optimizing resource allocation, and improving service quality.
[0036] In logistics management, different businesses and customers often have different needs and require customized development. Traditional software development methods are difficult to respond to these needs quickly and with high quality, resulting in long development cycles, high costs, and difficulty in large-scale customization. In order to overcome these problems, the present invention provides a method for automatically generating logistics system software, which, by introducing the DARU model and the SAC² standardized development process, achieves efficient, lossless conversion and automated realization of logistics business needs, reduces software development costs, and improves logistics management efficiency.
[0037] Taking the construction of logistics system software by a logistics company as an example, by building a logistics management platform (software), the functional modules such as cargo management, waybill management, vehicle management, financial management and report center are integrated to realize the unified management and centralized dispatch of logistics information, and provide data intelligent support for logistics management, resource optimization, etc. The method of the present invention uses the DARU model and the SAC² standardized development process, so that the development of logistics management platform software only requires the cooperation of one person who understands the business (hereinafter referred to as the business person) and one person who does not understand the business but is proficient in this development method (hereinafter referred to as the technical person).
[0038] The specific workflow is as follows: Figure 1 As shown:
[0039] (1) Logistics business modularization: Based on the business software requirements, the business software is divided into several business modules according to the business process. All business processes (modules) are regarded as data processing processes and abstracted as an ordered combination of input-output-processing (IOP) nodes. Business software is actually a fractal pattern of IOP. By splitting the processing (P) in the top-level IOP into an ordered combination of several IOPs in the next layer (directed acyclic graph (DAG) or control flow graph (CFG)), the specific business modules are split layer by layer until they are clearly defined.
[0040] Based on the actual needs of logistics management, business personnel divide the logistics management platform (software) into several business modules according to the business process and describe the software requirements of each business module. It mainly includes modules such as cargo source management, waybill management, vehicle management, financial management and report center. All business modules form a logistics business management control flow chart. These modular designs help improve the flexibility and maintainability of the system, facilitate adjustment and expansion according to different business needs, and ensure efficient collaboration between various modules.
[0041] Each module needs to clarify its input, output and processing logic, and determine the relationship between each module. Specifically: a. Input (I): external data that each module needs to receive or data passed by the previous module; b. Output (O): data generated after each module is processed or data passed to the next module; c. Processing (P): data processing logic performed within each module, including business rules and algorithms. Processing (P) is not just a simple operation, but can be further broken down into an ordered combination of multiple IOPs. This means that within a module, its processing process can be further decomposed and regarded as a series of smaller input-output-processing nodes. In this way, it can be decomposed layer by layer until the most specific processing steps are reached.
[0042] By clarifying these details, we can ensure that each module has clear business boundaries and definitions during design and implementation, thereby improving the understandability and maintainability of the entire system. This hierarchical IOP splitting method helps to more finely control the processing of each module, making the system more flexible and scalable.
[0043] (2) Query the module inventory status. Check in turn whether there are business module templates for cargo management, waybill management, vehicle management, financial management, and report center in the template library. If yes, jump to step (5); if not, execute in sequence. For this embodiment, the template library is empty and there are no logistics-related business module templates in the template library.
[0044] (3) Logistics module modeling. The technical staff further abstracted the business modules divided by the business personnel into a DARU model consisting of four dimensions: data, action, role, and user. The composition of the model is as follows:
[0045] Data: The basic unit that carries information, including all data involved in logistics business, such as cargo information, transportation documents, vehicle information, financial data, etc.
[0046] Action: The basic unit of behavior, representing various operations and processes in logistics business, such as goods warehousing, goods out of the warehouse, transportation arrangement, fee settlement, etc.
[0047] Role: The basic unit of division of labor, which defines the different roles and permissions of those involved in logistics business, such as warehouse manager, transport dispatcher, financial staff, etc.
[0048] User: The basic unit of using the system, a person who performs specific actions or a system user. Each user corresponds to a specific role and performs corresponding actions.
[0049] The DARU model abstracts and classifies various aspects of the logistics business module. The data is the operation object of the business module; the action is the addition, deletion, modification and query of the data; the role is the initiator of the action, and the user is the role bearer. The orthogonal classification allows each business module to be described and managed in detail from four dimensions: data, action, role and user.
[0050] (4) Model standardization. Based on actual business scenarios, business personnel and technical personnel design business description templates based on DARU according to the "Story-Abstract-Concrete-Config" (SAC²) method and incorporate them into the template library as the basis for software development;
[0051] The first is scenario understanding. Business personnel describe detailed business logic and operation procedures based on actual business scenarios and requirements. For example, the business scenarios of the supply management module include supply information entry, supply scheduling, supply tracking, etc. This step is an overall understanding of the logistics management platform (software), not just a single requirement. The work content includes the decomposition of the management scenario of the logistics management platform (software), and the description of the logistics management scenario in a formalized language. First, business personnel are responsible for collecting logistics management business requirements; then, complex business scenarios are decomposed into multiple specific operation procedures. For example, the supply management module needs to describe in detail the steps for supply information entry, such as the specific operations of entering information such as the name, quantity, and source of the goods, the priority setting and resource allocation in the supply scheduling process, and the status information and time nodes that need to be collected in the supply tracking process; finally, write the scenario operation process, describe in detail the business modules and module relationships, and ensure that each business module and the relationship between modules are clearly defined and described. The focus of this process is to understand the business environment and needs from a macro business perspective, so as to provide comprehensive background information and demand basis for subsequent design and implementation;
[0052] The second is abstract design. Technical personnel design corresponding business abstract models according to the business requirements provided by business personnel. This step designs business abstract models, without considering specific implementation technologies, but focusing on business logic and requirements. The work content includes the decomposition of logistics management platform (software) solutions and the description of the implementation process. First, technical personnel need to understand business requirements and convert them into technical solutions. For example, the supply management process is abstracted into data, actions, roles and users in the DARU model, and the responsibilities and boundaries of each module are clarified. Then, complex business processes are decomposed into several manageable abstract models to ensure that each model has clear input, output and processing logic. For example, the supply information management model needs to define data structure, input interface and processing rules. Technical personnel need to define attributes for each abstract model to reflect the design plan and technical details, and ensure that the design of each module has sufficient model support. The focus of this step is to start from a macro technical perspective, build models for the business, clarify the relationship between business information and various modules, and ensure that the design plan can meet business needs while having good scalability and maintainability;
[0053] The third is concrete implementation. Technical personnel configure business description templates to ensure that business requirements can be correctly implemented through detailed DARU expressions. This step designs the technical model, taking into account specific implementation technologies and platforms. The work content includes the implementation of logistics management platform (software) solutions and the definition of design parameters. Based on the abstractly designed model, technical personnel supplement technical related information through inheritance to form a technical model to implement specific business functions. For example, the attributes and methods of input, scheduling, and tracking are expanded for the supply management module to implement the functions of supply information input, supply scheduling, and supply tracking. At the same time, in order to reduce the workload of developers of specific business modules, the technical model is templated in this link, providing business template configuration capabilities, pre-setting common attributes that can be generated by calculation, so that business personnel only need to fill in personalized business content. The focus of this process is on the specific technical perspective, the implementation of the operating environment and business actions, to ensure that the system can accurately execute business processes and meet business needs in actual operation;
[0054] The fourth is template configuration. Business personnel conduct business sorting and design business description templates. After the test is passed, the business description templates are included in the template library as the basis for software development. This step is equivalent to the final configuration and deployment information. The work content includes the implementation of specific requirements and the configuration of predetermined parameters. First, business personnel need to sort out the business logic and clarify the specific data and logical relationships. For example, define the meaning, source and purpose of each data field in the supply management module to ensure the consistency and integrity of data between different modules. Then, the technicians configure the business description template to ensure that the template can correctly express the business requirements, and perform test verification to ensure the correctness and completeness of the template. Finally, the templates that have passed the test are included in the template library for subsequent development and maintenance. The focus of this step is to ensure the accuracy and completeness of the business description template, so that it can meet the business requirements in different scenarios, while improving the maintainability and scalability of the system.
[0055] (5) Fill in the business description template. The business description template is a structured description of the business personalized requirements of the DARU model and its constituent nodes, nodes forming processes, processes forming functional modules, and functional modules forming systems from a business perspective. Through the business description template, complex business requirements can be systematized and structured to provide clear and standardized content for software generation. The business description template is used to systematically record and express business requirements to ensure that the system can accurately understand and implement these requirements. It converts business requirements into specific implementation details and provides a standardized description method to facilitate automatic parsing and generation of the system.
[0056] Business personnel fill in and configure business software requirements according to the business description template to form a structured requirements document. The specific content to be filled in includes:
[0057] Element combing templates: including data model template, action model template, role model template, and user model template.
[0058] Data model template: defines all data entities and their attributes involved in the business process.
[0059] Action model template: describes various operations and events in the business process.
[0060] Role model template: defines different business roles and their permissions.
[0061] User model template: Lists all users who use the system and their corresponding roles.
[0062] Business organization templates: including process assembly templates (nodes and node relationships), data definition templates, action definition templates, and permission matrix templates.
[0063] Process assembly template: describes the arrangement order and logical relationship of each node in the business process.
[0064] Data definition template: defines the meaning and format of each data field in detail.
[0065] Action definition template: specifically describes the triggering conditions and execution steps for each business action.
[0066] Permission matrix template: defines the operation permissions of different roles in different business processes.
[0067] Software manufacturing templates: including view configuration templates and application release templates.
[0068] View configuration template: defines the layout and elements of the system interface.
[0069] Application release template: describes the menu structure and overall style of the application.
[0070] Taking the supply management module as an example, business personnel need to fill in the following content:
[0071] Data model template:
[0072] Source of goods information: including name, quantity, source, destination, etc.
[0073] Transportation information: including vehicle number, driver information, transportation route, etc.
[0074] Action Model Template:
[0075] Supply information entry: Describes the steps and rules for entering supply information.
[0076] Supply Scheduling: Describes the process and priority setting for scheduling supply.
[0077] Supply tracking: Describes the status update and notification mechanism of supply tracking.
[0078] Role Model Template:
[0079] Warehouse Manager: Responsible for the entry and maintenance of supply information.
[0080] Dispatcher: responsible for cargo dispatch and vehicle allocation.
[0081] Tracker: Responsible for tracking and updating the status of supply.
[0082] User model template:
[0083] User 1: Warehouse manager, responsible for entering and maintaining supply information.
[0084] User 2: Dispatcher, responsible for cargo scheduling and resource allocation.
[0085] User 3: Tracker, responsible for tracking and reporting the status of supply.
[0086] Process assembly template:
[0087] Enter the supply information -> dispatch the supply -> track the supply status -> complete the transportation.
[0088] Data definition template:
[0089] Product name: string, up to 50 characters.
[0090] Cargo quantity: integer, 1-10000.
[0091] Origin: string, up to 100 characters long.
[0092] Destination: String, maximum 100 characters.
[0093] Action definition template:
[0094] Source entry: The user enters the name, quantity, origin and destination of the goods.
[0095] Cargo scheduling: Allocate transportation tasks based on priority and resource availability.
[0096] Supply tracking: Update supply status in real time and notify relevant personnel.
[0097] Permission matrix template:
[0098] Warehouse Manager: Enter and maintain supply information.
[0099] Dispatcher: dispatches cargo and allocates vehicles.
[0100] Tracker: Track the status of the supply.
[0101] View configuration template:
[0102] Input interface: includes input boxes for cargo name, quantity, origin, and destination.
[0103] Scheduling interface: displays all cargo sources to be dispatched and available vehicle information.
[0104] Tracking interface: real-time display of supply status and location.
[0105] Application Release Template
[0106] Menu structure: tree-structured menus for applications, such as supply management (supply entry, supply list), dispatch management (supply to be dispatched, operation track), etc.
[0107] Style settings: The theme color is orange, and the overall style is ToC
[0108] (6) Parsing the business description template. This can be divided into the following steps: parsing, extraction, assembly, and finally generating a DARU expression. The following is a detailed description of each step:
[0109] The first step is to parse the business description template and analyze and understand each part of the template to determine its structure and content. This includes understanding the data model, action model, role model, user model, process assembly, data definition, action definition, permission matrix, view configuration, and application release.
[0110] The second step is to extract DARU elements and extract the elements of the DARU model from the parsed template. The DARU model usually includes the following elements: D (Data): data entities and their attributes involved in the business process; A (Action): operations and events in the business process; R (Role): different roles involved in the business process and their permissions; U (User): specific users in the system and their roles.
[0111] Taking the supply management module as an example, the DARU elements are extracted as follows:
[0112] Data: including cargo information (cargo name, quantity, source, destination), transportation information (vehicle number, driver information, transportation route);
[0113] Action: including cargo information entry (cargo name, quantity, source, destination), cargo scheduling (priority, resource allocation), cargo tracking (status update, notification);
[0114] Role: including warehouse manager, dispatcher, and tracker;
[0115] User: includes User 1 (warehouse manager), User 2 (dispatcher), and User 3 (tracker).
[0116] The third step is to assemble the extracted DARU elements into DARU expressions according to certain rules and logic. DARU expressions are a structured expression method used to describe business requirements and logic. The core logic is as follows:
[0117] Business Software = { IOP} = { N}
[0118] N = { D , A , R , U}
[0119] P = matrix{D,R} + matrix{A,R}
[0120] in:
[0121] N:Node, the basic unit that makes up DAG or CFG
[0122] P: Privilege, authority, role, action and data relationship definition
[0123] (7) Generating software code. Based on the parsed DARU expression, automatically generate software code to form an executable logistics management business software module;
[0124] (8) Generate a logistics management platform (software). Repeat steps (2) to (7) for all business modules to generate the corresponding business module software code, and iteratively generate the logistics management platform (software). The overall architecture is simplified as follows: Figure 2 As shown in the figure, a business description template parsing and software delivery process based on the DARU model is shown, which aims to achieve continuous adjustment of user ideas or needs and rapid iteration of business software.
[0125] Figure 2 The process from input to output in the figure covers the filling of the business description template, the parsing of the DARU parser, the steps of the automatic assembly layer and the software delivery layer. The business description template input can be input in various ways such as Excel, Word or mind map. These templates record the detailed information of the business requirements, including data models, action models, role models and user models. The user interaction layer is responsible for parsing the business description template into DARU elements and converting them into internal representations that can be understood and processed to ensure the accurate transmission of requirements; the automatic assembly layer: obtains the business information of the user interaction layer, automatically assembles it into software, and realizes fast and high-quality software development; the software delivery layer: is responsible for the final software release, deployment and operation and maintenance. Each level in the figure revolves around business needs, emphasizing that software delivery should focus on understanding business needs, and the development process is closely centered on core business processes and goals. This development model based on the DARU model ensures the consistency and coordination of business processes, technical implementations, data flows and workflows through orthogonal classification element model management, improves development efficiency and system maintainability, and reduces overall risks, so that business software can fit business scenarios and meet the applicable needs of the business.
[0126] In actual operation, since the logistics management platform (software) is automatically generated for the first time, when querying the module inventory status in the above step (2), all are empty; the logistics business description template in the above step (4) adopts Excel, Word and mind map file formats to facilitate business personnel to fill in.
[0127] In order to better promote the automated generation of the logistics management platform (software), this embodiment divides the roles of business personnel and technical personnel, as shown in Table 1. Business personnel serve as scenario consultants, scenario engineers, and scenario technicians, and need to have a deep understanding of the logistics business process; technical personnel serve as production line experts, product engineers, and production line technicians, and need to be familiar with the definition and use of the DARU model and SAC².
[0128] Table 1
[0129]
[0130] Through the above process, the development of the logistics management platform (software) only requires business personnel to propose business requirements, and technicians who are proficient in this development method will convert these requirements into DARU expressions and generate software, so that logistics management software that meets business requirements can be developed quickly and efficiently. When the logistics management platform (software) needs to be updated, this method can also quickly respond and automatically implement software updates. This method greatly improves the development efficiency of the logistics management platform (software), shortens the development cycle, reduces development costs, and ensures the high quality and business applicability of the logistics management platform (software).
[0131] This method is used to convert requirements and automatically generate software for the logistics management platform (software). Through the combination of DARU expressions and automated conversion capabilities, rapid and efficient conversion of logistics business requirements can be achieved, thereby improving the efficiency and quality of software development; through standardized requirements conversion and implementation processes, the dependence on specific personnel is reduced, the decoupling of people and systems is achieved, and the flexibility and maintainability of the logistics management platform (software) are improved.
[0132] The present invention proposes a method for automatically generating business software, which establishes a DARU (Data-Action-Role-User) model through business function modularization, describes the business function module according to the DARU model, and designs a business description template based on DARU according to "Scenario Understanding-Abstract Design-Concrete Implementation-Template Configuration" (Story-Abstract-Concrete-Config, referred to as SAC²), fills in the business description template in combination with the actual business to form a structured requirement document, uses a structured parser to parse the structured requirement document to form a DARU expression, and further converts the DARU expression into software implementation through automated means, thereby achieving consistency and efficiency of business requirements, functional design, and software implementation, converting all business function modules into software code and integrating and deploying them, so as to form executable business software. In addition, the present invention also reduces dependence on specific personnel through standardized role division and development process, realizes decoupling of people and systems, and improves the flexibility and efficiency of software development.
[0133] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for automatically generating business software, characterized in that: The method comprises the following steps: (1) Based on the business software requirements, the business software is divided into several business modules according to the business process. All business process modules are regarded as data processing processes and abstracted into an ordered combination of input-output-processing nodes; (2) Check whether there is a template for the current business module in the template library. If so, jump to step (5); if not, execute sequentially; (3) The business module is abstracted into a DARU model consisting of four dimensions: data, action, role, and user. The DARU model has orthogonal completeness, in which the data is the operation object of the node; the action is the addition, deletion, modification, and query of the data; the role is the initiator of the action, and the user is the role bearer. The matrix table of the combination of data, action, and role is the operation authority of different roles of the node; (4) According to the actual business scenario, design a business description template based on the DARU model in accordance with "scenario understanding-abstract design-concrete implementation-template configuration" and incorporate it into the template library as the basis for software development; (5) Fill in and configure the business software requirements according to the business description template to form a structured requirements document; (6) parsing the structured requirement document, extracting DARU elements, and automatically assembling them into DARU expressions; (7) Automatically generate software code based on the DARU expression to form an executable business software module; (8) Repeat steps (2) to (7) for all business modules to generate the corresponding business module software code and iteratively generate the business software.
2. The method for automatically generating business software according to claim 1, characterized in that: The business description template in step (4) supports file formats generated by Excel, Word or mind mapping tools.
3. A business software automatic generation device, characterized by: (1) Business modularization: Based on business software requirements, the business software is divided into several business modules according to the business process. All business process modules are regarded as data processing processes and abstracted into an orderly combination of input-output-processing nodes. (2) Query module storage status: Query whether there is a current business module template in the template library. If yes, jump to step (5); if not, execute sequentially; (3) Module modeling: The business module is abstracted into a DARU model consisting of four dimensions: data, action, role, and user. The DARU model has orthogonal completeness, where the data is the operation object of the node; the action is the addition, deletion, modification, and query of the data; the role is the initiator of the action, and the user is the role bearer. The matrix table of the combination of data, action, and role is the operation authority of different roles of the node; (4) Model standardization: Based on the actual business scenario, a business description template based on the DARU model is designed according to "scenario understanding-abstract design-concrete implementation-template configuration" and incorporated into the template library as the basis for software development; (5) Fill in the business description template: fill in and configure the business software requirements according to the business description template to form a structured requirements document; (6) Parsing the business description template: parsing the structured requirement document, extracting DARU elements, and automatically assembling them into DARU expressions; (7) Generating software code: Based on the DARU expression, automatically generate software code to form an executable business software module; (8) All business modules repeat the above steps (2) to (7) to generate the corresponding business module software code and iteratively generate the business software.
4. A business software automatic generation system, characterized in that: Used to execute the business software automatic generation method as described in any one of claims 1 to 2.
