Building block type component development method and device, equipment, storage medium and program product
Through the building block component development method, the problem of traditional technology being difficult to take into account both component universality and business integrity is solved, and efficient development and rapid business iteration are achieved.
Patent Information
- Application Number
- CN202411715503.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-18
AI Technical Summary
Traditional component development methods are difficult to balance the universality of components and business integrity, resulting in low development efficiency and rapid business iterations difficult to achieve.
Through the building block component development method, business data is collected, standardized processing is performed, and the building block analysis model is used for classification. Finally, business logic is integrated through the business orchestrator, a general container is generated and building block components are configured.
It realizes high universality and business integrity of components, improves development efficiency, supports rapid business iteration, and enhances data reliability of component design.
Smart Images

Figure CN119645360A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a building block component development method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technology, various application development technologies have emerged, among which the more common development method is the component-based development method.
[0003] In traditional technologies, most component development methods are mainly centered around the logical extraction of common components and general components. In order to ensure the reusability of components, they avoid adding business logic to common components and general components. Therefore, in order to ensure rapid business iteration, a more common method is to develop relatively general business components.
[0004] However, it is difficult to strike a balance between the universality of components and business integrity with the above method. If business integrity is to be guaranteed, it is difficult to ensure the universality of components, and if business integrity is to be guaranteed, it is difficult to ensure the universality of components. Summary of the invention
[0005] Based on this, it is necessary to provide a building block component development method, device, computer equipment, computer-readable storage medium and computer program product that can take into account the versatility and business integrity of components, improve development efficiency, and achieve rapid business iteration in response to the above technical problems.
[0006] In a first aspect, the present application provides a building block component development method, comprising:
[0007] Collect business data;
[0008] Performing standardization processing on the business data according to the business evaluation feature table to obtain standardized data;
[0009] The standardized data is analyzed by a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks;
[0010] The services are integrated according to the service classification results by a service orchestrator to obtain a universal container, and the universal container is configured to obtain a building block component.
[0011] In one embodiment, the business data includes: the frequency of occurrence of the business to be evaluated in the system, the complexity level, the type table composed of atomic type combinations, the single page label to which it belongs, the business sub-level, the business parent, and at least one of the free dimensions;
[0012] Before the service data is standardized according to the service evaluation feature table, the method further includes:
[0013] A business evaluation feature table is constructed based on the evaluation dimension, data type, value range, and feature weight of the business data.
[0014] In one embodiment, the step of performing standardization processing on the service data according to the service evaluation feature table to obtain the standardized data includes:
[0015] Backing up the business data to obtain backup data;
[0016] According to the business evaluation feature table, the business data is checked to obtain abnormal data, wherein the abnormal data includes at least one of: missing data items, abnormal data types, and abnormal data ranges;
[0017] Re-counting, calculating, and reviewing the abnormal data, and filling the reviewed data into the position corresponding to the abnormal data to obtain the filled data;
[0018] The filled data is compared with the backup data, and if the comparison passes, the standardized data is obtained.
[0019] In one embodiment, analyzing the standardized data by using a building block analysis model to obtain a business classification result includes:
[0020] Performing a standardization check on the standardized data to determine whether the standardized data meets the input standard of the building block analysis model;
[0021] If the input standard of the building block analysis model is not met, information feedback is provided for the standardized data, and / or modification suggestions for the problematic data items are provided;
[0022] If the input criteria of the building block analysis model are met, the business classification result of the standardized data is determined based on the K-nearest neighbor algorithm of the multi-dimensional Manhattan weighted distance.
[0023] In one embodiment, the service orchestrator integrates the services according to the service classification result to obtain a universal container, and configures the universal container to obtain a building block component, including:
[0024] A top layer of a building block component is constructed using a building block container as a content container, wherein the building block container contains at least one atomic building block, and the atomic building block is the smallest unit of the building block;
[0025] If the classification result includes a business building block, a second layer of the building block component is constructed based on the business building block, the business building block is also loaded in the building block container, and the business building block includes at least one atomic building block; wherein the business building block located at the second layer can reference the corresponding business building block from the building block container, and the atomic building block in the building block container can reference the corresponding atomic building block from the business building block of the second layer;
[0026] If the classification result includes Hooks with business logic, a third layer of building block components is constructed based on the Hooks with business logic, and reused business building blocks and / or atomic building blocks are injected into the Hooks with business logic located in the third layer; wherein the business building blocks located in the second layer can reference corresponding business building blocks from the Hooks with business logic in the third layer, and the atomic building blocks in the building block container can reference corresponding atomic building blocks from the Hooks with business logic in the third layer;
[0027] The input and output parameters of the building block component are configured according to the interface of the business plan, wherein the configuration content includes: building block configuration items, data types, and configuration item meanings; the atomic building blocks are used to cooperate with the building block container to process the atomic component style and general business logic; the business building blocks are used to add the business logic of the Web end on the basis of the atomic building blocks; the Hooks with business logic are used to add the processing logic of the API on the basis of the atomic building blocks and the business building blocks; the Web is a global wide area network, and the API is an application programming interface.
[0028] In one embodiment, when a new service requirement is added, the method further includes:
[0029] Get new business data;
[0030] Standardize the newly added service data according to the service evaluation feature table, and input the standardized data into the building block analysis model to obtain a service classification result of the newly added service;
[0031] If the business classification result of the newly added business is a building block container, then search for a building block container with the same business classification result as the newly added business in the existing building block components; if the same building block container exists, then search for the atomic building block type required for the newly added business in the building block container; if the atomic building block type required for the newly added business exists, then reference the atomic building blocks of the corresponding type for configuration; if the atomic building block type required for the newly added business does not exist, then fill the atomic building blocks and configure the filled atomic building blocks; if the same building block container does not exist, then expand the building block container, and search for the atomic building block type required for the newly added business in the building block container of the existing building block components; if the atomic building block type required for the newly added business exists, then reference the atomic building blocks of the corresponding type for configuration; if the atomic building block type required for the newly added business does not exist, then fill the atomic building blocks and configure the filled atomic building blocks;
[0032] If the service classification result of the newly added service is an atomic building block, then search in the building block container of the existing building block component whether there is an atomic building block type required for the newly added service; if there is an atomic building block type required for the newly added service, then reference the atomic building block of the corresponding type for configuration; if there is no atomic building block type required for the newly added service, then fill the atomic building block and configure the filled atomic building block;
[0033] If the business classification result of the newly added business is a business building block, the atomic building block type required by the business building block of the newly added business is searched in the building block container of the existing building block component; if the atomic building block type required by the business building block of the newly added business exists, the atomic building block of the corresponding type is referenced for configuration; if the atomic building block type required by the business building block of the newly added business does not exist, the atomic building blocks are filled, and the filled atomic building blocks are configured;
[0034] If the business classification result of the newly added business is Hooks with business logic, then the building block container of the existing building block component is searched to see whether the Hooks with business logic required for the newly added business already exists. If so, the existing Hooks with business logic are referenced; if not, the atomic blocks of the Hooks with business logic are filled, and the filled atomic blocks are configured.
[0035] In a second aspect, the present application also provides a building block component development device, comprising:
[0036] A collection module, used to collect business data;
[0037] A standardization processing module, used to perform standardization processing on the business data according to the business evaluation feature table to obtain standardized data;
[0038] A classification module, used to analyze the standardized data through a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks;
[0039] The orchestration module is used to integrate the services according to the service classification results through a service orchestrator to obtain a universal container, and configure the universal container to obtain a building block component.
[0040] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0041] Collect business data;
[0042] Performing standardization processing on the business data according to the business evaluation feature table to obtain standardized data;
[0043] The standardized data is analyzed by a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks;
[0044] The services are integrated according to the service classification results by a service orchestrator to obtain a universal container, and the universal container is configured to obtain a building block component.
[0045] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0046] Collect business data;
[0047] Performing standardization processing on the business data according to the business evaluation feature table to obtain standardized data;
[0048] The standardized data is analyzed by a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks;
[0049] The services are integrated according to the service classification results by a service orchestrator to obtain a universal container, and the universal container is configured to obtain a building block component.
[0050] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0051] Collect business data;
[0052] Performing standardization processing on the business data according to the business evaluation feature table to obtain standardized data;
[0053] The standardized data is analyzed by a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks;
[0054] The services are integrated according to the service classification results by a service orchestrator to obtain a universal container, and the universal container is configured to obtain a building block component.
[0055] The above-mentioned building block component development method, device, computer equipment, computer-readable storage medium and computer program product collect business data; standardize the business data according to the business evaluation feature table to obtain standardized data; thereby standardize a wide range of business data through the business evaluation feature table so that it meets the input standard of the building block analysis model and improves the reliability of subsequent model analysis. The building block analysis model analyzes the standardized data to obtain a business classification result, and the business classification result includes: at least one of a building block container, an atomic building block, a business building block, and hooks with business logic; the hooks are hooks; thereby, the standardized data can be classified, which is convenient for subsequent arrangement of general building blocks as components, thereby improving the adaptability of building block components. The business orchestrator integrates the business according to the business classification result to obtain a general container, and configures the general container to obtain a building block component. Thus, the component design feature index is quantified, the data reliability of the building block design is enhanced, and the versatility and business integrity of the component can be taken into account, the development efficiency is improved, high reusability is achieved, and the needs of rapid business iteration are met. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1A schematic diagram of the design principle of a building block component development process in one embodiment;
[0058] Figure 2 A schematic diagram of a flow chart of a building block component development method in one embodiment;
[0059] Figure 3 A schematic diagram of the principle of service classification in an embodiment;
[0060] Figure 4 A schematic diagram of the principles of a service orchestrator in one embodiment;
[0061] Figure 5 is a schematic diagram of the composition of atomic building blocks in one embodiment;
[0062] Figure 6 A schematic diagram of the composition of a business building block in an embodiment;
[0063] Figure 7 This is a schematic diagram of the composition of Hooks with business logic in one embodiment;
[0064] Figure 8 A schematic diagram of a flow chart of a building block component development method in another embodiment;
[0065] Fig. 9 A schematic diagram of a flow chart of a building block component development method in yet another embodiment;
[0066] Fig.10 A flowchart for developing building block components when adding new business requirements in an embodiment;
[0067] Fig.11 A structural block diagram of a building block component development device in one embodiment;
[0068] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0070] For example, Figure 1 FIG. 1 is a schematic diagram of the design principle of the building block component development process in an embodiment. Figure 1As shown, first, collect business data (i.e., original data), and perform standardization on the business data according to the business evaluation feature table to obtain standardized data. In the standardization process, combine the general development standard with the personalized development standard, formulate the business evaluation feature table to define the key feature values and their weights of the components, and perform data standardization according to the business evaluation feature table, thereby increasing the reliability of the business analysis model. Secondly, analyze the standardized data through the building block analysis model to obtain a business classification result, and the business classification result includes at least one of: building block container, atomic building block, business building block, and Hooks with business logic; the Hooks are hooks. Among them, the business analysis model can analyze the standardized data to obtain a business classification result; if there is an abnormality in the standard processed data, it can also be fed back through the business analysis model. Finally, the business is integrated according to the business classification result through the business orchestrator to obtain a universal container, and the universal container is configured to obtain a building block component. In this embodiment, a business analysis model and a business orchestrator are combined to design a building block container to carry atomic building blocks, business building blocks, and Hooks with business logic, thereby taking into account the versatility and business integrity of components, improving development efficiency, achieving high reusability, and meeting the needs of rapid business iteration.
[0071] In an exemplary embodiment, Figure 2 As shown, a building block component development method is provided, which is applied to Figure 1 The building block design system in FIG. 1 is taken as an example to illustrate, including the following steps 201 to 204. Among them:
[0072] Step 201, collect business data.
[0073] In this embodiment, business data is generally data that reflects business characteristics. Exemplarily, the business data includes: the frequency of occurrence of the business to be evaluated in the system, the complexity level, the type table composed of atomic type combinations, the single page label to which it belongs, the business sub-level, the business parent, and at least one of the free dimensions.
[0074] Among them, business frequency refers to the number of times the same business module appears in the project or the expected frequency of occurrence. The complexity level is quantitatively divided according to the number of sub-items involved in the module and the depth of the hierarchy. The type list (TypeList) is the function of the required atoms, which is an arbitrary combination of supported atomic types. Atomic types are represented by Type, and their values include: Button, Container, Icon, Link, Scrollbar, Form, Autocomplete, Cascading Menu, Checkbox, Color Picker, Date Picker, Date Time Picker, Input, Input Number, Radio, Rate, Select, Virtualized Select, Slider, Switch, Time Picker, Time Select, Transfer, TreeSelect, Upload, Avatar, Badge, Calendar, Card, Carousel, Collapse, Descriptions, Empty, Image, Infinite Scroll, etc. Scroll), Pagination, Progress, Result, Skeleton, Table, Virtualized Table, Tag, Timeline, Tour, Tree, Statistic, Segmented, Dialog, Tooltip, etc. The built-in options of the single-page tag include: Create, Detail, Dialog, List, Header, Footer, Aside-Left, Aside-Right, Steps, etc., and provide a custom expansion entry. The business sub-level (Children) includes the sub-item IDs contained in the business at this level, and the sub-item feature table can be recursively indexed according to the sub-item ID.The business parent (Parent) includes the parent business module where the current business is located. Each business has at most one parent module (excluding the interlayer parent). The interlayer parent information is reflected in the parent module and the information is read according to the index tree.
[0075] Step 202: Standardize the business data according to the business evaluation feature table to obtain standardized data.
[0076] In this embodiment, in addition to listing the evaluation feature dimensions, the business evaluation feature table also supports user-defined evaluation dimensions, and can customize feature weights for each feature value to adapt to specific application scenarios. For example, as shown in Table 1.
[0077] Table 1
[0078]
[0079] Among them, * indicates user-defined.
[0080] Exemplarily, the business data is first backed up to obtain backup data; the business data is checked according to the business evaluation feature table to obtain abnormal data, and the abnormal data includes at least one of missing data items, abnormal data types, and abnormal data ranges; the abnormal data is re-counted, calculated, and audited, and the audited data is filled into the position corresponding to the abnormal data to obtain the filled data; the filled data is compared with the backup data, and if the comparison passes, the standardized data is obtained.
[0081] In this embodiment, data standardization processing can be performed in combination with the evaluation dimensions set in Table 1, so as to identify, correct or delete erroneous, abnormal or inconsistent data in the data set and unify the data type. Specifically, the original data is backed up first as comparison data after the data standardization processing is completed to avoid data errors or omissions introduced during the data processing process. Secondly, data inspection is performed. Abnormal items include data missing items, data type anomalies, data range anomalies, etc. For abnormal data, fill in by re-statistics, calculations, and audits. After the processing is completed, use the data comparison tool (BeyondCompare) to compare the processed data with the backup data to ensure that no new errors or inconsistencies are introduced. The data set that has completed the standardization processing is used as the input of the building block design analysis model.
[0082] Step 203: Analyze the standardized data using the building block analysis model to obtain a business classification result.
[0083] The business classification result includes: at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks.
[0084] In this embodiment, the standardized data is used as the input of the building block analysis model. The model first performs standardized verification on the input data. The verification items include the value type, value range, whether it is missing, custom feature dimension and value rationality of the feature item, etc., which are specifically marked in Table 1. For embodiments that do not meet the model input standards or have insufficient information, system information feedback is provided, and suggestions for correcting problematic data items are given to achieve effective training and self-learning capabilities of the model. For use cases that meet the model input standards, the K-Nearest Neighbors (KNN) algorithm based on multidimensional Manhattan weighted distance is first used to determine the building block type suitable for the business module.
[0085] For example, assuming that the feature coordinates of two points are represented by X and Y respectively, X(x 11, x 12 ,x 13 ,...,x 1n ), Y(y 11, y 12 ,y 13 ,...,y 1n ), the Manhattan weighted distance calculation formula is as follows:
[0086]
[0087] Where: n is the number of characteristic items, α i β i is the weight of the feature item.
[0088] When calculating the feature weighted distance, the point to be evaluated is P, as follows Figure 3 As shown in the figure, the classification buckets are defined as containers, business blocks, atomic blocks, and hooks with business logic. Point P is on the dotted circle. The diameter of the dotted circle is determined by the sum of the weights of the relevant eigenvalues. The dotted circle fixes point P. The intersection of the dotted circle and the target classification bucket is the coverage surface when it rotates 360 degrees (along the dotted line). For the classification buckets without any feature points in the coverage surface, pruning is performed directly without performing related calculations, thereby improving the computational efficiency of the model. For the covered classification bucket feature points, Manhattan weighted distance calculation is performed on each classification bucket, and finally the classification bucket closest to point P is obtained, and point P is included in this classification bucket.
[0089] Exemplarily, by performing standardization verification on the standardized data, it is determined whether the standardized data meets the input criteria of the building block analysis model; if it does not meet the input criteria of the building block analysis model, information feedback is provided for the standardized data, and / or modification suggestions for the problematic data items are given; if it meets the input criteria of the building block analysis model, the business classification result of the standardized data is determined based on the K-nearest neighbor algorithm of the multi-dimensional Manhattan weighted distance.
[0090] Step 204: The service orchestrator integrates the services according to the service classification results to obtain a universal container, and configures the universal container to obtain a building block component.
[0091] In this embodiment, after the business analysis model classifies the business modules, the business choreographer further processes and provides a set of building block design solutions suitable for the business modules. Figure 4 As shown in the figure, the design principles of the business orchestrator are described as follows: among the four classification buckets of building block container, atomic building block, business building block, and Hooks, the building block container is the content container and the top-level structure of the building block. Atomic building blocks, business building blocks, and Hooks hooks all need to rely on containers for carrying, and containers need to be supported by at least one atomic building block. Among them, atomic building blocks are in principle indivisible and are the smallest unit of building blocks. They are also the basis for supporting the development of configurable building blocks. Business building blocks are an extension of atomic building blocks based on business. According to business analysis, the building block type is determined. Through the interface of business planning, the input and output parameters of the component are determined to achieve the style and logic reuse of high-frequency business modules. Hooks hooks are based on the method reuse of high-frequency business logic, and business injection is achieved on the basis of referencing existing building blocks.
[0092] Exemplarily, a top layer of a building block component is constructed using a building block container as a content container, wherein the building block container contains at least one atomic building block, and the atomic building block is the smallest unit of a building block.
[0093] Exemplarily, if the classification result includes business building blocks, a second layer of the building block component is constructed based on the business building blocks, and the business building blocks are also loaded in the building block container, and the business building blocks include at least one atomic building block; wherein the business building blocks located in the second layer can reference corresponding business building blocks from the building block container, and the atomic building blocks in the building block container can reference corresponding atomic building blocks from the business building blocks of the second layer.
[0094] Exemplarily, if the classification result includes Hooks with business logic, the third layer of the building block component is constructed based on the Hooks with business logic, and reused business building blocks and / or atomic building blocks are injected into the Hooks with business logic located in the third layer; wherein, the business building blocks located in the second layer can reference corresponding business building blocks from the Hooks with business logic in the third layer, and the atomic building blocks in the building block container can reference corresponding atomic building blocks from the Hooks with business logic in the third layer.
[0095] Exemplarily, the input and output parameters of the building block component are configured according to the interface of the business plan, wherein the configuration content includes: building block configuration items, data types, and configuration item meanings; the atomic building blocks are used to cooperate with the building block container to process the atomic component style and general business logic; the business building blocks are used to add the business logic of the Web side on the basis of the atomic building blocks; the Hooks with business logic are used to add the processing logic of the API on the basis of the atomic building blocks and the business building blocks; the Web is a global wide area network, and the API is an application programming interface.
[0096] In this embodiment, the business is carried by the container, and the container is based on the business. The atomic building blocks, business building blocks, and Hooks are integrated into a universal container for configuration. The configuration can be passed in one or more in the form of an array, and each input parameter configuration item is shown in Table 2. It can be customized according to the business. The container matches the existing building blocks according to the type value configured in the business, and finally achieves the purpose of building block development.
[0097] Table 2
[0098] Building block configuration items Data Types Configuration item meaning type String Corresponding to the type item in TypeList in the business evaluation feature table Fields String Input parameter key corresponding to the configuration item Logo String The flag that the configuration item needs to display function function Function to be called rule Arrays General verification rules required for this item Configuration Object Other configuration items
[0099] For example, Figure 5 As shown in the figure, the composition of atomic building blocks is shown. Atomic building blocks mainly cooperate with containers to handle atomic component styles and general business logic. Figure 6 As shown in the figure, the composition of business building blocks is shown. Business building blocks are based on atomic building blocks and add business logic integration that only involves the Web side. Figure 7 As shown in the figure, the composition of Hooks with business logic is shown. Hooks adds API processing integration based on atomic blocks and business blocks to achieve deeper customized logic reuse. Among them, Config Process represents configuration item processing, and API Process represents application programming interface configuration.
[0100] In the above-mentioned building block component development method, by collecting business data; the business data is standardized according to the business evaluation feature table to obtain standardized data; thus, the broad business data is standardized through the business evaluation feature table so that it meets the input standard of the building block analysis model and improves the reliability of subsequent model analysis. The standardized data is analyzed by the building block analysis model to obtain a business classification result, and the business classification result includes: at least one of the building block container, atomic building block, business building block, and Hooks with business logic; the Hooks are hooks; thus, the standardized data can be classified, which is convenient for subsequent arrangement of general building blocks as components, and the adaptability of building block components is improved. The business orchestrator integrates the business according to the business classification result to obtain a general container, and configures the general container to obtain a building block component. Thus, the component design feature index is quantified, the data reliability of the building block design is enhanced, and the universality and business integrity of the component can be taken into account, the development efficiency is improved, high reusability is achieved, and the needs of rapid business iteration are met.
[0101] In another exemplary embodiment, Figure 8 As shown, a building block component development method is provided, which is applied to Figure 1 The building block design system in FIG. 1 is taken as an example to illustrate, including the following steps 801 to 805. Among them:
[0102] Step 801, constructing a business evaluation feature table according to the evaluation dimension, data type, value range, and feature weight of the business data.
[0103] In this embodiment, in addition to listing the evaluation feature dimensions, the business evaluation feature table also supports user-defined evaluation dimensions, and can customize feature weights for each feature value to adapt to specific application scenarios. Exemplarily, the business evaluation feature table is constructed based on the evaluation dimension, data type, value range, and feature weight of the business data.
[0104] Step 802, collect business data.
[0105] Step 803: Standardize the business data according to the business evaluation feature table to obtain standardized data.
[0106] Step 804: Analyze the standardized data using the building block analysis model to obtain a business classification result.
[0107] The business classification result includes: at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks.
[0108] Step 805: The service orchestrator integrates the services according to the service classification results to obtain a universal container, and configures the universal container to obtain a building block component.
[0109] In this embodiment, the specific implementation process and technical effects of steps 802 to 805 are shown in Figure 2 The descriptions of steps 201 to 204 in the illustrated method embodiment are not repeated here.
[0110] In yet another exemplary embodiment, Fig. 9 As shown, a building block component development method is provided, which is applied to Figure 1 The building block design system in FIG. 1 is taken as an example to illustrate, including the following steps 901 to 907. Among them:
[0111] Step 901, collect business data.
[0112] Step 902: Standardize the business data according to the business evaluation feature table to obtain standardized data.
[0113] Step 903: Analyze the standardized data using the building block analysis model to obtain a business classification result.
[0114] The business classification result includes: at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks.
[0115] Step 904: The service orchestrator integrates the services according to the service classification results to obtain a universal container, and configures the universal container to obtain a building block component.
[0116] In this embodiment, the specific implementation process and technical effects of steps 901 to 804 are shown in Figure 2 The descriptions of steps 201 to 204 in the illustrated method embodiment are not repeated here.
[0117] Step 905: Acquire newly added business data.
[0118] This embodiment is applied to situations where new business requirements need to be added. The process is similar to step 901, and new business data is collected, which may include: the frequency of occurrence of the business to be evaluated in the system, the complexity level, the type table composed of atomic type combinations, the single page label to which it belongs, the business sub-level, the business parent, and at least one item in the free dimension.
[0119] Step 906: standardize the newly added service data according to the service evaluation feature table, and input the standardized data into the building block analysis model to obtain the service classification result of the newly added service.
[0120] In this embodiment, in order to facilitate the determination of the classification result of the newly added business data through the building block analysis model, it is necessary to first perform standardization processing on the newly added business data according to the business evaluation feature table.
[0121] Step 907 , according to the service classification result of the newly added service, reference and configure the required atomic building blocks based on the existing building block components, or fill and configure the required atomic building blocks based on the existing building block components.
[0122] Exemplarily, if the business classification result of the new business is a building block container, then the building block container with the same business classification result as the new business is searched in the existing building block component; if the same building block container exists, then the building block container is searched to see whether the atomic building block type required for the new business exists; if the atomic building block type required for the new business exists, the atomic building blocks of the corresponding type are referenced for configuration; if the atomic building block type required for the new business does not exist, the atomic building blocks are filled and the filled atomic building blocks are configured; if the same building block container does not exist, the building block container is expanded, and the building block container of the existing building block component is searched to see whether the atomic building block type required for the new business exists; if the atomic building block type required for the new business exists, the atomic building blocks of the corresponding type are referenced for configuration; if the atomic building block type required for the new business does not exist, the atomic building blocks are filled and the filled atomic building blocks are configured.
[0123] Exemplarily, if the service classification result of the new service is an atomic building block, then the building block container of the existing building block component is searched to see whether the atomic building block type required for the new service exists; if the atomic building block type required for the new service exists, the atomic building block of the corresponding type is referenced for configuration; if the atomic building block type required for the new service does not exist, the atomic building blocks are filled and the filled atomic blocks are configured.
[0124] Exemplarily, if the business classification result of the new business is a business building block, the atomic building block type required by the business building block of the new business is searched in the building block container of the existing building block component. If the atomic building block type required by the business building block of the new business exists, the atomic building block of the corresponding type is referenced for configuration; if the atomic building block type required by the business building block of the new business does not exist, the atomic building blocks are filled and the filled atomic building blocks are configured.
[0125] Exemplarily, if the business classification result of the newly added business is Hooks with business logic, then the building block container of the existing building block component is searched to see whether the Hooks with business logic required for the newly added business already exists. If so, the existing Hooks with business logic are referenced; if not, the atomic blocks of the Hooks with business logic are filled, and the filled atomic blocks are configured.
[0126] In this embodiment, the newly added business data is first collected, a business evaluation feature table is formulated to define the key feature values and weights of the components, and then the newly added business data is standardized according to the business evaluation feature table, thereby increasing the reliability of the business analysis model. The classification of the newly added business data is determined by the building block analysis model and the business orchestrator, so that the existing building block components can be used to the greatest extent possible for the building block configuration of the new business, avoiding excessive reliance on the personal experience and subjective consciousness of the developers in the underlying building block design. In addition, by designing containers to carry atomic building blocks, business building blocks and business hooks, the code reuse rate is greatly improved, and the ability to quickly iterate the business is realized, which improves the development efficiency while ensuring the maintainability of the code.
[0127] For example, Fig.10 As shown in the figure, a development flow chart of building block components is given when new business requirements are added, such as Fig.10 As shown, firstly, the feature values required by the business analysis model are extracted based on the business analysis and data standardization is performed. Then, the standardized data is used as the input of the building block analysis model to obtain the business classification results. Business arrangement is performed based on the business classification results, and available building blocks are found based on the existing building blocks.
[0128] For example, if the business belongs to a building block container, first check whether there is already a container for the building blocks. If so, hit the container and check whether the atomic building block type required by the business is available in the container. If so, configure it directly. If the business does not belong to a building block container, check whether the atomic building block type already exists. If so, use the building block configuration directly; if not, fill and configure the atomic building blocks.
[0129] Exemplarily, if the business belongs to an atomic building block, check whether the atomic building block type already exists. If it already exists, directly use the building block configuration. If it does not exist, fill and configure the atomic building block.
[0130] Exemplarily, if the business belongs to a business building block, check whether the atomic building block required by the business building block already exists. If it already exists, directly use the building block configuration; if it does not exist, fill and configure the atomic building block.
[0131] Exemplarily, if the business belongs to Hooks, check whether the Hooks hook required by the business already exists. If it does, directly use the building block configuration. If it does not exist, fill the Hooks hook and then perform the building block configuration.
[0132] In this embodiment, the data reliability of the building block design is enhanced by quantifying the component design feature indicators; a business analysis model is designed based on the KNN algorithm of the multi-dimensional Manhattan weighted distance, and the adaptability of the analysis model in different systems is increased by configuring the feature item weights, and differentiated analysis solutions are provided for the importance of different features in different systems; a building block implementation solution is given through the designed business orchestrator, which realizes the high reusability of building block components and greatly improves the business development efficiency.
[0133] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0134] Based on the same inventive concept, the embodiment of the present application also provides a building block component development device for implementing the building block component development method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more building block component development device embodiments provided below can refer to the limitations of the building block component development method above, and will not be repeated here.
[0135] In an exemplary embodiment, Fig.11 As shown, a building block component development device is provided, including: a collection module 1101, a standardization processing module 1102, a classification module 1103 and an arrangement module 1104, wherein:
[0136] A collection module 1101 is used to collect business data;
[0137] A standardization processing module 1102 is used to perform standardization processing on the service data according to the service evaluation feature table to obtain standardized data;
[0138] The classification module 1103 is used to analyze the standardized data through a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks;
[0139] The orchestration module 1104 is used to integrate the services according to the service classification result through the service orchestrator to obtain a universal container, and configure the universal container to obtain a building block component.
[0140] Exemplarily, the business data includes: the frequency of occurrence of the business to be evaluated in the system, the complexity level, the type table composed of atomic type combinations, the single page label to which it belongs, the business sub-level, the business parent, and at least one of the free dimensions.
[0141] Exemplarily, the above-mentioned device may also include: a construction module 1105, which is used to construct a business evaluation feature table according to the evaluation dimension, data type, value range, and feature weight of the business data.
[0142] Exemplarily, the standardization processing module 1102 is specifically used to: back up the business data to obtain backup data; check the business data according to the business evaluation feature table to obtain abnormal data, and the abnormal data includes: at least one of missing data items, data type abnormalities, and data range abnormalities; re-count, calculate, and review the abnormal data, and fill the audited data into the position corresponding to the abnormal data to obtain the filled data; compare the filled data with the backup data, and if the comparison passes, obtain the standardized data.
[0143] Exemplarily, the classification module 1103 is specifically used to: perform standardization verification on the standardized data to determine whether the standardized data meets the input standard of the building block analysis model; if it does not meet the input standard of the building block analysis model, provide information feedback for the standardized data, and / or provide modification suggestions for the problematic data items; if it meets the input standard of the building block analysis model, determine the business classification result of the standardized data based on the K-nearest neighbor algorithm of multi-dimensional Manhattan weighted distance.
[0144] Exemplarily, the orchestration module 1104 is specifically used to: construct the top layer of the building block component with a building block container as a content container, the building block container contains at least one atomic building block, and the atomic building block is the smallest unit of the building block; if the classification result includes a business building block, then construct the second layer of the building block component based on the business building block, the business building block is also loaded in the building block container, and the business building block contains at least one atomic building block; wherein, the business building block located at the second layer can reference the corresponding business building block from the building block container, and the atomic building block in the building block container can reference the corresponding atomic building block from the business building block of the second layer; if the classification result includes Hooks with business logic, then construct the third layer of the building block component based on the Hooks with business logic, and inject reuse into the Hooks with business logic located at the third layer business building blocks and / or atomic building blocks; wherein, the business building blocks located at the second layer can reference corresponding business building blocks from the Hooks with business logic in the third layer, and the atomic building blocks in the building block container can reference corresponding atomic building blocks from the Hooks with business logic in the third layer; the building block components are configured with input and output parameters according to the interface of the business plan, wherein the configuration content includes: building block configuration items, data types, and configuration item meanings, the atomic building blocks are used to cooperate with the building block container to process atomic component styles and general business logic, the business building blocks are used to add Web-side business logic on the basis of the atomic building blocks, and the Hooks with business logic are used to add API processing logic on the basis of the atomic building blocks and the business building blocks, the Web is a global wide area network, and the API is an application programming interface.
[0145] Exemplarily, the above-mentioned device may further include: a new adding module 1106, which is used to obtain new business data; and the standardization processing module 1102 performs standardization processing on the new business data according to the business evaluation feature table, and inputs the standardized data into the building block analysis model to obtain a business classification result of the new business; and the orchestration module 1104 performs at least one of the following operations:
[0146] If the business classification result of the newly added business is a building block container, then search for a building block container with the same business classification result as the newly added business in the existing building block components; if the same building block container exists, then search for the atomic building block type required for the newly added business in the building block container; if the atomic building block type required for the newly added business exists, then reference the atomic building blocks of the corresponding type for configuration; if the atomic building block type required for the newly added business does not exist, then fill the atomic building blocks and configure the filled atomic building blocks; if the same building block container does not exist, then expand the building block container, and search for the atomic building block type required for the newly added business in the building block container of the existing building block components; if the atomic building block type required for the newly added business exists, then reference the atomic building blocks of the corresponding type for configuration; if the atomic building block type required for the newly added business does not exist, then fill the atomic building blocks and configure the filled atomic building blocks;
[0147] If the service classification result of the newly added service is an atomic building block, then search in the building block container of the existing building block component whether there is an atomic building block type required for the newly added service; if there is an atomic building block type required for the newly added service, then reference the atomic building block of the corresponding type for configuration; if there is no atomic building block type required for the newly added service, then fill the atomic building block and configure the filled atomic building block;
[0148] If the business classification result of the newly added business is a business building block, the atomic building block type required by the business building block of the newly added business is searched in the building block container of the existing building block component; if the atomic building block type required by the business building block of the newly added business exists, the atomic building block of the corresponding type is referenced for configuration; if the atomic building block type required by the business building block of the newly added business does not exist, the atomic building blocks are filled, and the filled atomic building blocks are configured;
[0149] If the business classification result of the newly added business is Hooks with business logic, then the building block container of the existing building block component is searched to see whether the Hooks with business logic required for the newly added business already exists. If so, the existing Hooks with business logic are referenced; if not, the atomic blocks of the Hooks with business logic are filled, and the filled atomic blocks are configured.
[0150] Each module in the above-mentioned building block component development device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0151] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a building block component development method is implemented.
[0152] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0153] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0154] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0155] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0156] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0157] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited thereto.
[0158] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0159] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A building block component development method, characterized in that: The method comprises: Collect business data; Performing standardization processing on the business data according to the business evaluation feature table to obtain standardized data; The standardized data is analyzed by a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks; The services are integrated according to the service classification results by a service orchestrator to obtain a universal container, and the universal container is configured to obtain a building block component.
2. The method according to claim 1, characterized in that The business data includes: the frequency of occurrence of the business to be evaluated in the system, the complexity level, the type table composed of atomic type combinations, the single page label to which it belongs, the business sub-level, the business parent level, and at least one of the free dimensions; Before the service data is standardized according to the service evaluation feature table, the method further includes: A business evaluation feature table is constructed based on the evaluation dimension, data type, value range, and feature weight of the business data.
3. The method according to claim 1, characterized in that The step of performing standardization processing on the business data according to the business evaluation feature table to obtain the standardized data includes: Backing up the business data to obtain backup data; According to the business evaluation feature table, the business data is checked to obtain abnormal data, wherein the abnormal data includes at least one of: missing data items, abnormal data types, and abnormal data ranges; Re-counting, calculating, and reviewing the abnormal data, and filling the reviewed data into the position corresponding to the abnormal data to obtain the filled data; The filled data is compared with the backup data, and if the comparison passes, the standardized data is obtained.
4. The method according to claim 1, characterized in that: The standardized data is analyzed by the building block analysis model to obtain a business classification result, including: Performing a standardization check on the standardized data to determine whether the standardized data meets the input standard of the building block analysis model; If the input standard of the building block analysis model is not met, information feedback is provided for the standardized data, and / or modification suggestions for the problematic data items are provided; If the input criteria of the building block analysis model are met, the business classification result of the standardized data is determined based on the K-nearest neighbor algorithm of the multi-dimensional Manhattan weighted distance.
5. The method according to any one of claims 1 to 4, characterized in that: The service orchestrator integrates the services according to the service classification results to obtain a universal container, and configures the universal container to obtain a building block component, including: A top layer of a building block component is constructed using a building block container as a content container, wherein the building block container contains at least one atomic building block, and the atomic building block is the smallest unit of the building block; If the classification result includes a business building block, a second layer of the building block component is constructed based on the business building block, the business building block is also loaded in the building block container, and the business building block includes at least one atomic building block; wherein the business building block located at the second layer can reference the corresponding business building block from the building block container, and the atomic building block in the building block container can reference the corresponding atomic building block from the business building block of the second layer; If the classification result includes Hooks with business logic, a third layer of building block components is constructed based on the Hooks with business logic, and reused business building blocks and / or atomic building blocks are injected into the Hooks with business logic located in the third layer; wherein the business building blocks located in the second layer can reference corresponding business building blocks from the Hooks with business logic in the third layer, and the atomic building blocks in the building block container can reference corresponding atomic building blocks from the Hooks with business logic in the third layer; The input and output parameters of the building block component are configured according to the interface of the business plan, wherein the configuration content includes: building block configuration items, data types, and configuration item meanings; the atomic building blocks are used to cooperate with the building block container to process the atomic component style and general business logic; the business building blocks are used to add the business logic of the Web end on the basis of the atomic building blocks; the Hooks with business logic are used to add the processing logic of the API on the basis of the atomic building blocks and the business building blocks; the Web is a global wide area network, and the API is an application programming interface.
6. The method according to any one of claims 1 to 4, characterized in that: When a new business requirement is added, the method further includes: Get new business data; Standardize the newly added service data according to the service evaluation feature table, and input the standardized data into the building block analysis model to obtain a service classification result of the newly added service; If the business classification result of the newly added business is a building block container, then search for a building block container with the same business classification result as the newly added business in the existing building block components; if the same building block container exists, then search for the atomic building block type required for the newly added business in the building block container; if the atomic building block type required for the newly added business exists, then reference the atomic building blocks of the corresponding type for configuration; if the atomic building block type required for the newly added business does not exist, then fill the atomic building blocks and configure the filled atomic building blocks; if the same building block container does not exist, then expand the building block container, and search for the atomic building block type required for the newly added business in the building block container of the existing building block components; if the atomic building block type required for the newly added business exists, then reference the atomic building blocks of the corresponding type for configuration; if the atomic building block type required for the newly added business does not exist, then fill the atomic building blocks and configure the filled atomic building blocks; If the service classification result of the newly added service is an atomic building block, then search in the building block container of the existing building block component whether there is an atomic building block type required for the newly added service; if there is an atomic building block type required for the newly added service, then reference the atomic building block of the corresponding type for configuration; if there is no atomic building block type required for the newly added service, then fill the atomic building block and configure the filled atomic building block; If the business classification result of the newly added business is a business building block, the atomic building block type required by the business building block of the newly added business is searched in the building block container of the existing building block component; if the atomic building block type required by the business building block of the newly added business exists, the atomic building block of the corresponding type is referenced for configuration; if the atomic building block type required by the business building block of the newly added business does not exist, the atomic building blocks are filled, and the filled atomic building blocks are configured; If the business classification result of the newly added business is Hooks with business logic, then the building block container of the existing building block component is searched to see whether the Hooks with business logic required for the newly added business already exists. If so, the existing Hooks with business logic are referenced; if not, the atomic blocks of the Hooks with business logic are filled, and the filled atomic blocks are configured.
7. A building block component development device, characterized in that: The device comprises: A collection module, used to collect business data; A standardization processing module, used to perform standardization processing on the business data according to the business evaluation feature table to obtain standardized data; A classification module, used to analyze the standardized data through a building block analysis model to obtain a business classification result, wherein the business classification result includes at least one of a building block container, an atomic building block, a business building block, and Hooks with business logic; the Hooks are hooks; The orchestration module is used to integrate the services according to the service classification results through a service orchestrator to obtain a universal container, and configure the universal container to obtain a building block component.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.