Low-code multifunctional record processing method

By adopting a combination of singleton mode, factory method and flyweight mode in the low-code development platform, combined with the hook method and Spring framework integration, the problem of multi-component data processing requirements and high resource overhead is solved, and flexible and efficient data are achieved. processing, improving system performance and applicability.

CN118519633AInactive Publication Date: 2024-08-20SHENZHEN EASY INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410450428.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-08-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing low-code development platform processes data lists of multiple components, it is difficult to meet different data processing needs, and the resource overhead is large and the query efficiency is not high.

Method used

The record processor designed using the singleton pattern combines the factory method pattern and the flyweight pattern to provide multiple hook methods and is integrated with the Spring framework to achieve flexible and efficient data processing.

Benefits of technology

It improves system performance and resource utilization, reduces memory consumption and overhead, enhances system scalability and applicability, meets data processing needs in different scenarios, and provides efficient data processing performance and convenient development experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519633A_ABST
    Figure CN118519633A_ABST
Patent Text Reader

Abstract

The invention relates to a low-code multifunctional record processing method, and aims to provide a flexible and efficient data processing solution. The system comprises a Record Context Handler which is designed in a single example mode, and a Record Context Handler instance is dynamically created through a factory method so as to meet different data processing requirements. The recording processor provides a plurality of hook methods through a policy mode, and carries out self-defined processing at different stages of recording operation. And processor instances are managed and recorded by utilizing the sharing mode, so that the system performance and the resource utilization rate are improved. Meanwhile, seamless integration of the system and a Spring framework is achieved, interaction between an Application ContextAware interface and Spring application context is achieved, and a more convenient development and expansion mode is provided. And more convenient development and application experience is provided for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information processing technology, and in particular to multi-component construction form design in the field of low-code development. With the rapid growth and diversification of functions of different components, a multifunctional recording and processing system for data of different components is required when displaying data lists to cope with different data processing requirements. Background Art

[0002] With the continuous innovation of software development technology, low-code platforms, which are different from traditional development, have greatly improved development efficiency. More complex forms can be built by dragging and dropping and using advanced components, eliminating the need to develop back-end code and front-end pages. The newly added business data in the constructed form needs to be rendered according to the corresponding component characteristics of each column for the front-end page to be displayed. For example: build a form based on single-line text, member components, department components, and role components, and select the corresponding unique identifiers of members, departments, and roles according to the business. When viewing detailed data in the data management table, the latest values ​​must be found in real time according to different components for backfilling, and finally provided to the front-end display management. And it requires high query efficiency, taking into account the system's resource overhead. Summary of the invention

[0003] The present invention relates to a multifunctional record processing system and its application, aiming to provide a flexible and efficient data processing solution to meet the data processing requirements in different scenarios. The technical features, functional advantages and specific applications of the present invention will be described in detail below.

[0004] The core technical features of the present invention include:

[0005] Singleton design record processor: (1) The record processor is the core component of this system and is designed using the singleton mode. (2) The singleton pattern ensures that there is only one processor instance in the system, thus avoiding the overhead of repeatedly creating instances and improving system performance and resource utilization.

[0006] The factory method dynamically creates a processor instance: (1) This system uses the factory method pattern to dynamically create record processor instances. (2) Through the factory method, the system can flexibly select the corresponding processor based on the type of component passed in, thereby adapting to different data processing requirements. (3) The factory method pattern makes the system more scalable and can flexibly add new processor types according to actual needs.

[0007] Multiple hook methods to achieve customized processing: (1) The record processor provides multiple hook methods, such as calling corresponding hook methods for processing at different stages of the record operation, such as onBeforeQuery(), onAfterQuery(), onBeforeImport(), onBeforeExport(), etc. (2) The hook method allows users to insert custom processing logic at different stages of the recording operation, thereby achieving fine control and customized processing of the recording operation. (3) Users can add corresponding processing logic according to actual needs during pre-query, post-query processing, data import and export, and other operations.

[0008] Use the flyweight pattern to manage processor instances: (1) This system uses the flyweight pattern to manage processor instances, reducing memory consumption and system overhead. (2) The Flyweight Pattern achieves the reuse of a large number of fine-grained objects through shared objects, effectively reducing the number of objects in the system, reducing the system's memory consumption and overhead, and improving the system's operating efficiency.

