A method and system for quickly building file applications based on business domain components
Through business domain analysis and interface orchestration, file applications are generated, which solves the problems of complexity in building file applications and insufficient function mining in the existing technology, and enables rapid construction and expansion of file applications to meet complex business needs.
Patent Information
- Application Number
- CN202410394725.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-02
AI Technical Summary
When building file-based applications with existing technologies, the integration of file-based general function codes is complex and the reuse efficiency is low. The construction method based on file services cannot meet complex business needs, resulting in increased construction complexity and insufficient function mining, requiring a large amount of customized development.
Through business domain analysis of file application requirements, business domain components are retrieved and interfaced to generate file applications. Domain-driven design is used to deeply explore functional requirements, establish business models, and implement component packaging and interface orchestration to meet personalization. need.
It realizes the rapid construction and expansion of file applications according to business needs, deeply explores core business capabilities, improves construction efficiency and reusability, meets complex business needs, and reduces the complexity of customized development.
Smart Images

Figure CN118227293B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and system for rapidly constructing file applications based on business domain components. Background Art
[0002] The demand for file-related functions is widespread and highly versatile, and the reuse principle is often followed in information construction. At present, the company's product line business line mainly has the following methods in the construction of file-related applications:
[0003] 1. Project code reuse. That is, in the construction of a single file application, the code of file-related functions in other projects is often integrated, and personalized implementation is performed on this basis.
[0004] 2. Built on file services. In the microservice architecture system, basic functions such as file upload and download, metadata management and storage are split into file services. File applications can quickly implement file functions by integrating this service capability. For some specific file applications (such as the full life cycle management of contract documents), the system makes special implementations on the application side.
[0005] The above method has the following defects:
[0006] 1. The integration method of common function codes for files is relatively complex and cumbersome, and the reuse efficiency is low.
[0007] 2. The construction method based on file services cannot meet complex business needs. Different business systems have different requirements for the construction of file applications, such as different supported storage methods, different document editing methods, and incompatible system technical architectures. File services generally need to be customized, which undoubtedly increases the complexity of building file applications.
[0008] 3. File services often do not explore file-related needs deeply enough. They focus on basic and general file functions and are based on the MVC three-tier architecture. They do not explore file-related needs deeply enough. For file applications in some specific fields, a lot of customized development work is often required on the application side, which is not conducive to the accumulation of core file functions. Summary of the invention
[0009] One of the purposes of the present invention is to provide a method and system for quickly building file applications based on business domain components to solve the above technical problems.
[0010] An embodiment of the present invention provides a method for quickly building a file application based on a business domain component, comprising:
[0011] Conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results;
[0012] Perform interface arrangement for business domain components and generate file-based applications.
[0013] Preferably, the business domain analysis steps for file application requirements are as follows:
[0014] Processing the description data of the file application requirement to determine at least one description tag;
[0015] Using each description label as a determining identifier, determine at least one classification item from the business domain classification diagram.
[0016] Preferably, the steps for calling the business domain component are as follows:
[0017] Based on the determined classification items, the corresponding business domain components are extracted from the business domain component library.
[0018] Preferably, the steps for arranging the business domain component interface are as follows:
[0019] Component calls are made based on the orchestration priority values corresponding to the business domain components as the component call order basis;
[0020] Orchestration is performed according to the interface orchestration regulations corresponding to the called business domain components.
[0021] Preferably, when multiple file-type applications are generated, test data is extracted from a test library according to description tags to test the file-type applications, and the file-type applications whose test results meet preset output conditions are output.
[0022] The present invention also provides a system for quickly building file applications based on business domain components, including:
[0023] Retrieving components to conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results;
[0024] The orchestration component is used to orchestrate the interfaces of business domain components and generate file-based applications.
[0025] Preferably, the business domain analysis steps for file application requirements are as follows:
[0026] Processing the description data of the file application requirement to determine at least one description tag;
[0027] Using each description label as a determining identifier, determine at least one classification item from the business domain classification diagram.
[0028] Preferably, the steps for calling the business domain component are as follows:
[0029] Based on the determined classification items, the corresponding business domain components are extracted from the business domain component library.
[0030] Preferably, the steps for arranging the business domain component interface are as follows:
[0031] Component calls are made based on the orchestration priority values corresponding to the business domain components as the component call order basis;
[0032] Orchestration is performed according to the interface orchestration regulations corresponding to the called business domain components.
[0033] Preferably, the system for rapidly constructing file-type applications based on business domain components also includes: a test component for extracting test data from a test library to test the file-type applications according to description tags when multiple file-type applications are generated, and outputting the file-type applications whose test results meet preset output conditions.
[0034] The present invention has the following advantages:
[0035] 1. Business domainization: Build domain models based on business needs, dig deep into business needs, and help accumulate core business capabilities.
[0036] 2. Each component is responsible for a specific function, and components are called based on interfaces, achieving high cohesion and low coupling of business logic.
[0037] 3. Component application Based on the interfaces provided by components and combined with personalized business needs, file applications can be quickly built and expanded to meet complex business needs.
[0038] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0039] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0041] Figure 1 A schematic diagram of a method for quickly building a file application based on business domain components in an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a system for rapidly building file applications based on business domain components in an embodiment of the present invention;
[0043] Figure 3This is a schematic diagram of another system for rapidly building file applications based on business domain components in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0045] Example 1
[0046] The embodiment of the present invention provides a method for quickly building a file application based on business domain components, such as Figure 1 As shown, including:
[0047] Step 1: Conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results;
[0048] Step 2: Arrange interfaces for business domain components and generate file applications.
[0049] The business domain analysis steps for file application requirements are as follows:
[0050] Processing the description data of the file application requirement to determine at least one description tag;
[0051] Using each description label as a determining identifier, determine at least one classification item from the business domain classification diagram.
[0052] The steps for calling business domain components are as follows:
[0053] Based on the determined classification items, the corresponding business domain components are extracted from the business domain component library.
[0054] The steps for arranging the business domain component interfaces are as follows:
[0055] Component calls are made based on the orchestration priority values corresponding to the business domain components as the component call order basis;
[0056] Orchestration is performed according to the interface orchestration regulations corresponding to the called business domain components.
[0057] The method of quickly building file applications based on business domain components in this embodiment is to dig deep into the file function requirements through domain-driven design according to the needs of file applications, divide the business domain according to the function, establish a business model, and then realize the componentization of the business domain; on the basis of the division of business domains, file applications can be quickly built based on business domain components and combined with personalized needs. It mainly includes three processes: business domainization, domain componentization and component application: business domainization, that is, dividing the business domain, dividing tenants, resources, editing, previewing and storage and other subdivided business domains according to different file function requirements, analyzing the dependencies of each domain, and defining the context of different domains based on the principle of low coupling and high cohesion between domains to ensure that each context has clear boundaries and responsibilities; independently designing domain models to meet the needs of the company's actual business scenarios, such as contract document management, document process management, EPC engineering document collaboration, enterprise network disk and business system file services, etc.; writing codes for each business domain, while ensuring that the modeling language and programming language are consistent, engineers convert the domain model into executable code to realize the business logic and domain rules of each domain. Domain componentization means packaging components based on each business domain, defining clear interfaces and dependencies for each component, and ensuring decoupling and interchangeability between components. Each component is built based on Maven multi-modules. For example, the domain application layer interface is defined in domain-storage-api, and then componentized implementation is done according to actual business needs, such as domain-storage-ftp, domain-storage-mini io, and
[0058] domain-storage-local, etc. Following this approach, the component has the ability to expand horizontally; implement and test the component, independently develop and test each component to ensure the functional correctness and stability of the component. Component application, that is, file-type applications select different business domain components according to the personalized needs of the business system (such as consistency of technical architecture, storage resources, etc.), and the personalized needs of the application can be quickly realized by arranging the interfaces of domain components in the application aggregation layer. Among them, in the process of business domainization, a business domain classification diagram will be constructed and classification labels will be configured for each classification item in the business domain classification diagram; when the domain is componentized, an orchestration priority value is configured for each component produced and the classification item corresponding to the corresponding business domain classification diagram is associated with it; when the component is applied, that is, the construction of the file-type application, firstly, the file-type application requirements are analyzed to determine at least one description label corresponding to the requirements, and at least one classification item is determined according to the matching of the description label and the classification label corresponding to each classification item in the business domain classification diagram; then the business domain component corresponding to the classification item is extracted from the business domain component library; finally, the extracted business domain components are interface orchestrated, and the interface orchestration is carried out under the guidance of the orchestration priority value of each component.
[0059] The steps for determining the arrangement priority value are as follows:
[0060] According to the classification items corresponding to each component, query the preset initial value configuration table to determine the initial configuration value;
[0061] Obtain user preference data;
[0062] Determining a first correction value based on the usage preference data and a preset preference assignment table;
[0063] Get historical arrangement records;
[0064] Analyze historical orchestration records to determine the stable parameters corresponding to the components;
[0065] Determining a second correction value according to a stability parameter-correction correspondence table;
[0066] An orchestration priority value is determined based on the initial configuration value, the first revised value, and the second revised value.
[0067] This embodiment introduces the user's usage preference and the stability of the component itself for analysis and guidance in determining the orchestration priority value, so that the determined orchestration priority value has a good guiding significance for the specific orchestration, and reduces the probability of abnormalities that may occur during the orchestration; thereby ensuring that the interface orchestration is carried out in an orderly and effective manner. When analyzing the usage preference data, the user's usage preference data is first obtained; the method of obtaining the usage preference data includes: using the user to fill out a preference questionnaire (the user fills in the corresponding weight ratio of each classification item in each business field classification diagram), or using the user's authorization to collect data on the information transmitted in the user's network, and then extracting the data ratio corresponding to each classification item in each business field classification diagram; the preference assignment table is analyzed and constructed in advance by professionals, and the ratio in the preference assignment table corresponds to the first correction value one by one; the corresponding first correction value can be queried through the weight ratio or data ratio. When analyzing the stability of the component itself, the historical orchestration records are used to analyze the historical orchestration records to determine the stability parameters. The stability parameter is the ratio of the number of records in the orchestration records that have not been adjusted after the component is orchestrated to the total number of historical records; to identify the component stability; quantified by a pre-configured stability parameter-correction correspondence table to determine the second correction value; then the initial configuration value, the first correction value and the second correction value are combined, and the orchestration priority value is determined on this basis. The orchestration priority value is used for guidance to reduce the probability that the component needs to be adjusted after orchestration, thereby improving the effectiveness of the orchestration.
[0068] Example 2
[0069] The present invention provides a method for quickly building a file application based on business domain components, comprising:
[0070] Conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results;
[0071] Perform interface arrangement for business domain components and generate file-based applications;
[0072] When multiple file-type applications are generated, test data is extracted from a test library according to description tags to test the file-type applications, and the file-type applications whose test results meet preset output conditions are output.
[0073] The business domain analysis steps for file application requirements are as follows:
[0074] Processing the description data of the file application requirement to determine at least one description tag;
[0075] Using each description label as a determining identifier, determine at least one classification item from the business domain classification diagram.
[0076] The steps for calling business domain components are as follows:
[0077] Based on the determined classification items, the corresponding business domain components are extracted from the business domain component library.
[0078] The steps for arranging the business domain component interfaces are as follows:
[0079] Component calls are made based on the orchestration priority values corresponding to the business domain components as the component call order basis;
[0080] Orchestration is performed according to the interface orchestration regulations corresponding to the called business domain components.
[0081] The method of quickly building file-type applications based on business domain components in this embodiment, based on embodiment 1, optimizes the output when there are multiple generated file-type applications; extracts test data through descriptive tags for testing, screens and optimizes the output according to the test results, and then outputs more suitable file-type applications, wherein the test results include: processing time, data processing accuracy, etc.; the corresponding preset output conditions include: sorting by processing time or data processing accuracy, and outputting a preset number of file-type applications before sorting.
[0082] Example 3
[0083] The present invention provides a method for quickly building a file application based on business domain components, comprising:
[0084] Conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results;
[0085] Perform interface arrangement for business domain components and generate file-based applications.
[0086] The business domain analysis steps for file application requirements are as follows:
[0087] Processing the description data of the file application requirement to determine at least one description tag;
[0088] Using each description label as a determining identifier, determine at least one classification item from the business domain classification diagram.
[0089] The steps for calling business domain components are as follows:
[0090] Based on the determined classification items, the corresponding business domain components are extracted from the business domain component library.
[0091] Among them, the interfaces of business domain components are arranged to generate file applications, including:
[0092] Determine the number of extracted business domain components corresponding to each classification item;
[0093] When it is not unique, clone the grouping to form multiple component groups;
[0094] Each component group is arranged accordingly to generate file-based applications;
[0095] Before arranging, the interference impact of components between various component groups is determined through the preset component interference impact library, and the groups whose interference impact characterization parameters are greater than the preset threshold are eliminated to improve the component generation efficiency;
[0096] The interference impact of components between various component groups is determined through a preset component interference impact library, including:
[0097] According to the component codes corresponding to the preset components, a component code set corresponding to each group is constructed;
[0098] The component code set is matched with each standard parameter set in the component interference impact library, and the numerical value corresponding to the interference impact characterization parameter associated with the matching standard parameter set is extracted.
[0099] This embodiment should be used for the generation of applications when a classification item extracts multiple parallel similar components. When generating applications, the interference effects between components are analyzed to eliminate corresponding groups, eliminating the need to generate applications, thereby improving the efficiency of automatic application generation.
[0100] Example 4
[0101] The present invention also provides a system for quickly building file applications based on business domain components, such as Figure 2 As shown, including:
[0102] Calling component 1, which is used to perform business domain analysis on file application requirements, and calling corresponding business domain components according to the analysis results;
[0103] The orchestration component 2 is used to perform interface orchestration on business domain components and generate file-based applications.
[0104] The business domain analysis steps for file application requirements are as follows:
[0105] Processing the description data of the file application requirement to determine at least one description tag;
[0106] Using each description label as a determining identifier, determine at least one classification item from the business domain classification diagram.
[0107] The steps for calling business domain components are as follows:
[0108] Based on the determined classification items, the corresponding business domain components are extracted from the business domain component library.
[0109] The steps for arranging the business domain component interfaces are as follows:
[0110] Component calls are made based on the orchestration priority values corresponding to the business domain components as the component call order basis;
[0111] Orchestration is performed according to the interface orchestration regulations corresponding to the called business domain components.
[0112] Example 5
[0113] Based on Example 4, the system for quickly building file-type applications based on business domain components also includes: a test component 3, which is used to extract test data from a test library to test the file-type applications according to description tags when multiple file-type applications are generated, and output the file-type applications whose test results meet preset output conditions.
[0114] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for quickly building file applications based on business domain components, characterized in that include: Conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results; Perform interface arrangement for business domain components and generate file-based applications; The steps for business domain analysis of file application requirements are as follows: Processing the description data of the file application requirement to determine at least one description tag; Using each description tag as a determination identifier, determine at least one classification item from the business domain classification diagram; Among them, the steps to call the corresponding business domain components are as follows: Based on the determined classification items, extract the corresponding business domain components from the business domain component library; The method also includes: When there are multiple file-type applications generated, test data is extracted from the test library according to the description tags to test the file-type applications, and the file-type applications whose test results meet the preset output conditions are output; The test results include: processing time, data processing accuracy; the corresponding preset output conditions include: sorting by processing time or data processing accuracy, and outputting the file applications with the preset number of files sorted first; Among them, the interfaces of business domain components are arranged to generate file applications, including: Determine the number of extracted business domain components corresponding to each classification item; When it is not unique, clone the grouping to form multiple component groups; Each component group is arranged accordingly to generate file-based applications; Before arranging, the interference impact of components between various component groups is determined through a preset component interference impact library, and groups whose interference impact characterization parameters are greater than a preset threshold are eliminated; The interference impact of components between various component groups is determined through a preset component interference impact library, including: According to the component codes corresponding to the preset components, a component code set corresponding to each group is constructed; The component coding set is matched with each standard parameter set in the component interference impact library, and the numerical value corresponding to the interference impact characterization parameter associated with the matching standard parameter set is extracted.
2. A system for quickly building file applications based on business domain components, characterized by include: Retrieving components to conduct business domain analysis on file application requirements and retrieve corresponding business domain components based on the analysis results; The orchestration component is used to perform interface orchestration on business domain components and generate file-based applications. Among them, the business domain analysis of file application requirements is as follows: Processing the description data of the file application requirement to determine at least one description tag; Using each description tag as a determination identifier, determine at least one classification item from the business domain classification diagram; Among them, the corresponding business domain components are called as follows: Based on the determined classification items, extract the corresponding business domain components from the business domain component library; The system further includes: a test component, which is used to extract test data from a test library to test the file class applications according to the description tags when multiple file class applications are generated, and output the file class applications whose test results meet the preset output conditions; The test results include: processing time, data processing accuracy; the corresponding preset output conditions include: sorting by processing time or data processing accuracy, and outputting the file applications with the preset number of files sorted first; Among them, the interfaces of business domain components are arranged to generate file applications, including: Determine the number of extracted business domain components corresponding to each classification item; When it is not unique, clone the grouping to form multiple component groups; Each component group is arranged accordingly to generate file-based applications; Before arranging, the interference impact of components between various component groups is determined through a preset component interference impact library, and groups whose interference impact characterization parameters are greater than a preset threshold are eliminated; The interference impact of components between various component groups is determined through a preset component interference impact library, including: According to the component codes corresponding to the preset components, a component code set corresponding to each group is constructed; The component code set is matched with each standard parameter set in the component interference impact library, and the numerical value corresponding to the interference impact characterization parameter associated with the matching standard parameter set is extracted.
