Customized form flow method, device, system and storage medium
Identify and adjust form components through interface drag and drop, set role permissions and dynamic data verification rules, solve the problems of insufficient device adaptability and permission management in the existing technology, and achieve efficient and accurate data processing and user experience improvement.
Patent Information
- Application Number
- CN202410982894.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing process management technology has deficiencies in personalization and adaptability, especially in terms of adaptability to multiple devices, permission management and data verification logic settings. It is difficult to meet the needs of complex business scenarios, resulting in inconsistent user experience, incorrect permission configuration and data Security Question.
Identify and adjust form components through interface drag and drop, set role permissions, automatically create dynamic data validation rules and form logic scripts, optimize form layout and data interfaces, and generate responsive form interfaces to ensure efficient and accurate provision under different devices and user interactions. data processing.
It improves the adaptability and user experience of the form, ensures the security and accuracy of data processing, reduces permission management errors, enhances the flexibility and reliability of data processing, and is suitable for rapidly changing business environments.
Smart Images

Figure CN118536482B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of process management technology, and in particular to a form process method, device, system and storage medium based on user-defined form. Background Art
[0002] The field of process management technology focuses on the design, analysis, implementation, control and optimization of business and organizational operational processes, including the development of simple task automation to complex business process management (BPM) systems, aiming to improve efficiency, reduce errors, and provide process transparency. It covers a variety of applications in different industries, such as supply chain management, customer service, financial processes and human resource management. The process management system includes workflow definition, execution, monitoring and optimization, enabling organizations to perform complex process design and improvement in a standardized manner, ensuring the consistency and predictability of the process, while providing data support for improvement and innovation.
[0003] Among them, the method, device, system and storage medium based on customized form process describe a method and system that uses technology to optimize and customize the form processing process, which can adjust the form creation, distribution and data collection process according to the specific needs and parameters of the user. The device and system include one or more central processing units (CPUs), storage media (such as hard disks or solid-state drives), and an operating system for executing software. It is widely used in environments that require highly customized forms and data collection, such as healthcare, government services, and enterprise customer relationship management. Through customized processes, organizations can collect data more efficiently, improve user experience, and ensure the accuracy and timely update of data.
[0004] Existing process management technologies focus on standardized operating procedures, but have obvious deficiencies in personalization and adaptation. For example, in dealing with the adaptability of multiple devices, it is unable to effectively adapt to various screen sizes and operating environments, resulting in inconsistent user experience, especially in the transition between mobile devices and desktop devices. Traditional permission management is static and inflexible, and it is difficult to accurately meet the specific needs of a single user or role, leading to permission configuration errors or data security issues in rapidly changing organizational structures. In terms of data validation and dependent logic settings, existing technologies require manual writing of a large amount of code, which is not only inefficient but also prone to errors. Especially in complex business scenarios, it is difficult to meet the needs of efficiency and accuracy, limiting the application of process management technology in modern business environments, especially in industries that require high customization and rapid response, such as healthcare and government services. The high requirements for data accuracy and processing efficiency make it difficult for existing technologies to meet the needs. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a form flow method, device, system and storage medium based on customization.
[0006] In order to achieve the above object, the present invention adopts the following technical solution, based on a customized form flow method, comprising the following steps:
[0007] S1: Based on the customized form requirements, the required form components are identified by dragging on the interface, and the width and position parameters are adjusted to match the differentiated screen sizes to obtain the initial form layout;
[0008] S2: according to the initialization form layout, by setting the editing permissions of the form, the editing permissions are assigned to the differentiated user roles, the access level and editing capability are assigned to each role, and the permission customization structure is generated;
[0009] S3: Based on the permission customization structure, automatically create input validation rules for the custom form, use the numeric range and email format, the input of the form field to associate the numeric range of the field, set the dependency logic between the form fields, affect the display of another field through the drop-down menu selection, check that the end date entered by the user is not earlier than the start date, and build dynamic data validation rules;
[0010] S4: extracting the dependencies and data processing requirements of the customized form fields from the dynamic data validation rules, creating a dynamic interaction script between the fields, and setting conditional display to obtain a form logic script;
[0011] S5: Based on the form logic script, write a configuration script according to the customized form data output format, configure filtering rules for data export, and obtain a customized data interface by filtering data by date and user;
[0012] S6: Through the customized data interface, the customized form data format and structure are adjusted to match the display requirements of differentiated mobile devices, the interface layout and data presentation method are optimized for desktop and mobile terminals, and a responsive form interface is generated;
[0013] The initialization form layout includes field positioning coordinates, field size parameters and screen adaptation logic, the permission customization structure includes role identification, field editing permissions corresponding to the role and role access level, the dynamic data validation rules include field type validation, field data dependencies and input condition trigger logic, the form logic script includes field calculation formulas, conditional display logic and data interaction instruction sets, the customized data interface includes data format settings, export data screening conditions and export trigger events, and the responsive form interface includes adaptive layout parameters, interface element response rules and device type identification logic.
[0014] As a further solution of the present invention, based on the customized form requirements, the required form components are identified by dragging the interface, and the width and position parameters are adjusted to match the differentiated screen sizes. The steps of initializing the form layout are as follows:
[0015] S101: Based on the customized form requirements, analyze the user's dragging behavior through the interface, record the type and number of form components selected by the user, including the number and position of selections of input boxes and selection lists, collect the label names and placeholder texts of the form components, and obtain the basic properties of the components;
[0016] S102: Calculate the display ratio and layout position of the form component under different screen sizes according to the basic properties of the component, adjust the real-time display width of each component by using the ratio of the screen width to the preset width of the component, and generate an adapted component layout by adjusting the horizontal and vertical coordinates of the form component;
[0017] S103: applying the adapted component layout to the customized form design, checking the consistency of logic and visual coordination between form components, verifying the visual flow and data input logic of the form fields, and obtaining an initialization form layout;
[0018] The consistency of the logic and visual coordination includes whether the functional logic relationship between the form components is reasonable and the consistency of the visual elements of the form;
[0019] The visual flow includes the path that a user takes when visually browsing a form;
[0020] The data input logic includes the filling order and conditional logic of the form fields.
[0021] As a further solution of the present invention, according to the initialization form layout, by setting the editing permissions of the form, the editing permissions are assigned to differentiated user roles, and the access level and editing ability are assigned to each role. The steps of generating the permission customization structure are specifically as follows:
[0022] S201: Collecting component information in the initialization form layout, identifying identifiers and location information of input boxes and selection boxes, analyzing the permission level that the form components need to control, allocating initialization permissions according to component usage and sensitivity, and obtaining component permission mapping;
[0023] S202: Based on the component permission mapping, set access rights and editing rights for differentiated user roles, identify the editing and deletion rights of the roles, check whether the role's rights match the business requirements and security policies, and generate role permission configuration;
[0024] S203: Based on the role permission configuration and in combination with the overall structure of the custom form, the role's behavior capabilities in the form are verified through permission control logic, the role's ability to view, edit and delete data is identified, and a permission customization structure is generated.
[0025] As a further solution of the present invention, based on the permission customization structure, the input validation rules of the custom form are automatically created, the numerical range of the input association field of the form field is used, the dependency logic between the form fields is set, and the display of another field is affected by the drop-down menu selection item, and the end date entered by the user is checked to be not earlier than the start date. The steps of constructing dynamic data validation rules are specifically as follows:
[0026] S301: extracting permissions associated with the customized form fields from the permission customization structure, analyzing the data type and intended use of the customized form, setting a numeric range for numeric fields, and setting format validation rules for text fields to obtain basic validation rules;
[0027] S302: Based on the basic validation rules, iteratively set the dynamic dependency logic between the custom form fields, check the interactive matching business logic between the custom form fields, and generate the dependency logic configuration;
[0028] S303: According to the dependency logic configuration and in combination with the input validation rules of the custom form, the validation logic of each form field is automatically created, including data type validation, value range check and format check, and dynamically responds to the user's input to obtain dynamic data validation rules.
[0029] As a further solution of the present invention, the steps of extracting the dependencies and data processing requirements of the customized form fields from the dynamic data validation rules, creating a dynamic interaction script between the fields, and setting conditional display to obtain the form logic script are specifically as follows:
[0030] S401: Analyze the field dependency defined in the dynamic data validation rule, identify the target calculation and data processing required by the custom form according to the interaction requirements of the key fields and the dependent fields, and generate the field interaction requirements;
[0031] S402: Based on the field interaction requirements, a script is written to perform dependency logic between fields, identify the status of the fields and the data calculation requirements of the execution target, check whether the fields in the form respond dynamically according to the business rules, and generate a dependency logic script;
[0032] S403: According to the dependent logic script, the effectiveness of the dynamic display between fields and the implementation of the data processing logic is checked, and the performance of the test script under various data inputs is tested to obtain the form logic script.
[0033] As a further solution of the present invention, based on the form logic script, a configuration script is written according to the customized form data output format, and filtering rules are configured for data export. By filtering data by date and user, the steps of obtaining a customized data interface are specifically as follows:
[0034] S501: extracting data processing and display logic of multiple fields from the form logic script, identifying data export functions required by the fields, analyzing data types and format requirements of the form fields, and generating an export field configuration list;
[0035] S502: Based on the export field configuration list, design parameters for filtering data by date and user, define the export format of multiple fields, and write a rule control script for filtering and formatting to generate a data export rule script;
[0036] S503: According to the data export rule script, test the export under the differentiated data set and user request, verify the function and performance of the script, verify the efficiency of data export, and obtain a customized data interface.
[0037] As a further solution of the present invention, through the customized data interface, the customized form data format and structure are adjusted to match the display requirements of differentiated mobile devices, the interface layout and data presentation method are optimized for desktop and mobile terminals, and the steps of generating a responsive form interface are specifically as follows:
[0038] S601: Analyze the data output format and structure in the customized data interface, identify the display requirements of differentiated mobile devices and desktop environments, identify screen size and resolution differences, adjust form elements, check the visual consistency of the form on differentiated devices, and generate device adaptability configuration;
[0039] S602: Based on the device adaptability configuration, design a form layout adjustment script under different screen sizes, automatically adjust the form layout, including column width and arrangement order, in response to user needs, and generate a responsive layout script;
[0040] S603: According to the responsive layout script, a simulated annealing algorithm is used to optimize the display and editing performance of the form on various devices, and a loop test is performed to iteratively optimize the layout parameters under different device sizes and resolutions to obtain a responsive form interface;
[0041] The formula of the simulated annealing algorithm is as follows: in, is the adjusted temperature, is the real-time temperature, is the cooling coefficient, is the energy difference adjustment coefficient, For the energy of real-time layout, is the known optimal layout energy, is the peak value of energy, is the layout adjustment factor, It is the difference indicator of the equipment.
[0042] A form flow device based on customization includes a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps of the above-mentioned form flow method based on customization are implemented.
[0043] A form flow system based on a user-defined format is used to execute the above-mentioned form flow method based on a user-defined format. The system includes:
[0044] The component layout module identifies the type and quantity of target components dragged on the interface based on the custom form requirements, adjusts the width and position parameters according to the screen size to match the differentiated display requirements, and obtains the initial layout design;
[0045] The permission configuration module sets the access and editing permissions of the form components according to the initial layout design, allocates permissions differently according to user roles, checks whether the access level and editing ability of the roles match the business requirements, and generates a permission allocation structure;
[0046] The rule validation module adopts the permission allocation structure, designs input validation rules for numeric range and email format, sets dependent display logic between fields, and dynamically manages form input to obtain dynamic validation configuration;
[0047] The script design module uses the dynamic verification configuration to identify the interaction logic and conditional display function between form fields, writes field dynamic interaction scripts, and generates form logic scripts;
[0048] The data interface module configures the data output format and filtering rules through the form logic script, designs parameters for filtering data by date and user, optimizes the display and editing performance of the form on multiple devices, and obtains a responsive form interface.
[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned custom form flow method.
[0050] Compared with the prior art, the advantages and positive effects of the present invention are:
[0051] In the present invention, the form components are identified and adjusted by dragging the interface, the form layout is directly optimized, and it is dynamically adjusted according to the screen size of different devices to improve the adaptability and user experience of the form. By setting editing permissions specific to user roles, the security of data processing and the accuracy of permission management are ensured, and the risk of permission management errors and data leakage is reduced. Automatically created input validation rules and dependency logic further improve the accuracy of data and the responsiveness of forms. The application of dynamic data validation rules and form logic scripts enables the form to remain efficient and accurate under different user interactions, optimizing the back-end data processing flow. Through the customization of data export configuration, the flexibility of data processing is enhanced, allowing businesses to extract and process data on demand, which is extremely important in a changing business environment, making form management more efficient, data collection and processing more secure and reliable, and providing users with a more personalized and efficient operating interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a schematic diagram of the workflow of the present invention;
[0053] Figure 2 A detailed flow chart of step S1 of the present invention;
[0054] Figure 3 A detailed flow chart of step S2 of the present invention;
[0055] Figure 4 A detailed flow chart of step S3 of the present invention;
[0056] Figure 5 A detailed flow chart of step S4 of the present invention;
[0057] Figure 6 A detailed flow chart of step S5 of the present invention;
[0058] Figure 7 A detailed flow chart of step S6 of the present invention;
[0059] Figure 8 It is a system flow chart of the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention.
[0061] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0062] Embodiment 1
[0063] See also Figure 1 The present invention provides a technical solution based on a customized form flow method, comprising the following steps:
[0064] S1: Based on the customized form requirements, the required form components, including input boxes and selection lists, are identified by dragging on the interface, the width and position parameters are adjusted to match the differentiated screen sizes, and the default values and prompt texts are set to obtain the initial form layout;
[0065] S2: According to the initialization form layout, by setting the editing permissions of the form, the editing permissions are assigned to the differentiated user roles, the access level and editing ability are assigned to each role, and the permission customization structure is generated;
[0066] S3: Based on the permission customization structure, automatically create input validation rules for custom forms, use number ranges and email formats, associate the value range of form field inputs with field values, set dependency logic between form fields, affect the display of another field through drop-down menu selections, check that the end date entered by the user is not earlier than the start date, and build dynamic data validation rules;
[0067] S4: Extract the dependencies and data processing requirements of the customized form fields from the dynamic data validation rules, create a dynamic interaction script between the fields, automatically calculate the age based on the date of birth, and set the conditional display to obtain the form logic script;
[0068] S5: Based on the form logic script, write a configuration script according to the customized form data output format, configure filtering rules for data export, and obtain a customized data interface by filtering data by date and user;
[0069] S6: Through customized data interfaces, adjust the customized form data format and structure to match the display requirements of differentiated mobile devices, optimize the interface layout and data presentation for desktop and mobile terminals, and generate a responsive form interface;
[0070] The initialization form layout includes field positioning coordinates, field size parameters and screen adaptation logic. The permission customization structure includes role identification, field editing permissions corresponding to the role and role access level. Dynamic data validation rules include field type validation, field data dependencies and input condition trigger logic. The form logic script includes field calculation formulas, conditional display logic and data interaction instruction set. The customized data interface includes data format settings, export data filtering conditions and export trigger events. The responsive form interface includes adaptive layout parameters, interface element response rules and device type identification logic.
[0071] See also Figure 2 Based on the customized form requirements, the required form components are identified by dragging on the interface, and the width and position parameters are adjusted to match the differentiated screen sizes. The specific steps to initialize the form layout are as follows:
[0072] S101: Based on the customized form requirements, analyze the user's dragging behavior through the interface, record the type and number of form components selected by the user, including the number and position of selections of input boxes and selection lists, collect the label names and placeholder texts of the form components, and obtain the execution flow of the basic properties of the components as follows;
[0073] The S101 sub-step is based on the customized form requirements. It records and analyzes the types and quantities of form components selected by users when operating the interface, such as the number of selections and positions of input boxes and selection lists, and captures the data of user drag-and-drop behavior, including the timestamps of each component being selected and placed and the coordinate position relative to the form interface. For each component, the type and number of drags and drops are automatically recorded, and the component's label name and placeholder text are collected. For example, the input box collects information such as "please enter your name". The data is stored in a data structure consisting of multiple tuples, each of which represents the selection information and position of a component. After completing the data collection, the selection frequency of each component and the average position on the form are calculated to obtain the basic properties of the component. The formula used is: Where F is the frequency at which the component is selected, is the number of times component i is selected, and N is the total number of drag and drop events.
[0074] S102: Calculate the display ratio and layout position of the form component under different screen sizes according to the basic properties of the component, adjust the real-time display width of each component using the ratio of the screen width to the preset width of the component, and generate the adapted component layout by adjusting the horizontal and vertical coordinates of the form component. The execution flow is as follows;
[0075] Sub-step S102 calculates the display ratio and layout position of the form component under differentiated screen sizes based on the basic properties of the component, and establishes a ratio adjustment function based on the screen width and the preset width of the component. Using the function, calculate the display width of each component one by one, and adjust the layout position in the form. For example, if the preset width of the component is 100 pixels and the screen width is 500 pixels, the display width is adjusted to 500*(100 / preset width of the screen) to ensure the consistency of the visual effects and user interaction experience of the component under different screen sizes. During the adjustment process, the horizontal and vertical coordinates are also adjusted according to the relative position of the components, and an improved layout algorithm is used to optimize the space allocation between components to ensure the visual balance and functionality of the layout, and generate the adapted component layout. The formula used is: in, is the display width of the adjusted component, is the screen width, is the preset width of the component. is the reference screen width.
[0076] S103: Apply the adapted component layout to the customized form design, check the consistency of logic and visual coordination between form components, verify the visual flow and data input logic of form fields, and obtain the execution flow of initializing the form layout as follows;
[0077] Sub-step S103 applies the adapted component layout to the customized form design, and checks the consistency of the logic and visual coordination between the form components. The consistency of logic and visual coordination includes whether the functional logical relationship between the form components is reasonable and the consistency of the visual elements of the form. By implementing a series of visual and logical detection algorithms, it is ensured that each component is not only visually coordinated, but also functionally complementary. The detection algorithm will analyze the distance, alignment, and data flow between components. The visual flow includes the path that users take when visually browsing the form. The data input logic includes the order of filling in the form fields and the conditional logic, ensuring that the visual arrangement of all components and the logical data processing flow are correct. Through meticulous verification steps, the initialization form layout is obtained, and the formula used is: in, is a consistency measure of visual coordination between components, is the visual alignment distance of component i, is the average visual alignment distance of all components, and n is the total number of components.
[0078] See also Figure 3 , according to the initialization form layout, by setting the form's editing permissions, assigning editing permissions to differentiated user roles, assigning access levels and editing capabilities to each role, and generating the permission customization structure in the following steps:
[0079] S201: Collect component information in the initialization form layout, identify the identifiers and location information of the input box and the selection box, analyze the permission level that the form component needs to control, assign initialization permissions according to the purpose and sensitivity of the component, and obtain the execution process of the component permission mapping as follows;
[0080] Sub-step S201 collects component information in the initialization form layout, identifies the identifiers and location information of the input boxes and selection boxes, and extracts the type (such as input box, selection box), unique identifier, and relative position of each component from the form layout. According to the purpose of the component and the sensitivity of the data, the permission level that needs to be controlled is analyzed. For example, input boxes involving user personal information (such as name, address) will be assigned a higher permission level. Through analysis, each component is assigned initialization permissions to form a component permission mapping table.
[0081] S202: Based on component permission mapping, set access rights and editing rights for differentiated user roles, identify the editing and deletion rights of the roles, check whether the role's permissions match the business requirements and security policies, and generate the execution flow of role permission configuration as follows;
[0082] Substep S202 sets access rights and editing rights for differentiated user roles based on component permission mapping, and defines a permission configuration function. The function sets corresponding access and editing rights based on the component permission mapping table and the business requirements of the user role. The permission settings for each role will comply with the organization's security policy to ensure that access to sensitive data is appropriately restricted. For example, the role of the HR department can edit employee information, but the role of the finance department can only view it, generating a role permission configuration.
[0083] S203: Based on the role permission configuration and the overall structure of the custom form, the role's behavior capabilities in the form are verified through permission control logic, and the role's ability to view, edit, and delete data is identified. The execution flow of generating a permission customization structure is as follows;
[0084] Substep S203 verifies the role's ability to act in the form through permission control logic based on the role permission configuration and the overall structure of the custom form, and implements a series of permission verification algorithms to ensure that each role's behavior in the form - including viewing, editing, and deleting data - complies with the permission configuration. Verification measures help ensure the security of the form's operations, prevent unauthorized data access or modification, and generate a permission customization structure.
[0085] See also Figure 4, based on the permission customization structure, automatically create input validation rules for custom forms, use number ranges and email formats, the value range of the form field input association field, set the dependency logic between form fields, affect the display of another field through the drop-down menu selection item, and check that the end date entered by the user is not earlier than the start date. The specific steps for building dynamic data validation rules are:
[0086] S301: extracting the permissions associated with the customized form fields from the permission customization structure, analyzing the data type and intended purpose of the customized form, setting the numeric range for the numeric field, and setting the format validation rules for the text field, and obtaining the execution flow of the basic validation rules as follows;
[0087] Substep S301 extracts the permissions associated with the customized form fields from the permission customization structure, identifies and analyzes the field-level permission settings, and ensures the security and applicability of the data. Each field is assigned appropriate permissions based on the data type and intended purpose. The input of the form field is associated with the numeric range of the field. For example, a numeric field will set a numeric range to limit data input and prevent the entry of abnormal values. Text fields will apply format validation rules, such as email addresses that need to conform to a specific format. The rules ensure the standardization and consistency of the data and generate basic validation rules using the formula: in, Represents the basic validation rule set, is the permission weight of field i, is the data type and format constraints of field i, and n is the total number of fields.
[0088] S302: Based on the basic validation rules, iteratively set the dynamic dependency logic between the custom form fields, check the interactive matching business logic between the custom form fields, and generate the execution process of the dependency logic configuration as follows;
[0089] Substep S302 is based on basic validation rules. Iteratively setting dynamic dependency logic between custom form fields is a key step to enhance form functionality. By deeply analyzing the relationship between fields, such as the availability of fields depends on the specific input values of the remaining fields, a logical mapping table is created to define the dependency relationship. It not only involves logical programming, but also needs to consider the actual needs in the business process to ensure that the interaction between fields can accurately reflect the business logic and generate dependency logic configuration. The formula used is: in, Represents the overall effectiveness of the dependent logic configuration, is the coefficient of dependency j, is the fitness to satisfy the business rules, and m is the total number of dependencies.
[0090] S303: According to the dependent logic configuration and combined with the input validation rules of the custom form, the validation logic of each form field is automatically created, including data type validation, value range check and format check, and dynamically responds to the user's input. The execution process of the dynamic data validation rules is as follows;
[0091] Sub-step S303 automatically creates validation logic for each form field based on dependent logic configuration and combined with the input validation rules of the custom form. This is an important step to ensure data integrity and accuracy, covering data type validation, value range checking, format checking, and dynamic response to user input. For example, when a user enters data, it will check in real time whether the data complies with the preset validation rules, including affecting the display of another field through the drop-down menu selection, checking whether the end date entered by the user is earlier than the start date, such as whether the value is within the allowed range, whether the text meets the format requirements, and generating dynamic data validation rules. The formula used is:
[0092] in, Represents the comprehensive effectiveness of dynamic data validation rules, is the validation strength of field K, is the user input adaptability and P is the total number of fields.
[0093] See also Figure 5 , extract the dependencies and data processing requirements of custom form fields from dynamic data validation rules, create dynamic interaction scripts between fields, and set conditional display. The specific steps to obtain the form logic script are as follows:
[0094] S401: Analyze the field dependency defined in the dynamic data validation rules, identify the target calculation and data processing required by the custom form according to the interaction requirements of the key fields and dependent fields, and generate the execution flow of the field interaction requirements as follows;
[0095] Substep S401 analyzes the field dependencies defined in the dynamic data validation rules, which is the key to understanding how custom forms process data. In-depth analysis of the interaction requirements between fields, especially how key fields and dependent fields interact, is needed to ensure the correctness and efficiency of data processing logic. For example, the value of a field determines whether another field is visible or has an optional value range. Based on the analysis, determine the target calculations and data processing operations that the form needs to achieve, generate field interaction requirements, and use the formula: in, The total calculated score representing the interaction requirements of the field, is the criticality score of field i, is the dependency score and n is the total number of fields.
[0096] S402: Based on the field interaction requirements, a script is written to perform dependency logic between fields, identify the status of the field and the data calculation requirements of the execution target, check that the fields in the form respond dynamically according to the business rules, and generate the execution flow of the dependency logic script as follows;
[0097] Substep S402 is based on the field interaction requirements. Writing scripts for the dependent logic between fields is the core step to implement custom form functions. It involves writing code to dynamically manage field status and perform data calculations in response to user operations and triggered events. The script needs to be able to identify and process various business rules, such as conditional formatting, data validity checks, and triggers. The fields in the form can dynamically respond to changes based on the defined business logic, improve the flexibility of user interaction and the accuracy of data processing, and generate dependent logic scripts. The formula used is: in, Indicates the overall effectiveness of the dependent logic script. is the fitness coefficient of script j, is the business rule satisfaction, and m is the number of scripts.
[0098] S403: According to the dependent logic script, the effectiveness of the dynamic display and data processing logic implementation between fields is checked, and the performance of the script under various data inputs is tested, and the execution flow of the form logic script is obtained as follows;
[0099] Sub-step S403 tests the dependent logic script to ensure that the dynamic display and data processing logic between fields can be effectively implemented. The test script needs to be run in various data input and user interaction scenarios to verify functionality and performance. This includes ensuring that the script can correctly handle data changes, respond to user events, and maintain stability on different devices and platforms. Through testing, the script's response speed, error handling capabilities, and user experience quality can be evaluated to obtain the form logic script, using the formula: in, Represents a comprehensive rating of the script's performance. is the importance weight of the test scenario K, is the actual response time under scenario K, is the expected response time and P is the total number of test scenarios.
[0100] See also Figure 6 Based on the form logic script, write a configuration script according to the customized form data output format, configure filtering rules for data export, and filter data by date and user to obtain the customized data interface. The specific steps are as follows:
[0101] S501: Extracting the data processing and display logic of multiple fields from the form logic script, identifying the data export function required by the field, analyzing the data type and format requirements of the form field, and generating the export field configuration list. The execution process is as follows;
[0102] Sub-step S501 extracts the data processing and display logic of multiple fields from the form logic script, including identifying which fields need to process data through specific display logic, and how the data type and format requirements of the field affect the overall form function. For example, if a field is used to display a date, it not only needs to conform to the date format, but also needs to be linked to the calendar component to provide a better user experience. For fields involving financial data, it is necessary to ensure that the format can be accurate to two decimal places for accurate calculations. According to the purpose of the field and the sensitivity of the data, the analysis field is a key data field and requires special data export function settings. For example, the personal identification information (PII) field requires advanced encryption processing to comply with privacy protection standards. Generate an export field configuration list using the formula: in, Represents the score of the exported field configuration list. and are the data type and sensitivity weight coefficient of field i, is the data type suitability of field i, is the sensitivity level of field i, and n is the total number of fields.
[0103] S502: Based on the export field configuration list, design parameters for filtering data by date and user, define the export format of multiple fields, and write rule control scripts for filtering and formatting. The execution process of generating data export rule scripts is as follows;
[0104] Substep S502 sets specific filtering parameters based on the export field configuration list, including date range, user type, etc., to ensure that the output of data can be accurately controlled. A rule control script for dynamic data filtering and formatting is developed based on the parameters. The script can dynamically adjust the display format and export method of data according to the specific needs of the user, such as exporting data as a CSV file. The script not only improves the flexibility of data processing, but also ensures the accuracy and security of the data. Through sophisticated conditional logic, it ensures that only authorized users can access specific data. The data export rule script is generated using the formula: in, Represents the performance indicator of the data export rule script. is the adaptability weight of screening condition j, is the screening accuracy of parameter j, and m is the total number of screening parameters.
[0105] S503: According to the data export rule script, test the export under the differentiated data set and user request, verify the function and performance of the script, verify the efficiency of data export, and obtain the execution process of the customized data interface as follows;
[0106] Sub-step S503 conducts thorough testing based on the data export rule script to ensure that the script performs as expected under various data sets and user requests. This includes testing the script's ability to handle various boundary conditions, such as extreme data values and handling of unconventional user requests. The test should cover all predefined user scenarios to ensure that in actual operation, the script can accurately and quickly respond to user instructions and export data in the correct format. Through testing, the function and performance of the script can be verified to ensure that it can run stably in different environments and obtain a customized data interface. The formula used is: in, Represents the comprehensive score of the test results. is the importance weight of scene K, is the actual result under scenario K, is the expected result and p is the total number of test scenarios.
[0107] See also Figure 7 , through customized data interface, adjust the customized form data format and structure to match the display requirements of differentiated mobile devices, optimize the interface layout and data presentation for desktop and mobile terminals, and generate responsive form interface in the following steps:
[0108] S601: Analyze the data output format and structure in the customized data interface, identify the display requirements of differentiated mobile devices and desktop environments, identify screen size and resolution differences, adjust form elements, check the visual consistency of the form on differentiated devices, and generate the execution process of device adaptability configuration as follows;
[0109] Substep S601 analyzes the data output format and structure in the customized data interface, focusing on the differences in display requirements between different devices. Considering the differences in screen size and resolution between mobile devices and desktop environments, it is necessary to identify and adjust form elements in detail to adapt to the differences. For example, mobile devices require larger buttons and simplified layouts to optimize touch operations, while desktop environments can support more complex interactions and more detailed information display. Develop a set of device adaptive configurations that not only adjust element size and layout, but also optimize font size and element spacing to maintain visual consistency on different devices. Generate a device adaptive configuration using the formula: in, Represents the total score of the device adaptability configuration. is the adaptability weight of device i, is the screen size adaptation, is the resolution matching, n is the total number of devices, Indicates an adaptation operation.
[0110] S602: Based on the device adaptability configuration, design a form layout adjustment script under different screen sizes, and automatically adjust the form layout, including column width and arrangement order, in response to user needs. The execution process of generating a responsive layout script is as follows;
[0111] Substep S602 designs a form layout adjustment script that can respond to user needs based on device adaptability configuration. The script can automatically adjust the column width, arrangement order, and layout characteristics of the form according to different screen sizes. For example, for smaller screens, the script will optimize the arrangement of form elements to reduce the need for scrolling, while on larger screens, more space can be used to display information. By dynamically adjusting the layout, ensure that users can enjoy an efficient and intuitive operating experience on any device, and generate a responsive layout script using the formula: in, Indicates the effectiveness of the responsive layout script. is the flexibility weight of layout parameter j, is the tuning performance of parameter j, and m is the total number of parameters.
[0112] S603: According to the responsive layout script, the simulated annealing algorithm is used to optimize the display and editing performance of the form on various devices, and a loop test is performed to iterate the optimization of the layout parameters under different device sizes and resolutions, and the execution process of the responsive form interface is obtained as follows;
[0113] Substep S603 uses a simulated annealing algorithm to optimize the display and editing performance of the form on different devices based on the responsive layout script. The simulated annealing algorithm simulates the process of gradually decreasing temperature, randomly perturbs the layout parameters at each temperature stage, gradually approaches the global optimal solution, and optimizes the layout of the form to adapt to different screen sizes and resolutions. Define the initial parameters of the layout, such as the size, position, and spacing of the elements, and perform optimization iterations according to the size and resolution of different devices. In each iteration, the algorithm adjusts the layout parameters and evaluates the display effect of the adjusted layout on the device. The algorithm evaluates the performance of the current layout through defined loss functions, such as the spatial utilization of the layout and the convenience of user operation. If the new layout performs better than the old layout, the new layout will be accepted. Otherwise, the algorithm will decide whether to accept the new layout based on its probabilistic decision. Cyclic testing is part of the process to ensure the stability and reliability of the optimization process. The adaptability and functionality of the layout are verified by repeated testing on multiple devices and resolutions. The test not only verifies the visual adaptability of the layout, but also includes the responsiveness of editing and operation, and generates a responsive form interface.
[0114] The formula for the simulated annealing algorithm is as follows: in, is the adjusted temperature, is the real-time temperature, is the cooling coefficient, is the energy difference adjustment coefficient, For the energy of real-time layout, is the known optimal layout energy, is the peak value of energy, is the layout adjustment coefficient, and d is the device difference index.
[0115] The execution flow is as follows:
[0116] Set the initial temperature , apply the cooling factor Lower the temperature by Adjusted by current energy With optimal energy The difference in energy peak value can ensure that the temperature adjustment can reflect the actual optimization degree of the layout effect. To normalize the energy difference, we introduce and d to account for differences between devices, such as screen size, resolution, etc., through the logarithmic function The rate at which the temperature decreases is adjusted to make the layout optimization between different devices more detailed. The whole process is iterated until the energy minimum point of a system is reached or the stopping condition is met, and the responsive layout parameters are obtained.
[0117] The device based on customized form flow includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of the above-mentioned method based on customized form flow are implemented.
[0118] See also Figure 8 , based on a custom form process system, the custom form process system is used to execute the above-mentioned custom form process method, and the system includes:
[0119] The component layout module identifies the type and quantity of target components dragged on the interface based on the custom form requirements, adjusts the width and position parameters according to the screen size to match the differentiated display requirements, and obtains the initial layout design;
[0120] The permission configuration module sets the access and editing permissions of form components based on the initial layout design, allocates permissions based on user roles, checks whether the role's access level and editing capabilities match business requirements, and generates a permission allocation structure;
[0121] The rule validation module adopts the permission allocation structure, designs the input validation rules for the numeric range and email format, sets the dependent display logic between fields, and dynamically manages the form input to obtain dynamic validation configuration;
[0122] The script design module uses dynamic validation configuration to identify the interaction logic and conditional display functions between form fields, write field dynamic interaction scripts, and generate form logic scripts;
[0123] The data interface module uses form logic scripts to configure data output formats and filtering rules, designs parameters for filtering data by date and user, optimizes the display and editing performance of the form on multiple devices, and obtains a responsive form interface.
[0124] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned custom-based form process method when executed by a processor.
[0125] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. Based on the custom form process method, It is characterized in that The following steps are involved: Based on customized form requirements, the required form components are identified by dragging on the interface, and the width and position parameters are adjusted to match the different screen sizes to obtain the initial form layout; According to the initialization form layout, by setting the editing permissions of the form, the editing permissions are assigned to the differentiated user roles, the access level and editing capability are assigned to each role, and the permission customization structure is generated; Based on the permission customization structure, automatically create input validation rules for custom forms, use numeric ranges and email formats, the value ranges of form field input association fields, set dependency logic between form fields, affect the display of another field through drop-down menu selection items, check that the end date entered by the user is not earlier than the start date, and build dynamic data validation rules; Extract the dependencies and data processing requirements of the customized form fields from the dynamic data validation rules, create a dynamic interaction script between the fields, and set conditional display to obtain a form logic script; Based on the form logic script, write a configuration script according to the customized form data output format, configure filtering rules for data export, and obtain a customized data interface by filtering data by date and user; Through the customized data interface, the customized form data format and structure are adjusted to match the display requirements of differentiated mobile devices, the interface layout and data presentation method are optimized for desktop and mobile terminals, and a responsive form interface is generated; Collecting component information in the initialization form layout, identifying identifiers and location information of input boxes and selection boxes, analyzing the permission levels that form components need to control, allocating initialization permissions according to component usage and sensitivity, and obtaining component permission mapping; Based on the component permission mapping, set access rights and editing rights for differentiated user roles, identify the editing and deletion rights of roles, check whether the role's permissions match business requirements and security policies, and generate role permission configuration; According to the role permission configuration, combined with the overall structure of the custom form, the role's behavior ability in the form is verified through permission control logic, the role's ability to view, edit and delete data is identified, and a permission customization structure is generated; Extracting permissions associated with customized form fields from the permission customization structure, analyzing the data type and intended use of the customized form, setting a numeric range for numeric fields, and setting format validation rules for text fields to obtain basic validation rules; Based on the basic validation rules, iteratively set the dynamic dependency logic between custom form fields, check the interactive matching business logic between custom form fields, and generate dependency logic configuration; According to the dependency logic configuration, combined with the input validation rules of the custom form, the validation logic of each form field is automatically created, including data type validation, value range check and format check, and dynamically responds to user input to obtain dynamic data validation rules.
2. According to the customized form flow method of claim 1, It is characterized in that Based on the customized form requirements, the required form components are identified by dragging and dropping on the interface, and the width and position parameters are adjusted to match the differentiated screen sizes. The specific steps to initialize the form layout are as follows: Based on the customized form requirements, analyze the user's dragging behavior through the interface, record the type and number of form components selected by the user, including the number and position of selections for input boxes and selection lists, collect the label names and placeholder texts of form components, and obtain the basic properties of components; According to the basic properties of the components, the display ratio and layout position of the form components under different screen sizes are calculated, the real-time display width of each component is adjusted using the ratio of the screen width to the preset width of the component, and the adapted component layout is generated by adjusting the horizontal and vertical coordinates of the form components; Applying the adapted component layout to the customized form design, checking the consistency of logic and visual coordination between form components, verifying the visual flow and data input logic of form fields, and obtaining an initialization form layout; The consistency of the logic and visual coordination includes whether the functional logic relationship between the form components is reasonable and the consistency of the visual elements of the form; The visual flow includes the path that a user takes when visually browsing a form; The data input logic includes the filling order and conditional logic of the form fields.
3. The customized form flow method according to claim 1, It is characterized in that The steps of extracting the dependencies and data processing requirements of the customized form fields from the dynamic data validation rules, creating dynamic interaction scripts between fields, and setting conditional display to obtain the form logic script are as follows: Analyze the field dependencies defined in the dynamic data validation rules, identify the target calculation and data processing required for the custom form according to the interaction requirements of the key fields and dependent fields, and generate field interaction requirements; Based on the field interaction requirements, write scripts to perform inter-field dependency logic, identify the status of the fields and the data calculation requirements of the execution target, check that the fields in the form respond dynamically according to business rules, and generate dependency logic scripts; According to the dependent logic script, the effectiveness of the dynamic display between fields and the implementation of data processing logic is checked, and the performance of the script under various data inputs is tested to obtain the form logic script.
4. The form flow method based on customization according to claim 1, It is characterized in that Based on the form logic script, write a configuration script according to the customized form data output format, configure filtering rules for data export, and filter data by date and user to obtain a customized data interface. Extracting the data processing and display logic of multiple fields from the form logic script, identifying the data export function required by the field, analyzing the data type and format requirements of the form field, and generating an export field configuration list; Based on the export field configuration list, design parameters for filtering data by date and user, define the export format of multiple fields, and write rule control scripts for filtering and formatting to generate data export rule scripts; According to the data export rule script, the test performs the export under differentiated data sets and user requests, verifies the functionality and performance of the script, verifies the efficiency of data export, and obtains a customized data interface.
5. The customized form flow method according to claim 1, It is characterized in that Through the customized data interface, the customized form data format and structure are adjusted to match the display requirements of differentiated mobile devices, the interface layout and data presentation method are optimized for desktop and mobile terminals, and the steps of generating a responsive form interface are as follows: Analyze the data output format and structure in the customized data interface, identify the display requirements of differentiated mobile devices and desktop environments, identify screen size and resolution differences, adjust form elements, check the visual consistency of the form on differentiated devices, and generate device adaptability configuration; Based on the device adaptability configuration, design a form layout adjustment script under different screen sizes, automatically adjust the form layout, including column width and arrangement order, in response to user needs, and generate a responsive layout script; According to the responsive layout script, a simulated annealing algorithm is used to optimize the display and editing performance of the form on a variety of devices, and a loop test is performed to iteratively optimize the layout parameters under different device sizes and resolutions to obtain a responsive form interface; The formula of the simulated annealing algorithm is as follows: Among them, T new is the adjusted temperature, T old is the real-time temperature, α is the cooling coefficient, β is the energy difference adjustment coefficient, E c is the energy of real-time layout, E best is the known optimal layout energy, E max is the peak value of energy, γ is the layout adjustment coefficient, and d is the difference index of the device.
6. Based on a custom form flow device, including memory and processor, It is characterized in that The memory stores a computer program, and when the processor executes the computer program, the steps of the custom form process method according to any one of claims 1 to 5 are implemented.
7. Based on the customized form process system, It is characterized in that The customized form flow system is used to execute the customized form flow method according to any one of claims 1 to 5, and the system includes: The component layout module identifies the type and quantity of target components dragged on the interface based on the custom form requirements, adjusts the width and position parameters according to the screen size to match the differentiated display requirements, and obtains the initial layout design; The permission configuration module sets the access and editing permissions of the form components according to the initial layout design, allocates permissions differently according to user roles, checks whether the access level and editing ability of the roles match the business requirements, and generates a permission allocation structure; The rule validation module adopts the permission allocation structure, designs input validation rules for numeric range and email format, sets dependent display logic between fields, and dynamically manages form input to obtain dynamic validation configuration; The script design module uses the dynamic verification configuration to identify the interaction logic and conditional display function between form fields, writes field dynamic interaction scripts, and generates form logic scripts; The data interface module configures the data output format and filtering rules through the form logic script, designs parameters for filtering data by date and user, optimizes the display and editing performance of the form on multiple devices, and obtains a responsive form interface.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the customized form process method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Deep learning code-free application layout optimization method and system based on user feedback
CN117193772A
Page dynamic configuration method, system and equipment and storage medium
CN117289934A
Front-end design method and device for draggable forms and lists of low-code platform
CN117492756A
Management authority matching method, device and system
CN117540404A
Application program interface self-defining method based on modular component
CN117873478A
