Business form approval method and device
By deploying business form approval procedures in each node of the workflow system, the problem that deploying workflow code in the business side system is not conducive to maintenance and adjustment is solved, and the workflow management of multiple participating nodes is realized, which improves the flexibility and management efficiency of business processes.
Patent Information
- Application Number
- CN202210698387.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2042-06-20
AI Technical Summary
Deploying workflow code in business-side systems is not conducive to code maintenance and adjustment, and it is difficult to effectively manage multiple participating nodes in business processes.
By deploying the business form approval program in each node of the workflow system, receiving the business form information sent by the target preorder node, judging and meeting the preset node startup conditions, performing rendering and output processing and approval, and finally sending the approval result to the postorder node.
It realizes workflow management of multiple participating nodes in the business process, without the need to deploy workflow code in the business party system, and avoids the impact on the business party system code maintenance and adjustment.
Smart Images

Figure CN115018345B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of workflow technology, and in particular to a method and device for approving a business form. Background Art
[0002] Workflow is an abstract and general description of the business rules between the workflow and its various operation steps. That is, workflow uses computer technology to automate the management of business processes, enabling multiple participating nodes to automatically perform corresponding tasks according to a predetermined process.
[0003] Currently, workflow codes are usually deployed in the business system, that is, the workflow codes are coupled with the business system codes to enable the business system to manage multiple participating nodes in the business process. However, deploying workflow codes in the business system is not conducive to the maintenance and adjustment of the business system codes. Summary of the invention
[0004] The embodiment of the present application provides a business form approval method and device, the main purpose of which is to achieve workflow management of multiple participating nodes in a business process.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a business form approval method, the method being applied to a current node in a workflow system, the method comprising:
[0007] Receive first business form information corresponding to a target business form sent by a target predecessor node, wherein the first business form information includes first form data contained in the target business form and a unique identifier corresponding to the target business form, and a first predecessor approval result;
[0008] Acquire the preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determine whether the preset node startup condition is met;
[0009] If satisfied, rendering and outputting the target business form according to the first previous approval result and the first form data corresponding to the target business form, so that the approver corresponding to the current node can approve the target business form;
[0010] When the current approval result input by the approver is received, the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data are sent to each target subsequent node.
[0011] Optionally, before rendering and outputting the target business form according to the first preceding approval result and the first form data corresponding to the target business form, the method further includes:
[0012] When the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target predecessor node, sending the first form data corresponding to the target business form to the business party system, so that the business party system determines the first modification information corresponding to the current node according to the first form data;
[0013] Receive the first modification information sent by the business party system, and modify the node attribute corresponding to the current node and the first form data according to the first modification information.
[0014] Optionally, before rendering and outputting the target business form according to the first preceding approval result and the first form data corresponding to the target business form, the method further includes:
[0015] When the startup condition of the preset node is receiving the first business form information corresponding to the target business form sent by the target predecessor node and the second business form information corresponding to the target business form sent by other predecessor nodes, the first form data and the second form data corresponding to the target business form are sent to the business party system, so that the business party system determines the second modification information corresponding to the current node according to the first form data and the second form data, wherein the second form data is the form data included in the second business form information;
[0016] Receive the second modification information sent by the business party system, and modify the node attribute corresponding to the current node, the first form data, and the second form data according to the second modification information.
[0017] Optionally, the rendering and outputting processing of the target business form according to the first previous approval result and the first form data corresponding to the target business form includes:
[0018] Acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0019] The target business form is rendered and outputted according to the preset form template, the first pre-approval result and the modified first form data.
[0020] Optionally, the rendering and outputting processing of the target business form according to the first previous approval result and the first form data corresponding to the target business form includes:
[0021] Acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0022] The target business form is rendered and outputted according to the preset form template, the first preliminary approval result, the modified first form data, the second preliminary approval result, and the modified second form data; wherein the second preliminary approval result is the preliminary approval result included in the second business form information.
[0023] Optionally, sending the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result, and the first form data to each target subsequent node includes:
[0024] Determine the multiple target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form;
[0025] The unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the modified first form data are sent to each of the target subsequent nodes.
[0026] Optionally, sending the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result, and the first form data to each target subsequent node includes:
[0027] Determine the multiple target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form;
[0028] The unique identifier corresponding to the target business form, the first preceding approval result, the second preceding approval result, the current approval result, the modified first form data and the modified second form data are sent to each of the target subsequent nodes.
[0029] Optionally, before receiving the first business form information corresponding to the target business form sent by the target preceding node, the method further includes:
[0030] Receive the unique identifier and preset form template corresponding to each business form sent by the business party system;
[0031] The mapping relationship between the unique identifier corresponding to each business form and the preset form template is stored in the local storage space.
[0032] In a second aspect, the present application further provides a business form approval device, the device is applied to a current node in a workflow system, and the device includes:
[0033] A first receiving unit is used to receive first business form information corresponding to a target business form sent by a target predecessor node, wherein the first business form information includes first form data contained in the target business form and a unique identifier corresponding to the target business form, and a first predecessor approval result;
[0034] A judgment unit, configured to obtain a preset node startup condition corresponding to the current node according to a unique identifier corresponding to the target business form, and judge whether the preset node startup condition is met;
[0035] A first processing unit is configured to render and output the target business form according to the first previous approval result and the first form data corresponding to the target business form when the judgment unit determines that the preset node startup condition is met, so that the approver corresponding to the current node can approve the target business form;
[0036] The sending unit is used to send the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node when receiving the current approval result input by the approver.
[0037] Optionally, the device further comprises:
[0038] The second processing unit is used to send the first form data corresponding to the target business form to the business party system when the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target predecessor node before the first processing unit renders and outputs the target business form according to the first predecessor approval result and the first form data corresponding to the target business form, so that the business party system can determine the first modification information corresponding to the current node according to the first form data; receive the first modification information sent by the business party system, and modify the node attributes corresponding to the current node and the first form data according to the first modification information.
[0039] Optionally, the device further comprises:
[0040] A third processing unit is used for sending the first form data and the second form data corresponding to the target business form to the business party system before the first processing unit renders and outputs the target business form according to the first preceding approval result and the first form data corresponding to the target business form, when the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target preceding node and the second business form information corresponding to the target business form sent by other preceding nodes, so that the business party system determines the second modification information corresponding to the current node according to the first form data and the second form data; receives the second modification information sent by the business party system, and modifies the node attributes corresponding to the current node, the first form data and the second form data according to the second modification information; wherein the second form data is the form data included in the second business form information.
[0041] Optionally, the first processing unit includes:
[0042] A first acquisition module, configured to acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0043] The first processing module is used to render and output the target business form according to the preset form template, the first pre-approval result and the modified first form data.
[0044] Optionally, the first processing unit includes:
[0045] A second acquisition module, configured to acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0046] The second processing module is used to render and output the target business form according to the preset form template, the first preliminary approval result, the modified first form data, the second preliminary approval result, and the modified second form data; wherein the second preliminary approval result is the preliminary approval result included in the second business form information.
[0047] Optionally, the sending unit includes:
[0048] A first determination module, configured to determine a plurality of target subsequent nodes corresponding to the current node according to a unique identifier corresponding to the target business form;
[0049] The first sending module is used to send the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the modified first form data to each of the target subsequent nodes.
[0050] Optionally, the sending unit includes:
[0051] A second determination module is used to determine a plurality of target subsequent nodes corresponding to the current node according to a unique identifier corresponding to the target business form;
[0052] The second sending module is used to send the unique identifier corresponding to the target business form, the first preceding approval result, the second preceding approval result, the current approval result, the modified first form data and the modified second form data to each of the target subsequent nodes.
[0053] Optionally, the device further comprises:
[0054] A second receiving unit is used to receive a unique identifier and a preset form template corresponding to each business form sent by the business party system before the first receiving unit receives the first business form information corresponding to the target business form sent by the target predecessor node;
[0055] The storage unit is used to store the mapping relationship between the unique identifier corresponding to each business form and the preset form template in the local storage space.
[0056] In a third aspect, an embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the business form approval method described in the first aspect.
[0057] In a fourth aspect, an embodiment of the present application provides a business form approval device, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the business form approval method described in the first aspect is executed.
[0058] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0059] The present application provides a business form approval method and device. The present application can receive and obtain the first business form information sent by the target predecessor node, which carries the first form data contained in the target business form, the unique identifier corresponding to the target business form and the first predecessor approval result, and then the business form approval program in the current node obtains the preset node start condition corresponding to the current node according to the unique identifier corresponding to the target business form, and judges whether the preset node start condition is met. When it is judged that the preset node start condition is met, the business form approval program in the current node renders and outputs the target business form according to the first predecessor approval result and the first form data corresponding to the target business form, so that one or more approvers at the current node can approve the target business form. After receiving and obtaining the current approval result input by each approver, the business form approval program in the current node can send the unique identifier, the first predecessor approval result, the current approval result and the first form data corresponding to the target business form to each target subsequent node, so that each target subsequent node automatically executes the business form approval task according to the above scheme. In this application, the business form approval program in each participating node participating in the target business process controls multiple participating nodes to automatically execute the approval tasks of the target business form according to the target business process, thereby realizing workflow management of multiple participating nodes participating in the target business process without deploying workflow code in the business party system.
[0060] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0062] Figure 1 A flowchart of a business form approval method provided in an embodiment of the present application is shown;
[0063] Figure 2 A flowchart of another business form approval method provided in an embodiment of the present application is shown;
[0064] Figure 3 A block diagram showing a composition of a business form approval device provided in an embodiment of the present application is shown;
[0065] Figure 4A block diagram showing the composition of another business form approval device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0066] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0067] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0068] In the prior art, workflow codes are usually deployed in the business system, and the business system uses the workflow code to perform workflow management on multiple participating nodes in the target business process (i.e., the target business form approval process), thereby controlling multiple participating nodes to automatically execute the approval task of the target business form according to a predetermined process.
[0069] However, deploying the workflow code in the business side system requires coupling the workflow code with the business side system code. Therefore, deploying the workflow code in the business side system is not conducive to the maintenance and adjustment of the business side system code.
[0070] In view of the problems existing in the process of implementing workflow management for multiple participating nodes in a target business process in the prior art, an embodiment of the present application provides a business form approval method, in which a business form approval program is pre-deployed in each node included in a workflow system, so that the business form approval program in each participating node in the target business process controls the multiple participating nodes to automatically execute the approval task of the target business form according to the target business process, thereby realizing workflow management for multiple participating nodes in the target business process without deploying workflow code in the business party system, and thus will not affect the maintenance and adjustment of the business party system code, as shown in the specific example. Figure 1 As shown, the method includes:
[0071] 101. Receive first business form information corresponding to a target business form sent by a target preceding node.
[0072] Among them, different business processes require approval of different business forms, and the target business form is the business form that needs to be approved in the target business process; wherein, the first business form information corresponding to the target business form includes the first form data contained in the target business form and the unique identifier corresponding to the target business form, and the first predecessor approval result; wherein, the first predecessor approval result is the approval result input to the target predecessor node after the approver at the target predecessor node approves the target business form rendered and output by the target predecessor node, and the approval result input to the predecessor node corresponding to the target predecessor node after the approver at the predecessor node corresponding to the target predecessor node approves the target business form rendered and output by the predecessor node corresponding to the target predecessor node.
[0073] In an embodiment of the present application, the executing entity in each step is a business form approval program deployed in the current node; wherein the current node is any node participating in the target business process in the workflow system, and the workflow system includes multiple nodes; wherein the multiple nodes included in the workflow system present a directed acyclic graph structure, that is, the current node has one or more predecessor nodes and one or more successor nodes.
[0074] In an embodiment of the present application, after receiving the approval result input by the approver at the target predecessor node, the business form approval program in the target predecessor node will send the first business form information corresponding to the target business form to the business form approval program in the current node. At this time, the business form approval program in the current node will receive the first business form information corresponding to the target business form sent by the target predecessor node.
[0075] It should be noted that, in actual application, when the target predecessor node is specifically the initiating node for creating the target business form, the first business form information corresponding to the target business form and sent by the target predecessor node does not include the first predecessor approval result.
[0076] 102. Obtain a preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determine whether the preset node startup condition is met.
[0077] Among them, for different business forms, the current node needs to meet different node startup conditions, that is, different business forms correspond to different current node startup conditions. The business party system will send the mapping relationship between the unique identifier corresponding to each business form and the current node startup condition to the business form approval program in the current node in advance. The business form approval program in the current node will store the mapping relationship between the unique identifier corresponding to each business form and the current node startup condition in the local storage space of the current node; Among them, because, in some cases, the current node can start the approval task of executing the target business form after receiving the first business form information corresponding to the target business form sent by the target predecessor node, and in some cases After the current node receives the first business form information corresponding to the target business form sent by the target predecessor node, it needs to receive the second business form information corresponding to the target business form sent by other predecessor nodes before it can start the approval task of executing the target business form. Therefore, the preset node start condition corresponding to the current node can be but is not limited to any one of the following conditions: (1) the business form approval program in the current node receives the first business form information corresponding to the target business form sent by the target predecessor node; (2) the business form approval program in the current node receives the first business form information corresponding to the target business form sent by the target predecessor node and the second business form information corresponding to the target business form sent by other predecessor nodes, etc.
[0078] In an embodiment of the present application, after receiving the first business form information corresponding to the target business form sent by the target predecessor node, the business form approval program in the current node can obtain the preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determine whether the preset node startup condition is met.
[0079] 103. If the conditions are met, the target business form is rendered and output according to the first previous approval result and the first form data corresponding to the target business form, so that the approver corresponding to the current node can approve the target business form.
[0080] In an embodiment of the present application, when it is determined that the preset node startup conditions are met, the business form approval program in the current node can render and output the target business form based on the first preceding approval result and the first form data corresponding to the target business form, that is, first render the target business form based on the first preceding approval result and the first form data corresponding to the target business form, and then output and display the rendered target business form, so that one or more approvers at the current node can approve the target business form.
[0081] It should be noted that when it is determined that the preset node startup condition is not met, the business form approval program in the current node needs to store the first business form information corresponding to the target business form sent by the target predecessor node into the local storage space and wait.
[0082] 104. When the current approval result input by the approver is received, the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data are sent to each target subsequent node.
[0083] In an embodiment of the present application, after receiving the current approval result input by each approver, the business form approval program in the current node can send the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node, so that each target subsequent node can act as the current node and automatically execute the business form approval task according to the plan recorded in the above steps 101-104.
[0084] It should be noted that in actual application, the business form approval program in the current node also needs to send the unique identifier corresponding to the target business form, the first previous approval result, the current approval result and the first form data to the business party system for backup.
[0085] The embodiment of the present application provides a business form approval method. In the embodiment of the present application, after the business form approval program in the current node receives the first form data sent by the target predecessor node and carrying the first form data contained in the target business form, the unique identifier corresponding to the target business form and the first predecessor approval result, the business form approval program in the current node obtains the preset node start condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determines whether the preset node start condition is met. When it is determined that the preset node start condition is met, the business form approval program in the current node renders and outputs the target business form according to the first predecessor approval result and the first form data corresponding to the target business form, so that one or more approvers at the current node approve the target business form. After receiving the current approval result input by each approver, the business form approval program in the current node can send the unique identifier, the first predecessor approval result, the current approval result and the first form data corresponding to the target business form to each target subsequent node, so that each target subsequent node automatically executes the business form approval task according to the above scheme. In an embodiment of the present application, the business form approval program in each participating node participating in the target business process controls multiple participating nodes to automatically execute the approval task of the target business form according to the target business process, thereby realizing workflow management of multiple participating nodes participating in the target business process without deploying workflow code in the business party system.
[0086] To explain in more detail below, the present application embodiment provides another business form approval method, which is applied to the current node in the workflow system. Figure 2 As shown, the method includes:
[0087] 201. Receive a unique identifier and a preset form template corresponding to each business form sent by a business party system, and store a mapping relationship between the unique identifier and the preset form template corresponding to each business form in a local storage space.
[0088] In an embodiment of the present application, the business party system will send the unique identifier and preset form template corresponding to each business form to the business form approval program in the current node in advance; after receiving the unique identifier and preset form template corresponding to each business form sent by the business party system, the business form approval program in the current node will store the mapping relationship between the unique identifier corresponding to each business form and the preset form template in the local storage space, so that the business form approval program in the current node can subsequently obtain the preset form template corresponding to a business form in the local storage space according to the unique identifier corresponding to a business form, and render the business form based on the preset form template corresponding to the business form.
[0089] 202. Receive first business form information corresponding to a target business form sent by a target preceding node.
[0090] Regarding step 202, receiving the first business form information corresponding to the target business form sent by the target predecessor node, please refer to Figure 1 The description of the corresponding parts will not be repeated here in the embodiments of the present application.
[0091] 203. Obtain the preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determine whether the preset node startup condition is met.
[0092] Among them, regarding step 203, obtaining the preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and judging whether the preset node startup condition is met, please refer to Figure 1 The description of the corresponding parts will not be repeated here in the embodiments of the present application.
[0093] 204. If satisfied, modify the node attribute and the first form data corresponding to the current node.
[0094] In an embodiment of the present application, when it is determined that the preset node startup conditions are met, the business form approval program in the current node can modify the node attributes and the first form data corresponding to the current node, so that the business form approval program in the current node has the conditions to meet the rendering of the target business form, and processes the first form data according to the business party system requirements.
[0095] Specifically, in this step, (1) when the preset node startup condition is specifically receiving the first business form information corresponding to the target business form sent by the target predecessor node, the business form approval program in the current node needs to send the first form data corresponding to the target business form to the business party system, so that the business party system determines the first modification information corresponding to the current node according to the first form data, and sends the first modification information corresponding to the current node to the business form approval program in the current node; after receiving the first modification information sent by the business party system, the business form approval program in the current node can modify the node attribute and the first form data corresponding to the current node according to the first modification information; (2) when the preset node startup condition is specifically receiving the first business form information corresponding to the target business form sent by the target predecessor node and the second modification information corresponding to the target business form sent by other predecessor nodes, When receiving business form information, the business form approval program in the current node needs to send the first form data and the second form data corresponding to the target business form to the business party system, so that the business party system can determine the second modification information corresponding to the current node according to the first form data and the second form data, and send the second modification information corresponding to the current node to the business form approval program in the current node; after receiving the second modification information sent by the business party system, the business form approval program in the current node can modify the node attributes, the first form data and the second form data corresponding to the current node according to the second modification information, wherein the second form data is the form data included in the second business form information; wherein, the target predecessor node and other predecessor nodes are all predecessor nodes of the current node, and the number of other predecessor nodes can be one or more, which is not specifically limited in the embodiment of the present application.
[0096] 205. Render and output the target business form according to the first previous approval result corresponding to the target business form and the modified first form data, so that the approver corresponding to the current node can approve the target business form.
[0097] In an embodiment of the present application, after the business form approval program in the current node modifies the node attributes and the first form data corresponding to the current node, it can render and output the target business form according to the first preceding approval result and the first form data corresponding to the target business form. That is, the target business form is first rendered according to the first preceding approval result and the first form data corresponding to the target business form, and then the rendered target business form is output and displayed, so that one or more approvers at the current node can approve the target business form.
[0098] Specifically, in this step, the business form approval program in the current node renders and outputs the target business form according to the first previous approval result corresponding to the target business form and the modified first form data in the following manner:
[0099] First, the preset form template corresponding to the target business form is obtained in the local storage space of the current node according to the unique identifier corresponding to the target business form; secondly, when the preset node startup condition is specifically receiving the first business form information corresponding to the target business form sent by the target predecessor node, that is, in step 204, the business form approval procedure in the current node modifies the node attribute and the first form data corresponding to the current node according to the first modification information, the target business form is rendered and output according to the preset form template corresponding to the target business form, the first predecessor approval result and the modified first form data; when the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target predecessor node and the second business form information corresponding to the target business form sent by other predecessor nodes, that is, in step 204, when The business form approval procedure in the previous node is to render and output the target business form according to the first previous approval result, the modified first form data, the second previous approval result, and the modified second form data when modifying the node attributes, the first form data and the second form data corresponding to the current node according to the second modification information; wherein the second previous approval result is the previous approval result included in the second business form information, that is, the second previous approval result is specifically the approval result input to the other previous nodes after the approvers at other previous nodes approve the target business form rendered and output by other previous nodes, and the approval result input to the previous nodes corresponding to other previous nodes after the approvers at the previous nodes corresponding to other previous nodes approve the target business form rendered and output by the previous nodes corresponding to other previous nodes.
[0100] 206. When the current approval result input by the approver is received, the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data are sent to each target subsequent node.
[0101] In an embodiment of the present application, after receiving the current approval result input by each approver, the business form approval program in the current node can send the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node, so that each target subsequent node can act as the current node and automatically execute the business form approval task according to the plan recorded in the above steps 101-104.
[0102] Among them, for different business forms, the current node corresponds to different subsequent nodes. The business party system will send the mapping relationship between the unique identifier corresponding to each business form and the subsequent node corresponding to the current node to the business form approval program in the current node in advance. The business form approval program in the current node will store the mapping relationship between the unique identifier corresponding to each business form and the subsequent node corresponding to the current node in the local storage space of the current node.
[0103] Specifically, in this step, the specific process of the business form approval program in the current node sending the unique identifier corresponding to the target business form, the first previous approval result, the current approval result and the first form data to each target subsequent node is:
[0104] First, multiple target subsequent nodes corresponding to the current node are determined according to the unique identifier corresponding to the target business form, that is, multiple target subsequent nodes corresponding to the current node are searched in the local storage space of the current node according to the unique identifier corresponding to the target business form; secondly, when the preset node startup condition is specifically to receive the first business form information corresponding to the target business form sent by the target preceding node, that is, in step 205, the business form approval program in the current node is to render and output the target business form according to the preset form template corresponding to the target business form, the first preceding approval result, and the first form data after the modification, the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result, and the first form data after the modification are received. The form data is sent to each target subsequent node; when the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target preceding node and the second business form information corresponding to the target business form sent by other preceding nodes, that is, in step 205, the business form approval program in the current node renders and outputs the target business form according to the first preceding approval result, the modified first form data, the second preceding approval result, and the modified second form data, the unique identifier corresponding to the target business form, the first preceding approval result, the second preceding approval result, the current approval result, the modified first form data, and the modified second form data are sent to each target subsequent node.
[0105] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application further provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned business form approval method.
[0106] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides an approval device for a business form, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the above-mentioned business form approval method is executed.
[0107] Furthermore, as a response to the above Figure 1 and Figure 2 In order to realize the method shown in the figure, another embodiment of the present application also provides an approval device for a business form, which is applied to the current node in the workflow system. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. This device is used to implement workflow management of multiple participating nodes in a business process, specifically as follows Figure 3 As shown, the device comprises:
[0108] The first receiving unit 31 is used to receive first business form information corresponding to the target business form sent by the target predecessor node, wherein the first business form information includes the first form data contained in the target business form and the unique identifier corresponding to the target business form, and the first predecessor approval result;
[0109] The judging unit 32 is configured to obtain the preset node starting condition corresponding to the current node according to the unique identifier corresponding to the target business form, and judge whether the preset node starting condition is met;
[0110] The first processing unit 33 is configured to render and output the target business form according to the first previous approval result and the first form data corresponding to the target business form when the judgment unit 32 determines that the preset node startup condition is met, so that the approver corresponding to the current node can approve the target business form;
[0111] The sending unit 34 is used to send the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node when receiving the current approval result input by the approver.
[0112] Further, such as Figure 4As shown, the device also includes:
[0113] The second processing unit 35 is used for sending the first form data corresponding to the target business form to the business party system before the first processing unit 33 renders and outputs the target business form according to the first preceding approval result and the first form data corresponding to the target business form, when the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target preceding node, so that the business party system determines the first modification information corresponding to the current node according to the first form data; receives the first modification information sent by the business party system, and modifies the node attributes corresponding to the current node and the first form data according to the first modification information.
[0114] Further, such as Figure 4 As shown, the device also includes:
[0115] The third processing unit 36 is used for sending the first form data and the second form data corresponding to the target business form to the business party system before the first processing unit 33 renders and outputs the target business form according to the first preceding approval result and the first form data corresponding to the target business form, when the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target preceding node and the second business form information corresponding to the target business form sent by other preceding nodes, so that the business party system determines the second modification information corresponding to the current node according to the first form data and the second form data; receives the second modification information sent by the business party system, and modifies the node attributes corresponding to the current node, the first form data and the second form data according to the second modification information; wherein the second form data is the form data included in the second business form information.
[0116] Further, such as Figure 4 As shown, the first processing unit 33 includes:
[0117] A first acquisition module 331 is used to acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0118] The first processing module 332 is used to render and output the target business form according to the preset form template, the first pre-approval result and the modified first form data.
[0119] Further, such as Figure 4 As shown, the first processing unit 33 includes:
[0120] A second acquisition module 333 is used to acquire a preset form template corresponding to the target business form in the local storage space according to the unique identifier corresponding to the target business form;
[0121] The second processing module 334 is used to render and output the target business form according to the preset form template, the first preliminary approval result, the modified first form data, the second preliminary approval result, and the modified second form data; wherein the second preliminary approval result is the preliminary approval result included in the second business form information.
[0122] Further, such as Figure 4 As shown, the sending unit 34 includes:
[0123] A first determining module 341 is used to determine a plurality of target subsequent nodes corresponding to the current node according to a unique identifier corresponding to the target business form;
[0124] The first sending module 342 is used to send the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the modified first form data to each of the target subsequent nodes.
[0125] Further, such as Figure 4 As shown, the sending unit 34 includes:
[0126] A second determination module 343 is used to determine a plurality of target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form;
[0127] The second sending module 344 is used to send the unique identifier corresponding to the target business form, the first preceding approval result, the second preceding approval result, the current approval result, the modified first form data and the modified second form data to each of the target subsequent nodes.
[0128] Further, such as Figure 4 As shown, the device also includes:
[0129] The second receiving unit 37 is used to receive a unique identifier and a preset form template corresponding to each business form sent by the business party system before the first receiving unit 31 receives the first business form information corresponding to the target business form sent by the target predecessor node;
[0130] The storage unit 38 is used to store the mapping relationship between the unique identifier corresponding to each business form and the preset form template in the local storage space.
[0131] The embodiment of the present application provides a business form approval method and device. The embodiment of the present application can receive the first business form information sent by the target predecessor node and carrying the first form data contained in the target business form, the unique identifier corresponding to the target business form and the first predecessor approval result, and then the business form approval program in the current node obtains the preset node start condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determines whether the preset node start condition is met. When it is determined that the preset node start condition is met, the business form approval program in the current node renders and outputs the target business form according to the first predecessor approval result and the first form data corresponding to the target business form, so that one or more approvers at the current node approve the target business form; after receiving the current approval result input by each approver, the business form approval program in the current node can send the unique identifier, the first predecessor approval result, the current approval result and the first form data corresponding to the target business form to each target subsequent node, so that each target subsequent node automatically executes the business form approval task according to the above scheme. In an embodiment of the present application, the business form approval program in each participating node participating in the target business process controls multiple participating nodes to automatically execute the approval task of the target business form according to the target business process, thereby realizing workflow management of multiple participating nodes participating in the target business process without deploying workflow code in the business party system.
[0132] The business form approval device includes a processor and a memory. The first receiving unit, the judging unit, the first processing unit and the sending unit are all stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0133] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the workflow management of multiple participating nodes in the business process can be achieved by adjusting the kernel parameters.
[0134] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned business form approval method.
[0135] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0136] An embodiment of the present application also provides an approval device for a business form, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the above-mentioned business form approval method is executed.
[0137] The embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented:
[0138] Receive first business form information corresponding to a target business form sent by a target predecessor node, wherein the first business form information includes first form data contained in the target business form and a unique identifier corresponding to the target business form, and a first predecessor approval result;
[0139] Acquire the preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determine whether the preset node startup condition is met;
[0140] If satisfied, rendering and outputting the target business form according to the first previous approval result and the first form data corresponding to the target business form, so that the approver corresponding to the current node can approve the target business form;
[0141] When the current approval result input by the approver is received, the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data are sent to each target subsequent node.
[0142] Furthermore, before rendering and outputting the target business form according to the first previous approval result and the first form data corresponding to the target business form, the method further includes:
[0143] When the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target predecessor node, sending the first form data corresponding to the target business form to the business party system, so that the business party system determines the first modification information corresponding to the current node according to the first form data;
[0144] Receive the first modification information sent by the business party system, and modify the node attribute corresponding to the current node and the first form data according to the first modification information.
[0145] Furthermore, before rendering and outputting the target business form according to the first previous approval result and the first form data corresponding to the target business form, the method further includes:
[0146] When the startup condition of the preset node is receiving the first business form information corresponding to the target business form sent by the target predecessor node and the second business form information corresponding to the target business form sent by other predecessor nodes, the first form data and the second form data corresponding to the target business form are sent to the business party system, so that the business party system determines the second modification information corresponding to the current node according to the first form data and the second form data, wherein the second form data is the form data included in the second business form information;
[0147] Receive the second modification information sent by the business party system, and modify the node attribute corresponding to the current node, the first form data, and the second form data according to the second modification information.
[0148] Furthermore, the rendering and outputting processing of the target business form according to the first previous approval result and the first form data corresponding to the target business form includes:
[0149] Acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0150] The target business form is rendered and outputted according to the preset form template, the first pre-approval result and the modified first form data.
[0151] Furthermore, the rendering and outputting processing of the target business form according to the first previous approval result and the first form data corresponding to the target business form includes:
[0152] Acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form;
[0153] The target business form is rendered and outputted according to the preset form template, the first preliminary approval result, the modified first form data, the second preliminary approval result, and the modified second form data; wherein the second preliminary approval result is the preliminary approval result included in the second business form information.
[0154] Furthermore, the sending of the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node includes:
[0155] Determine the multiple target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form;
[0156] The unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the modified first form data are sent to each of the target subsequent nodes.
[0157] Furthermore, the sending of the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node includes:
[0158] Determine the multiple target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form;
[0159] The unique identifier corresponding to the target business form, the first preceding approval result, the second preceding approval result, the current approval result, the modified first form data and the modified second form data are sent to each of the target subsequent nodes.
[0160] Furthermore, before receiving the first business form information corresponding to the target business form sent by the target preceding node, the method further includes:
[0161] Receive the unique identifier and preset form template corresponding to each business form sent by the business party system;
[0162] The mapping relationship between the unique identifier corresponding to each business form and the preset form template is stored in the local storage space.
[0163] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing program code that initializes the following method steps: receiving first business form information corresponding to a target business form sent by a target predecessor node, wherein the first business form information includes first form data contained in the target business form and a unique identifier and a first predecessor approval result corresponding to the target business form; obtaining a preset node start condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determining whether the preset node start condition is met; if so, rendering and outputting the target business form according to the first predecessor approval result and the first form data corresponding to the target business form, so that the approver corresponding to the current node can approve the target business form; when receiving the current approval result input by the approver, sending the unique identifier, the first predecessor approval result, the current approval result and the first form data corresponding to the target business form to each target successor node.
[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0169] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0170] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0171] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0172] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0173] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A business form approval method, characterized in that: The method pre-deploys a business form approval program in each node included in the workflow system. The business form approval program controls multiple participating nodes to automatically execute the approval task of the target business form according to the target business process. The method is applied to the current node in the workflow system. The method includes: Receive first business form information corresponding to a target business form sent by a target predecessor node, wherein the first business form information includes first form data contained in the target business form and a unique identifier corresponding to the target business form, and a first predecessor approval result; Acquire the preset node startup condition corresponding to the current node according to the unique identifier corresponding to the target business form, and determine whether the preset node startup condition is met; If satisfied, rendering and outputting the target business form according to the first previous approval result and the first form data corresponding to the target business form, so that the approver corresponding to the current node can approve the target business form; When receiving the current approval result input by the approver, the business form approval program in the current node sends the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node according to the target business process.
2. The method according to claim 1, characterized in that Before rendering and outputting the target business form according to the first preceding approval result and the first form data corresponding to the target business form, the method further includes: When the preset node startup condition is receiving the first business form information corresponding to the target business form sent by the target predecessor node, sending the first form data corresponding to the target business form to the business party system, so that the business party system determines the first modification information corresponding to the current node according to the first form data; Receive the first modification information sent by the business party system, and modify the node attribute corresponding to the current node and the first form data according to the first modification information.
3. The method according to claim 1, characterized in that: Before rendering and outputting the target business form according to the first preceding approval result and the first form data corresponding to the target business form, the method further includes: When the startup condition of the preset node is receiving the first business form information corresponding to the target business form sent by the target predecessor node and the second business form information corresponding to the target business form sent by other predecessor nodes, the first form data and the second form data corresponding to the target business form are sent to the business party system, so that the business party system determines the second modification information corresponding to the current node according to the first form data and the second form data, wherein the second form data is the form data included in the second business form information; Receive the second modification information sent by the business party system, and modify the node attribute corresponding to the current node, the first form data, and the second form data according to the second modification information.
4. The method according to claim 2, characterized in that: The rendering and outputting processing of the target business form according to the first previous approval result and the first form data corresponding to the target business form includes: Acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form; The target business form is rendered and outputted according to the preset form template, the first pre-approval result and the modified first form data.
5. The method according to claim 3, characterized in that: The rendering and outputting processing of the target business form according to the first previous approval result and the first form data corresponding to the target business form includes: Acquire a preset form template corresponding to the target business form in a local storage space according to a unique identifier corresponding to the target business form; The target business form is rendered and outputted according to the preset form template, the first preliminary approval result, the modified first form data, the second preliminary approval result, and the modified second form data; wherein the second preliminary approval result is the preliminary approval result included in the second business form information.
6. The method according to claim 4, characterized in that The sending of the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node includes: Determine the multiple target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form; The unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the modified first form data are sent to each of the target subsequent nodes.
7. The method according to claim 5, characterized in that The sending of the unique identifier corresponding to the target business form, the first preceding approval result, the current approval result and the first form data to each target subsequent node includes: Determine the multiple target subsequent nodes corresponding to the current node according to the unique identifier corresponding to the target business form; The unique identifier corresponding to the target business form, the first preceding approval result, the second preceding approval result, the current approval result, the modified first form data and the modified second form data are sent to each of the target subsequent nodes.
8. The method according to claim 4 or 5, characterized in that: Before receiving the first business form information corresponding to the target business form sent by the target preceding node, the method further includes: Receive the unique identifier and preset form template corresponding to each business form sent by the business party system; The mapping relationship between the unique identifier corresponding to each business form and the preset form template is stored in the local storage space.
9. A business form approval device, characterized in that: The device deploys a business form approval program in advance in each node included in the workflow system. The business form approval program controls multiple participating nodes to automatically execute the approval task of the target business form according to the target business process. The device is applied to the current node in the workflow system. The device includes: A first receiving unit is used to receive first business form information corresponding to a target business form sent by a target predecessor node, wherein the first business form information includes first form data contained in the target business form and a unique identifier corresponding to the target business form, and a first predecessor approval result; A judgment unit, configured to obtain a preset node startup condition corresponding to the current node according to a unique identifier corresponding to the target business form, and judge whether the preset node startup condition is met; A first processing unit is configured to render and output the target business form according to the first previous approval result and the first form data corresponding to the target business form when the judgment unit determines that the preset node startup condition is met, so that the approver corresponding to the current node can approve the target business form; The sending unit is used to send the unique identifier, the first preceding approval result, the current approval result and the first form data corresponding to the target business form to each target subsequent node according to the target business process when the current approval result input by the approver is received.
10. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the business form approval method described in any one of claims 1 to 8.
11. A business form approval device, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the approval method of the business form described in any one of claims 1 to 8 is executed.
Citation Information
Patent Citations
Service circulation approval method and device, electronic equipment and readable storage medium
CN112734272A