[0009] Integration with Spring Framework: (1) During initialization, all inherited record processor instances are obtained through Spring's context and saved in a Map to provide instances for subsequent services. (2) This system interacts with the ApplicationContextAware interface of the Spring framework to achieve integration with the Spring application context. (3) By implementing the ApplicationContextAware interface, the record processor can obtain information about the Spring application context, thereby achieving seamless integration with the Spring framework. (4) Such a design can provide a more convenient and flexible way for system development, improving the system's usability and scalability.

[0010] This system has the following functional advantages:

[0011] Flexible adaptation to different scenarios: (1) This system adopts a flexible factory method pattern and multiple hook methods, which can dynamically select processors according to different data processing requirements and insert custom processing logic at different stages of the recording operation. (2) This allows the system to flexibly adapt to data processing requirements in different scenarios, improving the applicability and flexibility of the system.

[0012] Efficient processing performance: (1) By adopting the singleton pattern design and the flyweight pattern to manage processor instances, this system can effectively reduce the system's memory consumption and overhead, and improve the system's operating efficiency and processing performance. At the same time, the customized processing of multiple hook methods can further optimize the system's processing performance and meet users' requirements for data processing speed.

[0013] Seamless integration with Spring framework: (1) The integration of this system with the Spring framework allows developers to use the functions provided by the Spring framework more conveniently and give full play to the advantages of the Spring framework. By interacting with the Spring application context, this system can obtain various services and resources provided by the Spring framework, improving the development efficiency and quality of the system.

[0014] Specific applications: (1) The application scope of this system includes but is not limited to data management, record query, data import and export, etc. For example, in an enterprise data management system, this system can be used to process various enterprise data, including employee information, sales data, financial data, etc.; in an e-commerce platform, this system can be used to process product information, order data, etc. In short, this system can provide efficient and flexible solutions for various data processing scenarios, and provide users with more convenient and efficient data processing services. (2) It can realize single-line text, numeric component, drop-down check box component, member component, department component, associated record component, associated query component, sub-table component, OCR component, serial number component, attachment component, image component, positioning component, handwritten signature component, etc. (3) Each component implements different hook methods for customized processing, such as before query, after query, before saving, before export, after import, etc. It can also support subsequent component requirements and has powerful expansion performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The following is a further explanation with reference to the accompanying drawings and specific implementations.

[0016] Figure 1 Implements the operational logic description for record processing.

[0017] Figure 2 Runs logical instructions for record queries.

[0018] Figure 3 It is a description of the multi-function record processing flow. DETAILED DESCRIPTION

[0019] Component design: First, we designed record management components such as single-line text, numeric component, drop-down checkbox component, member component, department component, associated record component, associated query component, subtable component, OCR component, serial number component, attachment component, image component, positioning component, and handwritten signature component, all of which inherited the RecordContextHandler class, which is used to perform record management operations.

[0020] Component Implementation: Next, we implemented specific functions in the record management component. During the implementation process, we rewrote the hook methods in the RecordContextHandler class, such as onBeforeQuery(), onBeforeSave(), onBeforeExport(), and onBeforeImport(), to implement pre-processing logic before the operation.

[0021] Interaction with the record processor: During the implementation of the component, we interacted with the record processor. In the implementation of each operation, we called the corresponding hook method in the parent class RecordContextHandler to perform pre-processing logic, and called the hook method of the parent class RecordContextHandler for post-processing after the operation was completed.

[0022] Added a new form record workflow. First, get the component list built in the form and the input parameter record value. Loop the component list, and call the createRecordHandler() method according to different component types in the loop to get the record processing instance. And execute the onSaveBefore() method (for example: digital component (NUMBER): before saving, check whether it is a numeric type, if not, it needs to be converted.), execute all component processing methods before saving and replace all record values ​​before saving.

[0023] To delete a form record, first pass in the record ID to be deleted for logical deletion. If you want to delete the record value of a single component in the record, you need to first obtain the component list built in the form and the input record value. Execute the onBeforeSave() method. Pass in NULL for the component record value to be deleted. After processing and replacement, the record will be empty, and then execute the save method.

