Dynamically configurable form instance generation method and device
By dynamically configuring the form instance generation method, the complexity of approval process and database pressure of large commercial banks are solved, dynamic control of front-end data and multi-business scenario coverage are achieved, and the flexibility and applicability of forms are improved.
Patent Information
- Application Number
- CN202111536413.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2041-12-15
AI Technical Summary
The approval process steps of large commercial banks vary greatly. The existing form designers require a large number of DDL table building statements to frequently operate the database, resulting in high pressure on the database, data not being entered in time and offline paper records, resulting in timeliness of approval.
Provide a dynamically configurable form instance generation method. By obtaining front-end component attribute configuration information and form model configuration information, determining the dynamic form main table and business field table, combining model node table and form permission information, creating dynamic form instances to realize Dynamic control of front-end data reduces database pressure and improves form flexibility and applicability.
It realizes dynamic control of front-end data, covers multiple business scenarios, reduces DDL operation database, and improves the flexibility and applicability of dynamic forms through multi-form design and version control, solving the problem of approval timeliness and data synchronization.
Smart Images

Figure CN114201718B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of electronic form technology, and in particular to a method, apparatus, device, medium and product for generating a dynamically configurable form instance. Background Art
[0002] Due to the large size of large commercial banks, their numerous and complex business outlets and application systems, the organizational structures of each bank are different, and the approval process steps are also very different. In order to achieve differentiated services between individual and common businesses, there must be a dynamic form that can be dynamically configured and flexibly set up for personnel approval, so as to facilitate efficiency improvement when used by business personnel.
[0003] In one example, business designers are unable to design all possible processes at the beginning and can only design common process solutions and use offline processes to make up for the deficiencies in the online process. This approach will also result in a lot of data not being entered into the system archive in a timely manner, and there will even be a large number of offline paper records. At the same time, offline compensation plans will also bring about approval timeliness issues caused by poor communication, personnel changes or business trips. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a method, apparatus, device, medium and program product for generating a dynamically configurable form instance.
[0005] According to a first aspect of the present disclosure, a dynamically configurable form instance generation method is provided, the method comprising:
[0006] Obtain the front-end component attribute configuration information to determine the dynamic form main table and dynamic form business field table;
[0007] Acquire form model configuration information to determine a model node table and form permission information, wherein the model node table is used to characterize an association binding relationship between a model node and a form;
[0008] Determine a form model according to the dynamic form main table, the dynamic form business field table and the model node table;
[0009] Determine the configuration information of the business field based on the front-end rendering data;
[0010] Determining business field data according to the configuration information of the business field; and
[0011] A dynamic form instance is created according to the business field data, the associated binding relationship and the form permission information.
[0012] According to an embodiment of the present disclosure, the front-end component attribute configuration information includes business field attribute configuration information and component attribute configuration information, and the acquiring of the front-end component attribute configuration information to determine the dynamic form main table and the dynamic form business field table includes:
[0013] Determine the dynamic form main table according to the component attribute configuration information; and
[0014] The dynamic form business field table is determined according to the business field attribute configuration information.
[0015] According to an embodiment of the present disclosure, the front-end component includes a basic component, a composite component and a custom component. The basic component includes an input box, a date selection box, a single-select drop-down, a multiple-select drop-down, a single-select click and a multiple-select click. The composite component includes a layout component, an object component, a time range selection component, an attachment upload component and an external data source configuration selection component. The custom component includes at least two basic components.
[0016] According to an embodiment of the present disclosure, the form permission information includes read and write permissions and sequence permissions, and the acquiring of form model configuration information to determine the model node table and form permission information includes:
[0017] Determine the association and binding relationship between each model node and the form according to the form model configuration information, and generate a model node table;
[0018] When it is determined that the current model node corresponds to only one form, determining the read and write permissions of the form; and
[0019] When it is determined that the current model node corresponds to multiple forms, the read and write permissions and sequence permissions of the multiple forms are determined.
[0020] According to an embodiment of the present disclosure, determining the business field data according to the configuration information of the business field includes:
[0021] A recursive logic is used to perform key-value judgment according to the configuration information of the business field to determine the value of the business field.
[0022] According to an embodiment of the present disclosure, the form data format is saved in json format or yaml format.
[0023] A second aspect of the present disclosure provides a dynamically configurable form instance generation device, comprising: a first acquisition module, used to acquire front-end component attribute configuration information to determine a dynamic form main table and a dynamic form business field table;
[0024] A second acquisition module is used to acquire form model configuration information to determine a model node table and form permission information, wherein the model node table is used to represent an association and binding relationship between a model node and a form;
[0025] A first determination module, used to determine a form model according to the dynamic form main table, the dynamic form business field table and the model node table;
[0026] The second determination module is used to determine the configuration information of the business field according to the front-end rendering data;
[0027] a third determining module, configured to determine the business field data according to the configuration information of the business field; and
[0028] The instance generation module is used to create a dynamic form instance according to the business field data, the associated binding relationship and the form permission information.
[0029] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned dynamically configurable form instance generation method.
[0030] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned dynamically configurable form instance generation method.
[0031] A fifth aspect of the present disclosure further provides a computer program product, including a computer program, which implements the above-mentioned dynamically configurable form instance generation method when executed by a processor.
[0032] Through the dynamically configurable form instance generation method provided by the embodiment of the present disclosure, dynamic control of front-end data is achieved, so that each type of data can be dynamically configured in the front-end model creation, covering a variety of business scenarios. Through the reuse of front-end components, DDL operations on the database are reduced, reducing the pressure on the database. Through multi-form design, the data and submitted content required for different steps of the existing operation and maintenance scenarios are dynamically controlled for visibility and operation permissions. Through version control, parallel circulation of new and old work orders is achieved, improving the flexibility and applicability of dynamic forms. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0034] Figure 1 The application scenario diagram schematically shows the dynamically configurable form instance generation method, apparatus, device, medium and product according to the embodiment of the present disclosure;
[0035] Figure 2A flowchart of a method for generating a dynamically configurable form instance according to an embodiment of the present disclosure is schematically shown;
[0036] Figure 3 A flowchart schematically shows another dynamically configurable form instance generation method according to an embodiment of the present disclosure;
[0037] Figure 4 A structural block diagram schematically shows a dynamically configurable form instance generating device according to an embodiment of the present disclosure; and
[0038] Figure 5 A block diagram of an electronic device suitable for implementing a dynamically configurable form instance generation method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0039] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0040] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0041] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0042] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0043] First, the terms that appear in the embodiments of the present disclosure are explained:
[0044] IT operation and maintenance: refers to the comprehensive management of the entire banking organization by large commercial banks using relevant methods, means, technologies, systems, processes and documents to ensure that all bank outlets, systems, application systems, etc. can operate normally around the clock.
[0045] Process: refers to the order of the flow of activities of various matters in the work, through the communication and approval between certain personnel, roles, organizations and departments, so as to clarify the workflow of the matters.
[0046] Dynamic form: refers to a display technology that can realize various business fields and work requirements through certain simple configurations in the process of operation approval and model creation in the form of a low-code platform.
[0047] Solution design: refers to a method in which large commercial banks, in daily operations and maintenance, respond to or consult with technical personnel, business experts or superior units regarding problems or processes in IT systems or businesses in order to seek the best solution.
[0048] Currently, existing form designers have too much field-based control logic and require a large number of DDL table creation statements. Frequent database operations put great pressure on the database.
[0049] Based on the above technical problems, an embodiment of the present disclosure provides a method for confirming the status of an order to be paid based on a time window, the method comprising: obtaining front-end component attribute configuration information to determine a dynamic form main table and a dynamic form business field table; obtaining form model configuration information to determine a model node table and form permission information, the model node table being used to characterize the association and binding relationship between a model node and a form; determining a form model according to the dynamic form main table, the dynamic form business field table and the model node table; determining the configuration information of the business field according to the front-end rendering data; determining the business field data according to the configuration information of the business field; and creating a dynamic form instance according to the business field data, the association and binding relationship and the form permission information.
[0050] Figure 1 The following schematically illustrates an application scenario diagram of a dynamically configurable form instance generation method, apparatus, device, medium, and product according to an embodiment of the present disclosure. It should be noted that: Figure 1The scene diagram shown is only an example of an application scenario that can be used in the embodiments of the present disclosure, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. It should be noted that the dynamically configurable form instance generation method and device provided by the embodiments of the present disclosure can be used in the electronic form field, related aspects of the financial field, and can also be used in any field other than the financial field. The application field of the dynamically configurable form instance generation method and device provided by the embodiments of the present disclosure is not limited.
[0051] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a payment platform confirming a payment order status scenario. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0052] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104, dynamically configure forms, and perform process approval and other operations. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0053] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0054] The server 105 may be a server that provides various services, such as a backend server (only an example) that provides support for data requests initiated by users using the terminal devices 101, 102, and 103. The backend server may process the form data submitted by the received user and feed back the result (such as the form corresponding to the next step, etc.) to the terminal device.
[0055] It should be noted that the dynamically configurable form instance generation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the dynamically configurable form instance generation device provided in the embodiment of the present disclosure can generally be set in the server 105. The dynamically configurable form instance generation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the dynamically configurable form instance generation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0056] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0057] The following will be based on Figure 1 The application scenario described by Figure 2-Figure 3 The dynamically configurable form instance generation method of the disclosed embodiment is described in detail.
[0058] Figure 2 A flowchart of a method for generating a dynamically configurable form instance according to an embodiment of the present disclosure is schematically shown.
[0059] like Figure 2 As shown, the dynamically configurable form instance generation method of this embodiment includes operations S210 to S260, and the dynamically configurable form instance generation method can be executed by a server or other computing devices.
[0060] The present invention realizes the technical solution of the present invention by using front-end React to design dynamic front-end components and back-end design based on MySQL data, and cooperating with the processing of springboot's business logic.
[0061] In operation S210, front-end component attribute configuration information is obtained to determine a dynamic form main table and a dynamic form business field table.
[0062] In one example, the logic implemented by the front-end is based on React components, and business support is achieved by reusing components. The business fields of the front-end components are determined by setting the corresponding attributes. In order to facilitate subsequent reporting services, the attribute configuration of the business fields is added, which saves database space compared to the existing dynamic form design that creates tables for all fields. The design rules of all components are obtained and assigned by recursive traversal. The final data format is saved in json format. In order to facilitate export and viewing, yam1 format data is also added. After the user configures the properties of the component, the back-end saves the front-end rendering data and writes it into the corresponding model word table, that is, the dynamic form main table and the dynamic form business field table, and analyzes the form attributes, saves the configuration information of the business field in the form of rows, and saves the business field value range for components configured with external data sources.
[0063] In operation S220, form model configuration information is obtained to determine a model node table and form permission information. The model node table is used to represent the association and binding relationship between the model node and the form.
[0064] In an example, after the business fields and component attributes are configured, the corresponding model configuration is performed. In the model configuration, multi-form configuration is supported, that is, each process node can correspond to multiple forms. Through the association between the form and the model node, the corresponding form permissions are configured in each process step. If the current node has only one form, you can configure read and write permissions; if there are multiple forms, you need to configure the read and write permissions and sequential permissions of multiple forms. When users create and process instance work orders, the forms can be dynamically displayed according to the permissions the users have. For example, in the reimbursement approval process, the applicant fills out the electronic application form and uploads the voucher, the department head approves the application form, and the company approver confirms the application form and the approval record of the department head. That is, for each process step, different users have different permissions.
[0065] In operation S230, a form model is determined according to the dynamic form main table, the dynamic form business field table, and the model node table.
[0066] In order to reduce database interactions and reduce database pressure caused by the continuous increase in subsequent work orders, the present disclosure adopts a master-slave sub-table and data history backup mechanism. In the model design, a dynamic form main table is used, and then two associated tables of model node binding relationship and business field binding relationship are added. The dynamic form main table is associated with the model main table, and the model node table is associated with the dynamic form table. The form model is configured according to the user's configuration information on the front-end page and saved in the database. Because the simplified yaml data format is clearer than json and has fewer symbolic identifiers, when storing the model, the data of the dynamic form is recursively parsed, and the row data is stored in the database according to the business field, and other non-business fields are not stored separately.
[0067] After the form model configuration is completed, operations S240 to S260 are the process of creating a process instance work order.
[0068] In operation S240, the configuration information of the business field is determined according to the front-end rendering data. In operation S250, the business field data is determined according to the configuration information of the business field. In operation S260, a dynamic form instance is created according to the business field data, the associated binding relationship and the form permission information.
[0069] In an example, first, the data of the required fields is verified. Due to the business logic of multiple parallel approvals in a unified form, and the process of multiple nodes jointly processing the unified steps, the version number control of the dynamic form will be added at this time, which is similar to the memory control mechanism of the virtual machine. By obtaining the version number of the submitted form and comparing it with the preset dynamic form version number in the database, it is guaranteed to be equal; then, the data is saved and the instance of the underlying process engine is created. When saving data, the business data fields in the dynamic form will be processed and the specific value will be saved. Finally, the subsequent triggers are called through the asynchronous child thread to realize the triggering of the business timeliness and event logic of the process. The corresponding business field information will be used in the trigger, and the judgment will be made based on the saved business field data to determine whether to call the trigger.
[0070] Through the dynamically configurable form instance generation method provided by the embodiment of the present disclosure, dynamic control of front-end data is achieved, so that each type of data can be dynamically configured in the front-end model creation, covering a variety of business scenarios. Through the reuse of front-end components, DDL operations on the database are reduced, reducing the pressure on the database. Through multi-form design, the data and submitted content required for different steps of the existing operation and maintenance scenarios are dynamically controlled for visibility and operation permissions. Through version control, the parallel flow of new and old work orders is achieved, improving the flexibility and applicability of dynamic forms.
[0071] Figure 3The flowchart of another dynamically configurable form instance generation method according to an embodiment of the present disclosure is schematically shown. Figure 3 As shown, operations S310 to S350 are included.
[0072] In operation S310, front-end component attribute configuration information is obtained to determine a dynamic form main table and a dynamic form business field table.
[0073] According to an embodiment of the present disclosure, the front-end component attribute configuration information includes business field attribute configuration information and component attribute configuration information, and the dynamic form main table is determined according to the component attribute configuration information; and the dynamic form business field table is determined according to the business field attribute configuration information.
[0074] In one example, the front-end components include basic components and composite components. Basic components include basic input boxes, date selection boxes, single-select drop-downs, multiple-select drop-downs, single-select clicks, multiple-select clicks, etc.; composite components include layout components, object components, time range selection components, attachment uploads, external data source configuration selection components, etc.; custom components are realized by reassembling basic components. Components can be designed as an infinite layer of full-set relationships to meet users' flexible configuration according to actual business needs. The design rules of all components are obtained and assigned by recursive traversal. The final data format is saved in json format. In order to facilitate export and viewing, yaml format data is also added. The front-end component attribute configuration information configured by the user in the front-end display interface is obtained by saving the front-end rendering data. The front-end component attribute configuration information includes business field attribute configuration information and component attribute configuration information. The dynamic form main table is determined according to the component attribute configuration information; and the dynamic form business field table is determined according to the business field attribute configuration information.
[0075] In operation S320, the association and binding relationship between each model node and the form is determined according to the form model configuration information, and a model node table is generated.
[0076] In one example, form permission information includes read-write permission and sequential permission. In the form model configuration, a multi-form function is designed according to the approval requirements of different steps. The model node table is generated by determining the association and binding relationship between the model node and the form through the multi-form configuration. The association and binding relationship can be one node corresponding to one form or one node corresponding to multiple forms. When it is determined that the current model node corresponds to only one form, it is only necessary to determine the read-write permission of the form; when it is determined that the current model node corresponds to multiple forms, it is necessary to determine the read-write permission and sequential permission of the multiple forms. Therefore, when users create and process instance work orders, the form is dynamically displayed according to the permissions they have.
[0077] In operation S330, a form model is determined according to the dynamic form main table, the dynamic form business field table, and the model node table.
[0078] This operation and Figure 2 The technical solution and technical principle of operation S230 are the same as those shown, and will not be repeated here.
[0079] In operation S340, configuration information of the business field is determined according to the front-end rendering data.
[0080] The dynamic form provided by the embodiment of the present disclosure adds a version control function, including version control of the form template and version control during form circulation. The former ensures the parallel circulation of the old and new form templates, improves the availability of the form, meets the needs of business updates and upgrades, and supports the parallel circulation and execution of multiple versions; the latter ensures that the data displayed to the user is the latest data in the scenario of parallel approval of the same form and when multiple nodes jointly process the same process step. Specifically, before determining the business field data, it is necessary to verify the submitted form version number. When it is determined that the form version number is consistent with the expected form version number of the database, it indicates that the data currently displayed to the user is the latest data, and the operation can be performed. The business field data is determined according to the configuration information of the business field. In addition, the embodiment of the present disclosure also uses editing, publishing and historical versions to control the version information of the process form template, through the method of unique coding and non-unique id, that is, the same form template has the same coding, and different versions of the same template have different ids. It is ensured that there is only one published version of the current dynamic form, the process of the historical version can continue to be executed, and the new process will be executed according to the new dynamic form.
[0081] According to the configuration information of the business field, recursive logic is used to perform key-value judgment to determine the value of the business field. Since the front-end dynamic form uses the key-value Json object to save and is designed to have infinite nested relationships, recursive logic is used here to judge the key-value and store the ones that meet the conditions for the subsequent work order report requirements design. When it is determined that the form version number is inconsistent with the expected form version number of the database, it means that the data currently displayed to the user is not the latest data, then the user is prohibited from submitting the form and the form data is refreshed.
[0082] In operation S350, a dynamic form instance is created according to the business field data, the associated binding relationship and the form permission information.
[0083] In an example, after a dynamic form instance is created, data needs to be saved and process flow controlled during the flow. After the data flows to the corresponding step, the modifiable business fields will be saved. This is achieved by saving the full data in JSON format and the business fields in the finest dimensional single-line data format, which speeds up the development efficiency of the back-end code to implement business functions. In addition, as data flows, the processing efficiency of querying and using business fields is more significantly improved when processing gateway logic and rule logic.
[0084] Based on the above-mentioned dynamically configurable form instance generation method, the present disclosure also provides a dynamically configurable form instance generation device. Figure 4 The device is described in detail.
[0085] Figure 4 The structure block diagram of the dynamically configurable form instance generating device according to the embodiment of the present disclosure is schematically shown.
[0086] like Figure 4 As shown, the dynamically configurable form instance generating device 400 of this embodiment includes a first acquisition module 410 , a second acquisition module 420 , a first determination module 430 , a second determination module 440 , a verification module 450 and an instance generating module 460 .
[0087] The first acquisition module 410 is used to acquire the front-end component attribute configuration information to determine the dynamic form main table and the dynamic form business field table. In one embodiment, the first acquisition module 410 can be used to perform the operation S210 described above, which will not be described in detail here.
[0088] The second acquisition module 420 is used to acquire form model configuration information to determine the model node table and form permission information. In one embodiment, the second acquisition module 420 can be used to perform the operation S220 described above, which will not be repeated here.
[0089] The first determination module 430 is used to determine the form model according to the dynamic form main table, the dynamic form business field table and the model node table. In one embodiment, the first determination module 430 can be used to perform the operation S230 described above, which will not be repeated here.
[0090] The second determination module 440 is used to determine the configuration information of the business field according to the front-end rendering data. In one embodiment, the second determination module 440 can be used to perform the operation S240 described above, which will not be repeated here.
[0091] The verification module 450 is used to determine the service field data according to the configuration information of the service field. In one embodiment, the verification module 450 can be used to perform the operation S250 described above, which will not be described in detail here.
[0092] The instance generation module 460 is used to create a dynamic form instance according to the business field data, the associated binding relationship and the form permission information. In one embodiment, the instance generation module 460 can be used to perform the operation S260 described above, which will not be described in detail here.
[0093] According to an embodiment of the present disclosure, any multiple modules of the first acquisition module 410, the second acquisition module 420, the first determination module 430, the second determination module 440, the verification module 450 and the instance generation module 460 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 410, the second acquisition module 420, the first determination module 430, the second determination module 440, the verification module 450 and the instance generation module 460 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the first acquisition module 410, the second acquisition module 420, the first determination module 430, the second determination module 440, the verification module 450 and the instance generation module 460 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be performed.
[0094] Figure 5 A block diagram of an electronic device suitable for implementing a dynamically configurable form instance generation method according to an embodiment of the present disclosure is schematically shown.
[0095] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0096] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0097] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the I / O interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.
[0098] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0099] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0100] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the dynamically configurable form instance generation method provided by the embodiment of the present disclosure.
[0101] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0102] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0103] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0104] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0105] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flow chart, and the combination of the boxes in the block diagram 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.
[0106] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0107] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A dynamically configurable form instance generation method, characterized in that: The method comprises: Obtain the front-end component attribute configuration information to determine the dynamic form main table and dynamic form business field table; Acquire form model configuration information to determine a model node table and form permission information, wherein the model node table is used to characterize an association binding relationship between a model node and a form; Determine a form model according to the dynamic form main table, the dynamic form business field table and the model node table; Determine the configuration information of the business field based on the front-end rendering data; Determining business field data according to the configuration information of the business field; and A dynamic form instance is created according to the business field data, the associated binding relationship and the form permission information.
2. The method according to claim 1, characterized in that The front-end component attribute configuration information includes business field attribute configuration information and component attribute configuration information. The acquiring of the front-end component attribute configuration information to determine the dynamic form main table and the dynamic form business field table includes: Determine the dynamic form main table according to the component attribute configuration information; and The dynamic form business field table is determined according to the business field attribute configuration information.
3. The method according to claim 2, characterized in that The front-end components include basic components, composite components and custom components. The basic components include input boxes, date selection boxes, single-select drop-down boxes, multiple-select drop-down boxes, single-select clicks and multiple-select clicks. The composite components include layout components, object components, time range selection components, attachment upload components and external data source configuration selection components. The custom components include at least two basic components.
4. The method according to claim 1, characterized in that: The form permission information includes read and write permission and sequence permission, and the obtaining of form model configuration information to determine the model node table and form permission information includes: Determine the association and binding relationship between each model node and the form according to the form model configuration information, and generate a model node table; When it is determined that the current model node corresponds to only one form, determining the read and write permissions of the form; and When it is determined that the current model node corresponds to multiple forms, the read and write permissions and sequence permissions of the multiple forms are determined.
5. The method according to claim 1, characterized in that The determining of the business field data according to the configuration information of the business field comprises: A recursive logic is used to perform key-value judgment according to the configuration information of the business field to determine the value of the business field.
6. The method according to any one of claims 1 to 5, characterized in that: The form data format is saved in JSON or YAML format.
7. A dynamically configurable form instance generating device, comprising: The first acquisition module is used to acquire the front-end component attribute configuration information to determine the dynamic form main table and the dynamic form business field table; A second acquisition module is used to acquire form model configuration information to determine a model node table and form permission information, wherein the model node table is used to represent an association and binding relationship between a model node and a form; A first determination module, configured to determine a form model according to the dynamic form main table, the dynamic form business field table and the model node table; A second determination module is used to determine configuration information of a business field according to front-end rendering data; A third determining module determines the business field data according to the configuration information of the business field; as well as The instance generation module is used to create a dynamic form instance according to the business field data, the associated binding relationship and the form permission information.
8. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Process approval processing method and device, electronic equipment and storage medium
CN111598533A
Dynamic form implementation method based on MYSQL and MONGODB
CN112286999A
