A form processing method, apparatus, device and medium
By using two form designers in a collaborative design process, the challenges of collaboration between business and technical personnel in form development were solved, enabling resource integration among different roles within the enterprise and improving form processing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR GENERSOFT CO LTD
- Filing Date
- 2022-11-14
- Publication Date
- 2026-05-26
Smart Images

Figure CN115712424B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and in particular to a form processing method, apparatus, device, and medium. Background Technology
[0002] In daily work, various functional modules are typically used, such as leave applications and financial settlements. Within these modules, users usually need to fill out corresponding forms when performing certain operations. Since the forms differ between different functional modules, the system needs to create different forms for each module.
[0003] During form creation, business personnel often lack sufficient development skills, while technical personnel have limited understanding of various business scenarios. This makes collaboration difficult when creating different forms, further complicating form processing. Summary of the Invention
[0004] This specification provides one or more embodiments of a form processing method, apparatus, device, and medium to solve the technical problems raised in the background art.
[0005] One or more embodiments of this specification employ the following technical solutions:
[0006] This specification provides a form processing method according to one or more embodiments, including:
[0007] When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface;
[0008] If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0009] The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
[0010] This specification provides a form processing apparatus according to one or more embodiments, the apparatus comprising:
[0011] The new content determination unit determines the new content of the specified form when designing the specified form through the first form designer. The first form designer completes the form processing through a visual interface.
[0012] If the designer changes the unit and determines that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0013] The form processing unit determines the specified code instruction corresponding to the second form designer based on the newly added content, and processes the specified form according to the specified code instruction.
[0014] This specification provides a form processing device according to one or more embodiments, comprising:
[0015] At least one processor; and,
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to:
[0018] When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface;
[0019] If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0020] The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
[0021] This specification provides one or more embodiments of a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0022] When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface;
[0023] If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0024] The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
[0025] The above-described at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:
[0026] This specification provides a collaborative form development method for different development roles, suitable for business personnel and technical personnel to collaboratively develop form interfaces around the same application scenario. In enterprise development processes, business personnel often lack sufficient development skills, while technical personnel have limited understanding of various business scenarios. This specification proposes a collaborative development method where business personnel implement the basic layout and functions of the form according to the business scenario, and then technical personnel expand on complex business logic. This enables various development roles within an enterprise to collaboratively develop the same form, effectively integrating enterprise development resources and reducing the limitations of form designers on application scenarios and development personnel. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0028] Figure 1 A flowchart illustrating a form processing method provided in one or more embodiments of this specification;
[0029] Figure 2 This is a schematic diagram of the overall structure of form processing provided in one or more embodiments of this specification;
[0030] Figure 3 A schematic diagram of the structure of a form processing device provided in one or more embodiments of this specification;
[0031] Figure 4 This is a schematic diagram of the structure of a form processing device provided for one or more embodiments of this specification. Detailed Implementation
[0032] This specification provides a form processing method, apparatus, device, and medium through its embodiments.
[0033] In the field of form development, form designers can be broadly categorized into two types: those geared towards business users and those geared towards technical personnel. Business-oriented form designers are typically simple to use and easy to learn, requiring minimal development knowledge to operate, and can implement basic form filling functions. Technical personnel-oriented form designers, on the other hand, have a higher barrier to entry, requiring users to possess certain development skills and undergo some training. They are primarily aimed at technical personnel, limiting the pool of people who can participate in their development.
[0034] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.
[0035] Figure 1 This diagram illustrates a form processing method provided in one or more embodiments of this specification. This process can be executed by a form processing system. Certain input parameters or intermediate results in the process can be manually adjusted to help improve accuracy.
[0036] The method flow steps of the embodiments in this specification are as follows:
[0037] S102, when designing a specified form through the first form designer, the newly added content of the specified form is determined, and the first form designer completes the form processing through a visual interface.
[0038] In the embodiments described in this specification, the first form designer can complete form processing through a visual interface. The first form designer is simple to operate and can be used by most users. In practical applications, the first form designer can be used by business personnel to process forms, and form processing can include operations such as form creation, adding content, and modifying forms.
[0039] In the embodiments of this specification, a specified form is designed using a first form designer, indicating that the content involved in the design of the specified form can be completed by the first form designer.
[0040] Furthermore, in the embodiments of this specification, before designing a specified form using the first form designer, the design content of the specified form can be determined during the design process. If the design content falls within the processing range of the first form designer, the specified form is designed using the first form designer; if the design content falls within the processing range of the second form designer, the specified form is designed using the second form designer, which completes the form processing through specific code instructions. Additionally, if some design content falls within the processing range of the first form designer, the corresponding portion of the form is designed using the first form designer, while the remainder is designed using the second form designer.
[0041] In the embodiments of this specification, when designing the specified form using the first form designer, the first form metadata can be created using the first form designer; then, the form layout structure and field information corresponding to the design content are set using the first form metadata to generate the form page of the specified form.
[0042] It should be noted that the first form metadata can be a modeled description of a specific form page based on a unified model system. At the same time, the second form designer can also create form metadata, which can also be a modeled description of a specific form page based on a unified model system. That is, the first form designer and the second form designer can share the same model system. Both the first form designer and the second form designer can provide tools for visually developing form pages.
[0043] It should be noted that the first form designer and the second form designer can be existing form designers. The first form designer can be a form designer focused on business personnel, while the second form designer can be a form designer focused on technical personnel. However, the first form designer and the second form designer can share the same model system. That is, a form designed and processed by the first form designer can be opened by the second form designer, and a form designed and processed by the second form designer can also be opened by the first form designer.
[0044] S104, if it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0045] In the embodiments described in this specification, the second form designer can support more functions. If the first form designer cannot process newly added content, the specified form to be processed can be processed through the second form designer. Multiple code instructions can be preset in the second form designer to assist users in completing form processing. Furthermore, the second form designer can also support the input of code instructions to complete functions beyond the preset code instructions, which requires some development experience.
[0046] This shows that the first form designer is simple to operate and can complete some form processing functions. If the task exceeds the capabilities of the first form designer, the second form designer can be used to process the form more quickly. Although the second form designer can be used directly, it is more complex to operate and may take longer if you are not familiar with it. In addition, the first form designer can also complete a large number of form processing tasks. Using both together can increase the efficiency of form processing.
[0047] S106, determine the specified code instruction corresponding to the second form designer based on the newly added content, and process the specified form according to the specified code instruction.
[0048] In the embodiments of this specification, when processing the specified form according to the specified code instructions, a second form metadata can be created through the specified code instructions of the second form designer; then, the form layout structure and field information corresponding to the newly added content can be set through the second form metadata to generate the form page of the specified form.
[0049] Furthermore, the specified form in this embodiment can be a leave application form. When designing the leave application form, the design content of the leave application form can be determined first. If the design content of the leave application form is within the processing range of the first form designer, the leave application form is designed through the first form designer. If the leave application form has new design content that exceeds the processing range of the first form designer, the specified form is opened through the second form designer. Then, the leave application form code instruction corresponding to the second form designer is determined according to the new content, and the leave application form is processed according to the leave application form code instruction.
[0050] In the embodiments of this specification, when designing the leave application form using the first form designer, the first form designer can be used to create leave form metadata related to the leave application business scenario; then, the leave form metadata can be used to set the form layout structure and field information corresponding to the design content of the leave application form, so as to generate the form page of the leave application form.
[0051] It should be noted that the embodiments in this specification disclose a collaborative form development method for different development roles, suitable for business personnel and technical personnel to collaboratively develop form interfaces around the same application scenario. In enterprise development processes, business personnel often lack sufficient development skills, while technical personnel have limited understanding of various business scenarios. The embodiments in this specification propose a collaborative development method that allows business personnel to implement the basic layout and functions of the form according to the business scenario, and then technical personnel to expand on complex business logic.
[0052] It should be noted that the embodiments in this specification can solve the problem of difficulty in collaboration between business personnel and technical personnel when developing forms. The flexibility and ease of use of a form designer are generally negatively correlated. The higher the flexibility of the form designer, the lower the ease of use, resulting in a higher learning curve and making it more difficult for business personnel without an IT background to use. Conversely, higher ease of use comes at the cost of sacrificing more flexibility, thus reducing the designer's scalability. With the same form designer, if the flexibility is high, business personnel with weaker development skills require significant training, and most implementations will need to be done by technical personnel. This increases development time and costs during requirement transmission, and there is a possibility of inaccurate requirement transmission. Furthermore, limited by the resources of technical personnel, it is impossible to fully utilize the company's development resources. If the ease of use of the form designer is high, the complexity of the form's business logic is limited by the richness of the tool's built-in components. Typically, the tool cannot fully cover all the company's personalized business logic needs. If a requirement is not supported by the built-in components, the insufficient flexibility of the form designer cannot be addressed through extended development, leaving the company to rely on platform vendor support. Therefore, this is severely limited by the vendor's support and implementation time. This specification proposes a collaborative development method that provides two form designers for the same form: one with high flexibility and the other with high ease of use, thereby solving the aforementioned problems.
[0053] The greatest advantage of the embodiments in this specification is that it supports collaborative development of the same form by various development roles within an enterprise, which can effectively integrate enterprise development resources and reduce the limitations of the form designer on application scenarios and developers.
[0054] It should be noted that the embodiments in this specification propose a method for supporting collaborative form development by different development roles. The method is based on a unified model system and provides multiple form designers for the same form. The unified model system defines the structure of form metadata; the form metadata is a modeled description of a specific form page based on the unified model system; the form designer provides tools for visually developing form pages. A schematic diagram of the overall form processing structure in the embodiments of this specification is shown below. Figure 2 As shown.
[0055] The form development process in this embodiment is as follows: First, the unified model system is an abstract model of the form page, defining the structure of the form metadata, such as how to describe the layout and control positions of the form page, and how to describe the business logic contained in the form. Second, the form metadata, based on the above specifications, describes the model data of a specific form page; one piece of form metadata describes a specific form page. Third, the form designer in this embodiment follows the model specifications, providing a visual workspace to display the form interface described by the current metadata in real time; a toolbox to add new form components to the workspace; and a property panel to set the custom properties of each component. Finally, the form engine, also based on the above model specifications, converts the form metadata into a runnable front-end form page.
[0056] Based on the above, the key technology of the embodiments in this specification lies in providing two form designers for different user groups based on a unified model system. Form metadata, as an instance of the model, can be recognized by the designer regardless of how it is created, based on the unified model system. The components of the form designer (toolbox, visual workspace, property panel, etc.) separate the points of change according to the different needs of the two designers; the same parts reuse unified code logic, while different parts provide different implementations, ensuring that both designers can edit the same metadata content.
[0057] Form metadata is based on a unified model framework. This framework defines the structural schema of the form metadata model, detailing the descriptive items and values for all content within the form metadata, thus forming a standard specification for form modeling. Whether a form is created by the first form designer or the second, it adheres to this constraint, ensuring that the form metadata content is identifiable at the standard level.
[0058] Both form designers conform to a unified model system, separating the points of change based on different requirements and using the same processing logic for common parts. Because both form designers conform to the unified model system, all form metadata conforming to the unified model system standard can be opened by either form designer, enabling different roles to develop the same form metadata. Both designers use the same business processing logic for the same business functions, thus ensuring consistency in interaction methods and effects.
[0059] The embodiments in this manual demonstrate the following specific steps for developing a "leave application form" collaboratively by business and technical personnel:
[0060] First, the First Form Designer provides the ability to create forms. Business users can create form metadata and add basic fields, set the form layout structure, and perform other operations based on the leave application business scenario. The First Form Designer's visual designer allows business users to visually design WYSIWYG form interfaces, easily completing form design by adding fields such as leave applicant, leave type, leave time, and number of leave days.
[0061] Secondly, before submitting a leave application, if the leave type is annual leave, the business requires calling the relevant interface to query the applicant's remaining annual leave days to check if the requested leave days exceed the limit. Business personnel cannot achieve this through simple drag-and-drop assembly in the first form designer. The second form designer provides flexible extension capabilities. Technical personnel can use low-code tools to open this form, write extended business code, and attach it to the extension points provided by the low-code form designer.
[0062] Secondly, the technicians opened the "Leave Application Form" metadata using the second form designer. The rendering engine for the designer's workspace is the same as that of the no-code form designer; therefore, the WYSIWYG leave application form interface displayed in the second form designer's workspace is identical to that of the first form designer. Similarly, the experience of using both designers is the same for basic configurations such as field title configurations.
[0063] Finally, the first form designer shields and encapsulates the extended capabilities unique to the second form designer. For example, the pre-submission validation function added to the leave application form will not be visible when the form is reopened using the first form designer. This prevents business personnel from accidentally deleting this function while still allowing them to modify simple configuration parts of the form.
[0064] Figure 3 This is a schematic diagram of the structure of a form processing device provided in one or more embodiments of this specification. The device includes: a new content determination unit 302, a designer replacement unit 304, and a form processing unit 306.
[0065] The new content determination unit 302 determines the new content of the specified form when designing a specified form through the first form designer. The first form designer completes the form processing through a visual interface.
[0066] If the designer replacement unit 304 determines that the newly added content exceeds the processing range of the first form designer, it opens the specified form through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0067] The form processing unit 306 determines the specified code instruction corresponding to the second form designer based on the newly added content, and processes the specified form according to the specified code instruction.
[0068] Furthermore, before the newly added content determination unit 302 executes the design of the specified form through the first form designer, the device further includes: a design content determination unit and a designer selection unit;
[0069] The design content determination unit determines the design content of the specified form when the specified form is being designed.
[0070] If the design content falls within the processing scope of the first form designer, the designer selects the specified form using the first form designer.
[0071] Figure 4 A schematic diagram of the structure of a form processing device provided for one or more embodiments of this specification includes:
[0072] At least one processor; and,
[0073] A memory communicatively connected to the at least one processor; wherein,
[0074] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to:
[0075] When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface;
[0076] If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0077] The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
[0078] This specification provides one or more embodiments of a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0079] When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface;
[0080] If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer.
[0081] The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
[0082] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0083] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0084] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.
Claims
1. A form processing method, characterized in that, Based on a unified model system, a first form designer and a second form designer are provided for the same form. The unified model system defines the structure of form metadata, which is a modeled description of a specific form page based on the unified model system. The first and second form designers are tools for visually developing form pages. The method includes: When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface; If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer. The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
2. The method according to claim 1, characterized in that, Before designing the specified form through the first form designer, the method further includes: When designing the specified form, determine the design content of the specified form; If the design content falls within the processing scope of the first form designer, the specified form is designed using the first form designer.
3. The method according to claim 2, characterized in that, Designing the specified form using the first form designer specifically includes: Create the first form metadata using the first form designer; The form layout structure and field information corresponding to the design content are set through the first form metadata to generate the form page of the specified form.
4. The method according to claim 1, characterized in that, The process of processing the specified form according to the specified code instruction specifically includes: The second form metadata is created by the specified code instructions in the second form designer; The form layout structure and field information corresponding to the newly added content are set through the second form metadata to generate the form page of the specified form.
5. The method according to claim 1, characterized in that, The specified form is a leave application form, and the method further includes: When designing the leave application form, determine the design content of the leave application form; If the design content of the leave application form falls within the processing scope of the first form designer, the leave application form is designed using the first form designer. If the leave application form has new design content, and the new design content exceeds the processing range of the first form designer, the specified form is opened through the second form designer; Based on the newly added content, determine the leave application form code instruction corresponding to the second form designer, and process the leave application form according to the leave application form code instruction.
6. The method according to claim 5, characterized in that, The step of designing the leave application form using the first form designer specifically includes: Create leave form metadata related to the leave application business scenario using the first form designer; The leave application form's metadata is used to set the form layout structure and field information corresponding to the design content of the leave application form, so as to generate the form page of the leave application form.
7. A form processing device, characterized in that, Based on a unified model system, a first form designer and a second form designer are provided for the same form. The unified model system defines the structure of form metadata, which is a modeled description of a specific form page based on the unified model system. The first and second form designers are tools for visually developing form pages. The device includes: The new content determination unit determines the new content of the specified form when designing the specified form through the first form designer. The first form designer completes the form processing through a visual interface. If the designer changes the unit and determines that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer. The form processing unit determines the specified code instruction corresponding to the second form designer based on the newly added content, and processes the specified form according to the specified code instruction.
8. The apparatus according to claim 7, characterized in that, Before the newly added content determination unit executes the design of the specified form through the first form designer, the device further includes: a design content determination unit and a designer selection unit; The design content determination unit determines the design content of the specified form when the specified form is being designed. If the design content falls within the processing scope of the first form designer, the designer selects the specified form using the first form designer.
9. A form processing device, characterized in that, Based on a unified model system, a first form designer and a second form designer are provided for the same form. The unified model system defines the structure of form metadata, which is a modeled description of a specific form page based on the unified model system. The first and second form designers are tools for visually developing form pages, including: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to: When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface; If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer. The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.
10. A non-volatile computer storage medium, characterized in that, Based on a unified model system, a first form designer and a second form designer are provided for the same form. The unified model system defines the structure of form metadata, which is a modeled description of a specific form page based on the unified model system. The first and second form designers are tools for visually developing form pages and store computer-executable instructions. The computer-executable instructions are set as follows: When designing a specified form using the first form designer, the new content to be added to the specified form is determined, and the first form designer completes the form processing through a visual interface; If it is determined that the newly added content exceeds the processing range of the first form designer, the specified form is opened through the second form designer. The second form designer completes the form processing through specific code instructions. The second form designer has the same workspace rendering engine as the first form designer. The specified code instruction corresponding to the second form designer is determined based on the newly added content, and the specified form is processed according to the specified code instruction.