[0024] To modify the form record workflow, first obtain the component list built in the form and the input parameter record value. Loop through the component list, and call the createRecordHandler() method according to different component types in the loop to obtain the record processing instance. And execute the onBeforeSave() method (for example: member component (MEMBER): the latest record value needs to be replaced.), and save after executing all the methods before saving the components.

[0025] To query the form record workflow, first obtain the component list built in the form and the input parameter record value. Loop the component list and call the createRecordHandler() method according to different component types in the loop to obtain the record processing instance. And execute the onBeforeQuery() method (for example: member component (MEMBER): need to query the member record value according to the member ID to complete the replacement.), after executing the onBeforeQuery() of all components, return to the front end to complete the rendering.

[0026] To export form records, first obtain the component list built in the form and the input parameter record value. Loop through the component list, and call the createRecordHandler() method according to different component types in the loop to obtain the record processing instance. And execute the onBeforeExport() method (for example: member component (MEMBER): need to find the member object according to the ID and obtain the member name to complete the filling and replacement.), after executing all the methods before saving the components, execute the export method.

[0027] Import the form record workflow. First, get the component list built in the form and the input parameter record value. Loop the component list and call the createRecordHandler() method according to the different component types in the loop to get the record processing instance. And execute the onBeforeImport() method (for example: member component (MEMBER): need to query the member according to the member name to get the member ID to complete the filling replacement.), after executing all the methods before the component import, execute the save method.

Claims

1. A record processing system, characterized in that: 1.1 The singleton pattern is used to design the record processor to ensure that there is only one processor instance in the system to reduce system resource consumption and improve system performance and resource utilization. The singleton pattern can effectively manage the life cycle of the record processor, ensuring that the same instance can be used during the entire system operation, avoiding the overhead caused by repeated instance creation. 1.2 Implement the factory method to dynamically create record processor instances, and flexibly select the corresponding processor according to the component type passed in to adapt to different data processing requirements. The factory method pattern allows the system to dynamically create processor instances as needed without directly instantiating specific processor classes in the code, which enhances the flexibility and scalability of the system. 1.3 provides multiple hook methods, and calls corresponding hook methods for processing according to the record operation type. Hook methods allow users to insert custom processing logic at different stages of record operations, thereby achieving fine control and customized processing of record operations. For example, before record query, post-query processing, data import and export, etc., you can add corresponding processing logic according to actual needs. 1.4 Perform corresponding processing at different stages of record operation according to user-defined processing logic. The record processor processes records at different stages according to user-defined processing logic, such as data verification before data import and processing of query results after query, etc., to meet user-specific data processing needs and improve the applicability and flexibility of the system. 1.5 Use the flyweight pattern to manage record processor instances, reduce memory consumption and system overhead, and improve system performance. The flyweight pattern implements the reuse of a large number of fine-grained objects through shared objects, effectively reducing the number of objects in the system, reducing the system's memory consumption and overhead, and improving the system's operating efficiency. 1.6 Interact with the ApplicationContextAware interface of the Spring framework to achieve integration with the Spring application context. By implementing the ApplicationContextAware interface, the record processor can obtain information about the Spring application context and achieve seamless integration with the Spring framework, thus providing a more convenient and flexible way for system development.

2. The recording processing system according to claim 1, characterized in that: Further including: 2.1 Optimized record processor creation algorithm to improve the efficiency and performance of processor instance creation. By optimizing the creation algorithm, the time cost and resource consumption of processor instance creation can be reduced, and the overall performance of the system can be improved. 2.2 The processor customization function based on the configuration file allows users to configure and customize the behavior of the processor as needed. The configuration file can define the various parameters and behaviors of the processor. Users can flexibly configure the processor according to actual needs to meet the data processing requirements in different scenarios, thereby improving the applicability and flexibility of the system.

3. The recording processing system according to claim 1 or claim 2, characterized in that: It further includes an exception handling mechanism, which is used to capture and handle abnormal situations that may occur during record processing, and improve the stability and reliability of the system. The exception handling mechanism can effectively capture and handle various abnormal situations, prevent the system from crashing or losing data due to abnormal situations, and ensure the normal operation of the system and the security of data.

4. The application of the record processing system according to any one of claims 1 to 3 includes but is not limited to data management, record query, data import and export, etc., and can provide efficient and flexible solutions for various data processing scenarios.

Citation Information

Patent Citations

  • Cross-end form development system and method based on low-code platform

    CN117234470A