Form configuration method and device, medium, electronic equipment and program product
Through the visual form configuration method, in response to node selection and parameter input, the execution process is determined and form logical data is generated, which solves the problem of difficult form development and maintenance in the existing technology, and realizes efficient form logical configuration.
Patent Information
- Application Number
- CN202411537947.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, form development requires proficiency in programming languages, which makes it difficult to develop and maintain, especially when form logic is complicated.
Provide a visual-based form configuration method, which can determine the execution process and generate form logical data by displaying the configuration interface, responding to node selection and parameter input, and reduce the difficulty of development and maintenance.
Configuring form logic data visually reduces the difficulty of development and maintenance, improves configuration efficiency, and is suitable for complex form logic scenarios.
Smart Images

Figure CN119440507A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic information technology, and in particular, to a form configuration method, device, medium, electronic device and program product. Background Art
[0002] Form is a common element in user interface design. It allows users to input, select or submit data and is widely used in various fields.
[0003] Forms are mainly developed with the help of programming languages, such as HyperText Markup Language (HTML) and JavaScript, etc. This means that forms require programmers who are proficient in programming languages to develop, which increases the difficulty of form development and maintenance. At present, the requirements for forms are gradually diversified, and the complexity of form logic is also increasing. Therefore, the development method of writing code will increase the difficulty of developing and maintaining form logic. Summary of the invention
[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] In a first aspect, the present disclosure provides a form configuration method, comprising:
[0006] Displaying a first configuration interface, wherein a first canvas of the first configuration interface includes a scene node;
[0007] In response to a selection operation on a candidate logical node, displaying the selected logical node in the first canvas;
[0008] In response to an input operation of a node parameter of a node in the first canvas, determining parameter configuration information of the node, wherein the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic;
[0009] In response to the arrangement operation on the node in the first canvas, an execution flow is determined, the first node of the execution flow is the scene node, and the execution flow is used to represent the execution order of the execution functions corresponding to the logic nodes in the target form scene;
[0010] Based on the parameter configuration information of the node in the first canvas and the execution process, form logic data of the form to be configured is generated.
[0011] In a second aspect, the present disclosure provides a form configuration device, comprising:
[0012] A first display module, used to display a first configuration interface, wherein a first canvas of the first configuration interface includes a scene node;
[0013] A first response module, configured to display the selected logical node in the first canvas in response to a selection operation on the candidate logical node;
[0014] A second response module, configured to determine parameter configuration information of a node in the first canvas in response to an input operation of a node parameter of the node, wherein the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic;
[0015] A third response module, configured to determine an execution flow in response to an arrangement operation on the node in the first canvas, wherein the first node of the execution flow is the scene node, and the execution flow is used to characterize the execution order of the execution functions corresponding to the logic nodes in the target form scene;
[0016] A generating module is used to generate form logic data of a form to be configured based on parameter configuration information of the node in the first canvas and the execution process.
[0017] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the computer program is executed by a processing device.
[0018] In a fourth aspect, the present disclosure provides an electronic device, including:
[0019] a storage device having a computer program stored thereon;
[0020] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods in the first aspect.
[0021] In a fifth aspect, the present disclosure provides a computer program product, comprising a computer program, which implements the steps of the method described in the first aspect when executed by a processor.
[0022] Through the above technical solution, the target form scenario on which the form logic data of the form to be configured depends and the execution function corresponding to the implemented business logic are configured in a visual manner, which reduces the difficulty of developing and maintaining the form logic.
[0023] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0025] Figure 1 The figure is a flowchart of a form configuration method according to an exemplary embodiment of the present disclosure.
[0026] Figure 2 It is a schematic diagram of a form configuration main interface according to an exemplary embodiment of the present disclosure.
[0027] Figure 3 It is a schematic diagram of a parameter configuration form of a scene node according to an exemplary embodiment of the present disclosure.
[0028] Figure 4 It is a schematic diagram of a parameter configuration form of a logical node according to an exemplary embodiment of the present disclosure.
[0029] Figure 5 It is a schematic diagram of a first configuration interface according to an exemplary embodiment of the present disclosure.
[0030] Figure 6 It is an interface diagram of a template configuration interface according to an exemplary embodiment of the present disclosure.
[0031] Figure 7 is another flow chart of a form configuration method according to an exemplary embodiment of the present disclosure.
[0032] Figure 8 is a schematic diagram of a second configuration interface according to an exemplary embodiment of the present disclosure.
[0033] Fig. 9 FIG. 4 is a flowchart showing field data configuration according to an exemplary embodiment of the present disclosure.
[0034] Fig.10 The figure is a schematic diagram of a process of inputting configuration field data of a component in a form according to an exemplary embodiment of the present disclosure.
[0035] Fig.11 The figure is a schematic diagram of a parsing process of parsing a configuration file according to an exemplary embodiment of the present disclosure.
[0036] Fig.12 The figure is a schematic diagram showing a process of generating a first file according to an exemplary embodiment of the present disclosure.
[0037] Fig.13 The figure is a schematic diagram of a process of form logic execution according to an exemplary embodiment of the present disclosure.
[0038] Fig.14 The figure is a schematic diagram of a process of a field verification scenario according to an exemplary embodiment of the present disclosure.
[0039] Fig.15 The figure is a schematic diagram of a process of a field update scenario according to an exemplary embodiment of the present disclosure.
[0040] Fig.16 The figure is a process diagram of a form initialization scenario according to an exemplary embodiment of the present disclosure.
[0041] Fig.17 The present invention is a schematic diagram showing a process of converting a data structure based on a preset strategy according to an exemplary embodiment of the present invention.
[0042] Fig.18 It is a schematic diagram of a first structure tree according to an exemplary embodiment of the present disclosure.
[0043] Fig.19 is a schematic diagram of a second structure tree according to an exemplary embodiment of the present disclosure.
[0044] Fig. 20 It is a block diagram of a form configuration device according to an exemplary embodiment of the present disclosure.
[0045] Fig.21 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0047] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0048] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0049] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0050] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0051] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0052] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0053] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0054] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0055] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0056] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0057] The life cycle of a form includes configuration of various data, testing of the form, rendering of the form, and trial use of the form. Based on the life cycle of the form, the configuration of form data, testing of the form, rendering of the form, and trial use of the form are described below. Among them, the configuration of data involves the configuration of form logic data and the configuration of field data. The configuration of form logic data is first described below by way of example.
[0058] Figure 1 1 is a flowchart of a form configuration method according to an exemplary embodiment of the present disclosure. The form configuration method can be applied to an electronic device, and the form configuration method can be executed by a form configuration device, wherein the form configuration device can be implemented by software and / or hardware, and the software and / or hardware can be configured in the electronic device. Figure 1 , the form configuration method may include the following steps:
[0059] Step 110, displaying a first configuration interface, wherein a first canvas of the first configuration interface includes a scene node;
[0060] Step 120, in response to a selection operation on a candidate logical node, displaying the selected logical node in a first canvas;
[0061] Step 130, in response to the input operation of the node parameter of the node in the first canvas, determining the parameter configuration information of the node, the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic;
[0062] Step 140, in response to the arrangement operation on the nodes in the first canvas, determining an execution flow, the first node of the execution flow is a scene node, and the execution flow is used to represent the execution order of the execution functions corresponding to the logic nodes in the target form scene;
[0063] Step 150: Generate form logic data of the form to be configured based on the parameter configuration information and execution flow of the nodes in the first canvas.
[0064] Through the above method, the target form scenario on which the form logic data of the form to be configured depends and the execution function corresponding to the implemented business logic are configured in a visual manner, which reduces the difficulty of developing and maintaining the form logic.
[0065] In one embodiment of the present disclosure, the nodes in the first canvas may refer to all nodes in the first canvas.
[0066] Figure 2 is a schematic diagram of a form configuration main interface according to an exemplary embodiment of the present disclosure. Figure 2 Based on this, the embodiments of the present disclosure are explained and illustrated.
[0067] In the present disclosure, the above step of displaying the first configuration interface can be implemented in the following manner: in response to a trigger operation of starting to configure the form logic data, the first configuration interface is displayed. Figure 2 , you can perform the trigger operation of starting to configure the form logic data for the control "Add" in the logic configuration scenario.
[0068] It is worth noting that the scene node is a node that must exist in each form to be configured, and it serves as a configuration node for the target form scene. Therefore, the scene node can be used as a built-in node in the first canvas of the first configuration interface, and is directly displayed in the first canvas of the first configuration interface after the trigger operation to start configuring the form logic data is triggered. The parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene. As an example, the parameter configuration information of the scene node includes, for example, the execution conditions for triggering the business logic and the prompt information when the business logic is executed abnormally, etc.
[0069] In the present disclosure, form logic data is used to characterize form logic. Form logic generally refers to controlling the behavior of fields and data validation in a form by controlling the business logic in different form scenarios. In the following, form logic and form logic data have the same meaning. In the present disclosure, form scenarios may include field verification scenarios, field update scenarios, field visibility control scenarios, and initialization form scenarios. The implementation process of each form scenario can refer to the following related embodiments, and this embodiment will not be repeated here. It can be seen from the above content that corresponding business logic can be configured in different form scenarios, and the execution of business logic also depends on the parameter configuration information in the corresponding form scenario.
[0070] In a possible manner, when a node is displayed in the first canvas, a parameter configuration form corresponding to the node is displayed, and the parameter configuration form is used to support input operations for node parameters. In this way, the configuration of parameter configuration information is realized in a visual manner, reducing the difficulty of developing and maintaining the form logic.
[0071] Figure 3 FIG. 1 is a schematic diagram of a parameter configuration form of a scene node according to an exemplary embodiment of the present disclosure. Figure 3 ,like Figure 3As shown, you can configure the target form scenario through the field "*Form scenario" in the parameter configuration form, configure the name of the form logic through the field "Name" in the parameter configuration form, configure the field to be verified in the verification field scenario through the field "*Listening field" in the parameter configuration form, configure the execution conditions for triggering the corresponding business logic through the field "*Trigger timing" in the parameter configuration form, configure the type of exception prompt when the business logic executes abnormally through the field "*Process exception prompt type" in the parameter configuration form, and configure the prompt text when the exception is executed through the field "*Process exception prompt text" in the parameter configuration form.
[0072] From the above content, it can be seen that when the value of the selected field "*form scenario" is different, the field configuration items that can be configured in the parameter configuration form may be different. It can be understood that the field configuration items of the form scenario are associated with the form scenario.
[0073] In a possible manner, when the node corresponding to the parameter configuration form is a logical node, the parameter configuration form further includes an output configuration item, and the output configuration item is used to support output information of the execution function corresponding to the configuration node. Figure 4 FIG. 1 is a schematic diagram of a parameter configuration form of a logical node according to an exemplary embodiment of the present disclosure. Figure 4 The name of the execution function can be configured through the field "*Name" in the parameter configuration form, the input parameters of the execution function can be configured through the field "*Input parameters" in the parameter configuration form, and the output information of the execution function can be configured through the field "*Input parameters".
[0074] The value corresponding to the output configuration item can be either default or configurable. Figure 4 Users can edit the values corresponding to the output configuration items based on the "Edit" control, and can also restore the default values corresponding to the output configuration items based on the "Reset" control.
[0075] Continue to refer to Figure 4 In the output configuration item, the data type of the output information can be configured. For example, the data type of the output information can be a Boolean type.
[0076] Through the above method, the output configuration items can be displayed for user configuration, so that when the execution function references the output results of other execution functions according to the dependency relationship, there can be a basis for reference. When the business logic is running in the production environment, if the output information is different from the defined data type, it can be intercepted to avoid abnormal behavior generated when the user uses the form.
[0077] Figure 5 is a schematic diagram of a first configuration interface according to an exemplary embodiment of the present disclosure. Figure 5, the left area of the first configuration interface displays the candidate logic nodes. It is worth mentioning that the output module of different form scenarios is also one of the candidate logic nodes. The output module can be understood as an execution function that is executed last in the execution process. The right area of the first configuration interface displays the first canvas. The user can drag the candidate logic node to the first canvas to select the candidate logic node. The user can also drag the nodes displayed in the first canvas and draw connecting lines between nodes to implement the arrangement operation and generate the corresponding execution process. It is worth mentioning that the first node of the execution process is the scene node, and its corresponding parameter configuration information covers the conditions for triggering the execution of subsequent execution functions.
[0078] In the present disclosure, when a node is moved in the first canvas, the node connection line automatically follows.
[0079] In a possible manner, it is supported to verify the form logic data based on the logic verification rules. It is worth noting that the form logic data corresponds to a form logic. The logic verification rules include at least one of the following:
[0080] Whether the configuration of each form logic complies with the definition of the corresponding form scenario;
[0081] Whether the execution process corresponding to each form logic is a directed acyclic graph;
[0082] Whether the output format of the output information involved in the execution process of each form logic meets the definition of the corresponding form scenario;
[0083] Whether the parameter configuration information of each logic node in the execution process of each form logic meets the definition of the corresponding execution function;
[0084] Whether the addresses of the fields involved in each form logic are legal;
[0085] Whether the joint execution of multiple form logics is an infinite loop.
[0086] In a possible manner, the above-mentioned form configuration method may further include the following steps: in response to a template configuration operation for the form to be configured, displaying a template configuration interface; in response to a configuration operation for each template parameter in the template configuration interface, determining the initial form logic data of the form to be configured, the template parameters including a template name and a template usage method, the template usage method including a first usage method and a second usage method, when sampling the first usage method, it is prohibited to modify the parameter configuration information and the execution process of the node corresponding to the initial form logic data, and when adopting the second usage method, it is allowed to modify the parameter configuration information and the execution process of the node corresponding to the initial form logic data.
[0087] In the present disclosure, when a display operation for initial form logic data is triggered, parameter configuration information and an execution flow of a node corresponding to the initial form logic data are displayed in a first canvas according to the initial form logic data.
[0088] In the present disclosure, a template configuration interface may be displayed in response to an import operation for a template. Figure 2 The form configuration main interface shown can trigger the import operation of the control "Template Import" and display the template configuration interface.
[0089] In the present disclosure, template parameters include a template name and a template usage method, and the template name is used to uniquely identify the corresponding form logic data.
[0090] In the present disclosure, different template reuse scenarios can select different template usage methods. For example, when maintaining the same form logic in multiple forms, the first usage method can be used to implement the configuration of the form logic data of the form to be configured; when quickly inserting the form logic into the form to be configured, the second usage method can be used, and on this basis, the parameters are modified to implement the configuration of the form logic data of the form to be configured to adapt to different template reuse scenarios.
[0091] In the present disclosure, the template corresponding to the template name can be a general template provided for users who need to configure the form to be configured, or it can be a template created by the user. In addition, for the template created by the user, it supports setting the usage permission of the template, and it can also support the version management of the template. In addition, when the template editing is completed, the template can be used in the subsequent configuration form only after the template publishing operation is triggered.
[0092] Figure 6 FIG. 1 is an interface diagram of a template configuration interface according to an exemplary embodiment of the present disclosure. Figure 6 , template parameters can include template name, template usage and version. By editing the input box of the control "*Name", select the template of the reused form logic; by editing the input box corresponding to the control "*Version", configure the version of the template corresponding to the template name; by editing the input box corresponding to the control "*Method", configure the template usage; it is worth noting that, Figure 6 The “copy” shown can be understood as the second usage mode mentioned above.
[0093] In the present disclosure, when the second usage mode is adopted, after determining the initial form logic data of the form to be configured, prompt information can be further displayed. The prompt information is used to remind the user that the template synchronization only synchronizes the logic this time, and the user is required to manually modify the field configuration, custom data and interface proxy according to the actual situation of the form, as well as automatically add dependencies to the form and other information. When the second usage mode is adopted, the configuration of the field data, the configuration of the form logic data and the configuration of the proxy can be adjusted. For the configuration of the field data and the configuration of the proxy, please refer to the following related embodiments, which will not be described in detail in this embodiment.
[0094] In the present disclosure, in the form configuration main interface, the configured form logic data can be displayed in a list, and the error information in the configuration data can be displayed in a pop-up window. The configuration data in this embodiment includes the configuration data of the field and the configuration data of the form logic data. Figure 2 ,The error message is used to prompt the incorrect configuration in the form logic data, such as Figure 2 The error message shown is "Logic Configuration->Field Verification->XXX field does not exist".
[0095] Through the above method, the template corresponding to the form logic data is called to realize rapid configuration of the form logic, improve the configuration efficiency of the form, and support the reuse of templates in different template usage methods, which can be applied to different template reuse scenarios; in addition, the error information in the configuration data can be displayed to improve the efficiency of users in troubleshooting form problems.
[0096] The following is an exemplary description of the configuration of field data.
[0097] In a possible manner, the above form configuration method may further include: displaying a second configuration interface, the second configuration interface being used to configure field data of the form to be configured; and determining the field data of the form to be configured in response to an input operation on a field parameter in the field configuration form.
[0098] Among them, the second configuration interface includes a second canvas, a hierarchy display area, a material display area, and a field configuration form display area.
[0099] The second canvas is used to configure the material of the form to be configured. The material is used to carry fields. Furthermore, the material may include field components and decorators. The material may be used to indicate parameters that need to be configured. These parameters may be understood as fields that need to be configured.
[0100] The hierarchical display area is used to display the hierarchical relationship corresponding to the materials in the form to be configured.
[0101] Among them, the material display area is used to display candidate materials.
[0102] The field configuration form display area is used to display the field configuration form corresponding to the first target material selected in the second canvas.
[0103] Figure 7 is another flow chart of a form configuration method according to an exemplary embodiment of the present disclosure. Figure 7 The step of determining the field data of the form to be configured in response to the input operation of the field parameters in the field configuration form may include:
[0104] Step 710, in response to a selection operation on a first target material in a second canvas, displaying a field configuration form;
[0105] Step 720, in response to an input operation on a field attribute item in the field configuration form, determining an attribute value of the field attribute item;
[0106] Step 730: Generate field data of the form to be configured based on the fields in the second canvas and the attribute values of the field attribute items of the fields.
[0107] Continue to refer to Figure 2 , you can trigger the operation for field configuration in the main form configuration interface and display the second configuration interface.
[0108] Figure 8 is a schematic diagram of a second configuration interface according to an exemplary embodiment of the present disclosure. Figure 8 The second configuration interface shown includes a second canvas, a hierarchy display area, a material display area, and a field configuration form display area. Figure 8 , the user can select the material display area and insert the selected candidate material into the second canvas to carry the fields that the user wants to add to the form to be configured. The user can select the first target material in the second canvas, and the field configuration form corresponding to the first target material is displayed in the field configuration form display area. Then, the user can perform input operations on the field attribute items in the field configuration form to configure the attribute values of the field attribute items. Finally, based on the attribute values of the field attribute items carrying the fields in the material in the second canvas, the field data of the form to be configured is generated.
[0109] For the selected first target material, the first target material can be wrapped with a dotted frame, for example Figure 8 "*Associated Business Line" as shown.
[0110] Through the above method, the configuration of the field data is realized based on a visual method, and various information involved in the field data configuration is displayed in the second configuration interface, thereby improving the configuration efficiency of the field configuration.
[0111] In a possible manner, the above-mentioned form configuration method may further include: in response to an adjustment operation on the second canvas, updating the materials and hierarchical relationships in the second canvas based on the adjustment operation.
[0112] The adjustment operation includes at least one of the following:
[0113] A drag operation of dragging a second target material to a second canvas;
[0114] Modification operation of the position of the third target material in the second canvas;
[0115] Delete operation of the fourth target material in the second canvas.
[0116] It is worth noting that updating the materials in the second canvas may be updating the positions of the materials in the second canvas, or deleting the materials in the second canvas, or adding the materials in the second canvas.
[0117] Fig. 9 FIG. 1 is a flowchart of field data configuration according to an exemplary embodiment of the present disclosure. Figure 8 and Fig. 9 The configuration of the field data in the embodiment of the present disclosure is exemplarily described. After the second configuration interface is triggered to be displayed, the content in the second canvas, that is, the material carrying the field, can be rendered according to the currently configured field data.
[0118] In response to dragging an item to the second canvas, the hierarchical relationship corresponding to each item in the form to be configured is updated according to the dragged position, and the content in the second canvas is re-rendered. In response to dragging an item to a new position in the second canvas, the hierarchical relationship is updated according to the dragged position, and the content in the second canvas is re-rendered.
[0119] In response to the end of the drag operation, the material corresponding to the drag operation is set to a selected state, and the field configuration form corresponding to the selected material is rendered in the field configuration form area so that the user can perform input operations on the attribute values of the attribute items of the field carried by the material.
[0120] In response to modifying the attribute value of the field attribute item, the content in the second canvas is re-rendered based on the modification; in response to deleting the material in the second canvas, the content in the second canvas is re-rendered. It can be understood that the material is not included in the deleted second canvas.
[0121] Through the above method, the configuration of the field data is completed in a visual manner, and the content displayed is dynamically updated based on all configurations on the second configuration interface.
[0122] In a possible way, it is necessary to provide the ability to verify the configured field data. For example, whether each field conforms to the predefined format; or whether the parameter configuration of the material carrying the field conforms to the predefined format; or whether the field address is unique, etc.
[0123] The following is an example of the configuration of custom data and mock data. In some forms, you may need to use data of custom data types, so you can agree on the data format of such data and inject the custom data into the form when the form is rendered, such as associating variables. In addition, you can also configure mock data. Mock data refers to a data set that simulates real data for testing and demonstration purposes during software development. Mock data is, for example, data requested by calling an interface. Mock data can be an object in the format of a key-value pair, with the key being the interface path and the value being the requested data.
[0124] Continue to refer to Figure 2 , which can trigger Figure 2 Click the control "Custom Data" shown to enter the configuration interface of custom data and configure the custom data.
[0125] The following is an exemplary description of the configuration of the interface proxy.
[0126] It is worth noting that in some forms, such as those associated with other data sources, it involves calling the interface of the corresponding data source, because the interface proxy can be configured.
[0127] In form testing, there is generally no need to make requests to the background server. The test is performed using the configured Mock data for testing. Therefore, the request can be intercepted, and the request data and response data of the successfully intercepted interface can be printed on the console; the request data and response data of the interface that is not successfully intercepted are printed on the console and Network panel, which is convenient for developers to analyze based on the data printed on the console and network panel.
[0128] Continue to refer to Figure 2 , which can trigger Figure 2 Click the control "Interface Agent" shown in the figure to enter the configuration interface of the configuration interface and configure the interface data.
[0129] The following is an example of the parameter configuration of materials and the parameter configuration of execution functions.
[0130] In a possible way, you can use a file in typescript format to define the parameters of the material and the parameters of the execution function for easy maintenance.
[0131] It is worth noting that, according to the parameter configuration of the material and the parameter configuration of the execution function, the corresponding field configuration form and node parameter configuration form can be generated accordingly.
[0132] In the definition of each parameter, the parameter value (key), type (type), etc. are fixed, so the corresponding field component can be inferred. It is worth noting that the field component is used to carry the field that the user wants to configure.
[0133] For example, when the type is a string type, the field component is a character input component, which supports user input of a character input component in the field type.
[0134] For another example, when the type is Boolean, the field component is a Boolean value selection component, which supports users to select a Boolean value selection component whose field type is Boolean.
[0135] For another example, when the type is an array type or an object type, the field component can be a JSON editor that supports JSON format editing or a form-based input component. The configuration process of the form-based input component can refer to the following. Fig.10 In the process shown, select Configure Sales Personnel Information to display the corresponding field configuration form; then select Search Configuration to display the Set Search Configuration; further, select Set Request Parameters to display the Set Request Parameters to complete the configuration of each field in the Set Request Parameters. In addition, the JSON editor also supports data validation. For validation, please refer to the following related embodiments, which will not be described in detail in this embodiment.
[0136] For another example, when the type is a method type, the field component may be a function editor, which converts the function string entered by the user into a real function at runtime and passes it to the corresponding resource as a parameter for use.
[0137] For another example, when the value of a parameter is an associated variable, the field component can be a cascading selector to automatically inject the available associated variables into each option.
[0138] In order to improve the flexibility of material parameter configuration and function execution parameter configuration, the insertion and interpretation functions of associated variables can be integrated in the JSON editor and function editor.
[0139] The following is an example of the form testing process. During the configuration of the form to be configured, you can preview the form to be configured. Figure 2 , which can trigger Figure 2 Click the "Form Preview" control shown to enter the form preview interface.
[0140] In form testing, if the form logic of the form is executed, the execution process can be printed to the control panel, which is convenient for developers to view the output results of the execution function and compare them with the data definition of the output results of the configured execution function, which is conducive to troubleshooting. The output results here, the output results of the execution function below, and the output information of the execution function above have the same physical meaning.
[0141] The following is an exemplary description of form rendering.
[0142] First, obtain the configuration file of the configured form. The configuration file may include data format definitions of form logic data, field data, and custom data.
[0143] Next, the configuration file is parsed to obtain parsed data. Fig.11 FIG. 1 is a schematic diagram of a parsing process for parsing a configuration file according to an exemplary embodiment of the present disclosure. Fig.11 , escape the configuration file, verify the escaped field data, form logic data and injected custom data, and collect the resources required in the configuration file. It is worth noting that in this field, escape refers to the use of specific character sequences to represent characters that have special meanings in the text. Escape characters allow you to include characters that are usually interpreted as control characters in the configuration file. The use of escape characters ensures that the strings in the configuration file can be parsed correctly without errors due to the presence of special characters. In addition, the resources in this embodiment are understood to be the above-mentioned materials and execution functions, and for performance considerations, it is allowed to exempt the loading of some resources and inject them manually by the user. The exempted resources can be dynamically determined during the form execution process.
[0144] Next, a first file is generated based on the escaped field data, custom data and materials. Fig.12 It is a schematic diagram of a process of generating a first file according to an exemplary embodiment of the present disclosure. It is worth noting that the first file is a file of form structure and rules defined based on the JSON Schema specification. During the generation process, it is necessary to convert the function character into a real function and inject the form running context into the function; generate a key corresponding to each material to uniquely describe the material and map it to form rendering; generate corresponding description data for each field according to the form platform requirements.
[0145] Next, a second file is generated based on the escaped form logic data and registered to the form. It is worth noting that the second file represents the side effect operations defined in the life cycle of the form. These operations can respond to events such as changes in form fields, submission and reset of the form, and execute corresponding logic, namely form logic.
[0146] Based on the above resources, the first file and the second file, form rendering is performed.
[0147] The following is an exemplary description of the form logic execution of a form.
[0148] Fig.13 It is a schematic diagram of a process of form logic execution according to an exemplary embodiment of the present disclosure. When a user enters data for a rendered form, when the corresponding form logic execution is triggered, that is, after the execution condition of the corresponding business logic is triggered, the execution process is analyzed, and each execution function is called in turn. When each execution function is called, it is checked whether the output result of each execution function conforms to the preset format definition, and the output result and whether the output result is abnormal are printed to the console and synchronized to the memory. When calling a subsequent execution function, if it depends on the output result of the previous execution function, the output result of the previous execution function is obtained from the memory, and the output result of the last execution function is used as the output result of the target form scene, and the API (Application Programming Interface) of the form platform is called based on the output result of the target form scene. For example, if the target form scene is a scene for switching field visibility, the API can be used for switching field visibility.
[0149] When each execution function is called, it can be called asynchronously or synchronously.
[0150] The following is an exemplary description of the execution of each target form scenario.
[0151] Fig.14 is a schematic diagram of a process of a field verification scenario according to an exemplary embodiment of the present disclosure. When the target form scenario is a verification field scenario, Fig.14 The part shown by the dotted line can be understood as the process executed according to the configuration of the scene node, which represents the triggering condition of the execution function of the corresponding execution process. In addition, according to the output result of calling the execution function in the execution process, the API of the form platform is called to perform the corresponding operation. For example, if the output result of the execution function is illegal, the verification result is set, such as XXX input does not meet the requirements.
[0152] Fig.15 is a schematic diagram of a process of a field update scenario according to an exemplary embodiment of the present disclosure. When the target form scenario is a field update scenario, Fig.15The part shown by the dotted line can be understood as the process executed according to the configuration of the scene node, which represents the triggering condition of the execution function of the corresponding execution process. In addition, according to the output result of calling the execution function in the execution process, the API of the form platform is called to perform the corresponding operation. For example, if the output result of the execution function is illegal, it is further determined whether to update the attributes of the field, whether to update the attribute value of the field, and other operations.
[0153] When the target form scenario is a field switching scene, you can continue to refer to Fig.15 ,according to Fig.15 The dotted line in the middle shows the triggering conditions for the execution process in the switching display and hiding scenarios of the configured fields. In addition, based on the output result of the execution function in the execution process, the API of the form platform is called to perform corresponding operations. For example, if the output result of the execution function is legal, the effect of displaying or hiding the field is determined, as well as the cache of the attribute value of the hidden field or the reset of the attribute value of the hidden field.
[0154] Fig.16 is a process diagram of a form initialization scenario according to an exemplary embodiment of the present disclosure. When the target form scenario is a form initialization scenario, Fig.16 The part shown by the dotted line can be understood as the process executed according to the configuration of the scene node, which represents the triggering condition of the execution function of the corresponding execution process. In addition, according to the output result of calling the execution function in the execution process, the API of the form platform is called to perform the corresponding operation, for example, if the form value is set. The following is an exemplary description of the verification process of the data configured in the form configuration.
[0155] Among them, the verification process may include the following steps: obtaining the data to be verified, which includes the configuration data, test data and real data of the form to be configured; processing the data to be verified according to a preset strategy to obtain a first structure tree; obtaining a second structure tree, which is used to represent the data format tree corresponding to the first structure tree; according to the first structure tree and the second structure tree, using a non-recursive subsequent traversal algorithm to determine the verification order of each data in the data to be verified, and verifying the data in turn.
[0156] Among them, the configuration data can be the data involved in the above-mentioned form configuration process, such as form logic data and field data; the test data is the form data involved in the test process; the real data is the form data involved in the actual generation environment, such as the form data entered by the user based on the form.
[0157] It is worth noting that the data to be verified is data in an uncertain format, so before verification, the data to be verified needs to be converted into tree-like data, that is, the first structured tree.
[0158] The preset strategy is a strategy for determining the data type. Fig.17 The schematic diagram of the process of converting and obtaining a data structure based on a preset strategy is shown. Based on the data structure, a first structure tree can be generated.
[0159] Among them, each node in the second structure tree represents the type of each node in the first structure tree. In the first structure tree, child nodes with the same parent node and the same type are represented by the same node in the second structure tree. The second structure tree can be pre-generated based on the code corresponding to the configured form.
[0160] The first structure tree and the second structure tree have a corresponding relationship, see Fig.18 The first structure tree shown and Fig.19 The second structure tree shown, combined with Fig.18 and Fig.19 , Fig.18 The nodes "first", "second" and "third" in Fig.19 In both cases, they are represented by the node "string".
[0161] In one embodiment of the present disclosure, the first structure tree may be an N-ary tree. When implementing a non-recursive post-order traversal algorithm, a stack is used to assist in traversal. The core idea is to first push the root node into the stack, and then push and pop the nodes into and out of the stack in sequence according to certain rules to simulate the order of post-order traversal. Based on this, based on the first structure tree and the second structure tree, the traversal process of the non-recursive post-order traversal algorithm may include:
[0162] First, initialize an empty stack and result list, which is used to store the traversal results.
[0163] Second, push the root node onto the stack.
[0164] Third, when the stack is not empty, execute the following loop operations:
[0165] 1) Get the top node of the stack.
[0166] 2) If all child nodes of the top node have been visited, pop the top node out of the stack and add it to the result list.
[0167] 3) Otherwise, push the unvisited child nodes of the top node into the stack from right to left.
[0168] It is worth noting that the right child node is pushed in first and then the left child node in order to keep the left child node at the top of the stack, thereby maintaining the order of post-order traversal. And when accessing the current top node, if the format definition of the current top node is an array, the number of times the child nodes of the current node are pushed into the stack depends on the number of child nodes of the current node. For example, refer to Fig.18 , the data type of the node array is an array, and its child nodes are pushed into the stack three times, with the child nodes pushed into the stack each time being the node "first", the node "second", and the node "third".
[0169] It can be understood that when the stack is empty, the traversal ends, and the data corresponding to all nodes are checked in sequence according to the order of the nodes in the result list.
[0170] In the above manner, a non-recursive subsequent traversal algorithm is adopted to ensure that all subfields of any form have been verified before the final verification of any field, especially for verification logic that depends on subfield values.
[0171] Fig. 20 is a block diagram of a form configuration device according to an exemplary embodiment of the present disclosure, referring to Fig. 20 , the device comprises:
[0172] A first display module 2001 is used to display a first configuration interface, wherein a first canvas of the first configuration interface includes a scene node;
[0173] A first response module 2002, configured to display the selected logical node in the first canvas in response to a selection operation on a candidate logical node;
[0174] The second response module 2003 is used to determine parameter configuration information of the node in response to the input operation of the node parameter of the node in the first canvas, wherein the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic;
[0175] The third response module 2004 is used to determine an execution flow in response to the arrangement operation on the node in the first canvas, wherein the first node of the execution flow is the scene node, and the execution flow is used to represent the execution order of the execution functions corresponding to the logic nodes in the target form scene;
[0176] The generating module 2005 is used to generate form logic data of the form to be configured based on the parameter configuration information of the node in the first canvas and the execution process.
[0177] Optionally, the device 2000 further includes:
[0178] A fourth response module, configured to display a template configuration interface in response to a template configuration operation for the form to be configured;
[0179] The fifth response module is used to determine the initial form logic data of the form to be configured in response to the configuration operation of each template parameter in the template configuration interface, the template parameters include a template name and a template usage method, the template usage method includes a first usage method and a second usage method, when sampling the first usage method, it is prohibited to modify the parameter configuration information and the execution process of the node corresponding to the initial form logic data, and when adopting the second usage method, it is allowed to modify the parameter configuration information and the execution process of the node corresponding to the initial form logic data.
[0180] Optionally, when the node is displayed in the first canvas, a parameter configuration form corresponding to the node is displayed, and the parameter configuration form is used to support input operations for the node parameters.
[0181] Optionally, when the node corresponding to the parameter configuration form is the logical node, the parameter configuration form further includes an output configuration item, and the output configuration item is used to support the configuration of output information of the execution function corresponding to the node.
[0182] Optionally, the device 2000 further includes:
[0183] A second display module is used to display a second configuration interface, the second configuration interface is used to configure the field data of the form to be configured, the second configuration interface includes a second canvas, a hierarchy display area, a material display area and a field configuration form display area, the second canvas is used to configure the material of the form to be configured, the material is used to carry the field, the hierarchy display area is used to display the hierarchy relationship corresponding to the material in the form to be configured, the material display area is used to display the candidate material, and the field configuration form display area is used to display the field configuration form corresponding to the first target material selected in the second canvas;
[0184] The sixth response module is used to determine the field data of the form to be configured in response to the input operation of the field parameters in the field configuration form.
[0185] Optionally, the device 2000 further includes:
[0186] A seventh response module is configured to respond to an adjustment operation on the material in the second canvas and update the material and the hierarchical relationship in the second canvas based on the adjustment operation; the adjustment operation includes at least one of the following:
[0187] A dragging operation of dragging a second target material to the second canvas;
[0188] An operation of modifying the position of the third target material in the second canvas;
[0189] A deletion operation of the fourth target material in the second canvas.
[0190] Optionally, the device 2000 further includes:
[0191] A first acquisition module is used to acquire data to be verified, wherein the data to be verified includes configuration data, test data and real data of the form to be configured;
[0192] A processing module, used for processing the data to be verified according to a preset strategy to obtain a first structure tree representing the hierarchical relationship of the data to be verified;
[0193] A second acquisition module is used to acquire a second structure tree, wherein each node in the second structure tree corresponds to a data type of each node in the first structure tree, and nodes with the same parent node and the same data type in the first structure tree are represented by the same node in the second structure tree for data type;
[0194] The verification module is used to determine the verification order of each data in the data to be verified according to the first structure tree and the second structure tree by adopting a non-recursive subsequent traversal algorithm, and verify the data in turn.
[0195] The implementation of each module in the above-mentioned form configuration device 2000 can refer to the above-mentioned related embodiments, and this embodiment will not be described in detail here.
[0196] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored. When the computer program is executed by a processing device, the steps of the above-mentioned form configuration method are implemented.
[0197] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the steps of the above-mentioned form configuration method when executed by a processor.
[0198] Based on the same inventive concept, the present disclosure also provides an electronic device, including:
[0199] a storage device having a computer program stored thereon;
[0200] A processing device is used to execute the computer program in the storage device to implement the steps of the above-mentioned form configuration method.
[0201] Reference below Fig.21, which shows a schematic diagram of the structure of an electronic device 2100 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.21 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0202] like Fig.21 As shown, the electronic device 2100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 2101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 2102 or a program loaded from a storage device 2108 to a random access memory (RAM) 2103. In the RAM 2103, various programs and data required for the operation of the electronic device 2100 are also stored. The processing device 2101, the ROM 2102, and the RAM 2103 are connected to each other via a bus 2104. An input / output (I / O) interface 2105 is also connected to the bus 2104.
[0203] Typically, the following devices may be connected to the I / O interface 2105: input devices 2106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 2107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 2108 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 2109. The communication devices 2109 may allow the electronic device 2100 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.21 The electronic device 2100 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0204] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 2109, or installed from the storage device 2108, or installed from the ROM 2102. When the computer program is executed by the processing device 2101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0205] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0206] In some embodiments, the electronic device can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0207] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0208] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays a first configuration interface, wherein the first canvas of the first configuration interface includes scene nodes; in response to a selection operation on a candidate logic node, displays the selected logic node in the first canvas; in response to an input operation on a node parameter of a node in the first canvas, determines parameter configuration information of the node, wherein the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scenario, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic; in response to an orchestration operation on all nodes in the first canvas, determines an execution flow, wherein the first node of the execution flow is the scene node, and the execution flow is used to characterize the execution order of the execution functions corresponding to all the logic nodes in the target form scenario; and generates form logic data of the form to be configured based on the parameter configuration information of all the nodes in the first canvas and the execution flow.
[0209] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0210] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0211] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.
[0212] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0213] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0214] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0215] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0216] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A form configuration method, characterized in that: include: Displaying a first configuration interface, wherein a first canvas of the first configuration interface includes a scene node; In response to a selection operation on a candidate logical node, displaying the selected logical node in the first canvas; In response to an input operation of a node parameter of a node in the first canvas, determining parameter configuration information of the node, wherein the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic; In response to the arrangement operation on the node in the first canvas, an execution flow is determined, the first node of the execution flow is the scene node, and the execution flow is used to represent the execution order of the execution functions corresponding to the logic nodes in the target form scene; Based on the parameter configuration information of the node in the first canvas and the execution process, form logic data of the form to be configured is generated.
2. The method according to claim 1, characterized in that The method further comprises: In response to the template configuration operation for the form to be configured, displaying a template configuration interface; In response to the configuration operation of each template parameter in the template configuration interface, the initial form logic data of the form to be configured is determined, the template parameters include a template name and a template usage method, the template usage method includes a first usage method and a second usage method, when sampling the first usage method, it is prohibited to modify the parameter configuration information and the execution process of the node corresponding to the initial form logic data, and when adopting the second usage method, it is allowed to modify the parameter configuration information and the execution process of the node corresponding to the initial form logic data.
3. The method according to claim 1, characterized in that When the node is displayed in the first canvas, a parameter configuration form corresponding to the node is displayed, and the parameter configuration form is used to support input operations for the node parameters.
4. The method according to claim 3, characterized in that When the node corresponding to the parameter configuration form is the logical node, the parameter configuration form further includes an output configuration item, and the output configuration item is used to support the configuration of output information of the execution function corresponding to the node.
5. The method according to claim 1, characterized in that The method further comprises: Displaying a second configuration interface, the second configuration interface is used to configure the field data of the form to be configured, the second configuration interface includes a second canvas, a hierarchy display area, a material display area, and a field configuration form display area, the second canvas is used to configure the material of the form to be configured, the material is used to carry the field, the hierarchy display area is used to display the hierarchy relationship corresponding to the material in the form to be configured, the material display area is used to display the candidate material, and the field configuration form display area is used to display the field configuration form corresponding to the first target material selected in the second canvas; In response to an input operation on a field parameter in the field configuration form, field data of the form to be configured is determined.
6. The method according to claim 5, characterized in that The method further comprises: In response to an adjustment operation on the material in the second canvas, the material in the second canvas and the hierarchical relationship are updated based on the adjustment operation; the adjustment operation includes at least one of the following: A dragging operation of dragging a second target material to the second canvas; An operation of modifying the position of the third target material in the second canvas; A deletion operation of the fourth target material in the second canvas.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire the data to be verified, wherein the data to be verified includes configuration data, test data and real data of the form to be configured; Processing the data to be verified according to a preset strategy to obtain a first structure tree representing the hierarchical relationship of the data to be verified; Acquire a second structure tree, wherein each node in the second structure tree corresponds to a data type of each node in the first structure tree, and nodes having the same parent node and the same data type in the first structure tree are represented by the same node in the second structure tree for data type; According to the first structure tree and the second structure tree, a subsequent traversal algorithm in a non-recursive manner is adopted to determine the verification order of each data in the data to be verified, and the data are verified in turn.
8. A form configuration device, characterized in that: include: A first display module, used to display a first configuration interface, wherein a first canvas of the first configuration interface includes a scene node; A first response module, configured to display the selected logical node in the first canvas in response to a selection operation on the candidate logical node; A second response module, configured to determine parameter configuration information of a node in the first canvas in response to an input operation of a node parameter of the node, wherein the parameter configuration information of the scene node is used to guide the execution of the business logic corresponding to the target form scene, and the parameter configuration information of the logic node is used to characterize the execution function corresponding to the business logic; A third response module, configured to determine an execution flow in response to an arrangement operation on the node in the first canvas, wherein the first node of the execution flow is the scene node, and the execution flow is used to characterize the execution order of the execution functions corresponding to the logic nodes in the target form scene; A generating module is used to generate form logic data of a form to be configured based on parameter configuration information of the node in the first canvas and the execution process.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.
11. 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 7 are implemented.