CN116360735A - Form generation method, device, equipment and medium - Google Patents
Form generation method, device, equipment and medium Download PDFInfo
- Publication number
- CN116360735A CN116360735A CN202211643745.0A CN202211643745A CN116360735A CN 116360735 A CN116360735 A CN 116360735A CN 202211643745 A CN202211643745 A CN 202211643745A CN 116360735 A CN116360735 A CN 116360735A
- Authority
- CN
- China
- Prior art keywords
- field
- configuration
- target
- preset
- logic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a form generation method, a form generation device and a form generation medium, wherein the method comprises the following steps: acquiring configuration information of a user aiming at a target service scene on a preset form editing interface, and determining a field scope of each configuration field in the configuration information; analyzing each configuration field based on the field scope to obtain a corresponding target analysis result; and performing form rendering according to the target analysis result to obtain a target form in the target service scene. The technical scheme of the embodiment of the invention solves the problem that the prior form engine is not friendly to users in complex service scenes, can lead the users to directly carry out the form configuration in the predefined service scenes, has clear and accurate corresponding form analysis logic, reduces errors in the form analysis process to a certain extent, and is more friendly to users.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a form generation method, a form generation device, form generation equipment and a form generation medium.
Background
The dynamic form engine is a device for completing form development by the front end of a user, describing form data by the JSON Schema and automatically completing form construction by combining with a rendering engine. Currently mainstream form engines can be adapted to most business scenarios.
However, in the process of implementing the present invention, it is found that at least the following technical problems exist in the prior art: in some complex form service scenarios, the user is required to configure by himself, which causes more program errors in form data analysis and is not friendly to the user.
Disclosure of Invention
The embodiment of the invention provides a form generation method, a device, equipment and a medium, which can enable a user to directly perform form configuration under a predefined service scene, and the corresponding form analysis logic is clear and accurate, so that errors in the form analysis process are reduced to a certain extent, and the use of the user is more friendly.
In a first aspect, an embodiment of the present invention provides a form generating method, including:
acquiring configuration information of a user aiming at a target service scene on a preset form editing interface, and determining a field scope of each configuration field in the configuration information;
analyzing each configuration field based on the field scope to obtain a corresponding target analysis result;
and performing form rendering according to the target analysis result to obtain a target form in the target service scene.
In a second aspect, an embodiment of the present invention further provides a form generating apparatus, where the apparatus includes:
the form configuration information acquisition module is used for acquiring configuration information aiming at a target service scene on a user preset form editing interface and determining a field scope of each configuration field in the configuration information;
the form configuration information analysis module is used for respectively analyzing each configuration field based on the field scope to obtain a corresponding target analysis result;
and the form generation module is used for performing form rendering according to the target analysis result to obtain a target form in the target service scene.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a form generation method as provided by any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a form generating method as provided by any of the embodiments of the present invention.
The embodiments of the above invention have the following advantages or benefits:
according to the embodiment of the invention, after the configuration information aiming at the target service scene on the user preset form editing interface is obtained, the field scope of each configuration field in the configuration information is determined; then, analyzing each configuration field based on each field scope to obtain a corresponding target analysis result; and finally, performing form rendering according to the target analysis result to obtain the target form under the target service scene. The technical scheme of the embodiment of the invention solves the problem that the prior form engine is not friendly to users in complex service scenes, can lead the users to directly carry out the form configuration in the predefined service scenes, has clear and accurate corresponding form analysis logic, reduces errors in the form analysis process to a certain extent, and is more friendly to users.
Drawings
FIG. 1 is a flowchart of a form generation method provided in an embodiment of the present invention;
FIG. 2 is a flowchart of a form generation method provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a preset functional middleware according to an embodiment of the present invention;
FIG. 4 is a flowchart of a form generation method provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of a field granularity message subscription publishing process according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the overall architecture of a form engine according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a form creation device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Fig. 1 is a flowchart of a form generating method according to an embodiment of the present invention, where the embodiment is applicable to a scenario of dynamic form creation. The method may be performed by a form generating device, which may be implemented in software and/or hardware, integrated in a computer device with application development functionality.
As shown in fig. 1, the form generation method of the present embodiment includes the steps of:
s110, acquiring configuration information of a user on a preset form editing interface according to a target service scene, and determining a field scope of each configuration field in the configuration information.
The preset form editing interface is an interactive interface when a user uses a form engine, and is presented for the description of the form field data through a standard JSON Schema. In this embodiment, only configurable form field information is displayed, and form data description is performed according to different form usage service scenarios with finer granularity, including the content of configurable fields, data source configuration of fields, field linkage logic, field verification logic and the like in each service scenario. The user can realize personalized configuration of form fields aiming at different service scenes through hot plug-in configuration.
The field scope, i.e. the effective application range of each field, limits the reading, i.e. the range of use, of the data of the respective field. Common field scopes are largely divided into several types: global scope, functional scope, block scope, and dynamic scope. In an alternative embodiment, the field scope may be set by the user during the configuration of the respective fields, or the field scope of each field may be preset when the form engine is configured by the developer. After determining the field scope of each field, data parsing may be performed for each field scope to ensure that the configuration logical relationship of the field data is accurate within each field scope.
Specifically, when the user needs to create a form, the user can enter a preset form editing interface by triggering a preset form creation control in the form engine. Correspondingly, the form engine responds to the form creation instruction to display a preset form editing interface.
Further, a service scene selection control is arranged in the preset form editing interface, and the control can directly display service scenes which can be used for form configuration and can also display the service scenes which can be selected by a user in a drop-down menu mode. After a user selects a service scene through a preset service scene selection control in a preset form editing interface, a target service scene can be determined, and a field configuration item associated with the target service scene is displayed; thus, the configuration information for the target service scene can be acquired based on the setting operation of the field configuration item by the user. For example, the service scenario may include a scenario of displaying a data list, updating a form data, and the like, in particular, a scenario in which a later generated form is rendered depending on data of a previously generated form, or a data transfer scenario among a plurality of forms.
It can be appreciated that in this embodiment, for each business scenario, the logic of data linkage, form check level update, etc. of the form fields across fields, between levels under various different configuration conditions is semantically described by a domain-specific language. Therefore, the user can directly edit the form based on the predefined result, and correspondingly, the form engine also accurately analyzes the form editing intention of the user.
And S120, respectively analyzing each configuration field based on the field scope to obtain a corresponding target analysis result.
A field scope may also be understood as describing field data information and UI (User Interface) control information storage, which data only acts on specified fields. Further, parsing based on the field scope of each field is equivalent to partitioning according to the field scope, some field scopes are identical, and some field scopes are within the field scope associated therewith. And analyzing the configuration field according to the partitioning and distinguishing result of the field scope and aiming at each field scope, and acquiring the configuration information of all fields in the field scope.
Specifically, parsing each configuration field depends on predefining semantic logic through a specific domain language, and specifically, the resolvable information includes contents such as a data source, field linkage logic, field verification logic, field update logic information, and the like, and in some scenarios, user-defined information of a user may also be included.
The parsing of the data source includes determining a data source interface name, a data source proxy address, a field name, and whether the data source is a synchronous data source or an asynchronous data source according to predefined descriptive logic. And the parameter fields of the interface that obtains the data source describe both synchronous and asynchronous scenarios. Illustratively, in the semantic description of the data source, when the type field value is "list", the data source synchronization scene configuration is described, and the data source is stored in the parameter value field; when the type field value is "api", a data source asynchronous scenario configuration is described, a parameter api field description Ajax (Asynchronous JavaScript) configuration including a data source interface (name), a proxy host address (proxy_name field), and a specific parameter description (params field). Further, the parsing of the parameters parameter field may determine the meaning and value of each field according to predefined data description logic. For example, the parameter param describes the configuration of the contract parameters, which can be used in conjunction with the global parameter (global_params); the parameter param_fixed describes fixed parameter configuration, and is subjected to scofflaw in a key-value pair mode, wherein the key is a parameter name, and the value is a parameter value and can be directly used; the parameter param_key is used for describing dynamic parameter configuration, and describing the dynamic parameter configuration and is formed by an object formation sequence (Array) type, wherein a param Field in the object is an interface request parameter name, a key is a value of a Field name (name) in a form, and a value of the Field key in the form is obtained through a get Field value function.
The field linkage can be understood as that the form value of a field changes, which can cause the linkage effect of the field control, such as display or hiding, whether editable, and the like. The linkage of fields may also include checking and interaction relationships between different fields, e.g., a change in one field may cause a change in the value of another field associated therewith, a change in the linkage of display and concealment, etc. The semantic description of field linkage generally comprises two scenes of AND and NOT, and descriptions of some linkage rules, such as field linkage relations established by Boolean values, non-null, regular and dynamic grammars and the like.
The field verification analysis is to determine the code logic of the form field item when the verification is triggered. Two kinds of verification scenes can be included in the predefined verification logic, namely a synchronous verification scene and an asynchronous verification scene, and the verification logic is determined by regular expressions in each verification scene. The contents of the check include whether the field is valid, null, correctly formatted, etc.
The field update logic refers to a manner capable of triggering each field update, such as self-update, update based on other associated fields, or update based on a preset numerical condition.
Based on the analysis of the step, the data source, the field linkage logic, the field verification logic and the field updating logic corresponding to each form field can be determined, and the field processing logic corresponding to the target form to be generated can be determined.
And S130, performing form rendering according to the target analysis result to obtain a target form in the target service scene.
The target form which presents the user configuration can be rendered based on the target analysis result obtained by analysis in the steps through a preset renderer.
According to the technical scheme, after configuration information aiming at a target service scene on a user preset form editing interface is obtained, a field scope of each configuration field in the configuration information is determined; then, analyzing each configuration field based on each field scope to obtain a corresponding target analysis result; and finally, performing form rendering according to the target analysis result to obtain the target form under the target service scene. The technical scheme of the embodiment of the invention solves the problem that the prior form engine is not friendly to users in complex service scenes, can lead the users to directly carry out the form configuration in the predefined service scenes, has clear and accurate corresponding form analysis logic, reduces errors in the form analysis process to a certain extent, and is more friendly to users.
Fig. 2 is a flowchart of a form generating method according to another embodiment of the present invention, where the form generating method in the embodiment and the form generating method in the foregoing embodiment belong to the same inventive concept, and further describes a scheme for performing form parsing according to user configuration information. The method may be performed by a form generating device, which may be implemented in software and/or hardware, integrated in a computer device with application development functionality.
As shown in fig. 2, the form generation method of the present embodiment includes the steps of:
s210, acquiring configuration information of a user on a preset form editing interface aiming at a target service scene, and determining a field scope of each configuration field in the configuration information.
S220, based on the field scope, sequentially carrying out inter-field service logic analysis on each configuration field through a plurality of preset functional middleware to obtain an initial analysis result.
In this embodiment, middleware is used to parse each configuration field. This is because middleware is on top of the operating system, network and database, the lower layer of application software can provide an operating and developing environment for application software on its own upper layer, helping users flexibly and efficiently develop and integrate complex application software. Therefore, the form engine outputs the hot plug configuration data after being collected and tidied through the middleware module, which is equivalent to the front-end process of analyzing the configuration field in the form rendering process, reduces the operation burden of the form engine and improves the form rendering efficiency.
Specifically, when the preset functional middleware is adopted to perform inter-field service logic analysis, the analysis operation of hierarchical analysis is adopted, and the accuracy of the analysis result is improved to a certain extent. For example, the field information parsing process may refer to the combined middleware operation process shown in fig. 3.
In fig. 3, the combined middleware provides 3 preset functional middleware, including middleware 1, middleware 2 and middleware 3, and the three middleware sequentially analyzes field information. The middleware 1 is a preset field linkage analysis middleware, and firstly, the linkage logic relationship among the configuration fields is analyzed in each field action domain through the preset field linkage analysis middleware. The result output by the middleware 1 is the result of coupling each linkage logic function. The field linkage logic of each configuration field is first parsed, because the change of the form value of each configuration field may affect the display or editing logic of other fields. The field linkage relation is cleared preferentially, and the accuracy of the subsequent analysis result is ensured. The middleware 2 is a preset field verification analysis middleware, namely, the field verification logic of each configuration field is analyzed on the basis of the analyzed linkage logic relationship through the preset field verification analysis middleware. The result output by the middleware 2 is the coupling result of the check logic function of each configuration field based on the linkage logic relationship. The middleware 3 is a preset field updating middleware, and can analyze the field updating logic of each configuration field on the basis of the linkage logic relationship and the field checking logic. The result output by the middleware 3 is the coupling result of the check logic function of each configuration field. It will be appreciated that if other parsing contents are included in the process of parsing the configuration field, middleware with corresponding functions may be set, and three middleware in fig. 3 are only illustrated as an example.
In each preset functional middleware, a process of analyzing the management field of the function next () can be selected by waiting for the function await fn { } and the next field until each field in each configuration field is analyzed by traversing, and then entering the next analysis stage.
And S230, checking and unifying the data format of the initial analysis result to obtain the target analysis result.
In consideration of the fact that in the semantic definition development process of the form engine, data definition of different developers cannot be completely consistent or the situation that the data specification is not met in the result of pluggable configuration of a user and the like exists, errors can possibly occur in the subsequent rendering process, and further data format verification and unification are conducted on the initial analysis result in the previous step, so that the integrity of data can be protected, and the maintainability of the data is improved.
Specifically, the linkage logic relationship, the field verification logic and the field update logic in the initial analysis result in the previous step can be respectively input into the corresponding preset logic analysis model; and carrying out data format verification and unified processing through each preset logic analysis model to obtain a target analysis result. The preset logic analysis model is a structure for carrying out data verification on analysis results in a unified pre-defined data format, and can be realized through a preset third party framework or through a plurality of pre-defined interfaces.
The preset logic analysis model can comprise a field linkage logic analysis model, a field verification logic analysis model and a field update logic analysis model. And each preset functional middleware corresponds to a preset logic analysis model, and the analysis result of the middleware is normalized and output.
And S240, performing form rendering according to the target analysis result to obtain a target form in the target service scene.
According to the technical scheme, after configuration information aiming at a target service scene on a user preset form editing interface is obtained, a field scope of each configuration field in the configuration information is determined; then, sequentially carrying out inter-field business logic analysis on each configuration field through a plurality of preset functional middleware to obtain an initial analysis result, and carrying out data format verification and unification on the initial analysis result to obtain the target analysis result; and finally, performing form rendering according to the target analysis result to obtain a target form in the target service scene. The technical scheme of the embodiment of the invention solves the problem that the prior form engine is not friendly to users in complex service scenes, can lead the users to directly carry out the form configuration in the predefined service scenes, has clear and accurate corresponding form analysis logic, reduces errors in the form analysis process to a certain extent, and is more friendly to users; configuration field information analysis and analysis result standardization processing are carried out through middleware, so that the operation load of a form engine is reduced, and the performance of form rendering is improved as a whole.
Fig. 4 is a flowchart of a form generating method according to another embodiment of the present invention, where the form generating method in the embodiment and the form generating method in the foregoing embodiment belong to the same inventive concept, and further describes a process of updating or checking a target form field. The method may be performed by a form generating device, which may be implemented in software and/or hardware, integrated in a computer device with application development functionality.
As shown in fig. 4, the form generation method of the present embodiment includes the steps of:
s310, acquiring configuration information of a user aiming at a target service scene on a preset form editing interface, and determining a field scope of each configuration field in the configuration information.
S320, analyzing each configuration field based on the field scope to obtain a corresponding target analysis result.
S330, performing form rendering according to the target analysis result, and subscribing the field verification information and the field update information of each configuration field to obtain the target form in the target service scene.
Particularly, in the first rendering construction process of the renderer on the target form, the control information of each field is automatically used as a unique identifier, and checksum updating information of each field is subscribed. And after each control acquires the subscription notification of the corresponding field, immediately triggering the verification or update operation of the corresponding field. The target form generated by the form generation method provided by the embodiment can be updated with the minimum field granularity, so that the form performance is improved.
S340, triggering checking or updating operation of any field in the target form when acquiring subscription notification of field checking or field updating of any field.
Specifically, the subscription and publishing process of the field update or verification message can refer to the field granularity message subscription and publishing flow diagram shown in fig. 5. Wherein each "control" in fig. 5 represents a field, and the number of controls is only shown as an example. The dispatch registration center is a functional module for realizing automatic message subscription and release in the form engine.
According to the technical scheme, after configuration information aiming at a target service scene on a user preset form editing interface is obtained, a field scope of each configuration field in the configuration information is determined; then, analyzing each configuration field based on each field scope to obtain a corresponding analysis result; finally, performing form rendering according to the analysis result, and subscribing the field check message and the field update message of each configuration field to obtain a target form in the target service scene; when a subscription notification of field verification or field update of any field in the target form is obtained, a verification or update operation of any field can be triggered. The technical scheme of the embodiment of the invention solves the problem that the prior form engine is not friendly to users in complex service scenes, can lead the users to directly carry out the form configuration in the predefined service scenes, has clear and accurate corresponding form analysis logic, reduces errors in the form analysis process to a certain extent, and is more friendly to users. In the form generation method provided by the embodiment, a subscription-publishing mode is adopted on field verification and field updating, and in the first construction process of the renderer, verification sum updating message subscription of each field is carried out, and after corresponding field subscription notification is received, verification or updating operation is triggered immediately. The form performance is improved by updating the minimum unit, so that the form performance can be more flexible in the application of actually generating the form.
Fig. 6 shows a schematic structural diagram of an overall architecture of a form engine according to an embodiment of the present invention. As shown in fig. 6, the form engine framework may be divided into three parts including a base data part, a parse rendering part, and a user interaction part. The basic data part is a form engine developer, and the basic capability of the form engine, namely the data description content corresponding to the JSON Schema, is obtained through carrying out self definition on the low code platform and visualizing basic functional components of the low code platform through drag operation. The base capability may enable persistence of data. JSON Schema: the description form Data structure comprises two parts, namely a UI Schema and a Data Schema. The UI Schema is used for defining and describing control types, layouts and the like, and presents a preset form editing operation interface which can be edited by a user; the Data Schema is used to define and describe information such as field Data sources, field linkages, field checks, etc. The field scope refers to a storage device that describes field data information and UI control information, which data refers to acting on specified fields. The data model can conduct layering processing on data of the form items, abstract models such as field linkage, field verification and field updating, and each model conducts format additional verification and unification on analysis results of corresponding preset functional middleware, and integrity of the field analysis results is maintained. The plug-in configuration of the user can be performed through plug-in configuration on a preset form editing operation interface, and personalized configuration is performed by taking fields as granularity, wherein the personalized configuration comprises custom control, custom data source, verification rule writing, field linkage effect setting and the like. The renderer is used for analyzing the description form data and the Schema formed by the user-defined plug-in configuration to construct a high-performance webpage (Web) form.
Fig. 7 is a schematic structural diagram of a form generating device according to an embodiment of the present invention, where the embodiment is applicable to a case of dynamic form creation, and the device may be implemented by software and/or hardware, and integrated into a computer terminal device with an application development function.
As shown in fig. 7, the form generating apparatus includes: form configuration information acquisition module 410, form configuration information parsing module 420, and form generation module 430.
The form configuration information obtaining module 410 is configured to obtain configuration information of a user on a preset form editing interface for a target service scene, and determine a field scope of each configuration field in the configuration information; the form configuration information parsing module 420 is configured to parse each configuration field based on the field scope, so as to obtain a corresponding target parsing result; and the form generation module 430 is configured to perform form rendering according to the target parsing result, so as to obtain a target form in the target service scene.
According to the technical scheme, after configuration information of a target service scene on a user preset form editing interface is obtained, a field scope of each configuration field in the configuration information is determined; then, analyzing each configuration field based on each field scope to obtain a corresponding analysis result; and finally, performing form rendering according to the analysis result to obtain the target form under the target service scene. The technical scheme of the embodiment of the invention solves the problem that the prior form engine is not friendly to users in complex service scenes, can lead the users to directly carry out the form configuration in the predefined service scenes, has clear and accurate corresponding form analysis logic, reduces errors in the form analysis process to a certain extent, and is more friendly to users.
Optionally, the form configuration information parsing module 420 is specifically configured to:
based on the field scope, sequentially carrying out inter-field service logic analysis on each configuration field through a plurality of preset functional middleware to obtain an initial analysis result;
and carrying out data format verification and unification on the initial analysis result to obtain the target analysis result.
Optionally, the form configuration information parsing module 420 is further configured to:
and analyzing the linkage logic relationship among the configuration fields in each field action domain through a preset field linkage analysis middleware.
Optionally, the form configuration information parsing module 420 is further configured to:
and analyzing the field verification logic of each configuration field according to the linkage logic relationship through a preset field verification analysis middleware.
Optionally, the form configuration information parsing module 420 is further configured to:
and analyzing the field updating logic of each configuration field on the basis of the linkage logic relationship and the field checking logic through a preset field updating middleware.
Optionally, the form configuration information parsing module 420 is further configured to:
respectively inputting the linkage logic relationship, the field verification logic and the field update logic into a corresponding preset logic analysis model;
and carrying out data format verification and unified processing through each preset logic analysis model to obtain the target analysis result.
Optionally, the form configuration information parsing module 420 is further configured to:
and subscribing the field check message and the field update message of each configuration field in the form rendering process.
Optionally, the form generating device further includes a form updating module, configured to:
when the subscription notification of the field verification or the field update of any field in the target form is obtained, triggering the verification or the update operation of any field.
Optionally, the form configuration information obtaining module 410 is specifically configured to:
responding to a form creation instruction of the user, and displaying the preset form editing interface;
determining the target service scene according to the operation of the user on a preset service scene selection control in the preset form editing interface, and displaying a field configuration item associated with the target service scene;
and acquiring configuration information according to the target service scene based on the setting operation of the user on the field configuration item.
The form generating device provided by the embodiment of the invention can execute the form generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Fig. 8 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 8 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 8 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention. The computer device 12 may be any terminal device with computing power, such as an intelligent controller, a server, a mobile phone, and the like.
As shown in FIG. 8, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, commonly referred to as a "hard disk drive"). Although not shown in fig. 8, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown in fig. 8, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing a form generating method provided by the present embodiment, the method including:
acquiring configuration information of a user aiming at a target service scene on a preset form editing interface, and determining a field scope of each configuration field in the configuration information;
analyzing each configuration field based on the field scope to obtain a corresponding target analysis result;
and performing form rendering according to the target analysis result to obtain a target form in the target service scene.
The embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a form generating method as provided by any embodiment of the present invention.
Acquiring configuration information of a user aiming at a target service scene on a preset form editing interface, and determining a field scope of each configuration field in the configuration information;
analyzing each configuration field based on the field scope to obtain a corresponding target analysis result;
and performing form rendering according to the target analysis result to obtain a target form in the target service scene.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (12)
1. A form generation method, the method comprising:
acquiring configuration information of a user aiming at a target service scene on a preset form editing interface, and determining a field scope of each configuration field in the configuration information;
analyzing each configuration field based on the field scope to obtain a corresponding target analysis result;
and performing form rendering according to the target analysis result to obtain a target form in the target service scene.
2. The method of claim 1, wherein the parsing each configuration field based on the field scope to obtain a corresponding target parsing result includes:
based on the field scope, sequentially carrying out inter-field service logic analysis on each configuration field through a plurality of preset functional middleware to obtain an initial analysis result;
and carrying out data format verification and unification on the initial analysis result to obtain the target analysis result.
3. The method according to claim 2, wherein the sequentially performing, by the plurality of preset function middleware, inter-field service logic analysis on the configuration fields includes:
and analyzing the linkage logic relationship among the configuration fields in each field action domain through a preset field linkage analysis middleware.
4. The method of claim 3, wherein the sequentially performing, by the plurality of preset function middleware, inter-field service logic parsing on the configuration fields, further comprises:
and analyzing the field verification logic of each configuration field according to the linkage logic relationship through a preset field verification analysis middleware.
5. The method of claim 4, wherein the sequentially performing, by the plurality of preset function middleware, inter-field service logic parsing on the configuration fields, further comprises:
and analyzing the field updating logic of each configuration field on the basis of the linkage logic relationship and the field checking logic through a preset field updating middleware.
6. The method of claim 5, wherein the performing data format verification and unification on the initial analysis result to obtain the target analysis result comprises:
respectively inputting the linkage logic relationship, the field verification logic and the field update logic into a corresponding preset logic analysis model;
and carrying out data format verification and unified processing through each preset logic analysis model to obtain the target analysis result.
7. The method of claim 1, wherein during the form rendering, the method further comprises:
a field check message and a field update message are subscribed to each of the configuration fields.
8. The method of claim 7, wherein the method further comprises:
when the subscription notification of the field verification or the field update of any field in the target form is obtained, triggering the verification or the update operation of any field.
9. The method according to any one of claims 1-8, wherein the obtaining configuration information for the target service scenario on the user preset form editing interface includes:
responding to a form creation instruction of the user, and displaying the preset form editing interface;
determining the target service scene according to the operation of the user on a preset service scene selection control in the preset form editing interface, and displaying a field configuration item associated with the target service scene;
and acquiring configuration information aiming at the target service scene based on the setting operation of the user on the field configuration item.
10. A form generation apparatus, the apparatus comprising:
the form configuration information acquisition module is used for acquiring configuration information of a user aiming at a target service scene on a preset form editing interface and determining a field scope of each configuration field in the configuration information;
the form configuration information analysis module is used for respectively analyzing each configuration field based on the field scope to obtain a corresponding target analysis result;
and the form generation module is used for performing form rendering according to the target analysis result to obtain a target form in the target service scene.
11. A computer device, the computer device comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the form generation method of any of claims 1-9.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the form generating method according to any of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211643745.0A CN116360735A (en) | 2022-12-20 | 2022-12-20 | Form generation method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211643745.0A CN116360735A (en) | 2022-12-20 | 2022-12-20 | Form generation method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116360735A true CN116360735A (en) | 2023-06-30 |
Family
ID=86938402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211643745.0A Pending CN116360735A (en) | 2022-12-20 | 2022-12-20 | Form generation method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116360735A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116522035A (en) * | 2023-07-03 | 2023-08-01 | 广东长盈科技股份有限公司 | Data collection method and system |
CN117688919A (en) * | 2024-02-04 | 2024-03-12 | 蒲惠智造科技股份有限公司 | Form definition method, device, storage medium and equipment for SRM system |
-
2022
- 2022-12-20 CN CN202211643745.0A patent/CN116360735A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116522035A (en) * | 2023-07-03 | 2023-08-01 | 广东长盈科技股份有限公司 | Data collection method and system |
CN117688919A (en) * | 2024-02-04 | 2024-03-12 | 蒲惠智造科技股份有限公司 | Form definition method, device, storage medium and equipment for SRM system |
CN117688919B (en) * | 2024-02-04 | 2024-05-14 | 蒲惠智造科技股份有限公司 | Form definition method, device, storage medium and equipment for SRM system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002510B (en) | Dialogue processing method, device, equipment and medium | |
JP2024088640A (en) | View on performance of bot system | |
US20180060296A1 (en) | Personal assistant context building | |
US11797273B2 (en) | System and method for enhancing component based development models with auto-wiring | |
CN109300179B (en) | Animation production method, device, terminal and medium | |
US20100037157A1 (en) | Proactive machine-aided mashup construction with implicit and explicit input from user community | |
US9280318B2 (en) | Managing lifecycle of objects | |
WO2023093414A1 (en) | Micro-application development method and apparatus, and device, storage medium and program product | |
CN113900958A (en) | Test case script generation method, system, medium and electronic device | |
CN116360735A (en) | Form generation method, device, equipment and medium | |
JP2023538923A (en) | Techniques for providing explanations about text classification | |
CN113778897A (en) | Automatic test method, device, equipment and storage medium of interface | |
CN113238740A (en) | Code generation method, code generation device, storage medium, and electronic apparatus | |
CN113962597A (en) | Data analysis method and device, electronic equipment and storage medium | |
CN112860247B (en) | Custom generation method, device, equipment and medium of model component | |
CN114594934A (en) | Visual page generation method, device, equipment and medium | |
CN112970011A (en) | Recording pedigrees in query optimization | |
CN113485909B (en) | Test method, test device, computing equipment and medium | |
CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
US20240187501A1 (en) | Techniques for distributed interface component generation | |
US11838294B2 (en) | Method for identifying user, storage medium, and electronic device | |
CN116149632A (en) | Business logic customizing method and device, computer equipment and storage medium | |
CN115098530A (en) | Data acquisition method and device | |
CN114677114A (en) | Approval process generation method and device based on graph dragging | |
CN117015781A (en) | Generating a natural language interface from a graphical user interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |