Form page configuration method and device based on workflow nodes
By storing the process description information of the process node and matching form ID in the workflow database table, and displaying the recommended form list based on business operations, users can dynamically edit the form fields, solving the problem of insufficient configuration efficiency and flexibility in the existing technology, and achieving flexible and efficient form page configuration.
Patent Information
- Application Number
- CN202510147376.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-02-11
AI Technical Summary
The prior art faces the complex demands of dynamically setting different forms according to workflow nodes, configuration efficiency and flexibility are insufficient, making it difficult to make dynamic adjustments without modifying code or redesigning templates.
By creating a workflow database table, determining and displaying a recommended form list based on the business operations of the process node, users can select and edit the form fields and update the matching form IDs in the form attribute data table and the workflow database table.
Improves flexibility and efficiency in form page configuration, allowing dynamic adjustment of form content without redesigning the template to adapt to the current state or node changes of the workflow.
Smart Images

Figure CN119621040B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of page configuration, and in particular to a method and device for configuring a form page based on workflow nodes. Background Art
[0002] In software development, traditional workflow node pages are manually developed by front-end developers. When the form page needs to be modified, the front-end page needs to be redeployed, reducing the system availability. Therefore, a workflow configuration scheme based on a graphical method has emerged in the public view. However, the existing drag-and-drop method simply configures the form page by dragging components, saves the form style in the database table in JSON format, and does not perform extensible processing. This simple drag-and-drop configuration method is often limited to the customization of static pages. Once the form is designed, it is difficult to dynamically adjust it without modifying the code or redesigning the template. In addition, when the generated form page is combined with the workflow configuration, it is difficult to dynamically switch and adjust the form content according to the current state of the workflow or the changes of the nodes, resulting in low system flexibility and being not conducive to non-technical personnel to expand and use. Therefore, in the face of complex requirements that need to dynamically set different forms according to workflow nodes, the current page configuration method can only be developed manually by developers, and the efficiency and flexibility are difficult to meet the current requirements. Summary of the Invention
[0003] The present invention provides a method and device for configuring a form page based on workflow nodes to solve the defects that the efficiency and flexibility in the prior art are difficult to meet the current requirements.
[0004] The present invention provides a method for configuring a form page based on workflow nodes, including:
[0005] Create a workflow database table corresponding to the current workflow; wherein, the workflow database table contains process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty;
[0006] When the user opens the configuration page of any process node of the current workflow, determine and display a recommended form list corresponding to the any process node based on the business operation of the any process node;
[0007] Based on the recommended form selected by the user from the recommended form list, construct a form data table and a form attribute data table corresponding to the recommended form, create a form ID of the recommended form, and display the recommended form; the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form;
[0008] Based on the user's editing operations on the fields in the recommendation form, update the form attribute data table, and update the matching form ID corresponding to any process node in the workflow database table based on the form ID of the recommendation form.
[0009] According to a form page configuration method based on workflow nodes provided by the present invention, each type of form field corresponds to a form attribute data table; in the form attribute data table corresponding to any type of form field, the field description information of the any type of form field in all forms containing the any type of form field in the system and the form ID of the corresponding form are stored.
[0010] According to a form page configuration method based on workflow nodes provided by the present invention, the determining and displaying of the recommendation form list corresponding to any process node based on the business operation of the any process node includes:
[0011] Based on the business operations of each process node of different workflows, divide the each process node of the different workflows into multiple clusters, and determine the cluster corresponding to the any process node as the candidate cluster;
[0012] Based on the matching form IDs corresponding to each process node in the candidate cluster in the workflow database table corresponding to each workflow and the form attribute data tables corresponding to each type of form field, determine the fields included in the forms corresponding to each process node in the candidate cluster and their field description information;
[0013] Based on the field types of the fields included in the forms corresponding to each process node in the candidate cluster, determine the occurrence frequency of each field type among the forms corresponding to each process node in the candidate cluster, and screen the field types with an occurrence frequency greater than a preset threshold as the to-be-recommended field types;
[0014] Based on the matching form IDs corresponding to each process node in the candidate cluster, query the form attribute data table corresponding to the to-be-recommended field type to obtain a query result;
[0015] Based on the occurrence frequency of each matching form ID in the query result, determine the recommendation form list.
[0016] According to a form page configuration method based on workflow nodes provided by the present invention, the determining of the recommendation form list based on the occurrence frequency of each matching form ID in the query result includes:
[0017] Cluster based on the semantic similarity between the field description information in each row where each matching form ID is located in the query result to obtain multiple field description clusters; where any field description cluster contains one or more field description information and their corresponding matching form IDs;
[0018] Determine a recommended form list based on the occurrence frequency of each matching form ID in each field description cluster; wherein, if the occurrence frequency of any matching form ID in any field description cluster is greater than 1, determine the occurrence frequency of the any matching form ID in the any field description cluster as 1.
[0019] According to a form page configuration method based on workflow nodes provided by the present invention, updating the form attribute data table based on the user's editing operation on the fields in the recommended form includes:
[0020] If the user's editing operation on the field in the recommended form is a field modification operation, determine the corresponding form attribute data table based on the field type of the modified field, determine the row corresponding to the modified field in the corresponding form attribute data table based on the field description information of the modified field, and update the row corresponding to the modified field in the corresponding form attribute data table based on the user's editing operation;
[0021] If the user's editing operation on the field in the recommended form is a field addition operation, determine the corresponding form attribute data table based on the field type of the added field, create a row corresponding to the added field in the corresponding form attribute data table based on the field description information of the added field, and update the row corresponding to the added field in the corresponding form attribute data table based on the user's editing operation;
[0022] If the user's editing operation on the field in the recommended form is a field deletion operation, determine the corresponding form attribute data table based on the field type of the deleted field, determine the row corresponding to the deleted field in the corresponding form attribute data table based on the field description information of the deleted field, and delete it.
[0023] According to a form page configuration method based on workflow nodes provided by the present invention, the process description information corresponding to each process node of the current workflow in the workflow database table includes the permission information of the corresponding process node; the field description information of each field in the form attribute data table includes the display permission and operation permission corresponding to the corresponding field;
[0024] The method further includes:
[0025] When the user triggers a field permission setting operation for any field of the recommended form, display a batch permission setting confirmation prompt;
[0026] If a batch permission setting confirmation message triggered by a user is received, a corresponding form attribute data table is determined based on the field type of any of the fields. Based on the matching form IDs corresponding to other process nodes of the current workflow in the workflow database table and the matching form ID corresponding to any of the process nodes, rows corresponding to the other process nodes and any of the process nodes are determined from the corresponding form attribute data table. And based on the field permission setting operation triggered by the user for any of the fields, the rows corresponding to the other process nodes and any of the process nodes are updated.
[0027] According to a form page configuration method based on workflow nodes provided by the present invention, the method further includes:
[0028] Based on the matching form ID corresponding to any of the process nodes in the workflow database table, field description information of the fields corresponding to the matching form ID is determined from the form attribute data table;
[0029] Based on the field description information of the fields corresponding to the matching form ID, a form page of the matching form ID is created;
[0030] When the user submits a form page access request for any of the process nodes, the form page of the matching form ID is displayed.
[0031] According to a form page configuration method based on workflow nodes provided by the present invention, when the user submits a form page access request for any of the process nodes, displaying the form page of the matching form ID includes:
[0032] Based on the matching relationship between the permission information of any of the process nodes in the workflow database table and the display permission and operation permission of the fields corresponding to the matching form ID in the form attribute data table, the corresponding fields in the form page of the matching form ID are displayed.
[0033] According to a form page configuration method based on workflow nodes provided by the present invention, the workflow database table further includes timeout configuration fields corresponding to each process node of the current workflow; the timeout configuration fields include a timeout time and a timeout type; the timeout type indicates whether the corresponding process node enables an automatic transfer function; the timeout time indicates the time for automatically transferring to the next process node when the corresponding process node enables the automatic transfer function.
[0034] The present invention also provides a form page configuration device based on workflow nodes, including:
[0035] A first table creation unit for creating a workflow database table corresponding to the current workflow; wherein, the workflow database table contains process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty;
[0036] A form recommendation unit for, when a user opens a configuration page of any process node of the current workflow, determining and displaying a list of recommended forms corresponding to the any process node based on the business operation of the any process node;
[0037] A second table creation unit for constructing a form data table and a form attribute data table corresponding to the recommended form based on the recommended form selected by the user from the list of recommended forms, creating a form ID for the recommended form, and displaying the recommended form; the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form;
[0038] A table update unit for updating the form attribute data table based on an editing operation of a field in the recommended form, and updating the matching form ID corresponding to the any process node in the workflow database table based on the form ID of the recommended form.
[0039] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, it implements the form page configuration method based on a workflow node as described in any one of the above.
[0040] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the form page configuration method based on a workflow node as described in any one of the above.
[0041] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the form page configuration method based on a workflow node as described in any one of the above.
[0042] The form page configuration method and device based on workflow nodes provided by the present invention create a workflow database table corresponding to the current workflow. When the user opens the configuration page of any process node of the current workflow, a recommended form list corresponding to the process node is determined and displayed based on the business operations of the process node; based on the recommended form selected by the user from the recommended form list, a form data table and a form attribute data table corresponding to the recommended form are constructed, a form ID of the recommended form is created, and the recommended form is displayed; wherein, the form attribute data table stores the field description information of the fields included in the recommended form and the form ID of the recommended form; based on the user's editing operation on the fields in the recommended form, the form attribute data table is updated, and the matching form ID corresponding to the process node in the workflow database table is updated based on the form ID of the recommended form, improving the flexibility and efficiency of form page configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0044] Figure 1 is a flowchart of the form page configuration method based on workflow nodes provided by the present invention;
[0045] Figure 2 is a flowchart of the method for determining the recommended form list provided by the present invention;
[0046] Figure 3 is a schematic structural diagram of the form page configuration device based on workflow nodes provided by the present invention;
[0047] Figure 4 is a schematic structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0049] Figure 1 is a flowchart of the form page configuration method based on workflow nodes provided by the present invention, as Figure 1 shown, the method includes:
[0050] Step 110: Create a workflow database table corresponding to the current workflow. Among them, the workflow database table contains process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty.
[0051] Step 120: When the user opens the configuration page of any process node of the current workflow, determine and display a list of recommended forms corresponding to the any process node based on the business operations of the any process node.
[0052] Step 130: Based on the recommended form selected by the user from the list of recommended forms, construct a form data table and a form attribute data table corresponding to the recommended form, create a form ID for the recommended form, and display the recommended form. The form attribute data table stores field description information of the fields included in the recommended form and the form ID of the recommended form.
[0053] Step 140: Based on the user's editing operations on the fields in the recommended form, update the form attribute data table, and update the matching form ID corresponding to the any process node in the workflow database table based on the form ID of the recommended form.
[0054] Specifically, for the current workflow to be configured, create a corresponding workflow database table. Among them, the workflow database table corresponding to the current workflow contains process description information corresponding to each process node of the current workflow, such as fields like nodeId (used to uniquely identify the corresponding process node), node status, and sequence identifier, etc., to track the current state of the workflow and the execution order of each node. In addition, the workflow database table also contains matching form IDs corresponding to each process node, used to mark the form page corresponding to each process node, so that when the workflow progresses from one process node to the next, the system can select a suitable form page based on the matching form ID corresponding to the process node and present it to the user. Among them, the value of the matching form ID corresponding to each current process node is empty.
[0055] When the user opens the configuration page of any process node of the current workflow, a list of recommended forms corresponding to the process node can be determined and displayed based on the business operations of the process node, so that the user can select a suitable form page from the list of recommended forms for further configuration. The user does not need to design and configure the form page of the process node step by step from scratch, thus improving the efficiency of the user in configuring the form page of the workflow process node. Based on the recommended form selected by the user from the list of recommended forms, a form data table and a form attribute data table corresponding to the recommended form are constructed. At the same time, a new form ID is created for the recommended form, and the page corresponding to the recommended form is displayed. Among them, the form attribute data table stores the field description information of each field included in the recommended form and the newly created form ID of the recommended form. The form data table includes the newly created form ID (primary key) of the recommended form, form name, form description, form data, and form application, etc. Among them, the form data is mainly used to store form style configuration information, and the form application is mainly used to distinguish the application module to which the recommended form belongs. It should be noted that the form data can be determined by the form designer when designing the recommended form.
[0056] In some embodiments, a form data table and a form attribute data table can be independently created for the recommended form respectively, that is, different forms correspond to different form data tables and different form attribute data tables. When the user needs to edit and modify the recommended form according to the current business requirements, the user can perform operations such as adding, deleting, and modifying form fields on the corresponding graphical page. Based on the user's add, delete, and modify operations, the form attribute data table can be modified (add a row of data, delete a row of data, or update a certain row of data) based on the fields corresponding to the add, delete, and modify operations. While realizing the dynamic update of form fields, there is no need to redesign the form page or the table structure of the database table, which improves the flexibility of form page configuration.
[0057] In some other embodiments, each type of form field corresponds to a form attribute data table. If different forms contain the same type of form field, the above different forms can correspond to the same form attribute data table, and one form corresponds to one or more form attribute data tables (depending on the number and type of fields in the form). Among them, the form attribute data table corresponding to any type of form field stores the field description information of this type of form field in all forms containing this type of form field in the system and the form ID of the corresponding form. When the user performs operations such as adding, deleting, and modifying form fields on the corresponding graphical page based on business requirements, the form attribute data table corresponding to the field can be determined based on the field corresponding to the add, delete, and modify operations, so as to modify the form attribute data table (add a row of data, delete a row of data, or update a certain row of data). Similarly, the dynamic update of form fields can be achieved without redesigning the form page or the table structure of the database table, thereby improving the flexibility of form page configuration.
[0058] Specifically, if the user's editing operation on the fields in the recommended form is a field modification operation, the corresponding form attribute data table is determined based on the field type of the modified field, the row corresponding to the modified field in the corresponding form attribute data table is determined based on the field description information of the modified field, and the row corresponding to the modified field in the corresponding form attribute data table is updated based on the user's editing operation;
[0059] If the user's editing operation on the fields in the recommended form is a field addition operation, the corresponding form attribute data table is determined based on the field type of the added field, a row corresponding to the added field is created in the corresponding form attribute data table based on the field description information of the added field, and the row corresponding to the added field in the corresponding form attribute data table is updated based on the user's editing operation;
[0060] If the user's editing operation on the fields in the recommended form is a field deletion operation, the corresponding form attribute data table is determined based on the field type of the deleted field, the row corresponding to the deleted field in the corresponding form attribute data table is determined based on the field description information of the deleted field, and this row is deleted.
[0061] Based on the above embodiments, as Figure 2 shown, the following method can be used to determine the recommended form list corresponding to any process node:
[0062] Step 210, based on the business operations of each process node of different workflows, divide each process node of the different workflows into multiple clusters, and determine the cluster corresponding to the any process node as the candidate cluster;
[0063] Step 220: Based on the matching form IDs corresponding to each process node of the candidate clusters in the workflow database tables corresponding to each workflow and the form attribute data tables corresponding to various form fields, determine the fields included in the forms corresponding to each process node of the candidate clusters and their field description information;
[0064] Step 230: Based on the field types of the fields included in the forms corresponding to each process node of the candidate clusters, determine the occurrence frequencies of each field type among the forms corresponding to each process node of the candidate clusters, and filter out the field types with occurrence frequencies greater than a preset threshold as the fields to be recommended;
[0065] Step 240: Based on the matching form IDs corresponding to each process node of the candidate clusters, query the form attribute data tables corresponding to the fields to be recommended to obtain the query results;
[0066] Step 250: Based on the occurrence frequencies of each matching form ID in the query results, determine the recommended form list.
[0067] Here, considering that there are process nodes with similar business operations in different workflows, such as approval, basic information entry, etc., although the specific data faced by the business operations is different but the business logic is similar, and the structure of the corresponding form pages is also similar. Therefore, the process nodes of different workflows can be divided into multiple clusters according to the actual application scenario, where the process nodes in the same cluster are the process nodes with the same or similar business operations as described above. In some embodiments, the business operation information of different process nodes can be analyzed based on a large language model to perform clustering based on the semantic similarity between the business operation information of different process nodes to obtain the above-mentioned clusters. Subsequently, determine the cluster corresponding to the current process node as the candidate cluster.
[0068] Based on the matching form IDs (not empty) corresponding to each process node of the candidate cluster in the workflow database tables corresponding to each workflow and the form attribute data tables corresponding to various form fields, determine the fields included in the forms corresponding to each process node of the candidate cluster and their field description information. Here, the corresponding workflow database table can be obtained according to the workflow corresponding to each process node in the candidate cluster, and then the workflow database table can be retrieved based on the nodeId of each process node to determine the matching form ID corresponding to each process node, and the form attribute data tables corresponding to various form fields can be retrieved based on the matching form ID to retrieve the fields included in the forms corresponding to each process node and their field description information.
[0069] Based on the field types of the fields included in the forms corresponding to the respective process nodes of the candidate cluster, determine the occurrence frequencies of the respective field types among the forms corresponding to the respective process nodes of the candidate cluster. Among them, the field types of the fields included in the forms corresponding to the respective process nodes of the candidate cluster can be used as candidate field types, and a form attribute data table corresponding to the candidate field types can be determined. Subsequently, query the matching form IDs corresponding to the respective process nodes of the candidate cluster in the form attribute data tables corresponding to the respective candidate field types, and record the hit times of the matching form IDs corresponding to the respective process nodes of the candidate cluster in the form attribute data tables corresponding to the respective candidate field types as the occurrence frequencies of the respective candidate field types among the forms corresponding to the respective process nodes of the candidate cluster. Among them, if a matching form ID is hit multiple times in a form attribute data table, its hit time is set to 1 time. On this basis, candidate field types with occurrence frequencies greater than a preset threshold can be screened out as candidate recommended field types.
[0070] Next, based on the matching form IDs corresponding to the respective process nodes of the candidate cluster, query the form attribute data tables corresponding to the respective candidate recommended field types again to obtain query results. Here, for the form attribute data table corresponding to any candidate recommended field type, the table can be queried based on the matching form IDs corresponding to the respective process nodes of the candidate cluster to determine the matching form IDs hit in the table. That is, the query results corresponding to the form attribute data table corresponding to any candidate recommended field type include the matching form IDs hit in the table. Based on the query results corresponding to the form attribute data tables corresponding to all candidate recommended field types, the occurrence frequencies of the respective matching form IDs can be determined, and thus several matching form IDs with the highest occurrence frequencies can be screened out and a recommended form list can be constructed accordingly.
[0071] In some embodiments, in the query results corresponding to the form attribute data table corresponding to any candidate recommended field type, if the matching form IDs hit appear multiple times, only one is retained. Subsequently, count the occurrence frequencies of the respective matching form IDs in the query results corresponding to the form attribute data tables corresponding to all candidate recommended field types to determine the recommended form list.
[0072] In some other embodiments, in the query results corresponding to the form property data table for any field type to be recommended, all hit matching form IDs and the field description information of their corresponding rows are retained. To more precisely construct the recommended form list, clustering can be performed based on the semantic similarity between the field description information in the rows corresponding to each matching form ID in the query results, resulting in multiple field description clusters. Wherein, any field description cluster contains one or more field description information and their corresponding matching form IDs. Based on the occurrence frequency of each matching form ID in each field description cluster, the recommended form list is determined. Wherein, if the occurrence frequency of any matching form ID in any field description cluster is greater than 1, the occurrence frequency of this matching form ID in this field description cluster is determined to be 1. By accumulating the occurrence frequencies of any matching form ID in each field description cluster, the total frequency of this matching form ID can be obtained, and thus based on the total frequencies of each matching form ID, several matching form IDs with the highest total frequencies are selected to construct the recommended form list.
[0073] Based on any of the above embodiments, the process description information corresponding to each process node of the current workflow in the workflow database table further includes the permission information of the corresponding process node (indicating the permission level of the corresponding process node), and the field description information of each field in the form property data table corresponding to each type of form field further includes the display permission corresponding to the corresponding field (indicating the display policy corresponding to different permission levels) and the operation permission (indicating the operable type corresponding to different permission levels). When the user triggers a field permission setting operation for any field of the recommended form, a batch permission setting confirmation prompt is displayed. If the batch permission setting confirmation information triggered by the user is received, the corresponding form property data table is determined based on the field type of this field, and based on the matching form IDs corresponding to other process nodes of the current workflow and the matching form ID corresponding to the current process node in the workflow database table, the rows corresponding to other process nodes and the current process node are determined from the corresponding form property data table, and based on the field permission setting operation triggered by the user for this field, the display permission and / or operation permission in the rows corresponding to other process nodes and the current process node are updated.
[0074] After the user finishes the editing operation on the recommendation form, update the matching form ID corresponding to the current process node in the workflow database table based on the form ID of the recommendation form. Subsequently, based on the matching form ID corresponding to the current process node in the workflow database table, determine the field description information of the fields corresponding to the matching form ID from the form attribute data tables corresponding to various form fields. Based on the field description information of the fields corresponding to the matching form ID, create a form page for the matching form ID, so that when the user submits a request to access the form page of the current process node, display the form page of the matching form ID to the user. Among them, based on the matching relationship between the permission information of the current process node in the workflow database table and the display permission and operation permission of the fields corresponding to the matching form ID in the form attribute data tables corresponding to various form fields, display the corresponding fields in the form page of the matching form ID to ensure the standardized execution of the process, protect data security, and improve operation compliance.
[0075] Based on any of the above embodiments, the workflow database table further includes timeout configuration fields corresponding to each process node of the current workflow to implement the automated processing and management of the workflow. Among them, the timeout configuration fields include a timeout time and a timeout type; the timeout type indicates whether the corresponding process node enables the automatic transition function, and the timeout time indicates the time to automatically transition to the next process node when the automatic transition function is enabled for the corresponding process node.
[0076] In summary, the method provided by the embodiments of the present invention, by creating a workflow database table corresponding to the current workflow, when the user opens the configuration page of any process node of the current workflow, determines and displays a list of recommendation forms corresponding to the process node based on the business operations of the process node; based on the recommendation form selected by the user from the list of recommendation forms, constructs a form data table and a form attribute data table corresponding to the recommendation form, creates a form ID for the recommendation form, and displays the recommendation form; among them, the form attribute data table stores the field description information of the fields included in the recommendation form and the form ID of the recommendation form; based on the user's editing operation on the fields in the recommendation form, updates the form attribute data table, and updates the matching form ID corresponding to the process node in the workflow database table based on the form ID of the recommendation form, improving the flexibility and efficiency of form page configuration.
[0077] Next, a form page configuration device based on workflow nodes provided by the present invention will be described. The form page configuration device based on workflow nodes described below can be correspondingly referred to the form page configuration method based on workflow nodes described above.
[0078] Based on any of the above embodiments, Figure 3 is a schematic structural diagram of a form page configuration device based on workflow nodes provided by the present invention, as Figure 3As shown in the figure, the device includes:
[0079] A first table creation unit 310, configured to create a workflow database table corresponding to the current workflow; wherein, the workflow database table includes process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty;
[0080] A form recommendation unit 320, configured to, when the user opens the configuration page of any process node of the current workflow, determine and display a list of recommended forms corresponding to the any process node based on the business operation of the any process node;
[0081] A second table creation unit 330, configured to construct a form data table and a form attribute data table corresponding to the recommended form based on the recommended form selected by the user, create a form ID of the recommended form, and display the recommended form; the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form;
[0082] A table update unit 340, configured to update the form attribute data table based on the user's editing operation on the fields in the recommended form, and update the matching form ID corresponding to the any process node in the workflow database table based on the form ID of the recommended form.
[0083] The device provided by the embodiment of the present invention creates a workflow database table corresponding to the current workflow. When the user opens the configuration page of any process node of the current workflow, it determines and displays a list of recommended forms corresponding to the process node based on the business operation of the process node; constructs a form data table and a form attribute data table corresponding to the recommended form based on the recommended form selected by the user, creates a form ID of the recommended form, and displays the recommended form; wherein, the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form; updates the form attribute data table based on the user's editing operation on the fields in the recommended form, and updates the matching form ID corresponding to the process node in the workflow database table based on the form ID of the recommended form, improving the flexibility and efficiency of form page configuration.
[0084] Based on any of the above embodiments, each type of form field corresponds to a form attribute data table; the form attribute data table corresponding to any type of form field stores field description information of the any type of form field in all forms including the any type of form field in the system and the form ID of the corresponding form.
[0085] Based on any of the above embodiments, determining and displaying a list of recommended forms corresponding to any process node based on the business operations of any process node includes:
[0086] Based on the business operations of each process node of different workflows, dividing each process node of different workflows into multiple clusters, and determining the cluster corresponding to any process node as the candidate cluster;
[0087] Based on the matching form IDs corresponding to each process node in the candidate cluster in the workflow database table corresponding to each workflow and the form attribute data table corresponding to each form field, determining the fields included in the form corresponding to each process node in the candidate cluster and their field description information;
[0088] Based on the field types of the fields included in the form corresponding to each process node in the candidate cluster, determining the occurrence frequency of each field type among the forms corresponding to each process node in the candidate cluster, and filtering out the field types with an occurrence frequency greater than a preset threshold as the fields to be recommended;
[0089] Based on the matching form IDs corresponding to each process node in the candidate cluster, querying the form attribute data table corresponding to the fields to be recommended to obtain a query result;
[0090] Based on the occurrence frequency of each matching form ID in the query result, determining the recommended form list.
[0091] Based on any of the above embodiments, determining the recommended form list based on the occurrence frequency of each matching form ID in the query result includes:
[0092] Clustering based on the semantic similarity between the field description information in the rows where each matching form ID is located in the query result to obtain multiple field description clusters; where any field description cluster contains one or more field description information and their corresponding matching form IDs;
[0093] Based on the occurrence frequency of each matching form ID in each field description cluster, determining the recommended form list; where if the occurrence frequency of any matching form ID in any field description cluster is greater than 1, then determining the occurrence frequency of the any matching form ID in the any field description cluster as 1.
[0094] Based on any of the above embodiments, updating the form attribute data table based on the user's editing operations on the fields in the recommended form includes:
[0095] If the user's editing operation on the field in the recommendation form is a field modification operation, determine the corresponding form attribute data table based on the field type of the modified field, determine the row corresponding to the modified field in the corresponding form attribute data table based on the field description information of the modified field, and update the row corresponding to the modified field in the corresponding form attribute data table based on the user's editing operation;
[0096] If the user's editing operation on the field in the recommendation form is a field addition operation, determine the corresponding form attribute data table based on the field type of the added field, create a row corresponding to the added field in the corresponding form attribute data table based on the field description information of the added field, and update the row corresponding to the added field in the corresponding form attribute data table based on the user's editing operation;
[0097] If the user's editing operation on the field in the recommendation form is a field deletion operation, determine the corresponding form attribute data table based on the field type of the deleted field, determine the row corresponding to the deleted field in the corresponding form attribute data table based on the field description information of the deleted field, and delete it.
[0098] Based on any of the above embodiments, the process description information corresponding to each process node of the current workflow in the workflow database table includes the permission information of the corresponding process node; the field description information of each field in the form attribute data table includes the display permission and operation permission corresponding to the corresponding field;
[0099] The device further includes a permission setting unit, and the permission setting unit is used for:
[0100] When the user triggers a field permission setting operation for any field of the recommendation form, display a batch permission setting confirmation prompt;
[0101] If the batch permission setting confirmation information triggered by the user is received, determine the corresponding form attribute data table based on the field type of the any field, determine the rows corresponding to the other process nodes and the any process node from the corresponding form attribute data table based on the matching form IDs corresponding to the other process nodes of the current workflow and the matching form ID corresponding to the any process node in the workflow database table, and update the rows corresponding to the other process nodes and the any process node based on the field permission setting operation triggered by the user for the any field.
[0102] Based on any of the above embodiments, the device further includes a page creation unit, and the page creation unit is used for:
[0103] Based on the matching form ID corresponding to any process node in the workflow database table, determine the field description information of the field corresponding to the matching form ID from the form attribute data table;
[0104] Create a form page for the matching form ID based on the field description information of the field corresponding to the matching form ID;
[0105] When the user submits a form page access request for any process node, display the form page of the matching form ID.
[0106] Based on any of the above embodiments, when the user submits a form page access request for any process node, displaying the form page of the matching form ID includes:
[0107] Based on the matching relationship between the permission information of any process node in the workflow database table and the display permission and operation permission of the field corresponding to the matching form ID in the form attribute data table, display the corresponding fields in the form page of the matching form ID.
[0108] Based on any of the above embodiments, the workflow database table further includes timeout configuration fields corresponding to each process node of the current workflow; the timeout configuration fields include a timeout time and a timeout type; the timeout type indicates whether the corresponding process node enables an automatic transfer function; the timeout time indicates the time for automatically transferring to the next process node when the automatic transfer function is enabled for the corresponding process node.
[0109] Figure 4 It is a schematic structural diagram of the electronic device provided by the present invention, as Figure 4As shown in the figure, the electronic device may include: a processor 410, a memory 420, a communications interface 430, and a communication bus 440. Among them, the processor 410, the memory 420, and the communication interface 430 complete communication with each other through the communication bus 440. The processor 410 may call the logical instructions in the memory 420 to execute a form page configuration method based on workflow nodes. The method includes: creating a workflow database table corresponding to the current workflow; wherein, the workflow database table contains process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty; when the user opens the configuration page of any process node of the current workflow, determining and displaying a recommended form list corresponding to the any process node based on the business operation of the any process node; constructing a form data table and a form attribute data table corresponding to the recommended form based on the recommended form selected by the user, creating a form ID of the recommended form, and displaying the recommended form; the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form; based on the user's editing operation on the fields in the recommended form, updating the form attribute data table, and updating the matching form ID corresponding to the any process node in the workflow database table based on the form ID of the recommended form.
[0110] In addition, when the logical instructions in the above-mentioned memory 420 are implemented in the form of software functional units and sold or used as an independent product, they may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0111] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the form page configuration method based on workflow nodes provided by the above-mentioned various methods. The method includes: creating a workflow database table corresponding to the current workflow; wherein, the workflow database table contains process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty; when the user opens the configuration page of any process node of the current workflow, determining and displaying a list of recommended forms corresponding to the any process node based on the business operation of the any process node; constructing a form data table and a form attribute data table corresponding to the recommended form selected by the user, creating a form ID of the recommended form, and displaying the recommended form; the form attribute data table stores field description information of the fields included in the recommended form and the form ID of the recommended form; based on the user's editing operation on the fields in the recommended form, updating the form attribute data table, and updating the matching form ID corresponding to the any process node in the workflow database table based on the form ID of the recommended form.
[0112] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the form page configuration method based on workflow nodes provided by the above-mentioned various methods. The method includes: creating a workflow database table corresponding to the current workflow; wherein, the workflow database table contains process description information corresponding to each process node of the current workflow and a matching form ID, and the current value of the matching form ID is empty; when the user opens the configuration page of any process node of the current workflow, determining and displaying a list of recommended forms corresponding to the any process node based on the business operation of the any process node; constructing a form data table and a form attribute data table corresponding to the recommended form selected by the user, creating a form ID of the recommended form, and displaying the recommended form; the form attribute data table stores field description information of the fields included in the recommended form and the form ID of the recommended form; based on the user's editing operation on the fields in the recommended form, updating the form attribute data table, and updating the matching form ID corresponding to the any process node in the workflow database table based on the form ID of the recommended form.
[0113] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A form page configuration method based on workflow nodes, characterized in that: include: Create a workflow database table corresponding to the current workflow; wherein the workflow database table contains process description information and matching form ID corresponding to each process node of the current workflow, and the current value of the matching form ID is empty; When a user opens a configuration page of any process node of the current workflow, a list of recommended forms corresponding to any process node is determined and displayed based on the business operation of the any process node; Based on the recommended form selected by the user from the recommended form list, a form data table and a form attribute data table corresponding to the recommended form are constructed, a form ID of the recommended form is created, and the recommended form is displayed; the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form; Based on the user's editing operation on the fields in the recommendation form, the form attribute data table is updated, and based on the form ID of the recommendation form, the matching form ID corresponding to any process node in the workflow database table is updated; Each type of form field corresponds to a form attribute data table; the form attribute data table corresponding to any type of form field stores the field description information of any type of form field in all forms in the system that contain the form field of the type and the form ID of the corresponding form; The determining and displaying a list of recommended forms corresponding to any process node based on the business operation of any process node includes: Based on the business operations of each process node of different workflows, each process node of the different workflows is divided into multiple clusters, and a cluster corresponding to any process node is determined as a cluster to be selected; Based on the matching form IDs corresponding to the various process nodes of the to-be-selected clusters in the workflow database table corresponding to each workflow and the form attribute data tables corresponding to various form fields, determine the fields and their field description information contained in the forms corresponding to the various process nodes of the to-be-selected clusters; Based on the field types of the fields contained in the forms corresponding to the process nodes of the to-be-selected cluster, determining the occurrence frequency of each field type between the forms corresponding to the process nodes of the to-be-selected cluster, and screening the field types whose occurrence frequency is greater than a preset threshold as the field types to be recommended; Based on the matching form ID corresponding to each process node of the to-be-selected cluster, query the form attribute data table corresponding to the to-be-recommended field type to obtain the query result; Based on the occurrence frequency of each matching form ID in the query result, a recommended form list is determined.
2. The form page configuration method based on workflow nodes according to claim 1, characterized in that: The step of determining a recommended form list based on the occurrence frequency of each matching form ID in the query result includes: Clustering is performed based on the semantic similarity between the field description information in the row where each matching form ID is located in the query result to obtain multiple field description clusters; wherein any field description cluster contains one or more field description information and its corresponding matching form ID; Based on the occurrence frequency of each matching form ID in each field description cluster, a recommended form list is determined; wherein, if the occurrence frequency of any matching form ID in any field description cluster is greater than 1, then the occurrence frequency of any matching form ID in any field description cluster is determined to be 1.
3. The form page configuration method based on workflow nodes according to claim 1, characterized in that: The updating of the form attribute data table based on the user's editing operation on the fields in the recommendation form includes: If the editing operation of the user on the field in the recommendation form is a field modification operation, a corresponding form attribute data table is determined based on the field type of the modified field, a row corresponding to the modified field in the corresponding form attribute data table is determined based on the field description information of the modified field, and the row corresponding to the modified field in the corresponding form attribute data table is updated based on the user's editing operation; If the editing operation of the user on the field in the recommendation form is a field adding operation, the corresponding form attribute data table is determined based on the field type of the newly added field, a row corresponding to the newly added field is created in the corresponding form attribute data table based on the field description information of the newly added field, and the row corresponding to the newly added field in the corresponding form attribute data table is updated based on the editing operation of the user; If the user's editing operation on the field in the recommendation form is a field deletion operation, the corresponding form attribute data table is determined based on the field type of the deleted field, and the row corresponding to the deleted field in the corresponding form attribute data table is determined based on the field description information of the deleted field and deleted.
4. The form page configuration method based on workflow nodes according to claim 1, characterized in that: The process description information corresponding to each process node of the current workflow in the workflow database table includes permission information of the corresponding process node; The field description information of each field in the form attribute data table includes the display permission and operation permission corresponding to the corresponding field; The method further comprises: When the user triggers a field permission setting operation for any field of the recommendation form, a batch permission setting confirmation prompt is displayed; If batch permission setting confirmation information triggered by the user is received, the corresponding form attribute data table is determined based on the field type of any field, and the rows corresponding to the other process nodes and any process node are determined from the corresponding form attribute data table based on the matching form ID corresponding to other process nodes of the current workflow in the workflow database table and the matching form ID corresponding to any process node, and based on the field permission setting operation triggered by the user for any field, the rows corresponding to the other process nodes and any process node are updated.
5. The form page configuration method based on workflow nodes according to claim 4 is characterized in that: The method further comprises: Based on the matching form ID corresponding to any process node in the workflow database table, determining field description information of the field corresponding to the matching form ID from the form attribute data table; Based on the field description information of the field corresponding to the matching form ID, create a form page of the matching form ID; When the user submits a form page access request for any of the process nodes, the form page matching the form ID is displayed.
6. The form page configuration method based on workflow nodes according to claim 5, characterized in that: When the user submits a form page access request of any process node, the form page matching the form ID is displayed, including: Based on the matching relationship between the permission information of any process node in the workflow database table and the display permission and operation permission of the field corresponding to the matching form ID in the form attribute data table, the corresponding field in the form page of the matching form ID is displayed.
7. The form page configuration method based on workflow nodes according to any one of claims 1 to 6, characterized in that: The workflow database table also includes a timeout configuration field corresponding to each process node of the current workflow; the timeout configuration field includes a timeout time and a timeout type; the timeout type indicates whether the automatic flow function is enabled for the corresponding process node; the timeout time indicates the time for automatic flow to the next process node when the automatic flow function is enabled for the corresponding process node.
8. A form page configuration device based on workflow nodes, characterized in that: include: A first table creation unit is used to create a workflow database table corresponding to the current workflow; wherein the workflow database table contains process description information and a matching form ID corresponding to each process node of the current workflow, and the current value of the matching form ID is empty; A form recommendation unit, configured to determine and display a list of recommended forms corresponding to any process node based on the business operation of any process node when a user opens a configuration page of the any process node of the current workflow; A second table creation unit is used to construct a form data table and a form attribute data table corresponding to the recommended form based on the recommended form selected by the user from the recommended form list, create a form ID of the recommended form, and display the recommended form; the form attribute data table stores field description information of fields included in the recommended form and the form ID of the recommended form; A table updating unit, configured to update the form attribute data table based on the user's editing operation on the fields in the recommendation form, and to update the matching form ID corresponding to any process node in the workflow database table based on the form ID of the recommendation form; Each type of form field corresponds to a form attribute data table; the form attribute data table corresponding to any type of form field stores the field description information of any type of form field in all forms in the system that contain the form field of the type and the form ID of the corresponding form; The determining and displaying a list of recommended forms corresponding to any process node based on the business operation of any process node includes: Based on the business operations of each process node of different workflows, each process node of the different workflows is divided into multiple clusters, and a cluster corresponding to any process node is determined as a cluster to be selected; Based on the matching form IDs corresponding to the various process nodes of the to-be-selected clusters in the workflow database table corresponding to each workflow and the form attribute data tables corresponding to various form fields, determine the fields and their field description information contained in the forms corresponding to the various process nodes of the to-be-selected clusters; Based on the field types of the fields contained in the forms corresponding to the process nodes of the to-be-selected cluster, determining the occurrence frequency of each field type between the forms corresponding to the process nodes of the to-be-selected cluster, and screening the field types whose occurrence frequency is greater than a preset threshold as the field types to be recommended; Based on the matching form ID corresponding to each process node of the to-be-selected cluster, query the form attribute data table corresponding to the to-be-recommended field type to obtain the query result; Based on the occurrence frequency of each matching form ID in the query result, a recommended form list is determined.
Citation Information
Patent Citations
Workflow creation method and device
CN112036736A
Workflow form generation method and device, electronic equipment and computer readable medium
CN112883697A