CN114201718A - Dynamically configurable form instance generation method and device - Google Patents

Dynamically configurable form instance generation method and device Download PDF

Info

Publication number
CN114201718A
CN114201718A CN202111536413.8A CN202111536413A CN114201718A CN 114201718 A CN114201718 A CN 114201718A CN 202111536413 A CN202111536413 A CN 202111536413A CN 114201718 A CN114201718 A CN 114201718A
Authority
CN
China
Prior art keywords
configuration information
service field
determining
model
dynamic
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
Application number
CN202111536413.8A
Other languages
Chinese (zh)
Inventor
钱鹏
邹三军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111536413.8A priority Critical patent/CN114201718A/en
Publication of CN114201718A publication Critical patent/CN114201718A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a dynamically configurable form instance generation method, which can be applied to the field of electronic forms. The method comprises the following steps: acquiring attribute configuration information of a front-end component; obtaining form model configuration information; determining a form model according to the dynamic form main table, the dynamic form service field table and the model node table; determining configuration information of a service field according to the front-end rendering data; determining the data of the service field according to the configuration information of the service field; and creating a dynamic form example according to the service field data, the association binding relationship and the form authority information. The present disclosure also provides a dynamically configurable form instance generation apparatus, device, storage medium and program product.

Description

Dynamically configurable form instance generation method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for generating a dynamically configurable form instance.
Background
Because large commercial banks are large in size, business outlets, application systems and the like are various and complex, organization structures of the banks are different, and approval process steps are different, in order to realize differentiated services between individual and common businesses, a dynamic form which can be dynamically configured and flexibly set for approval of personnel is inevitably needed, so that the efficiency is conveniently improved when the business personnel use the form.
In one example, a business designer cannot design all possible flows at the beginning, and can only make up for the on-line deficiencies by designing a common flow scheme and a flow under wiring, so that many data are not timely recorded into a system for filing, even a large number of off-line paper recorded files are available, and meanwhile, the off-line made-up scheme also brings about the problem of timeliness of approval caused by unsmooth approval and communication, personnel change or business trip and the like.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a dynamically configurable form instance generation method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, there is provided a dynamically configurable form instance generation method, the method comprising:
acquiring attribute configuration information of a front-end component to determine a main table of a dynamic form and a service field table of the dynamic form;
obtaining form model configuration information to determine a model node table and form authority information, wherein the model node table is used for representing the association binding relationship between model nodes and forms;
determining a form model according to the dynamic form master table, the dynamic form service field table and the model node table;
determining configuration information of a service field according to the front-end rendering data;
determining the data of the service field according to the configuration information of the service field; and
and creating a dynamic form example according to the service field data, the association binding relationship and the form authority information.
According to an embodiment of the present disclosure, the front-end component attribute configuration information includes service field attribute configuration information and component attribute configuration information, and the obtaining of the front-end component attribute configuration information to determine the dynamic form main table and the dynamic form service field table includes:
determining a dynamic form main table according to the component attribute configuration information; and
and determining the dynamic form service field table according to the service field attribute configuration information.
According to the embodiment of the disclosure, the front-end component comprises a basic component, a composite component and a custom component, wherein the basic component comprises an input box, a date selection box, a single-selection pull-down, a multiple-selection pull-down, a single-selection click and a multiple-selection click, the composite component comprises a layout component, an object component, a time range selection component, an accessory uploading component and an external data source configuration selection component, and the custom component comprises at least two basic components.
According to the embodiment of the present disclosure, the form authority information includes read-write authority and sequence authority, and the obtaining of the form model configuration information to determine the model node table and the form authority information includes:
determining the association binding relationship between each model node and the form according to the form model configuration information, and generating a model node table;
when the current model node is determined to correspond to only one form, determining the read-write permission of the form; and
and when determining that the current model node corresponds to the multiple forms, determining the read-write permission and the sequence permission of the multiple forms.
According to an embodiment of the present disclosure, the determining the service field data according to the configuration information of the service field includes:
and performing key-value judgment by using recursive logic according to the configuration information of the service field to determine the value of the service field.
According to embodiments of the present disclosure, the form data formats are each saved in either a json format or a yaml format.
A second aspect of the present disclosure provides a dynamically configurable form instance generation apparatus, comprising: the first acquisition module is used for acquiring attribute configuration information of the front-end component so as to determine a main table of the dynamic form and a service field table of the dynamic form;
the second acquisition module is used for acquiring form model configuration information so as to determine a model node table and form authority information, wherein the model node table is used for representing the association binding relationship between model nodes and forms;
the first determining module is used for determining a form model according to the dynamic form main table, the dynamic form service field table and the model node table;
a second determination module. The configuration information used for determining the business field according to the front-end rendering data;
a third determining module, configured to determine data of the service field according to the configuration information of the service field; and
and the instance generation module is used for creating a dynamic form instance according to the service field data, the association binding relationship and the form authority information.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the dynamically configurable method of generating an instance of a form described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described dynamically configurable form instance generation method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above dynamically configurable form instance generation method.
The dynamically configurable form example generation method provided by the embodiment of the disclosure realizes dynamic control on front-end data, enables each type of data to be dynamically configured in front-end model creation, covers multiple service scenes, reduces a DDL operation database and reduces the pressure of the database through multiplexing of a front-end component, dynamically controls the data required by different steps of the existing operation and maintenance scene and the submitted content through multi-form design, shows the operating authority, realizes parallel flow of new and old worksheets through version control, and improves the flexibility and applicability of dynamic forms.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a diagram of application scenarios for dynamically configurable form instance generation methods, apparatus, devices, media, and products, in accordance with embodiments of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a dynamically configurable form instance generation method in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow diagram of another dynamically configurable form instance generation method in accordance with an embodiment of the present disclosure;
FIG. 4 is a block diagram schematically illustrating the structure of a dynamically configurable form instance generation apparatus according to an embodiment of the present disclosure; and
FIG. 5 schematically illustrates a block diagram of an electronic device adapted to implement a dynamically configurable form instance generation method in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The terms appearing in the embodiments of the present disclosure are explained first:
IT operation and maintenance: the method is characterized in that a large commercial bank adopts related methods, means, technologies, systems, flows, documents and the like to comprehensively manage the whole bank organization in order to ensure that all branches, all systems, all application systems and the like of the bank can normally work all day long.
The process comprises the following steps: the workflow refers to the sequence of the activity flow of various items in work, and further defines the workflow of the items through communication and approval among certain personnel, roles, organizations and departments.
Dynamic form: the method is a display technology which can realize the content of each business field and work requirement in a mode of a low code platform through certain simple configuration in the process of operation approval and model creation.
Scheme design: the method is a method for a large commercial bank to react or consult technicians, service experts or superior units for problems or processes of an IT system or service in daily operation and maintenance so as to search for an optimal solution.
At present, the existing form designer has too many field-based control logics, and simultaneously needs a large amount of DDL form building statements and frequent operation of a database, thereby bringing great pressure to the database.
Based on the technical problem, an embodiment of the present disclosure provides a method for confirming a status of an order to be paid based on a time window, where the method includes: acquiring attribute configuration information of a front-end component to determine a main table of a dynamic form and a service field table of the dynamic form; obtaining form model configuration information to determine a model node table and form authority information, wherein the model node table is used for representing the association binding relationship between model nodes and forms; determining a form model according to the dynamic form master table, the dynamic form service field table and the model node table; determining configuration information of a service field according to the front-end rendering data; determining the data of the service field according to the configuration information of the service field; and creating a dynamic form instance according to the service field data, the association binding relationship and the form authority information.
FIG. 1 schematically illustrates a diagram of application scenarios for 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 the scenario diagram shown in fig. 1 is only an example of an application scenario that may be used in the embodiment of the present disclosure to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiment of the present disclosure may not be used in other devices, systems, environments or scenarios. It should be noted that the method and apparatus for generating a dynamically configurable form instance provided by the embodiment of the present disclosure may be used in the fields related to the electronic form field and the financial field, and may also be used in any fields other than the financial field.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a payment platform confirmation payment order status scenario. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104, dynamically configure forms, perform process approval, and the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server (for example only) providing support for data requests initiated by users with the terminal devices 101, 102, 103. The background server may process the received form data submitted by the user, and feed back the result (e.g., the form corresponding to the next step, etc.) to the terminal device.
It should be noted that the dynamically configurable form instance generation method provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the dynamically configurable form instance generation apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The dynamically configurable form instance generation method provided by the embodiments of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the dynamically configurable form instance generation apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The method for generating the dynamically configurable form example of the disclosed embodiment will be described in detail below with reference to fig. 2 to 3 based on the application scenario described in fig. 1.
FIG. 2 schematically illustrates a flow chart of a dynamically configurable form instance generation method according to an embodiment of the disclosure.
As shown in fig. 2, the dynamically configurable form instance generation method of this embodiment includes operations S210 to S260, and the dynamically configurable form instance generation method may be executed by a server or other computing device.
The technical scheme is realized by using a front-end React to design a dynamic front-end component and a back-end based on mysql data design and matching with the processing of the springboot business logic.
In operation S210, front-end component attribute configuration information is obtained to determine a dynamic form main table and a dynamic form service field table.
In one example, the logic implemented by the front end is based on the React component, and the support of the service is realized through the multiplexing component. The business field of the front-end component is determined by setting the corresponding attribute, so that the attribute configuration of the business field is increased for facilitating subsequent report service, and the database space is saved compared with the design scheme that the existing dynamic form builds tables for all the fields. Design rules of all components are acquired and assigned in a recursive traversal mode, the final data format is stored in a json format, and yam1 format data are added for convenience in exporting and viewing. After the user configures the attributes of the components, the back end stores the front end rendering data, writes the rendering data into corresponding model word tables, namely a dynamic form main table and a dynamic form service field table, analyzes the attributes of the forms, stores the configuration information of the service fields in a row form, and stores the service field value range of the components configured with the external data source.
In operation S220, form model configuration information is obtained to determine a model node table and form authority information, where the model node table is used to represent an association binding relationship between model nodes and forms.
In one example, after the configuration of the service fields and the component attributes is completed, corresponding model configuration is performed, and in the model configuration, multi-form configuration is supported, that is, each process node may correspond to multiple forms, and through the association between the forms and the model nodes, corresponding form permissions are configured in each process step. If the current node only has one form, the read-write permission can be configured; if the form is a plurality of forms, read-write permission and sequence permission of the forms need to be configured, and dynamic display of the forms can be performed according to the permission owned by the user when the user creates and processes the example work order. For example, in the process of reimbursement and approval, the applicant fills in an electronic application form and uploads a certificate, a department responsible person approves the application form, and a company approver confirms the application form and the approval record of the department responsible person, that is, different users have different rights for each process step.
In operation S230, a form model is determined according to the dynamic form master table, the dynamic form service field table, and the model node table.
To reduce database interaction and reduce database pressure due to the continued increase in subsequent work orders, the present disclosure employs a master-slave sub-table and data history backup mechanism. And (4) adding two association tables of the binding relationship of the model nodes and the binding relationship of the business fields in the model design through a dynamic form main table. The dynamic form master table is associated with the model master table, and the model node table is associated with the dynamic form table. And configuring the form model according to the configuration information of the user on the front page and storing the form model in a database. Because the simplified yaml data format is clearer than json and a few symbol marks are reduced, when the model is stored, the data of the dynamic form is recursively analyzed, the line data is stored in the database according to the service fields, and other non-service fields are not separately stored.
After the configuration of the form model is completed, operations S240 to S260 are the process of creating the process instance work order.
In operation S240, configuration information of the service field is determined according to the front-end rendering data. In operation S250, service field data is determined according to configuration information of the service field. In operation S260, a dynamic form instance is created according to the service field data, the associated binding relationship, and the form authority information.
In one example, firstly, data verification of a mandatory field is carried out, and due to the fact that multiple parallel approval business logics of a form are unified and the process of processing unified steps by multiple nodes together, version number control of a dynamic form is increased at the moment, and the method is similar to a memory control mechanism of a virtual machine and is guaranteed by obtaining the version number of a submitted form, comparing the version number with the preset dynamic form version number of a database and judging whether the version number is equal or not; and then, storing the data and creating an instance of the bottom layer flow engine, wherein when the data is stored, the business data field in the dynamic form is processed, and a specific value is stored. And finally, calling a subsequent trigger through the asynchronous sub-thread to realize triggering of the service timeliness and the event logic of the process, wherein the trigger uses the information of the corresponding service field, judges according to the stored service field data and determines whether to call the trigger.
The dynamically configurable form example generation method provided by the embodiment of the disclosure realizes dynamic control on front-end data, enables each type of data to be dynamically configured in front-end model creation, covers multiple service scenes, reduces a DDL operation database and reduces the pressure of the database through multiplexing of a front-end component, dynamically controls the data required by different steps of an existing operation and maintenance scene and submitted contents, and realizes parallel flow of new and old work orders through version control, thereby improving the flexibility and applicability of dynamic forms.
FIG. 3 schematically illustrates a flow diagram of another dynamically configurable form instance generation method in accordance with an embodiment of the present disclosure. As shown in fig. 3, operation S310 to operation S350 are included.
In operation S310, front-end component attribute configuration information is obtained to determine a dynamic form main table and a dynamic form service field table.
According to the embodiment of the disclosure, the attribute configuration information of the front-end component comprises service field attribute configuration information and component attribute configuration information, and a dynamic form master table is determined according to the component attribute configuration information; and determining a dynamic form service field table according to the service field attribute configuration information.
In one example, a front end component includes a base component and a composite component. The basic components comprise basic input boxes, date selection boxes, single-choice drop-downs, multi-choice drop-downs, single-choice clicks, multi-choice clicks and the like; the composite component comprises a layout component, an object component, a time range selection component, an attachment uploading component, an external data source configuration selection component and the like; and the user-defined assembly is realized by re-assembling the basic assembly, and the like. The components can be designed into an infinite-layer complete relation, flexible configuration of a user according to actual business requirements is met, the design rules of all the components are acquired and assigned in a recursive traversal mode, the final data format is stored in a json format, and data in a yaml format is added for facilitating export and viewing. The method comprises the steps of obtaining attribute configuration information of a front-end component configured on a front-end display interface by a user through storing front-end rendering data, wherein the attribute configuration information of the front-end component comprises service field attribute configuration information and component attribute configuration information, and determining a dynamic form main table according to the component attribute configuration information; and determining a dynamic form service field table according to the service field attribute configuration information.
In operation S320, the association 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.
In one example, the form authority information includes read-write authority and sequence authority, in form model configuration, according to examination and approval requirements of different steps, a multi-form function is designed, and a model node table is generated by determining an association binding relationship between a model node and a form through multi-form configuration, wherein the association binding relationship can be that one node corresponds to one form or that one node corresponds to a plurality of forms. When the current model node is determined to correspond to only one form, only the read-write permission of the form needs to be determined; when the current model node is determined to correspond to the multiple forms, the read-write permission and the sequence permission of the multiple forms need to be determined. Therefore, when the user creates and processes the example work order, the dynamic display of the form is carried out according to the authority owned by the user.
In operation S330, a form model is determined according to the dynamic form master table, the dynamic form service field table, and the model node table.
The present operation is the same as the technical solution and the technical principle of operation S230 shown in fig. 2, and is not described herein again.
In operation S340, configuration information of the service field is determined according to the front-end rendering data.
The dynamic form provided by the embodiment of the disclosure is added with a version control function, which comprises version control on a form template and version control during form circulation, wherein the version control on the form template ensures parallel circulation of new and old form templates, improves the availability of the form, meets the requirement of service updating and upgrading, and supports multi-version parallel circulation execution; the later ensures that the data displayed to the user is the latest data under the scene of parallel approval of the same form and when multiple nodes jointly process the same flow step. Specifically, before determining the data of the service field, the submitted form version number needs to be verified, and when the form version number is determined to be consistent with the expected form version number of the database, the data currently displayed to the user is represented as the latest data, so that the operation can be performed, and the data of the service field is determined according to the configuration information of the service field. In addition, the edition, release and historical version are adopted to control the version information of the flow form template, and the mode that the code is unique and the id is not unique is adopted, namely the code of the same form template is the same, and the ids of the same template in different versions are different. Only one current dynamic form is ensured to be a release version, the process of the historical version can be continuously executed, and the new process can be executed according to the new dynamic form.
And performing key-value judgment by using recursive logic according to the configuration information of the service field to determine the value of the service field. Because the front-end dynamic form adopts Json object storage of key-value and is designed to be capable of realizing infinite layer nesting relation, the judgment of the key-value is carried out by using recursive logic, and the satisfied conditions are stored for subsequent report requirement design of the work order. And when the form version number is determined to be inconsistent with the expected form version number of the database, if the data representing the current form presented to the user is not the latest data, the user is prohibited from submitting the form, and the form data is refreshed.
In operation S350, a dynamic form instance is created according to the service field data, the associated binding relationship, and the form authority information.
In one example, after the dynamic form instance is created, data needs to be stored and flow circulation control needs to be performed in the circulation process, the data flow can be stored after the data flow is transferred to the corresponding step, the business fields which can be modified can be stored and realized by respectively storing the full data in a JSON format and the business fields in a single-row data format with the finest dimension, the development efficiency of realizing the business function by the back-end code is accelerated, and along with the circulation of the data, when gateway logic and rule logic are processed, the business fields are inquired and used, so that the processing efficiency is improved more obviously.
Based on the dynamically configurable form instance generation method, the disclosure also provides a dynamically configurable form instance generation device. The apparatus will be described in detail below with reference to fig. 4.
FIG. 4 is a block diagram schematically illustrating a structure of a dynamically configurable form instance generating apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the dynamically configurable form instance generation apparatus 400 of this embodiment includes a first obtaining module 410, a second obtaining module 420, a first determining module 430, a second determining module 440, a checking module 450, and an instance generation module 460.
The first obtaining module 410 is used to obtain the front-end component attribute configuration information to determine the dynamic form main table and the dynamic form service field table. In an embodiment, the first obtaining module 410 may be configured to perform the operation S210 described above, which is not described herein again.
The second obtaining module 420 is configured to obtain form model configuration information to determine a model node table and form authority information. In an embodiment, the second obtaining module 420 may be configured to perform the operation S220 described above, which is not described herein again.
The first determining module 430 is configured to determine a form model according to the dynamic form master table, the dynamic form service field table, and the model node table. In an embodiment, the first determining module 430 may be configured to perform the operation S230 described above, which is not described herein again.
The second determining module 440 is configured to determine configuration information of the service field according to the front-end rendering data. In an embodiment, the second determining module 440 may be configured to perform the operation S240 described above, which is not described herein again.
The checking module 450 is configured to determine the data of the service field according to the configuration information of the service field. In an embodiment, the checking module 450 may be configured to perform the operation S250 described above, which is not described herein again.
The instance generating module 460 is configured to create a dynamic form instance according to the service field data, the association binding relationship, and the form authority information. In an embodiment, the instance generating module 460 may be configured to perform the operation S260 described above, which is not described herein again.
According to the embodiment of the present disclosure, any plurality of the first obtaining module 410, the second obtaining module 420, the first determining module 430, the second determining module 440, the checking module 450, and the instance generating module 460 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first obtaining module 410, the second obtaining module 420, the first determining module 430, the second determining module 440, the verifying module 450, and the instance generating module 460 may 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 may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the first obtaining module 410, the second obtaining module 420, the first determining module 430, the second determining module 440, the verifying module 450 and the instance generating module 460 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
FIG. 5 schematically illustrates a block diagram of an electronic device adapted to implement a dynamically configurable form instance generation method in accordance with an embodiment of the present disclosure.
As shown in fig. 5, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that 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 section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the program may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the present disclosure, electronic device 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), 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 the present disclosure, 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. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the dynamically configurable form instance generation method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 501. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 509, and/or installed from the removable medium 511. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A method for generating a dynamically configurable form instance, the method comprising:
acquiring attribute configuration information of a front-end component to determine a main table of a dynamic form and a service field table of the dynamic form;
obtaining form model configuration information to determine a model node table and form authority information, wherein the model node table is used for representing the association binding relationship between model nodes and forms;
determining a form model according to the dynamic form master table, the dynamic form service field table and the model node table;
determining configuration information of a service field according to the front-end rendering data;
determining the data of the service field according to the configuration information of the service field; and
and creating a dynamic form example according to the service field data, the association binding relationship and the form authority information.
2. The method of claim 1, wherein the front-end component attribute configuration information comprises service field attribute configuration information and component attribute configuration information, and wherein obtaining front-end component attribute configuration information to determine the dynamic form master table and the dynamic form service field table comprises:
determining a dynamic form main table according to the component attribute configuration information; and
and determining the dynamic form service field table according to the service field attribute configuration information.
3. The method of claim 2, wherein the front-end component comprises a base component, a composite component and a custom component, wherein the base component comprises an input box, a date selection box, a single-choice drop-down, a multiple-choice drop-down, a single-choice click and a multiple-choice click, wherein the composite component comprises a layout component, an object component, a time range selection component, an attachment upload component and an external data source configuration selection component, and wherein the custom component comprises at least two base components.
4. The method of claim 1, wherein the form authority information includes read-write authority and sequence authority, and wherein obtaining form model configuration information to determine the model node table and the form authority information includes:
determining the association binding relationship between each model node and the form according to the form model configuration information, and generating a model node table;
when the current model node is determined to correspond to only one form, determining the read-write permission of the form; and
and when determining that the current model node corresponds to the multiple forms, determining the read-write permission and the sequence permission of the multiple forms.
5. The method of claim 1, wherein the determining the traffic field data according to the configuration information of the traffic field comprises:
and performing key-value judgment by using recursive logic according to the configuration information of the service field to determine the value of the service field.
6. The method of any of claims 1 to 5, wherein the form data formats are each stored in a json format or a yaml format.
7. A dynamically configurable form instance generation apparatus, comprising:
the first acquisition module is used for acquiring attribute configuration information of the front-end component so as to determine a main table of the dynamic form and a service field table of the dynamic form;
the second acquisition module is used for acquiring form model configuration information so as to determine a model node table and form authority information, wherein the model node table is used for representing the association binding relationship between model nodes and forms;
the first determining module is used for determining a form model according to the dynamic form main table, the dynamic form service field table and the model node table;
a second determination module. The configuration information used for determining the business field according to the front-end rendering data;
the third determining module is used for determining the data of the service field according to the configuration information of the service field; and
and the instance generation module is used for creating a dynamic form instance according to the service field data, the association binding relationship and the form authority information.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202111536413.8A 2021-12-15 2021-12-15 Dynamically configurable form instance generation method and device Pending CN114201718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536413.8A CN114201718A (en) 2021-12-15 2021-12-15 Dynamically configurable form instance generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536413.8A CN114201718A (en) 2021-12-15 2021-12-15 Dynamically configurable form instance generation method and device

