Method and device for determining workflow and electronic equipment
By obtaining and connecting the attribute information and execution sequence of the work links, the problems of large workload and complex maintenance caused by hard-coded business processes in the prior art are solved, and the effect of simplifying workflow design and improving business process flexibility is achieved.
Patent Information
- Application Number
- CN202311121886.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-02-28
AI Technical Summary
The existing technology implements business processes through hard-coded methods, which has problems such as large workload and complex maintenance.
By obtaining the work links contained in the target workflow, determining the attribute information of the target link in the workflow, determining the execution order of the target link in the target workflow based on the attribute information, and connecting the target links and the work links adjacent to the target links in the target workflow according to the execution order, obtaining the target workflow.
Simplifies the design and maintenance of workflows, reduces workload, and improves the flexibility and maintainability of business processes.
Smart Images

Figure CN119539703A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer applications, and in particular, to a method, device and electronic device for determining a workflow. Background Art
[0002] The enterprise's instrument and equipment management process includes a large number of work processes, such as instrument and equipment procurement process, arrival acceptance process, repair and maintenance process, measurement and calibration process, etc. In the process of instrument and equipment management information construction, if these business processes are implemented by hard coding, there will be problems of large workload and complex maintenance.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, device and electronic device for determining a workflow, so as to at least solve the technical problem that the prior art implements business processes through hard coding, which results in a large workload and complex maintenance.
[0005] According to one aspect of an embodiment of the present application, a method for determining a workflow is provided, including: obtaining work links included in a target workflow, wherein the target workflow is determined based on business needs; determining attribute information of a target link in the work links, wherein the target link is any work link in the target workflow; determining an execution order of the target link in the target workflow based on the attribute information; and connecting the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow.
[0006] Optionally, determining the attribute information of the target link in the working link includes: determining a first information template corresponding to the target link from the information template, wherein the first information template is a template of the attribute information contained in the target link; when the first information template does not exist in the information template, determining a second information template from the information template, wherein the second information template is any one of the information templates; in response to a modification instruction of the target object, modifying the second information template to the first information template, and saving the first information template; and determining the attribute information of the target link based on the first information template.
[0007] Optionally, determining the execution order of the target link in the target workflow based on the attribute information includes: determining the position information of the target link in the target workflow from the attribute information; determining the previous link of the target link and the next link of the target link based on the position information and the attribute information; determining the execution order of the target link in the target workflow based on the target link, the previous link and the next link.
[0008] Optionally, the previous link of the target link and the next link of the target link are determined based on the position information and the attribute information, including: when the position information indicates that the target link is the starting position in the target workflow, the previous link of the target link is determined to be empty, and the next link of the target link is determined from the attribute information; when the position information indicates that the target link is the ending position in the target workflow, the previous link of the target link is determined from the attribute information, and the next link of the target link is determined to be empty; when the position information indicates that the target link is not the starting position and is not the ending position, the previous link of the target link and the next link of the target link are determined from the attribute information.
[0009] Optionally, after obtaining the target workflow by connecting the target link and the work link adjacent to the target link in the target workflow according to the execution order, the method also includes: determining the attribute information of the current link as the first attribute information, wherein the current link is the work link being processed in the target workflow; determining the first execution user from the first attribute information, wherein the first execution user is used to execute the current link; publishing the current link to the first execution user, and obtaining the execution status of the current link, wherein the first execution user executes the current link according to the execution authority possessed.
[0010] Optionally, after the current link is released to the first execution user, the method also includes: if the first execution user fails to process the current link for more than a preset time, adjusting the execution user of the current link from the first execution user to the second execution user, wherein the second execution user has the same execution authority as the first execution user; and modifying the first execution user in the first attribute information to the second execution user.
[0011] Optionally, obtaining the execution status of the current link includes: when the execution status of the current link is an abnormal state, determining the abnormal level to which the current link belongs; and performing corresponding processing on the current link according to the abnormal level.
[0012] Optionally, the method also includes: determining a flowchart corresponding to the target workflow; displaying a first color in the flowchart when the target link in the target workflow is processed; and displaying a second color in the flowchart when the target link in the target workflow is not processed.
[0013] According to another aspect of an embodiment of the present application, a device for determining a workflow is also provided, including: an acquisition module, used to acquire work links included in a target workflow, wherein the target workflow is determined based on business requirements; a first determination module, used to determine attribute information of a target link in the work links, wherein the target link is any work link in the target workflow; a second determination module, used to determine an execution order of the target link in the target workflow based on the attribute information; and a connection module, used to connect the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow.
[0014] According to another aspect of the embodiment of the present application, an electronic device is also provided, including: a memory for storing program instructions; a processor, connected to the memory, for executing program instructions to implement the following functions: obtaining work links included in a target workflow, wherein the target workflow is determined based on business needs; determining attribute information of a target link in the work links, wherein the target link is any work link in the target workflow; determining an execution order of the target link in the target workflow based on the attribute information; and connecting the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow.
[0015] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned method for determining the workflow by running the computer program.
[0016] In an embodiment of the present application, by obtaining the work links included in the target workflow, wherein the target workflow is determined based on business needs; determining the attribute information of the target link in the work link, wherein the target link is any work link in the target workflow; determining the execution order of the target link in the target workflow based on the attribute information; connecting the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow, the purpose of simplifying the workflow is achieved, thereby achieving the technical effect of facilitating the maintenance of business processes and reducing workload, and further solving the technical problem that the prior art implements business processes through hard coding, which has a large workload and complex maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1It is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for determining a workflow according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a method for determining a workflow according to an embodiment of the present application;
[0020] Figure 3a is a schematic diagram of a graphical process design according to an embodiment of the present application;
[0021] Figure 3b is a schematic diagram of executing user selection according to an embodiment of the present application;
[0022] Figure 3c is a schematic diagram of selecting an execution user according to a position according to an embodiment of the present application;
[0023] Figure 3d is a schematic diagram of form details according to an embodiment of the present application;
[0024] Figure 3e is a reference model diagram of a workflow according to an embodiment of the present application;
[0025] Figure 4 It is a structural diagram of a device for determining a workflow according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] First, some nouns or terms that appear in the process of explaining the embodiments of the present application are subject to the following explanations:
[0029] Workflow: is an abstract and general description of the business rules between the workflow and its operation steps. Workflow modeling is to express the logic and rules of how the work in the workflow is organized in a proper model in the computer and to calculate it. The main problem that workflow needs to solve is: to achieve a certain business goal, use computers to automatically transfer documents, information or tasks between multiple participants according to certain predetermined rules.
[0030] In related technologies, the following problems may be encountered when implementing business processes through hard coding: 1. If the requirements are not considered carefully and the process is constantly modified after going online, it will lead to a huge workload for code and poor system stability, and bring huge risks to subsequent operations and maintenance; 2. Since the organizational structure of the unit will be adjusted from time to time, business process changes will occur, resulting in constant modification and adjustment of the system process code; 3. The business process is relatively complex, uses many states, and is prone to errors.
[0031] To solve the above problems, the embodiments of the present application provide corresponding solutions, which are described in detail below.
[0032] The workflow determination method embodiment provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for determining a workflow is shown. Figure 1 As shown, the computer terminal 10 (or electronic device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0033] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or electronic device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0034] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method for determining the workflow in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the method for determining the workflow described above is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0035] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or electronic device).
[0037] It should be noted that, in some optional embodiments, the above Figure 1 The computer device (or electronic device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or electronic device).
[0038] In the above-mentioned operating environment, an embodiment of the present application provides an embodiment of a method for determining a workflow. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0039] Figure 2 is a flowchart of a method for determining a workflow according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0040] Step S202, obtaining the work links included in the target workflow, wherein the target workflow is determined based on business requirements.
[0041] In the above step S202, different work processes include different work links, such as equipment procurement process, acceptance process, maintenance process, etc. The work links can be determined according to different business needs, and then the target workflow can be determined according to the work links.
[0042] Step S204, determining the attribute information of the target link in the work link, wherein the target link is any work link in the target workflow.
[0043] In the above step S204, in the target workflow, such as the equipment procurement workflow, it may include multiple links, each of which can be called a target link. Different links have different attribute information. Therefore, in the process of process design, it is necessary to determine the attribute information of the target link.
[0044] Step S206, determining the execution order of the target links in the target workflow according to the attribute information.
[0045] In the above step S206, the attribute information in the target link contains rich information. For example, the attribute information may include but is not limited to the location information of the target link in the target workflow, the executing user of the target link, etc.
[0046] Step S208, connecting the target link and the work links adjacent to the target link in the target workflow according to the execution order to obtain the target workflow.
[0047] In the above step S208, the execution order of the target link in the target workflow is determined in the above step S206, and then the work links adjacent to the target link in the target workflow can be determined, and the target link and the work links adjacent to it are connected according to the execution order to finally obtain the target workflow.
[0048] In an optional embodiment, the above steps S202 to S208 can be implemented through a workflow system, which includes a computer and a workflow definition tool and a workflow engine in the computer. The workflow definition tool directly represents the process as a process definition code executable by the computer, and the workflow engine directly calls the process definition code. When the workflow changes, the workflow system only needs to modify the workflow definition tool without modifying the code of the workflow engine, which greatly facilitates the development, maintenance and use of the workflow management system, is conducive to improving the work efficiency of the enterprise, and achieves the purpose of simplifying the workflow, thereby achieving the technical effect of facilitating the maintenance of business processes and reducing workload, thereby solving the technical problem that the existing technology implements business processes through hard coding, which has a large workload and complex maintenance.
[0049] In an optional embodiment, the above steps can be implemented through a graphical process configuration tool, which provides a flexible and powerful graphical process configuration, supports drag-and-drop configuration process, helps business personnel achieve visual process reengineering and design, and quickly responds to business needs. Figure 3a is a schematic diagram of a graphical process design according to an embodiment of the present application, such as Figure 3a As shown, the left side of the page includes the tool set of the configuration tool, including copy, update, select, connect, link, etc. The copy function can realize the copy operation of a certain link or a certain workflow, the update function can update the current page, the selection function can select different tools, or select attribute information, etc. The connection function is used to connect different links, and the link function can be used to set the target link included in the target workflow. The design and display of the process can be realized in the middle of the page, and the attribute information of the current link can be set on the right side of the page, for example, it can include: number, node name, execution user, to-do form, completed form, execution task, node description, execution math, expression, whether to start, whether to end, whether transaction, fallback method, execution value, task value, to-do value, completed value, etc.
[0050] In the process of executing workflow design, semantic legality checks are used to help users define standardized processes; process definition documents are stored in XML format, and unified management is adopted for the use and maintenance of results. Using graphical methods, system administrators can design or modify workflows in the shortest time. Modeling tools provide a fairly rich process logic expression method that can represent very complex processes. Process administrators can quickly copy and redefine processes through the import, export, and clone functions provided by the process definition tool.
[0051] Figure 3b This is a schematic diagram of an execution user selection according to an embodiment of the present application. When selecting the execution user of the current link, the selection can be made according to the position or the specific user. The specific setting can be made according to the actual situation and is not limited here.
[0052] Figure 3c This is a schematic diagram of selecting execution users according to positions according to an embodiment of the present application. When selecting execution users according to positions, the following categories are specifically included: 1. Work positions; 2. System users; 3. LIMS external users; 4. LIMS; 5. Analysts; 6. Others. When selecting analysts, Figure 3a Add information corresponding to the analyst to the execution value in .
[0053] In the process of designing the target workflow, the above configuration tool provides flexible and powerful form design functions. The form design adopts a visual configuration method, such as Figure 3d As shown in a form detail diagram according to an embodiment of the present application, the form customization tool should provide multiple types of controls and various form templates for staff to use, reduce the difficulty of design, fully meet the business needs of the enterprise, and be convenient, practical, simple and easy to use.
[0054] Figure 3e is a reference model diagram of a workflow according to an embodiment of the present application, such as Figure 3e As shown, the workflow interface and exchange format include a workflow execution service, which is implemented by a workflow engine. The workflow engine is connected to other tools, applications or services through different workflow interfaces, for example, the process definition tool is connected through interface one, the client application is connected through interface two, the calling application is connected through interface three, other workflow execution services are connected through interface four, and the management tool is connected through interface five.
[0055] In step S204 of the above-mentioned workflow determination method, the attribute information of the target link in the work link is determined, which specifically includes the following steps: determining a first information template corresponding to the target link from the information template, wherein the first information template is a template of the attribute information contained in the target link; when the first information template does not exist in the information template, determining a second information template from the information template, wherein the second information template is any one of the information templates; in response to a modification instruction of the target object, modifying the second information template to the first information template, and saving the first information template; and determining the attribute information of the target link based on the first information template.
[0056] In an optional embodiment, in order to save the design time of the workflow, the information templates corresponding to different links can be pre-set. For example, in the equipment procurement process, the first link is the approval link, then the (attribute) information required for the approval link can be set first to generate the information template corresponding to the approval link. When the first information template required for the target link does not exist in the information template, the required first information template can be determined according to any information template in the information template (i.e., the above-mentioned second information template). In order to facilitate subsequent use, the generated first information template can be saved at the same time. According to the information in the first information template, the attribute information of the target link can be determined, and the attribute information includes but is not limited to the executing user, location information, etc.
[0057] In step S206 of the above-mentioned workflow determination method, the execution order of the target link in the target workflow is determined based on the attribute information, which specifically includes the following steps: determining the position information of the target link in the target workflow from the attribute information; determining the previous link of the target link and the next link of the target link based on the position information and the attribute information; determining the execution order of the target link in the target workflow based on the target link, the previous link and the next link.
[0058] In an optional embodiment, the attribute information of the target link includes the position information of the target link in the target workflow, such as whether it is a start node, whether it is an end node, etc. At the same time, based on other information in the attribute information, for example, by specifying the next node and the previous node, the previous link of the target link and the next link of the target link are determined, and then the execution order of the target link in the target workflow is determined according to the order of the previous link of the target link, the target link, and the next link of the target link.
[0059] In the above steps, the previous link of the target link and the next link of the target link are determined based on the position information and the attribute information, which specifically includes the following steps: when the position information indicates that the target link is the starting position in the target workflow, the previous link of the target link is determined to be empty, and the next link of the target link is determined from the attribute information; when the position information indicates that the target link is the ending position in the target workflow, the previous link of the target link is determined from the attribute information, and the next link of the target link is determined to be empty; when the position information indicates that the target link is not the starting position and is not the ending position, the previous link of the target link and the next link of the target link are determined from the attribute information.
[0060] In an optional embodiment, when the target link is at a different position in the target workflow, the corresponding previous link and next link will change. Specifically, there are three situations:
[0061] The first situation: when the location information of the target link indicates that the target link is the starting position of the target workflow, the previous link of the target link is empty. At this time, the previous link cannot be specified, but the next link of the target link can be specified, for example, the next link of the target link is determined by attribute information.
[0062] The second situation: when the location information of the target link indicates that the target link is the end position of the target workflow, the next link of the target link is empty. At this time, the next link cannot be specified, but the previous link of the target link can be specified, for example, the previous link of the target link can be determined through attribute information.
[0063] The third situation: when the location information of the target link indicates that the target link is neither at the start position of the target workflow nor at the end position of the target workflow, the previous link and the next link can be specified at the same time, for example, the previous link and the next link of the target link can be determined through attribute information.
[0064] In step S208 of the above-mentioned method for determining the workflow, after the target link and the work link adjacent to the target link in the target workflow are connected according to the execution order to obtain the target workflow, the method specifically also includes the following steps: determining the attribute information of the current link as the first attribute information, wherein the current link is the work link being processed in the target workflow; determining the first execution user from the first attribute information, wherein the first execution user is used to execute the current link; publishing the current link to the first execution user, and obtaining the execution status of the current link, wherein the first execution user executes the current link according to the execution authority possessed.
[0065] In an optional embodiment, after the target workflow is designed, when executing the target workflow, the first execution user who executes the current link can be determined according to the attribute information of the current link, and the current link is published to the client application used by the first execution user through the corresponding interface, such as interface 2, and the first execution user executes the current link according to the execution authority he has. For example, when the execution authority of the first execution user does not include the transfer of work, the first execution user cannot transfer the current link to other users for execution; when the execution authority of the first execution user includes the transfer of work, the first execution user can transfer the current link to other users for execution.
[0066] In the above steps, after the current link is published to the first execution user, the method specifically also includes the following steps: if the first execution user fails to process the current link for more than a preset period of time, the execution user of the current link is adjusted from the first execution user to the second execution user, wherein the second execution user has the same execution authority as the first execution user; and the first execution user in the first attribute information is modified to the second execution user.
[0067] In an optional embodiment, when the process approval cannot be circulated in time due to special reasons, it supports the control and adjustment of the process, and provides functions such as proxy approval, handover, and automatic issuance of expired items. After the current link is released to the first execution user, the first execution user should process it within the preset time. Within the preset time, for example, if the first execution user does not process it within the first preset time, the first execution user is notified through a reminder message to process the current link as soon as possible. When the first execution user does not process the current link within the second preset time after receiving the reminder message, the execution user of the current link is adjusted from the first execution user to the second execution user, and the second execution user has the same execution authority as the first execution user. The above-mentioned preset time includes the first preset time and the second preset time. The adjustment process is automatically triggered and does not require manual operation.
[0068] In the above steps, the execution status of the current link is obtained, which specifically includes the following steps: when the execution status of the current link is an abnormal state, determining the abnormal level to which the current link belongs; and performing corresponding processing on the current link according to the abnormal level.
[0069] In an optional embodiment, the data of the entire workflow process is obtained in real time to ensure the normal operation of various services, and the abnormal conditions (such as service termination, transmission failure) are transmitted to the system log module so that the error handling module can perform error handling. According to the abnormal conditions recorded in the system log (collected by the system monitoring module), the predefined processing paths are respectively carried out, such as restarting the service, retransmitting data, and alarming. Legitimate users can successfully log in to the monitoring system, and all processes and instances of various states can be correctly displayed. Authorized users can activate, suspend, cancel suspension, terminate, and delete operations, and the current relevant data of the instance can be displayed. In the process of operating, authorized users can start, terminate, suspend, roll back, and retract the process instance through routing control. Routing control uses rule-based routing to establish connections between different application systems. This function reduces manual intervention and makes operations faster and more correct.
[0070] Specifically, during the execution of the target workflow, the execution status of the current link is obtained in real time. When the execution status of the current link is in an abnormal state, the abnormal level is determined according to the specific abnormal situation, and the current link is processed differently according to different abnormal levels. For example, the abnormal state can be divided into the following situations: 1. The current link is longer than the preset time and has not been processed, which belongs to the first type of abnormality. The processing of the first type of abnormality is: adjusting the first execution user of the current link to the second execution user; 2. The flow from the current link to the next link is abnormal, which belongs to the second type of abnormality. The processing of the second type of abnormality is: re-execute the flow process from the current link to the next link; 3. The execution authority of the execution user of the current link exceeds the execution authority it has, which belongs to the third type of abnormality. The processing method for the third type of abnormality is: generate a warning message to notify the administrator to modify the execution authority of the execution user. It should be noted that the above-mentioned abnormality levels and their corresponding processing methods are only examples and do not represent limitations. The abnormality levels and corresponding processing methods can be increased according to actual conditions, which will not be repeated here.
[0071] In the above-mentioned method for determining the workflow, the method specifically also includes the following steps: determining a flowchart corresponding to the target workflow; displaying a first color in the flowchart when the target link in the target workflow is processed; and displaying a second color in the flowchart when the target link in the target workflow is not processed.
[0072] In an optional embodiment, during the execution of the target workflow, a graphical process tracking (i.e., the flowchart described above) and a process reproduction with animation effects are provided, so that the process flow and the current status can be clearly seen at a glance, and detailed process details are provided, providing an accurate and quantifiable reference basis for process management efficiency. Different processing states are represented by different colors. For example, blue is used to represent the trajectory of the process (i.e., the target link in the target workflow is processed), and gray is used to represent the link that has not been passed in the process (i.e., the target link in the target workflow is not processed).
[0073] The method for determining the workflow provided by the embodiment of the present application has the following advantages: 1. With the help of the workflow engine, the business can be visualized. The entire business process can be seen through the view. It is clear at a glance what business logic is executed by each node, and the branch processing and exception handling are also very clear; 2. The business can be arranged. The rearrangement of the workflow process can make the business further increase flexibility at the code level, quickly adjust the business process through the adjustment of the nodes, and flexibly add and delete nodes without affecting the entire process; 3. Automatic retry, the workflow platform supports dynamic addition and deletion of business functions in the process when the business changes. For example, some complex processes have many node dependency conditions, and it is likely that the processing fails and needs to be retried, but you don’t want to retry all the nodes. At this time, the persistence and node retry capabilities of the workflow engine are a perfect solution.
[0074] Figure 4 is a structural diagram of a device for determining a workflow according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:
[0075] An acquisition module 402 is used to acquire the work links included in the target workflow, wherein the target workflow is determined according to business requirements;
[0076] The first determination module 404 is used to determine the attribute information of the target link in the work link, wherein the target link is any work link in the target workflow;
[0077] The second determination module 406 is used to determine the execution order of the target link in the target workflow according to the attribute information;
[0078] The connection module 408 is used to connect the target link and the work link adjacent to the target link in the target workflow according to the execution order to obtain the target workflow.
[0079] In the first determination module in the determination device of the above-mentioned workflow, the first determination module is also used to determine the first information template corresponding to the target link from the information template, wherein the first information template is a template of the attribute information contained in the target link; when the first information template does not exist in the information template, determine the second information template from the information template, wherein the second information template is any one of the information templates; in response to the modification instruction of the target object, modify the second information template to the first information template, and save the first information template; determine the attribute information of the target link based on the first information template.
[0080] In the second determination module in the above-mentioned workflow determination device, the second determination module is also used to determine the position information of the target link in the target workflow from the attribute information; determine the previous link of the target link and the next link of the target link based on the position information and the attribute information; and determine the execution order of the target link in the target workflow based on the target link, the previous link and the next link.
[0081] In the second determination module in the above-mentioned workflow determination device, the second determination module is also used to determine that the previous link of the target link is empty and determine the next link of the target link from the attribute information when the position information indicates that the target link is the starting position in the target workflow; when the position information indicates that the target link is the ending position in the target workflow, determine the previous link of the target link from the attribute information, and determine that the next link of the target link is empty; when the position information indicates that the target link is not the starting position and is not the ending position, determine the previous link of the target link and the next link of the target link from the attribute information.
[0082] In the above-mentioned workflow determination device, it also includes a processing module 410, which is also used to determine the attribute information of the current link as the first attribute information, wherein the current link is the work link being processed in the target workflow; determine the first execution user from the first attribute information, wherein the first execution user is used to execute the current link; publish the current link to the first execution user, and obtain the execution status of the current link, wherein the first execution user executes the current link according to the execution authority possessed.
[0083] In the processing module in the above-mentioned workflow determination device, the processing module is also used to adjust the execution user of the current link from the first execution user to the second execution user when the first execution user fails to process the current link for more than a preset time, wherein the second execution user has the same execution authority as the first execution user; and modify the first execution user in the first attribute information to the second execution user.
[0084] In the processing module in the above-mentioned workflow determination device, the processing module is also used to determine the abnormal level to which the current link belongs when the execution state of the current link is an abnormal state; and perform corresponding processing on the current link according to the abnormal level.
[0085] In the processing module in the above-mentioned workflow determination device, the processing module is also used to determine a flowchart corresponding to the target workflow; when the target link in the target workflow is processed, a first color is displayed in the flowchart; when the target link in the target workflow is not processed, a second color is displayed in the flowchart.
[0086] It should be noted that Figure 4 The workflow shown is used to determine the device for executing Figure 2 The method for determining the workflow shown in the figure, therefore the relevant explanations in the above-mentioned method for determining the workflow are also applicable to the device for determining the workflow, and will not be repeated here.
[0087] An embodiment of the present application also provides an electronic device, including: a memory, used to store program instructions; a processor, connected to the memory, and used to execute program instructions to implement the following functions: obtaining work links included in a target workflow, wherein the target workflow is determined based on business needs; determining attribute information of a target link in the work links, wherein the target link is any work link in the target workflow; determining an execution order of the target link in the target workflow based on the attribute information; and connecting the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow.
[0088] It should be noted that the above electronic equipment is used to execute Figure 2 The method for determining the workflow shown, therefore the relevant explanations and instructions in the above-mentioned method for determining the workflow are also applicable to the above-mentioned electronic device and will not be repeated here.
[0089] An embodiment of the present application also provides a non-volatile storage medium, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the following workflow determination method by running the computer program: obtaining work links included in a target workflow, wherein the target workflow is determined based on business needs; determining attribute information of a target link in the work links, wherein the target link is any work link in the target workflow; determining an execution order of the target link in the target workflow based on the attribute information; and connecting the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow.
[0090] It should be noted that the above non-volatile storage medium is used to execute Figure 2The method for determining the workflow shown, therefore the relevant explanations in the above-mentioned method for determining the workflow are also applicable to the above-mentioned non-volatile storage medium, and will not be repeated here.
[0091] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0092] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0096] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0097] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for determining a workflow, characterized in that: include: Obtaining work links included in a target workflow, wherein the target workflow is determined based on business requirements; Determine the attribute information of the target link in the work link, wherein the target link is any work link in the target workflow; Determining the execution order of the target links in the target workflow according to the attribute information; The target link and the work links adjacent to the target link in the target workflow are connected according to the execution order to obtain the target workflow.
2. The method according to claim 1, characterized in that: Determine the attribute information of the target link in the work link, including: Determining a first information template corresponding to the target link from the information templates, wherein the first information template is a template of attribute information included in the target link; In the case that the first information template does not exist in the information templates, determining a second information template from the information templates, wherein the second information template is any one of the information templates; In response to a modification instruction of the target object, modify the second information template to the first information template, and save the first information template; According to the first information template, attribute information of the target link is determined.
3. The method according to claim 1, characterized in that: Determining the execution order of the target link in the target workflow according to the attribute information includes: Determining the location information of the target link in the target workflow from the attribute information; Determining the previous link of the target link and the next link of the target link according to the position information and the attribute information; The execution order of the target link in the target workflow is determined based on the target link, the previous link and the next link.
4. The method according to claim 3, characterized in that Determining the previous link of the target link and the next link of the target link according to the location information and the attribute information includes: When the position information indicates that the target link is the starting position in the target workflow, determining that the previous link of the target link is empty, and determining the next link of the target link from the attribute information; When the position information indicates that the target link is the end position in the target workflow, determining the previous link of the target link from the attribute information, and determining that the next link of the target link is empty; When the position information indicates that the target link is not the start position and is not the end position, the previous link of the target link and the next link of the target link are determined from the attribute information.
5. The method according to claim 1, characterized in that After connecting the target link and the work link adjacent to the target link in the target workflow according to the execution order to obtain the target workflow, the method further includes: Determine the attribute information of the current link as the first attribute information, wherein the current link is the work link being processed in the target workflow; Determining a first execution user from the first attribute information, wherein the first execution user is used to execute the current link; The current link is published to the first execution user, and the execution status of the current link is obtained, wherein the first execution user executes the current link according to the execution authority possessed.
6. The method according to claim 5, characterized in that After publishing the current link to the first execution user, the method further includes: If the first executing user fails to process the current link within a preset time, adjusting the executing user of the current link from the first executing user to a second executing user, wherein the second executing user has the same execution authority as the first executing user; The first execution user in the first attribute information is modified to the second execution user.
7. The method according to claim 5, characterized in that Obtain the execution status of the current link, including: When the execution state of the current link is an abnormal state, determining the abnormal level to which the current link belongs; The current link is processed accordingly according to the abnormal level.
8. The method according to claim 1, characterized in that The method further comprises: Determining a flow chart corresponding to the target workflow; When a target link in the target workflow is processed, displaying a first color in the flowchart; When the target link in the target workflow has not been processed, a second color is displayed in the flowchart.
9. A device for determining a workflow, characterized in that: include: An acquisition module, used to acquire work links included in a target workflow, wherein the target workflow is determined based on business requirements; A first determination module is used to determine the attribute information of a target link in the work link, wherein the target link is any work link in the target workflow; A second determination module, used to determine the execution order of the target links in the target workflow according to the attribute information; A connection module is used to connect the target link and the work link adjacent to the target link in the target workflow according to the execution order to obtain the target workflow.
10. An electronic device, characterized in that: include: A memory for storing program instructions; A processor, connected to the memory, is used to execute program instructions to implement the following functions: obtain work links included in a target workflow, wherein the target workflow is determined based on business needs; determine attribute information of a target link in the work links, wherein the target link is any work link in the target workflow; determine an execution order of the target link in the target workflow based on the attribute information; and connect the target link and the work links adjacent to the target link in the target workflow based on the execution order to obtain the target workflow.
11. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the method for determining the workflow described in any one of claims 1 to 8 by running the computer program.