Form page configuration method and device based on workflow nodes
By dynamically updating form configuration in the workflow database table and form attribute data table, and recommending and editing form fields based on user's business operations, the problem of insufficient efficiency and flexibility of form configuration in the existing technology is solved, and efficient and flexible form page configuration is achieved.
Patent Information
- Application Number
- CN202510147376.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2045-02-11
AI Technical Summary
The prior art is difficult to meet the complex demands of dynamically setting different forms according to workflow nodes, and it is difficult to dynamically adjust without modifying code or redesigning templates.
By creating workflow database tables and form attribute data tables, based on the user's business operations recommended form list, users can select and edit form fields, dynamically update form attribute data tables and workflow database tables, realizing flexible configuration of form pages.
Improves the flexibility and efficiency of form page configuration. Users do not need to design form pages from scratch. They can dynamically adjust the form content according to changes in workflow nodes, improving the flexibility and user experience of the system.
Smart Images

Figure CN119621040A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of page configuration, and in particular to a form page configuration method and device 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, which reduces the system availability. Therefore, a workflow configuration solution based on a graphical method has emerged in the public eye. However, the existing drag-and-drop method is to perform simple form page configuration by dragging components, and save the form style in JSON format to the database table without any scalable 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 change of the node. The system has low flexibility and is not conducive to the expansion of non-technical personnel. Therefore, when faced with complex requirements that require dynamic setting of different forms according to workflow nodes, the current page configuration method can only be developed by developers through manual coding, and the efficiency and flexibility are difficult to meet current needs. Summary of the invention
[0003] The present invention provides a form page configuration method and device based on workflow nodes, which are used to solve the defect that the efficiency and flexibility in the prior art are difficult to meet the current needs.
[0004] The present invention provides a form page configuration method based on workflow nodes, comprising: 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 recommended form, the form attribute data table is updated, and based on the form ID of the recommended form, the matching form ID corresponding to any process node in the workflow database table is updated.
[0005] 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; 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 any type of form field and the form ID of the corresponding form.
[0006] According to a form page configuration method based on a workflow node provided by the present invention, the method of determining and displaying a recommended form list corresponding to any process node based on a 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.
[0007] According to a workflow node-based form page configuration method provided by the present invention, the method 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.
[0008] According to a workflow node-based form page configuration method provided by the present invention, 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.
[0009] 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 permission information of the corresponding process node; the field description information of each field in the form attribute data table includes 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.
[0010] According to a workflow node-based form page configuration method provided by the present invention, the method further includes: 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.
[0011] According to a workflow node-based form page configuration method provided by the present invention, when a 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.
[0012] According to a form page configuration method based on workflow nodes provided by the present invention, 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 automatically flowing to the next process node when the automatic flow function is enabled for the corresponding process node.
[0013] The present invention also provides a form page configuration device based on workflow nodes, comprising: 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; The table updating unit is used to update the form attribute data table based on the user's editing operation on the fields in the recommended 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 recommended form.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the form page configuration method based on workflow nodes as described above is implemented.
[0015] 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, the form page configuration method based on workflow nodes as described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned form page configuration methods based on workflow nodes.
[0017] 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 a 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 operation 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 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, thereby improving the flexibility and efficiency of form page configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is a flow chart of a form page configuration method based on workflow nodes provided by the present invention; Figure 2 It is a flowchart of the method for determining the recommendation form list provided by the present invention; Figure 3 It is a structural schematic diagram of a form page configuration device based on workflow nodes provided by the present invention; Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] Figure 1 It is a flow chart of the form page configuration method based on workflow nodes provided by the present invention, such as Figure 1 As shown, the method includes: Step 110, creating 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; Step 120, when the user opens the configuration page of any process node of the current workflow, a recommended form list corresponding to any process node is determined and displayed based on the business operation of the any process node; Step 130: 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 the fields included in the recommended form and the form ID of the recommended form; Step 140: based on the user's editing operation on the fields in the recommendation form, update the form attribute data table, and based on the form ID of the recommendation form, update the matching form ID corresponding to any process node in the workflow database table.
[0022] Specifically, for the current workflow to be configured, a corresponding workflow database table is created for it. Among them, the workflow database table corresponding to the current workflow contains the process description information corresponding to each process node of the current workflow, such as nodeId (used to uniquely identify the corresponding process node), node status and sequence identification fields, so as to track the current state of the workflow and the execution order of each node. In addition, the workflow database table also contains the matching form ID corresponding to each process node, which is used to mark the form page corresponding to each process node, so that when the workflow advances from one process node to the next process node, the system can select the appropriate form page according to the matching form ID corresponding to the process node to present to the user. Among them, the value of the matching form ID corresponding to each process node is currently empty.
[0023] When a user opens the configuration page of any process node of the current workflow, the recommended form list corresponding to the process node can be determined and displayed based on the business operation of the process node, so that the user can select a suitable form page from the recommended form list for further configuration. The user does not need to design and configure the form page of the process node step by step from scratch, thereby improving the efficiency of the user configuring the form page of the workflow process node. Based on the recommended form selected by the user from the recommended form list, the form data table and form attribute data table corresponding to the recommended form are constructed, and 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 contained 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., wherein 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.
[0024] In some embodiments, a form data table and a form attribute data table can be independently created for the recommendation form, 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 recommendation form according to current business needs, the user can add, delete, and modify the form fields on the corresponding graphical page. Based on the user's addition, deletion, and modification operations, the form attribute data table can be modified based on the fields corresponding to the addition, deletion, and modification operations (add a row of data, delete a row of data, or update a row of data), thereby achieving dynamic updates of form fields without the need to redesign the form page or redesign the table structure of the database table, thereby improving the flexibility of the form page configuration.
[0025] In other embodiments, each type of form field corresponds to a form attribute data table. If different forms contain the same type of form fields, 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 the form field of this type in all forms in the system that contain the form field of this type and the form ID of the corresponding form. When the user adds, deletes and modifies the form field on the corresponding graphical page based on business needs, the form attribute data table corresponding to the field can be determined based on the field corresponding to the addition, deletion and modification operation, so as to modify the form attribute data table (add a row of data, delete a row of data or update a row of data). It can also realize the dynamic update of the form field without redesigning the form page or redesigning the table structure of the database table, thereby improving the flexibility of the form page configuration.
[0026] Specifically, if the user's editing operation on a field in the recommendation 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; If the user's editing operation on a 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 user's editing operation; If the user's editing operation on a 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 the row is deleted.
[0027] Based on the above embodiments, Figure 2 As shown, the recommended form list corresponding to any process node can be determined in the following way: Step 210, based on the business operations of the various process nodes of the different workflows, the various process nodes of the different workflows are divided into a plurality of clusters, and a cluster corresponding to any of the process nodes is determined as a cluster to be selected; Step 220, based on the matching form IDs corresponding to the 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 process nodes of the to-be-selected clusters; Step 230, based on the field types of the fields contained in the forms corresponding to the process nodes of the cluster to be selected, determine the occurrence frequency of each field type between the forms corresponding to the process nodes of the cluster to be selected, and select the field types with an occurrence frequency greater than a preset threshold as the field types to be recommended; Step 240, 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 a query result; Step 250: Determine a recommended form list based on the occurrence frequency of each matching form ID in the query result.
[0028] 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 are different, the business logic is similar, and the structure of the corresponding form page is also similar. Therefore, the various 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 mentioned above. In some embodiments, the business operation information of different process nodes can be analyzed based on a large language model, and clustering can be performed based on the semantic similarity between the business operation information of different process nodes to obtain the above clusters. Subsequently, the cluster corresponding to the current process node is determined as the cluster to be selected.
[0029] Based on the matching form ID (not empty) corresponding to each process node of the candidate cluster in the workflow database table corresponding to each workflow and the form attribute data table corresponding to each form field, the fields and their field description information contained in the form corresponding to each process node of the candidate cluster are determined. 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 table corresponding to each form field can be retrieved based on the matching form ID, so as to retrieve the fields and their field description information contained in the form corresponding to each process node.
[0030] Based on the field types of the fields contained in the forms corresponding to the process nodes of the cluster to be selected, the frequency of occurrence of each field type between the forms corresponding to the process nodes of the cluster to be selected is determined. Among them, the field types of the fields contained in the forms corresponding to the process nodes of the cluster to be selected can be used as the field types to be selected, and the form attribute data table corresponding to the field types to be selected is determined. Subsequently, the matching form IDs corresponding to the process nodes of the cluster to be selected are queried in the form attribute data table corresponding to each field type to be selected, and the number of hits of the matching form IDs corresponding to the process nodes of the cluster to be selected in the form attribute data table corresponding to each field type to be selected is recorded as the frequency of occurrence of each field type to be selected between the forms corresponding to the process nodes of the cluster to be selected. Among them, if a matching form ID hits multiple times in a form attribute data table, its hit count is set to 1. On this basis, the field types to be selected whose occurrence frequency is greater than the preset threshold can be screened as the field types to be recommended.
[0031] Next, based on the matching form IDs corresponding to each process node of the cluster to be selected, the form attribute data tables corresponding to each field type to be recommended are queried again to obtain the query results. Here, for the form attribute data table corresponding to any field type to be recommended, the table can be queried based on the matching form IDs corresponding to each process node of the cluster to be selected, so as 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 field type to be recommended include the matching form IDs hit in the table. Based on the query results corresponding to the form attribute data tables corresponding to all field types to be recommended, the frequency of occurrence of each matching form ID can be determined, thereby screening out several matching form IDs with the highest frequency of occurrence and constructing a recommended form list accordingly.
[0032] In some embodiments, if a matching form ID appears multiple times in the query results corresponding to the form attribute data table corresponding to any field type to be recommended, only one is retained. Subsequently, the occurrence frequency of each matching form ID in the query results corresponding to the form attribute data table corresponding to all field types to be recommended is counted to determine a recommended form list.
[0033] In other embodiments, the query result corresponding to the form attribute data table corresponding to any field type to be recommended retains all the matching form IDs that are hit and the field description information of the row where they are located. In order to more accurately construct the recommended form list, clustering can be 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. Among them, any field description cluster contains one or more field description information and its corresponding matching form ID. Based on the frequency of occurrence of each matching form ID in each field description cluster, the recommended form list is determined. Among them, if the frequency of occurrence of any matching form ID in any field description cluster is greater than 1, it is determined that the frequency of occurrence of the matching form ID in the field description cluster is 1. By accumulating the frequency of occurrence of any matching form ID in each field description cluster, the total frequency of the matching form ID can be obtained, so that based on the total frequency of each matching form ID, several matching form IDs with the highest total frequency are screened to construct the recommended form list.
[0034] 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 also 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 attribute data table corresponding to each form field also includes the display permission (indicating the display strategy corresponding to different permission levels) and operation permission (indicating the operable type corresponding to different permission levels) corresponding to the corresponding field. When the user triggers the 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 attribute data table is determined based on the field type of the field, and 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 the current process node, the rows corresponding to other process nodes and the current process node are determined from the corresponding form attribute data table, and based on the field permission setting operation triggered by the user for the field, the display permission and / or operation permission in the rows corresponding to other process nodes and the current process node are updated.
[0035] After the user completes the editing operation on the recommended form, the matching form ID corresponding to the current process node in the workflow database table is updated based on the form ID of the recommended form. Subsequently, based on the matching form ID corresponding to the current process node in the workflow database table, the field description information of the field corresponding to the above matching form ID is determined from the form attribute data table corresponding to each form field. Based on the field description information of the field corresponding to the above matching form ID, a form page of the matching form ID is created so that when the user submits a form page access request for the current process node, the form page of the matching form ID is displayed to the user. Among them, based on the matching relationship between the display authority and the operation authority of the field corresponding to the matching form ID in the form attribute data table corresponding to each form field and the permission information of the current process node in the workflow database table, the corresponding fields in the form page of the matching form ID can be displayed to ensure the standardized execution of the process, protect data security, and improve operational compliance.
[0036] Based on any of the above embodiments, the workflow database table also includes a timeout configuration field corresponding to each process node of the current workflow to realize automated processing and management of the workflow. The timeout configuration field includes a timeout time and a timeout type; the timeout type indicates whether the corresponding process node has an automatic flow function enabled, and the timeout time indicates the time to automatically flow to the next process node when the automatic flow function is enabled at the corresponding process node.
[0037] In summary, the method 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, the recommended form list corresponding to the process node is determined and displayed based on the business operation 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, thereby improving the flexibility and efficiency of the form page configuration.
[0038] The following is a description of a form page configuration device based on a workflow node provided by the present invention. The form page configuration device based on a workflow node described below and the form page configuration method based on a workflow node described above can be referred to in correspondence with each other.
[0039] Based on any of the above embodiments, Figure 3 is a schematic diagram of the structure of the form page configuration device based on workflow nodes provided by the present invention, such as Figure 3As shown, the device comprises: The first table creation unit 310 is used to 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; The form recommendation unit 320 is used to determine and display a list of recommended forms corresponding to any process node based on the business operation of any process node when the user opens the configuration page of any process node of the current workflow; The second table creation unit 330 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 the fields included in the recommended form and the form ID of the recommended form; The table updating unit 340 is used to update the form attribute data table based on the user's editing operation on the fields in the recommended 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 recommended form.
[0040] The device provided by the embodiment of the present invention creates a workflow database table corresponding to the current workflow. When a user opens the configuration page of any process node of the current workflow, the recommended form list corresponding to the process node is determined and displayed based on the business operation 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 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, thereby improving the flexibility and efficiency of the form page configuration.
[0041] 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 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.
[0042] Based on any of the above embodiments, determining and displaying a list of recommended forms corresponding to any of the process nodes based on the business operation of any of the process nodes 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.
[0043] Based on any of the above embodiments, 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.
[0044] Based on any of the above embodiments, updating 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.
[0045] 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 permission information of the corresponding process node; the field description information of each field in the form attribute data table includes display permission and operation permission corresponding to the corresponding field; The device also includes a permission setting unit, which is used to: 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.
[0046] Based on any of the above embodiments, the device further includes a page creation unit, and the page creation unit is used to: 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.
[0047] Based on any of the above embodiments, when the user submits a form page access request of any of the process nodes, displaying the form page matching the form ID includes: 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.
[0048] Based on any of the above embodiments, 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.
[0049] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor (processor) 410, a memory (memory) 420, a communication interface (Communications Interface) 430 and a communication bus 440, wherein the processor 410, the memory 420, and the communication interface 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 420 to execute a form page configuration method based on a workflow node, the method comprising: creating a workflow database table corresponding to the current workflow; wherein the workflow database table contains process description information and matching form IDs corresponding to each process node of the current workflow, and the current value of the matching form ID is empty; when a user opens the configuration page of any process node of the current workflow, a recommended form list corresponding to any process node is determined and displayed based on the business operation of 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 the fields contained 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 any process node in the workflow database table is updated based on the form ID of the recommended form.
[0050] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0051] On the other hand, the present invention also provides a computer program product, the computer program product 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 methods, the method comprising: creating a workflow database table corresponding to the current workflow; wherein the workflow database table contains process description information and matching form IDs corresponding to each process node of the current workflow, and the current value of the matching form ID is empty; when a user opens the configuration page of any process node of the current workflow, the form page configuration method based on workflow nodes is created; Determine and display a list of recommended forms corresponding to any process node based on the business operation of any process node; 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 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, 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 recommended form.
[0052] On the other hand, 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 is implemented to execute the above-mentioned form page configuration method based on workflow nodes, the method comprising: creating 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 the configuration page of any process node of the current workflow, based on the business operation of any process node, a recommended form list corresponding to any process node is determined and displayed; 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 the fields contained 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 any process node in the workflow database table is updated based on the form ID of the recommended form.
[0053] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0054] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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.
[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions 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 recommended form, the form attribute data table is updated, and based on the form ID of the recommended form, the matching form ID corresponding to any process node in the workflow database table is updated.
2. The form page configuration method based on workflow nodes according to claim 1, characterized in that: 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 and the form ID of the corresponding form.
3. The form page configuration method based on workflow nodes according to claim 2 is characterized in that: 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.
4. The form page configuration method based on workflow nodes according to claim 3 is 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.
5. The form page configuration method based on workflow nodes according to claim 2, 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.
6. The form page configuration method based on workflow nodes according to claim 2, 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.
7. The form page configuration method based on workflow nodes according to claim 6, 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.
8. The form page configuration method based on workflow nodes according to claim 7, 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.
9. The form page configuration method based on workflow nodes according to any one of claims 1 to 8, 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.
10. 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; The table updating unit is used to update the form attribute data table based on the user's editing operation on the fields in the recommended 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 recommended form.
Citation Information
Patent Citations
Work flow management system and work flow handling method
CN104021460A
Visualization rapid developing platform based on jbpm workflow engine
CN105700888A
Activiti-adaptive draggable form generation method
CN107122173A
Historical template-based workflow design method and system
CN110443585A
System and method for realizing dynamic workflow configuration based on graphical tool
CN110458430A
Cited By
Automatic Excel data filling method
CN121413580A
An Excel data autofill method
CN121413580B