Publications (1)

Publication Number Publication Date
CN114201718A true CN114201718A (en) 2022-03-18

Family

ID=80654104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536413.8A Pending CN114201718A (en) 2021-12-15 2021-12-15 Dynamically configurable form instance generation method and device

Country Status (1)

Country Link
CN (1) CN114201718A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309752A (en) * 2022-09-30 2022-11-08 畅捷通信息技术股份有限公司 Multi-tenant dynamic form generation method and device and storage medium
CN116225436A (en) * 2023-03-07 2023-06-06 上海万纬纵横科技有限公司 Full-client low-code dynamic generation interface optimization system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309752A (en) * 2022-09-30 2022-11-08 畅捷通信息技术股份有限公司 Multi-tenant dynamic form generation method and device and storage medium
CN115309752B (en) * 2022-09-30 2023-01-13 畅捷通信息技术股份有限公司 Multi-tenant dynamic form generation method and device and storage medium
CN116225436A (en) * 2023-03-07 2023-06-06 上海万纬纵横科技有限公司 Full-client low-code dynamic generation interface optimization system and method

Similar Documents

Publication Publication Date Title
US10528554B2 (en) User driven business data aggregation and cross mapping framework
US10331765B2 (en) Methods and apparatus for translating forms to native mobile applications
US8539514B2 (en) Workflow integration and portal systems and methods
US8726227B2 (en) Modeling a governance process of establishing a subscription to a deployed service in a governed SOA
US8607192B2 (en) Automating a governance process of creating a new version of a service in a governed SOA
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US8826248B2 (en) Enabling computational process as a dynamic data source for bi reporting systems
US10387816B2 (en) Automating a governance process of optimizing a portfolio of services in a governed SOA
US9513876B2 (en) Access operation with dynamic linking and access of data within plural data sources
CN114201718A (en) Dynamically configurable form instance generation method and device
US20150006584A1 (en) Managing a complex object in a cloud environment
US20120066145A1 (en) Automating A Governance Process Of Reviewing Service Artifacts In A Governed SOA
US20120239703A1 (en) Providing homogeneous views of information collections in heterogeneous information storage sources
US20120066146A1 (en) Automating A Governance Process Of Investigating Service Reuse In A Governed SOA
US20180096301A1 (en) Systems and methods for generating customized reports based on operational stage rules
CN113111632A (en) Visual configuration method, device, equipment and medium for electronic manuscript paper
US20230259994A1 (en) Reference-based software application blueprint creation
US20220035606A1 (en) System and method for tailoring a customizer for integration process modeling visual element to a domain specific language for business integrations
CN114253922A (en) Resource directory management method, resource management method, device, equipment and medium
US20180046971A1 (en) Determining a non-optimized inventory system
CN111949259A (en) Risk decision configuration method, system, electronic equipment and storage medium
US10147063B2 (en) Transforming project management representations into business process representations
Ferrua The “Delta” Case: New AWS Data Platform Implementation
JP7444935B1 (en) Program, information processing device, and method
CN116151774A (en) Visual management method and system for automatically generating protocol template and electronic equipment

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