Examination and approval process modeling method and device
By introducing an open source process engine and Restful API, we design custom fields and process states, which solves the problem of low efficiency in approval process modeling in existing technologies, enables the rapid construction of approval process models that meet business needs, and reduces the workload of non-technical personnel. threshold.
Patent Information
- Application Number
- CN202410583771.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, approval process modeling requires the use of programming languages and technical frameworks, which results in high developer skill requirements, low efficiency, and difficulty in modeling for non-technical personnel.
Introduce the open source process engine and Restful API, and quickly build an approval process model by designing custom fields, process status, and flow direction to simplify the modeling process.
It lowers the threshold for business personnel and improves the efficiency of approval process modeling. Non-technical personnel can also quickly build an approval process model that meets actual business needs.
Smart Images

Figure CN118569792A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of process modeling, and in particular to an approval process modeling method and device. Background Art
[0002] In enterprises and organizations of a certain scale, the approval process is often very complex, involving multiple departments, positions and business logic. In the existing technology, online approval systems are usually used to model the approval process, and the approval process is supervised and operated based on the process model.
[0003] However, the approval process requires the use of various programming languages and technical frameworks during modeling, which requires high skills from developers. Therefore, professional knowledge and rich development experience are required to be competent for process modeling, resulting in low modeling efficiency of the approval process. Summary of the invention
[0004] In order to overcome the above-mentioned defects of the prior art, the present invention provides an approval process modeling method and device, which can simplify the approval process modeling process and improve the modeling efficiency.
[0005] An embodiment of the present invention provides an approval process modeling method, comprising the following steps:
[0006] Generate an approval flowchart according to the preset approval process requirements; wherein the approval flowchart includes a number of process nodes;
[0007] Generating a process form corresponding to each of the process nodes respectively; wherein the process form includes a plurality of custom fields;
[0008] Generate each process state of the process node respectively, and define the flow direction corresponding to each process state according to the process state; wherein one process state corresponds to several flow directions;
[0009] A plurality of interactive API fields are correspondingly generated according to the plurality of custom fields to obtain an approval process model.
[0010] Furthermore, the generation of an approval flowchart according to the preset approval process requirements specifically includes:
[0011] According to the business scenario in the preset approval process requirement, determining a process framework corresponding to the business scenario from a plurality of preset frameworks;
[0012] The approval flow chart is generated according to the process framework and the business content in the preset approval process requirements.
[0013] Furthermore, the generating of a plurality of process forms corresponding to the plurality of process nodes specifically includes:
[0014] Generate a corresponding process form for each process node in the approval process diagram through the loonflow workflow engine;
[0015] According to the preset approval process requirements, the display fields that need to be displayed in the process form are determined, and the display fields are defined to obtain the plurality of custom fields.
[0016] Preferably, the display fields are defined to obtain the plurality of custom fields, specifically including:
[0017] The display fields are generated for the process form through the Django framework, and corresponding field attributes are determined for each of the display fields to obtain a plurality of the custom fields; wherein the display fields include applicants, approval items, approval status, and approval opinions, and the field attributes include unique identifiers, data types, and access permissions.
[0018] Further, the generating of each process state of the process node respectively and defining the flow direction corresponding to each process state according to the process state specifically includes:
[0019] According to the preset approval process requirements, the corresponding process status is generated for the process form, and the corresponding state attributes are determined for each process status; wherein the process status includes pending, in progress and completed, and the state attributes include status code, state name and state description;
[0020] According to the preset approval process requirements, the corresponding flow direction is generated for the process form, and the corresponding flow operation attributes are determined for each flow direction; wherein the flow direction includes the previous step, the next step and the transfer, and the flow operation attributes include the operation code, the operation name and the operation description.
[0021] Furthermore, the method further comprises:
[0022] According to the integral impact factor of each of the process nodes, a corresponding achievement integral algorithm is generated for each of the process nodes; wherein the integral impact factor includes the process type, difficulty coefficient, number of processors, and processor ranking.
[0023] Furthermore, after generating the custom field, the method further includes:
[0024] Inputting the field attributes corresponding to each of the custom fields into a preset field database respectively, and sorting the preset field database according to the data types to obtain a basic database;
[0025] When a query request input by a front-end user is received, query results are obtained in the basic database through a preset data filter according to the query request; wherein the query request includes a number of preset constraints.
[0026] Preferably, after obtaining the query result, the query result is converted into a chart through a front-end scaffold, specifically:
[0027] The data source, color and title of the chart are configured according to the query result, and the interactive function of the chart is added through the front-end scaffolding; wherein the interactive function includes mouse hover prompts and click events.
[0028] Another embodiment of the present invention provides an approval process modeling device, including: a flowchart generation module, a process form generation module, a process state definition module and an interaction field generation module;
[0029] The flowchart generation module is used to generate an approval flowchart according to preset approval process requirements; wherein the approval flowchart includes a number of process nodes;
[0030] The process form generation module is used to generate a process form corresponding to each process node respectively; wherein the process form includes a plurality of custom fields;
[0031] The process state definition module is used to generate each process state of the process node respectively, and define the flow direction corresponding to each process state according to the process state; wherein one process state corresponds to several flow directions;
[0032] The interactive field generation module is used to generate a number of interactive API fields according to the number of custom fields to obtain an approval process model.
[0033] Furthermore, the flowchart generation module is used to generate an approval flowchart according to preset approval process requirements, specifically including:
[0034] According to the business scenario in the preset approval process requirement, determining a process framework corresponding to the business scenario from a plurality of preset frameworks;
[0035] The approval flow chart is generated according to the process framework and the business content in the preset approval process requirements.
[0036] Compared with the prior art, the beneficial effects of the present invention are:
[0037] By introducing an open source process engine and Restful API, and by designing custom fields, process status and flow direction, an approval process model that meets actual business needs can be quickly constructed, thereby improving the modeling efficiency of the approval process. The present invention can also lower the threshold for business personnel to model specific business processes. Using the modeling method described in the present invention, non-technical personnel can also quickly construct an approval process model. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of an approval process modeling method provided in accordance with an embodiment of the present invention.
[0039] Figure 2 A schematic diagram of the structure of an approval process modeling device provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0040] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0041] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0042] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0043] Reference Figure 1 , which is a flowchart of an approval process modeling method provided by an embodiment of the present invention, comprising the following steps:
[0044] S1: Generate an approval flowchart according to preset approval process requirements; wherein the approval flowchart includes a number of process nodes;
[0045] S2: Generate a process form corresponding to each of the process nodes respectively; wherein the process form includes a plurality of custom fields;
[0046] S3: Generate each process state of the process node respectively, and define the flow direction corresponding to each process state according to the process state; wherein one process state corresponds to several flow directions;
[0047] S4: Generate a number of interactive API fields according to the number of custom fields to obtain an approval process model.
[0048] A plurality of interactive API fields are correspondingly generated according to the plurality of custom fields to obtain an approval process model.
[0049] For step S1, specifically, generating an approval flow chart according to preset approval process requirements specifically includes:
[0050] According to the business scenario in the preset approval process requirement, determining a process framework corresponding to the business scenario from a plurality of preset frameworks;
[0051] The approval flow chart is generated according to the process framework and the business content in the preset approval process requirements.
[0052] In a preferred embodiment, making an approval flowchart is helpful to clarify the basic framework of subsequent modeling. Therefore, before modeling, it is necessary to collect the specific process requirements of the business department and analyze the task requirements of the process, such as the business scenario of approval, the specific content of approval, the process links of approval, the approval personnel and process management personnel, etc. Then, according to the actual business process, make an approval flowchart and clarify the authority and corresponding users of each approval node.
[0053] For step S2, specifically, the generating of a plurality of process forms corresponding to the plurality of process nodes specifically includes:
[0054] Generate a corresponding process form for each process node in the approval process diagram through the loonflow workflow engine;
[0055] According to the preset approval process requirements, the display fields that need to be displayed in the process form are determined, and the display fields are defined to obtain the plurality of custom fields.
[0056] Preferably, the display fields are defined to obtain the plurality of custom fields, specifically including:
[0057] The display fields are generated for the process form through the Django framework, and corresponding field attributes are determined for each of the display fields to obtain a plurality of the custom fields; wherein the display fields include applicants, approval items, approval status, and approval opinions, and the field attributes include unique identifiers, data types, and access permissions.
[0058] In a preferred embodiment, the display fields that need to be displayed in the process form also include: title, authors, and article_attchment, etc., and the field attributes also include field type, default order, default value, and label, etc.
[0059] For step S3, specifically, the generating of each process state of the process node and defining the flow direction corresponding to each process state according to the process state specifically includes:
[0060] According to the preset approval process requirements, the corresponding process status is generated for the process form, and the corresponding state attributes are determined for each process status; wherein the process status includes pending, in progress and completed, and the state attributes include status code, state name and state description;
[0061] According to the preset approval process requirements, the corresponding flow direction is generated for the process form, and the corresponding flow operation attributes are determined for each flow direction; wherein the flow direction includes the previous step, the next step and the transfer, and the flow operation attributes include the operation code, the operation name and the operation description.
[0062] In a preferred embodiment, after the process status is generated, it is also necessary to define the name, order, relevant participants and form fields that need to be displayed for each state. The form fields here represent which corresponding fields need to be displayed in this state and the review authority. After completing the process status definition, it is necessary to define the flow direction, that is, the next step of the process when the participants "agree" or "reject" each state. For example, when the process status is "department review", if the participant determines that the review is passed, the process status will be transferred to "organization review". If the participant determines that it is not passed, the process status will be transferred to "initiator modification".
[0063] Furthermore, the method further comprises:
[0064] According to the integral impact factor of each of the process nodes, a corresponding achievement integral algorithm is generated for each of the process nodes; wherein the integral impact factor includes the process type, difficulty coefficient, number of processors, and processor ranking.
[0065] In a preferred embodiment, in order to quantitatively evaluate the participation and performance of each process team member, a corresponding integral algorithm is designed for each process node according to the integral impact factor of the process results provided by the business department. The specific algorithm is developed using the Python third-party Pandas module.
[0066] Furthermore, after generating the custom field, the method further includes:
[0067] Inputting the field attributes corresponding to each of the custom fields into a preset field database respectively, and sorting the preset field database according to the data types to obtain a basic database;
[0068] When a query request input by a front-end user is received, query results are obtained in the basic database through a preset data filter according to the query request; wherein the query request includes a number of preset constraints.
[0069] In a preferred embodiment, in order to improve the user experience, the method of the present invention further provides a query function for the approval process model.
[0070] According to the attribute type of the custom field, a corresponding column is created in the database, and then the structure and behavior of the database are defined through Models, including selecting the appropriate data type (for example, integer, string, date, etc.) and setting any necessary constraints (for example, uniqueness, non-emptiness, etc.), and finally the basic database is obtained.
[0071] When a user enters a query request, Views processes the query request and then returns a response, including obtaining data, processing data, validating data, calling appropriate models and templates, etc. Finally, filters are used to filter and limit query results to obtain query results that meet user needs.
[0072] Preferably, after obtaining the query result, the query result is converted into a chart through a front-end scaffold, specifically:
[0073] The data source, color and title of the chart are configured according to the query result, and the interactive function of the chart is added through the front-end scaffolding; wherein the interactive function includes mouse hover prompts and click events.
[0074] In a preferred embodiment, after obtaining the query results, in order to visualize the query results, the query results can be visualized through the front-end scaffolding, including: pulling the sample code of the Protable data table component to obtain a basic data table, and editing and rewriting the basic data table, selecting a suitable chart type according to actual business needs, such as a bar chart, line chart, etc., and configuring the data source, color, title, etc. of the chart, and finally adding interactive functions to the chart, such as mouse hover prompts, click events, etc., to enhance the user experience of the chart.
[0075] Furthermore, after the front-end development and back-end API deployment are completed, a testing phase is also included, which specifically includes:
[0076] Call the deployed API on the front end to test the interface interaction. The test process will cover various functional modules of the system and the interface content of each process node.
[0077] The system will then test different user roles and permissions to check whether user permission control is correct and whether the interface content meets business requirements.
[0078] Finally, compare the business process diagram and analyze the differences between the front-end interface and the back-end API in processing business processes. If you find any inconsistency or errors, make corrections in a timely manner.
[0079] In summary, the approval process modeling method provided by the present invention has the following advantages:
[0080] 1. Lowering the threshold: By introducing open source process engines and Restful APIs, the threshold for business personnel to program and develop specific businesses is greatly lowered. Using this method, non-technical personnel can also quickly build applications and reduce the workload of manual coding.
[0081] 2. Improve efficiency: Using the features of the Restful API, you can easily implement cross-platform and cross-language data interaction and process control. This approach simplifies the development process and improves development efficiency and quality.
[0082] 3. Innovation: This method combines the advantages of open source process engines and RESTful APIs and innovatively applies them to the modeling and development of approval processes. By defining custom fields, process status, and flow direction, you can quickly build an approval process model that meets actual business needs.
[0083] 4. Flexibility: This method supports selecting appropriate chart types and configuring data sources, colors, titles, etc. according to actual business needs, which enhances the user experience of the chart. At the same time, it also supports filtering and limiting query results to obtain query results that meet specific needs.
[0084] 5. Completeness: This method covers the entire development process from requirements analysis to testing, ensuring the completeness and reliability of approval process modeling and development. By collecting and analyzing the specific process requirements of the business department, an approval process model that meets actual business needs can be developed. At the same time, the interface interaction is tested and the differences are corrected during the testing phase to ensure the quality and stability of the system.
[0085] Reference Figure 2 , is a structural diagram of an approval process modeling device provided by another embodiment of the present invention, comprising: a flowchart generating module 101, a process form generating module 102, a process state defining module 103 and an interactive field generating module 104;
[0086] The flowchart generation module 101 is used to generate an approval flowchart according to preset approval process requirements; wherein the approval flowchart includes a number of process nodes;
[0087] The process form generation module 102 is used to generate a process form corresponding to each process node respectively; wherein the process form includes a plurality of custom fields;
[0088] The process state definition module 103 is used to generate each process state of the process node respectively, and define the flow direction corresponding to each process state according to the process state; wherein one process state corresponds to several flow directions;
[0089] The interactive field generation module 104 is used to generate a plurality of interactive API fields according to the plurality of custom fields to obtain an approval process model.
[0090] Furthermore, the flowchart generating module 101 is used to generate an approval flowchart according to preset approval process requirements, specifically including:
[0091] According to the business scenario in the preset approval process requirement, determining a process framework corresponding to the business scenario from a plurality of preset frameworks;
[0092] The approval flow chart is generated according to the process framework and the business content in the preset approval process requirements.
[0093] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for modeling an approval process, characterized in that: The steps include: Generate an approval flowchart according to the preset approval process requirements; wherein the approval flowchart includes a number of process nodes; Generating a process form corresponding to each of the process nodes respectively; wherein the process form includes a plurality of custom fields; Generate each process state of the process node respectively, and define the flow direction corresponding to each process state according to the process state; wherein one process state corresponds to several flow directions; A plurality of interactive API fields are correspondingly generated according to the plurality of custom fields to obtain an approval process model.
2. The approval process modeling method according to claim 1, characterized in that: The generation of an approval flow chart according to the preset approval process requirements specifically includes: According to the business scenario in the preset approval process requirement, determining a process framework corresponding to the business scenario from a plurality of preset frameworks; The approval flow chart is generated according to the process framework and the business content in the preset approval process requirements.
3. The approval process modeling method according to claim 1, characterized in that: The generating of a plurality of process forms corresponding to the plurality of process nodes specifically includes: Generate a corresponding process form for each process node in the approval process diagram through the loonflow workflow engine; According to the preset approval process requirements, the display fields that need to be displayed in the process form are determined, and the display fields are defined to obtain the plurality of custom fields.
4. The approval process modeling method according to claim 3, characterized in that: The defining of the display fields to obtain the plurality of custom fields specifically includes: The display fields are generated for the process form through the Django framework, and corresponding field attributes are determined for each of the display fields to obtain a plurality of the custom fields; wherein the display fields include applicants, approval items, approval status, and approval opinions, and the field attributes include unique identifiers, data types, and access permissions.
5. The approval process modeling method according to claim 1, characterized in that: The respectively generating each process state of the process node and defining the flow direction corresponding to each process state according to the process state specifically includes: According to the preset approval process requirements, the corresponding process status is generated for the process form, and the corresponding state attributes are determined for each process status; wherein the process status includes pending, in progress and completed, and the state attributes include status code, state name and state description; According to the preset approval process requirements, the corresponding flow direction is generated for the process form, and the corresponding flow operation attributes are determined for each flow direction; wherein the flow direction includes the previous step, the next step and the transfer, and the flow operation attributes include the operation code, the operation name and the operation description.
6. The approval process modeling method according to claim 1, characterized in that: The method further comprises: According to the integral impact factor of each of the process nodes, a corresponding achievement integral algorithm is generated for each of the process nodes; wherein the integral impact factor includes the process type, difficulty coefficient, number of processors, and processor ranking.
7. The approval process modeling method according to claim 4, characterized in that: After the custom fields are generated, the following is also included: Inputting the field attributes corresponding to each of the custom fields into a preset field database respectively, and sorting the preset field database according to the data types to obtain a basic database; When a query request input by a front-end user is received, query results are obtained in the basic database through a preset data filter according to the query request; wherein the query request includes a number of preset constraints.
8. The approval process modeling method according to claim 7, characterized in that: After obtaining the query result, the query result is converted into a chart through a front-end scaffold, specifically: The data source, color and title of the chart are configured according to the query result, and the interactive function of the chart is added through the front-end scaffolding; wherein the interactive function includes mouse hover prompts and click events.
9. An approval process modeling device, characterized in that: include: Flowchart generation module, process form generation module, process state definition module and interaction field generation module; The flowchart generation module is used to generate an approval flowchart according to preset approval process requirements; wherein the approval flowchart includes a number of process nodes; The process form generation module is used to generate a process form corresponding to each process node respectively; wherein the process form includes a plurality of custom fields; The process state definition module is used to generate each process state of the process node respectively, and define the flow direction corresponding to each process state according to the process state; wherein one process state corresponds to several flow directions; The interactive field generation module is used to generate a number of interactive API fields according to the number of custom fields to obtain an approval process model.
10. The approval process modeling device according to claim 9, characterized in that: The flowchart generation module is used to generate an approval flowchart according to preset approval process requirements, specifically including: According to the business scenario in the preset approval process requirement, determining a process framework corresponding to the business scenario from a plurality of preset frameworks; The approval flow chart is generated according to the process framework and the business content in the preset approval process requirements.
