CN115660396A - Workflow generation method and device, electronic equipment and readable storage medium - Google Patents

Workflow generation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115660396A
CN115660396A CN202211399518.8A CN202211399518A CN115660396A CN 115660396 A CN115660396 A CN 115660396A CN 202211399518 A CN202211399518 A CN 202211399518A CN 115660396 A CN115660396 A CN 115660396A
Authority
CN
China
Prior art keywords
node
workflow
initial
current stack
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211399518.8A
Other languages
Chinese (zh)
Other versions
CN115660396B (en
Inventor
马敏
兰亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongdian Jinxin Software Co Ltd
Original Assignee
Zhongdian Jinxin Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongdian Jinxin Software Co Ltd filed Critical Zhongdian Jinxin Software Co Ltd
Priority to CN202211399518.8A priority Critical patent/CN115660396B/en
Publication of CN115660396A publication Critical patent/CN115660396A/en
Application granted granted Critical
Publication of CN115660396B publication Critical patent/CN115660396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a workflow generation method, a workflow generation device, an electronic device and a readable storage medium, wherein the method comprises the following steps: s1: acquiring an initial workflow drawn by a target workflow designer shielding a gateway node; s2: inquiring a node with a null front node in the initial workflow, determining the node as a starting node and taking the starting node as a first node; s3: determining a node adjacent to and behind the first node in the initial workflow as a second node; s4: determining a processing mode corresponding to the second node according to the connection relation between the nodes in the initial workflow, and processing the second node through the processing mode; and repeatedly executing S3 to S4, determining the second node in S3 as a new first node in the repeated execution process, and stopping circulation until a target workflow meeting the preset specification is generated. By the method, convenience of business personnel in adjusting or editing the workflow is improved, and further working efficiency is improved.

Description

Workflow generation method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of workflow technologies, and in particular, to a method and an apparatus for generating a workflow, an electronic device, and a readable storage medium.
Background
The workflow is to organize a group of tasks to complete a certain business objective, wherein a triggering sequence and triggering conditions of the tasks are defined, and allow the transfer of documents and information between different departments and roles, and provide a uniform interface to perform functions of process approval, flow circulation, rollback and the like.
The workflow is usually changed along with the regulation of enterprises or the online of new products, and the like, and the regulation is often needed. However, the flow chart designers provided by the existing workflow products are designed based on the BPMN2.0 specification and include node types (such as parallel gateways, exclusive gateways and the like) which are difficult to understand and use by many service personnel. Therefore, in an actual application scenario, it is difficult for business personnel to independently adjust or edit the workflow, and the change of the flow usually needs the participation of technical personnel, so that the working efficiency is low.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus for generating a workflow, an electronic device, and a readable storage medium, so as to improve convenience of business personnel in adjusting or editing the workflow, thereby improving work efficiency.
In a first aspect, an embodiment of the present application provides a method for generating a workflow, including:
step S1: acquiring an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer shielding the gateway node;
step S2: inquiring a node with a null front node in the initial workflow to determine the node as an initial node and take the initial node as a first node; the front node is used for representing a node before the current node in the flow direction relation of the initial workflow;
and step S3: determining a node adjacent to and behind the first node in the initial workflow as a second node;
and step S4: determining a processing mode corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, so as to process the second node through the processing mode; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting preset specifications is generated.
With reference to the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect, where determining, according to a connection relationship between the first node and another node in the initial workflow and a connection relationship between the second node and another node, a processing manner corresponding to the second node, so as to process the second node through the processing manner, includes:
and when the first node only belongs to the front node of one node, establishing a connection line between the first node and the second node.
With reference to the first aspect, an embodiment of the present application provides a second possible implementation manner of the first aspect, where the determining, according to a connection relationship between the first node and another node in the initial workflow and a connection relationship between the second node and another node, a processing manner corresponding to the second node, so as to process the second node through the processing manner, includes:
when the first node belongs to a front node of at least two nodes, judging whether the node type of the first node is a condition judgment node;
when the node type of the first node is not a condition judgment node, establishing a first gateway node with the node type being a parallel gateway node, and establishing a connection line between the first node and the first gateway node; respectively establishing a connection between the first gateway node and each second node aiming at each second node, and pressing the first gateway node into the current stack according to a first-in-first-out principle; the first gateway node is used for sending task start information to each second node connected with the first gateway node when receiving the task completion information sent by the first node, so that each second node starts to execute the corresponding task to be executed;
when the node type of the first node is a conditional judgment node, establishing a second gateway node of which the node type is an exclusive gateway node, establishing a connection line between the first node and the second gateway node, establishing a connection line between the second gateway node and the second node for each second node, and pressing the second gateway node into a current stack according to a first-in-first-out principle; the second gateway node is configured to select a target second node corresponding to the condition determination result from a plurality of second nodes connected to the second gateway node according to the condition determination result sent by the first node, and send task start information to the target second node, so that the target second node starts to execute a task to be executed corresponding to the target second node.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present application provides a third possible implementation manner of the first aspect, where the determining, according to the connection relationships between the first node and other nodes in the initial workflow and the connection relationships between the second node and other nodes, a processing manner corresponding to the second node, so as to process the second node through the processing manner, includes:
when the first node and other nodes are jointly used as the front node of the second node, judging whether a current stack top node exists in a current stack;
if the current stack top node exists, acquiring the current stack top node, continuously judging whether the current stack top node exists in the current stack or not and subsequent steps, stopping until the current stack top node does not exist in the current stack, and acquiring the stack exit sequence of each current stack top node and each current stack top node;
judging whether a third node with the same type as the current stack top node exists at present or not aiming at each current stack top node; if the third node with the same node type as the current stack top node does not exist, the third node with the same node type as the current stack top node is created to obtain a third node corresponding to each current stack top node; according to the pop sequence of each current stack top node, sequentially passing through a third node corresponding to each current stack top node, and establishing a connection line between the first node and the second node; and if the third node exists, establishing a connection line between the first node and the second node sequentially through the third node corresponding to each current stack top node according to the pop sequence of each current stack top node.
With reference to the first aspect, an embodiment of the present application provides a fourth possible implementation manner of the first aspect, where the querying a node whose leading node in the initial workflow is empty to determine that the node is a starting node, further includes:
analyzing the node relation in the initial visualization workflow, determining the front node of each node in the initial visualization workflow, and storing the node relation between each node and the front node of each node in a database;
the querying a node with a null front node in the initial workflow to determine the node as a starting node includes:
and querying a node with a null front node in the initial workflow from the node relation stored in the database so as to determine the node as an initial node.
With reference to the first aspect, an embodiment of the present application provides a fifth possible implementation manner of the first aspect, where the method is applied to a backend server; before the obtaining the initial workflow, the method further includes:
receiving the initial workflow sent by a first user end so as to store the initial workflow; the initial workflow is drawn by a first user through the target workflow designer installed in the first user side; a plurality of initial workflows are stored in the back-end server; each of the initial workflows corresponds to a respective flow type.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present application provides a sixth possible implementation manner of the first aspect, where the obtaining an initial workflow includes:
receiving an inquiry request sent by a second user end, returning a plurality of pre-stored initial workflows and the number corresponding to each initial workflow to the second user end, so that the second user end responds to the selection operation of a second user on the initial workflows, and sends the number corresponding to the selected initial workflows as the target number to the back-end server;
and receiving the target number sent by the second user end so as to obtain an initial workflow corresponding to the target number from a plurality of pre-stored initial workflows.
In a second aspect, an embodiment of the present application further provides a device for generating a workflow, including:
an acquisition module for executing the step S1; the step S1 is to obtain an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer shielding the gateway node;
a query module for executing step S2; the step S2 is to inquire a node with a null front node in the initial workflow, to determine the node as an initial node, and to take the initial node as a first node; the front node is used for representing a node before the current node in the flow direction relation of the initial workflow;
a determining module for executing step S3; step S3 is to determine a node adjacent to and behind the first node in the initial workflow as a second node;
a processing module for executing step S4; step S4 is to determine a processing manner corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, so as to process the second node through the processing manner; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting preset specifications is generated.
With reference to the second aspect, an embodiment of the present application provides a first possible implementation manner of the second aspect, where the processing module, when configured to execute step S4, is specifically configured to:
and when the first node only belongs to the front node of one node, establishing a connection line between the first node and the second node.
With reference to the second aspect, an embodiment of the present application provides a second possible implementation manner of the second aspect, where the processing module, when configured to execute step S4, is specifically configured to:
when the first node belongs to a front node of at least two nodes, judging whether the node type of the first node is a condition judgment node;
when the node type of the first node is not a condition judgment node, establishing a first gateway node with the node type being a parallel gateway node, and establishing a connection line between the first node and the first gateway node; respectively establishing a connection between the first gateway node and each second node aiming at each second node, and pressing the first gateway node into the current stack according to a first-in-first-out principle; the first gateway node is used for sending task start information to each second node connected with the first gateway node when receiving task completion information sent by the first node, so that each second node starts to execute the corresponding task to be executed;
when the node type of the first node is a conditional judgment node, establishing a second gateway node of which the node type is an exclusive gateway node, establishing a connection line between the first node and the second gateway node, establishing a connection line between the second gateway node and each second node aiming at each second node, and pressing the second gateway node into a current stack according to a first-in-first-out principle; the second gateway node is configured to select a target second node corresponding to the condition determination result from a plurality of second nodes connected to the second gateway node according to the condition determination result sent by the first node, and send task start information to the target second node, so that the target second node starts to execute a task to be executed corresponding to the target second node.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present application provides a third possible implementation manner of the second aspect, where the processing module, when configured to execute step S4, is specifically configured to:
when the first node and other nodes are jointly used as the front node of the second node, judging whether a current stack top node exists in a current stack;
if the current stack top node exists, acquiring the current stack top node, continuously judging whether the current stack top node exists in the current stack or not and subsequent steps, stopping until the current stack top node does not exist in the current stack, and acquiring the stack exit sequence of each current stack top node and each current stack top node;
judging whether a third node with the same type as the current stack top node exists at present or not aiming at each current stack top node; if the third node with the same type as the node of the current stack top node does not exist, the third node with the same type as the node of the current stack top node is created to obtain the third node corresponding to each current stack top node; according to the pop sequence of each current stack top node, sequentially passing through a third node corresponding to each current stack top node, and establishing a connection line between the first node and the second node; and if the third node exists, establishing a connection line between the first node and the second node sequentially through the third node corresponding to each current stack top node according to the pop-up sequence of each current stack top node.
With reference to the second aspect, an embodiment of the present application provides a fourth possible implementation manner of the second aspect, where the method further includes:
the analysis module is used for analyzing the node relation in the initial visualization workflow before the query module executes the step S2, determining the front node of each node in the initial visualization workflow, and storing the node relation between each node and the front node of each node in a database;
when the query module is configured to execute step S2, the query module is specifically configured to:
and querying a node with a null front node in the initial workflow from the node relation stored in the database so as to determine the node as an initial node.
In combination with the second aspect, embodiments of the present application provide a fifth possible implementation manner of the second aspect, where the apparatus resides in a backend server; the device further comprises:
a receiving module, configured to receive the initial workflow sent by the first user end before the obtaining module executes step S1, so as to store the initial workflow; the initial workflow is drawn by a first user through the target workflow designer installed in the first user side; a plurality of initial workflows are stored in the back-end server; each of the initial workflows corresponds to a respective flow type.
With reference to the fifth possible implementation manner of the second aspect, an embodiment of the present application provides a sixth possible implementation manner of the second aspect, where the obtaining module, when executing step S1, is specifically configured to:
receiving a query request sent by a second user end to return a plurality of pre-stored initial workflows and a number corresponding to each initial workflow to the second user end, so that the second user end responds to selection operation of a second user on the initial workflows, and sends the number corresponding to the selected initial workflows as the target number to the back-end server;
and receiving the target number sent by the second user end so as to obtain an initial workflow corresponding to the target number from a plurality of pre-stored initial workflows.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions being executable by the processor to perform the steps of any one of the possible implementations of the first aspect.
In a fourth aspect, this application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in any one of the possible implementation manners of the first aspect.
In a method, an apparatus, an electronic device, and a readable storage medium for generating a workflow provided in an embodiment of the present application, step S1: acquiring an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer shielding the gateway node; step S2: inquiring a node with a null front node in the initial workflow to determine the node as an initial node and take the initial node as a first node; the front node is used for representing a node before the current node in the flow direction relation of the initial workflow; and step S3: determining a node adjacent to and behind the first node in the initial workflow as a second node; and step S4: determining a processing mode corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, so as to process the second node through the processing mode; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting preset specifications is generated.
In view of the problem that the existing workflow designer includes a gateway node which is difficult for business personnel to understand and use, and therefore the business personnel are difficult to independently adjust or edit the workflow, the initial workflow is drawn through the target workflow designer which shields the gateway node, so that the business personnel can independently adjust or edit the workflow. The gateway node is shielded in the target workflow designer, so that the drawn initial workflow does not contain the gateway node, the initial workflow is a workflow which does not accord with the preset specification, and only the workflow which accords with the preset specification can be normally deployed and operated. Therefore, in this embodiment, after the initial workflow is drawn, a target workflow meeting the preset specification is generated by processing each node in the initial workflow. By the method, in the process of generating the target workflow meeting the preset specification, business personnel only need to draw the initial workflow through the target workflow designer, each node in the initial workflow is automatically processed subsequently, the target workflow meeting the preset specification is generated, other technical personnel are not needed in the whole process, convenience of the business personnel in adjusting or editing the workflow is improved, and further work efficiency is improved.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a method for generating a workflow provided by an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an initial workflow provided by an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a target workflow provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating a device for generating a workflow provided by an embodiment of the present application;
fig. 5 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In consideration of the practical application scenario, it is difficult for business personnel to independently adjust or edit the workflow, and the change of the process usually requires the participation of technical personnel, so that the working efficiency is low. Based on this, the embodiment of the application provides a method and an apparatus for generating a workflow, an electronic device and a readable storage medium, so as to improve convenience of business personnel in adjusting or editing the workflow, and further improve work efficiency. The following is a description by way of example.
The first embodiment is as follows:
for the convenience of understanding the present embodiment, a method for generating a workflow disclosed in the embodiments of the present application is first described in detail. Fig. 1 shows a flowchart of a method for generating a workflow provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps S1 to S4:
step S1: acquiring an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer that masks the gateway node.
The workflow is to organize a group of tasks to accomplish a certain business objective, wherein a triggering sequence and triggering conditions of the tasks are defined, documents and information are allowed to be transmitted between different departments and roles, and a unified interface is provided for functions of process approval, flow circulation, rollback and the like. When the workflow is applied to a business system, a flow chart needs to be designed firstly, wherein the design process is carried out in a visual mode, different types of flow nodes are dragged to the flow chart, and the branches and the trends of the flow are determined through connecting lines.
The existing workflow designer usually includes gateway nodes (e.g., parallel gateway nodes and exclusive gateway nodes) that are difficult for service personnel to understand and use, which causes a problem that it is difficult for service personnel to independently adjust or edit workflows. At this time, the node types in the target workflow designer include only: the system comprises a starting node, an ending node, a user approval node, an automatic task processing node, a condition judgment node, a countersigning node and a sub-process node. At this time, the business person can draw the initial workflow independently by using the target workflow designer only by dragging and pulling.
The automatic task processing node is used for automatically processing data or tasks which flow to the node according to a preset processing rule, and the automatic task processing node comprises the preset processing rule. The condition judgment node may set a judgment condition. The countersigning node adopts a voting mechanism, for example, one approval task is distributed to 5 persons, the 5 persons all process the approval task to obtain 5 approval results, the 5 approval results are counted, the approval results are the approved quantity, and whether the approval is passed or not is determined according to the quantity (for example, when the quantity is at least 3, the approval is passed). The sub-process node means that when the same section of process appears in different places in one process, the section of process is set as a sub-process, and the sub-process can be called repeatedly.
In this embodiment, the gateway node includes a parallel gateway node and an exclusive gateway node, and there are a plurality of next nodes connected to the gateway node in the normal flow direction of the workflow. The parallel gateway node is used for enabling each next node connected with the parallel gateway node to execute own task. The exclusive gateway node is used for enabling the next node meeting the judgment condition to execute the task of the exclusive gateway node in each next node connected with the parallel gateway node. Taking an approval process as an example, the next nodes connected with the gateway node are respectively a group leader approval node and a project manager approval node, when the gateway node is a parallel gateway node, both the group leader approval node and the project manager approval node need to execute an approval task, and when the gateway node is an exclusive gateway node, one of the group leader approval node and the project manager node can execute the approval task.
In a possible implementation manner, before the step S1 is executed to obtain the initial workflow, the following steps may be further executed:
s0: receiving an initial workflow sent by a first user end so as to store the initial workflow; the initial workflow is drawn by a first user through a target workflow designer installed in a first user side; a plurality of initial workflows are stored in the back-end server; each initial workflow corresponds to a respective flow type.
In this embodiment, the target workflow designer is installed in the first user side, and the first user may draw, according to a required flow type (i.e., a business target, such as a leave approval flow), an initial workflow corresponding to the flow type through the target workflow designer installed in the first user side.
After a first user uses first user terminals to draw initial workflows, the initial workflows are sent to a back-end server through the first user terminals, and the back-end server receives the initial workflows sent by the first user terminals so as to store the initial workflows.
In a possible embodiment, when the step S1 is executed to obtain the initial workflow, the following steps S101 to S102 may be specifically executed:
s101: and receiving an inquiry request sent by the second user end to return a plurality of initial workflows stored in advance and the number corresponding to each initial workflow to the second user end, so that the second user end responds to the selection operation of the second user on the initial workflows, and sends the number corresponding to the selected initial workflows as a target number to the back-end server.
In this embodiment, the second ue may be the first ue or another ue except the first ue. And when the workflow deployment operation is required, the second user sends a query request to the back-end server through the second user side. And after receiving the query request, the back-end server returns a plurality of pre-stored initial workflows and the number corresponding to each initial workflow to the second user end. The second user selects an initial workflow corresponding to the process type from the initial workflows displayed on the second user according to the process type of the workflow required to be deployed (for example, the process type required to be deployed is a leave-on approval process), and the second user sends the number of the initial workflow corresponding to the process type as a target number to the back-end server.
S102: and receiving a target number sent by the second user end so as to obtain an initial workflow corresponding to the target number from a plurality of initial workflows stored in advance.
After receiving the target number sent by the second user, the back-end server obtains an initial workflow corresponding to the target number (i.e., the process type) from a plurality of pre-stored initial workflows.
Step S2: inquiring a node with a null front node in the initial workflow to determine the node as an initial node and take the initial node as a first node; the front node is used for representing a node which is before the current node in the flow direction relation of the initial workflow.
In a possible embodiment, before the step S2 is executed to query a node in the initial workflow, where a front node is empty, so as to determine the node as a start node, the following step S201 may be further specifically executed:
s201: analyzing the node relation in the initial visual workflow, determining the prepositive nodes of all the nodes in the initial visual workflow, and storing the node relation between all the nodes and the prepositive nodes of all the nodes in a database. The node relationship refers to which node the front node of each node is.
When step S2 is executed to query a node in the initial workflow, where a front node is empty, so as to determine the node as a start node, the following step S202 may be specifically executed:
s202: and querying a node with a null front node in the initial workflow from the node relation stored in the database so as to determine the node as an initial node.
Fig. 2 shows a schematic diagram of an initial workflow provided by an embodiment of the present application, and as shown in fig. 2, a front node of a node a is an initial node, a front node of a node B is a node a, a front node of a node C is a node B, and front nodes of a node G are a node E, a node F, and a node D.
In this embodiment, the start node has no front node, that is, the front node of the start node is empty, so that the start node can be determined by querying the node in the initial workflow, where the front node is empty.
And step S3: a node adjacent to and subsequent to the first node in the initial workflow is determined to be a second node.
In this embodiment, the first node determined in the previous step is the start node, and the node adjacent to and after the start node in the initial workflow is node a, and at this time, node a is determined as the second node.
And step S4: determining a processing mode corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, and processing the second node through the processing mode; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting the preset specification is generated.
In this embodiment, the preset specification is specifically a BPMN2.0 (Business Process Modeling and labeling) specification.
In a possible implementation manner, when the step S4 is executed to determine a processing manner corresponding to the second node according to the connection relationship between the first node and the other nodes in the initial workflow and the connection relationship between the second node and the other nodes, so as to process the second node through the processing manner, the following step S401 may be specifically executed:
s401: and when the first node only belongs to the front node of one node, establishing a connection line between the first node and the second node.
For example, as shown in fig. 2, when the first node is a start node and the second node is a node a, since the start node only belongs to a front node of the node a, fig. 3 illustrates a schematic diagram of a target workflow provided in the embodiment of the present application, and as shown in fig. 3, a connection line between the first node (start node) and the second node (node a) is established.
In this embodiment, if the node type of the first node is any one of the following: and the connection line between the first node and the second node is directly established by the starting node, the user approval node and the condition node. If the node type of the first node is any one of the following: and then, establishing a connection between the first node and the second node (namely, establishing a connection between the first node and the user approval node (node H) and establishing a connection between the user approval node (node H) and the second node).
Next, the second node (node a) is determined as a new first node. And continuing to execute the following steps: nodes in the initial workflow that are adjacent to and behind the new first node (node a) are determined to be new second nodes. As shown in fig. 2, the new second node is determined to be node B.
Since the node a (first node) belongs only to the front node of the node B (second node), a connection between the first node (node a) and the second node (node B) is established as shown in fig. 3. The second node (node B) is then considered as the new first node. And continuing to execute the following steps: nodes adjacent to and subsequent to the new first node (node B) in the initial workflow (i.e., nodes C and D) are determined as new second nodes.
In a possible embodiment, when the step S4 is executed to determine a processing manner corresponding to the second node according to the connection relationship between the first node and the other nodes in the initial workflow and the connection relationship between the second node and the other nodes, and process the second node by the processing manner, the following steps S402 to S404 may be specifically executed:
s402: when the first node belongs to a front node of at least two nodes, judging whether the node type of the first node is a condition judgment node;
s403: when the node type of the first node is not the condition judgment node, establishing a first gateway node with the node type being a parallel gateway node, and establishing a connection line between the first node and the first gateway node; respectively establishing a connection line between the first gateway node and each second node aiming at each second node, and pressing the first gateway node into the current stack according to a first-in-first-out principle; the first gateway node is used for sending task starting information to each second node connected with the first gateway node when receiving the task completion information sent by the first node, so that each second node starts to execute the corresponding task to be executed;
s404: when the node type of the first node is a condition judgment node, establishing a second gateway node of which the node type is an exclusive gateway node, and establishing a connection line between the first node and the second gateway node; establishing a connection line between a second gateway node and each second node aiming at each second node, and pressing the second gateway node into the current stack according to a first-in-first-out principle; the second gateway node is used for selecting a target second node corresponding to the condition judgment result from a plurality of second nodes connected with the second gateway node according to the condition judgment result sent by the first node, and sending task starting information to the target second node so as to enable the target second node to start to execute the task to be executed corresponding to the target second node.
In this embodiment, the node B (first node) belongs to the front nodes of the node C and the node D, and at this time, it is determined whether the node type of the first node (node B) is a conditional determination node. As shown in fig. 2, the node type of the node B in this embodiment is not a conditional judgment node. At this time, as shown in fig. 3, a first gateway node (e.g., B1) whose node type is a parallel gateway node is created, and a connection between the node B (first node) and the first gateway node B1 is established, and a connection between the first gateway node B1 and a node C (second node) is established, and a connection between the first gateway node B1 and a node D (second node) is established. And pushing the first gateway node B1 into the current stack according to a first-in-first-out principle.
The stack exists as a space, and the arrangement of each node in the stack is arranged according to the principle of first-in and last-out. In this embodiment, the first gateway node B1 is placed in the current stack according to a first-in-first-out principle, and at this time, the first gateway node B1 is a current stack top node in the current stack.
Then, taking the second node (node C) as a new first node, the following steps are carried out: and determining the nodes (namely the conditional judging nodes) adjacent to and behind the new first node (the node C) in the initial workflow as new second nodes. As shown in fig. 2, since the node C (first node) only belongs to the front node of the condition judging node (second node), as shown in fig. 3, a connection line between the first node (node C) and the second node (condition judging node) is established. And taking the condition judgment node as a new first node.
Nodes (node E and node F) adjacent to and subsequent to the new first node (conditional judging node) in the initial workflow are determined as second nodes. At this time, the first node (conditional judgment node) belongs to the front node of the two nodes, and thus it is judged whether the node type of the first node is a conditional judgment node.
In this embodiment, the node type of the first node (conditional judgment node) is a conditional judgment node, and at this time, the second gateway node C1 whose node type is an exclusive gateway node is created, as shown in fig. 3, a connection line between the conditional judgment node and the exclusive gateway node C1 is established.
For the second node (node E), a connection line between the second gateway node C1 and the second node (node E) is established, and the second gateway node C1 is pushed into the current stack according to a first-in-first-out principle. At this time, in this embodiment, in the current stack, the second gateway node C1 is above the first gateway node B1, and the second gateway node C1 is a current stack top node in the current stack.
Taking the second node (node E) as a new first node, continuously executing the following steps: a node (node G) in the initial workflow that is adjacent to and behind the new first node (node E) is determined as the second node.
In a possible implementation manner, when the step S4 is executed to determine a processing manner corresponding to the second node according to the connection relationship between the first node and the other nodes in the initial workflow and the connection relationship between the second node and the other nodes, so as to process the second node through the processing manner, the following steps S405 to S407 may be specifically executed:
s405: when the first node and other nodes are jointly used as the front node of the second node, judging whether a current stack top node exists in a current stack;
s406: if the current stack top node exists, acquiring the current stack top node, continuously judging whether the current stack top node exists in the current stack or not and subsequent steps, stopping until the current stack top node does not exist in the current stack, and acquiring the stack popping sequence of each current stack top node and each current stack top node;
s407: judging whether a third node with the same type as the current stack top node exists at present or not aiming at each current stack top node; if the third node with the same node type as the current stack top node does not exist, the third node with the same node type as the current stack top node is created to obtain a third node corresponding to each current stack top node; according to the pop sequence of each current stack top node, sequentially passing through a third node corresponding to each current stack top node, and establishing a connection line between the first node and the second node; and if the third node exists, establishing a connection line between the first node and the second node sequentially through the third node corresponding to each current stack top node according to the pop-up sequence of each current stack top node.
In this embodiment, since the first node (node E) and the other nodes (node F and node D) together serve as the front node of the second node (node G), it is determined whether the current stack top node exists in the current stack. In this embodiment, if a current stack top node, specifically, a second gateway node C1, exists in the current stack, the second gateway node C1 is obtained. And continuing to judge whether the current stack has the current stack top node, in this embodiment, if the current stack has the current stack top node, specifically, the current stack top node is the first gateway node B1, then the first gateway node B1 is acquired. And continuing to judge whether the current stack top node exists in the current stack, wherein in the embodiment, the current stack top node does not exist in the current stack, and stopping continuing to judge. In this embodiment, the pop sequence of the first gateway node B1 and the second gateway node C1 is the first pop of the second gateway node C1 and the second pop of the first gateway node B1.
For the second gateway node C1, in the process of converting the initial workflow into the target workflow, it is determined whether a third node (note that the third node is not the second gateway node) of the same type as the node of the second gateway node C1 exists in the target workflow currently in the conversion process. As shown in fig. 3, when there is no third node of the same node type as the second gateway node C1, a third node of the same node type as the second gateway node C1 is created (i.e., a third node C2 of which the node type is an exclusive gateway node is created).
And aiming at the first gateway node B1, judging whether a target workflow currently in the conversion process has a third node with the same node type as that of the first gateway node B1. When there is no third node of the same node type as the first gateway node B1, a third node of the same node type as the first gateway node B1 is created (i.e., a third node C2 of parallel gateway node type is created). At this time, the third nodes (B2 and C2) corresponding to each current top-of-stack node (the first gateway node B1 and the second gateway node C1) are obtained.
As shown in fig. 3, according to the pop sequence of the second gateway node C1 (first pop) and the first gateway node B1 (second pop), the connection between the first node E and the second node G is established sequentially through the third node C2 and the third node B2.
The second node (node G) is taken as the new first node. And continuing to execute the following steps: a node (end node) adjacent to and behind the new first node (node G) in the initial workflow is determined as a second node, as shown in fig. 2, and since the second node (node G) only belongs to the front node of the end node, as shown in fig. 3, a connection line between the node G and the end node is established.
After the connection between the conditional judgment node and the second gateway node C1 is established, for the second node (node F), the connection between the second gateway node C1 and the second node (node F) is established, and the second gateway node C1 is pushed into the current stack according to the first-in-last-out principle. At this time, the current stack includes the second gateway node C1. Taking the second node (node F) as a new first node, continuously executing the following steps: a node (node G) in the initial workflow that is adjacent to and behind the new first node (node F) is determined as the second node.
In this embodiment, since the first node (node F) and the other nodes (node E and node D) together serve as the front node of the first node (node G), it is determined whether the current stack top node exists in the current stack. In this embodiment, if a current stack top node, specifically, a second gateway node C1, exists in the current stack, the second gateway node C1 is obtained, and whether the current stack top node exists in the current stack is continuously determined. In this embodiment, only one current top node of the stack, that is, the second gateway node C1, is present, that is, the pop sequence is the first pop of the second gateway node C1.
And judging whether a third node with the same node type as the second gateway node C1 exists in the current target workflow. At this time, when a third node (i.e., the third node C2) of the same node type as the second gateway node C1 exists in the current target workflow, a connection line between the first node (node F) and the second node (node G) is established through the third node C2.
After the connection between the node B and the first gateway node B1 is established, for the second node (node D), the connection between the first gateway node B1 and the second node (node D) is established, and the first gateway node B1 is pushed into the current stack according to the first-in-last-out principle. At this point, only the first gateway node B1 is contained in the current stack.
Taking the second node (node D) as the new first node, as shown in fig. 2, the following steps are carried out: a node adjacent to and subsequent to the first node (node D) in the initial workflow (i.e., node G) is determined as the second node.
In this embodiment, since the first node (node D) and the other nodes (node E and node F) together serve as the front node of the second node (node G), it is determined whether the current stack top node exists in the current stack. In this embodiment, if a current stack top node, specifically, a first gateway node B1, exists in the current stack, the first gateway node B1 is obtained, and whether the current stack top node exists in the current stack is continuously determined. In this embodiment, only one current top node, that is, the first gateway node B1, exists, that is, the pop sequence is the first pop of the first gateway node B1.
And judging whether a third node of the same node type as the first gateway node B1 exists currently. In this embodiment, when there is a third node (i.e., a third node B2) of the same node type as the first gateway node B1, a connection between the first node (node D) and the second node (node G) is established through the third node B2 corresponding to the first gateway node B1.
Through the above method, as shown in fig. 3, a target workflow conforming to a preset specification is generated. And deploying and releasing the target workflow, and then online applying.
In this embodiment, the target workflow may be deployed to a backend server, or the target workflow may be sent to other clients (specifically, the first client or the second client, or clients other than the first client and the second client) through the backend server to be deployed to other clients.
As shown in fig. 3, after the target workflow is deployed online, the target workflow may be executed in the following manner:
when the starting node is triggered, the starting node sends task starting information to the node A, and the node A executes the task after receiving the task starting information. Illustratively, when a task of a node a is a user approval task, the node a sends the approval task to a user side of a corresponding approver, after the approver executes the approval task, a task execution result is returned to the node a through the user side, and when the task execution result is approved, the node a sends task completion information to a node B, so that the node B executes its own task. When the node B finishes the task of the node B, task completion information is sent to the node B1, and when the node B1 receives the task completion information sent by the node B, task start information is sent to the node C and the node D respectively, so that the node C and the node D start to execute the tasks to be executed corresponding to the node C and the node D.
After the node C finishes the task, task completion information is sent to the condition judgment node, the condition judgment node starts to execute the judgment task of the node C, and the condition judgment result is sent to the node C1. And the node C1 selects a target node (assumed as the node E) corresponding to the condition judgment result from the node E and the node F according to the condition judgment result, and sends task starting information to the node E so that the node E starts to execute the task to be executed corresponding to the node E. After the node E executes the task of the node E, task completion information is sent to the node C2. After receiving the task completion information sent by any one of the node E or the node F, the node C2 sends the task completion information to the node B2.
After the node D executes its own task, it sends task completion information to the node B2. After receiving the task completion information sent by the node C2 and the node D, the node B2 sends the task completion information to the node G, so that the node G starts to execute its own task. And after the node G finishes the task of the node G, sending task finishing information to the finishing node, and after the finishing node receives the task finishing information, finishing the process execution.
The second embodiment:
based on the same technical concept, an embodiment of the present application further provides a device for generating a workflow, and fig. 4 shows a schematic structural diagram of the device for generating a workflow provided by the embodiment of the present application, and as shown in fig. 4, the device includes:
an obtaining module 401, configured to execute step S1; the step S1 is to obtain an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer shielding the gateway node;
a query module 402 for performing step S2; step S2 is to query a node in the initial workflow, where a front node is empty, to determine the node as an initial node, and to use the initial node as a first node; the front node is used for representing a node before the current node in the flow direction relation of the initial workflow;
a determining module 403, configured to perform step S3; step S3 is to determine a node adjacent to and behind the first node in the initial workflow as a second node;
a processing module 404, configured to execute step S4; step S4 is to determine a processing manner corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, so as to process the second node through the processing manner; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting preset specifications is generated.
Optionally, when the processing module 404 is configured to execute step S4, specifically configured to:
and when the first node only belongs to the front node of one node, establishing a connection line between the first node and the second node.
Optionally, when the processing module 404 is configured to execute step S4, specifically configured to:
when the first node belongs to a front node of at least two nodes, judging whether the node type of the first node is a condition judgment node;
when the node type of the first node is not a condition judgment node, establishing a first gateway node with the node type being a parallel gateway node, and establishing a connection line between the first node and the first gateway node; respectively establishing a connection between the first gateway node and each second node aiming at each second node, and pressing the first gateway node into the current stack according to a first-in-first-out principle; the first gateway node is used for sending task start information to each second node connected with the first gateway node when receiving the task completion information sent by the first node, so that each second node starts to execute the corresponding task to be executed;
when the node type of the first node is a condition judgment node, establishing a second gateway node with the node type being an exclusive gateway node, and establishing a connection line between the first node and the second gateway node; establishing a connection between the second gateway node and each second node aiming at each second node, and pressing the second gateway node into the current stack according to a first-in-first-out principle; the second gateway node is configured to select a target second node corresponding to the condition determination result from a plurality of second nodes connected to the second gateway node according to the condition determination result sent by the first node, and send task start information to the target second node, so that the target second node starts to execute a task to be executed corresponding to the target second node.
Optionally, when the processing module 404 is configured to execute step S4, specifically configured to:
when the first node and other nodes are jointly used as the front node of the second node, judging whether a current stack top node exists in a current stack;
if the current stack top node exists, acquiring the current stack top node, continuously judging whether the current stack top node exists in the current stack or not and subsequent steps, stopping until the current stack top node does not exist in the current stack, and acquiring the stack exit sequence of each current stack top node and each current stack top node;
judging whether a third node with the same type as the current stack top node exists at present or not aiming at each current stack top node; if the third node with the same type as the node of the current stack top node does not exist, the third node with the same type as the node of the current stack top node is created to obtain the third node corresponding to each current stack top node; according to the pop sequence of each current stack top node, sequentially passing through a third node corresponding to each current stack top node, and establishing a connection line between the first node and the second node; and if the third node exists, establishing a connection line between the first node and the second node sequentially through the third node corresponding to each current stack top node according to the pop sequence of each current stack top node.
Optionally, the method further includes:
an analyzing module, configured to analyze the node relationship in the initial visualization workflow before the first querying module 402 executes step S2, determine a front node of each node in the initial visualization workflow, and store the node relationship between each node and the front node of each node in a database;
when the query module is configured to execute step S2, the query module is specifically configured to:
and querying a node with a null front node in the initial workflow from the node relation stored in the database so as to determine the node as an initial node.
Optionally, the apparatus resides in a backend server; the device further comprises:
a receiving module, configured to receive the initial workflow sent by the first user end before the obtaining module 401 executes step S1, so as to store the initial workflow; the initial workflow is drawn by a first user through the target workflow designer installed in the first user side; a plurality of initial workflows are stored in the back-end server; each of the initial workflows corresponds to a respective flow type.
Optionally, when executing step S1, the obtaining module 401 is specifically configured to:
receiving an inquiry request sent by a second user end, returning a plurality of pre-stored initial workflows and the number corresponding to each initial workflow to the second user end, so that the second user end responds to the selection operation of a second user on the initial workflows, and sends the number corresponding to the selected initial workflows as the target number to the back-end server;
and receiving the target number sent by the second user end so as to obtain an initial workflow corresponding to the target number from a plurality of pre-stored initial workflows.
Example three:
based on the same technical concept, an embodiment of the present application further provides an electronic device, and fig. 5 shows a schematic structural diagram of the electronic device provided in the embodiment of the present application, and as shown in fig. 5, the electronic device 500 includes: a processor 501, a memory 502 and a bus 503, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device is operated, the processor 501 and the memory 502 communicate with each other through the bus 503, and the processor 501 executes the machine-readable instructions to execute the steps of the method described in the first embodiment.
Example four:
based on the same technical concept, a computer-readable storage medium is further provided in a fourth embodiment of the present application, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the method steps in the first embodiment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus, the electronic device and the computer-readable storage medium described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules into only one logical functional division may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used to illustrate the technical solutions of the present application, but not to limit the technical solutions, and the scope of the present application is not limited to the above-mentioned embodiments, although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for generating a workflow, comprising:
step S1: acquiring an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer shielding the gateway node;
step S2: inquiring a node with a null front node in the initial workflow to determine the node as an initial node and take the initial node as a first node; the front node is used for representing a node before the current node in the flow direction relation of the initial workflow;
and step S3: determining a node adjacent to and behind the first node in the initial workflow as a second node;
and step S4: determining a processing mode corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, so as to process the second node through the processing mode; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting preset specifications is generated.
2. The method according to claim 1, wherein the determining, according to the connection relationships between the first node and other nodes in the initial workflow and the connection relationships between the second node and other nodes, a processing manner corresponding to the second node, so as to process the second node by the processing manner, includes:
and when the first node only belongs to the front node of one node, establishing a connection line between the first node and the second node.
3. The method according to claim 1, wherein the determining, according to the connection relationships between the first node and other nodes in the initial workflow and the connection relationships between the second node and other nodes, a processing manner corresponding to the second node, so as to process the second node by the processing manner, includes:
when the first node belongs to a front node of at least two nodes, judging whether the node type of the first node is a condition judgment node;
when the node type of the first node is not a condition judgment node, establishing a first gateway node with the node type being a parallel gateway node, and establishing a connection line between the first node and the first gateway node; respectively establishing a connection between the first gateway node and each second node aiming at each second node, and pressing the first gateway node into the current stack according to a first-in-first-out principle; the first gateway node is used for sending task start information to each second node connected with the first gateway node when receiving the task completion information sent by the first node, so that each second node starts to execute the corresponding task to be executed;
when the node type of the first node is a condition judgment node, establishing a second gateway node with the node type being an exclusive gateway node, and establishing a connection line between the first node and the second gateway node; establishing a connection between the second gateway node and each second node aiming at each second node, and pressing the second gateway node into a current stack according to a first-in-first-out principle; the second gateway node is configured to select a target second node corresponding to the condition determination result from a plurality of second nodes connected to the second gateway node according to the condition determination result sent by the first node, and send task start information to the target second node, so that the target second node starts to execute a task to be executed corresponding to the target second node.
4. The method according to claim 3, wherein the determining, according to the connection relationships between the first node and other nodes in the initial workflow and the connection relationships between the second node and other nodes, a processing manner corresponding to the second node, so as to process the second node through the processing manner, includes:
when the first node and other nodes are jointly used as the front node of the second node, judging whether a current stack top node exists in a current stack;
if the current stack top node exists, acquiring the current stack top node, continuously judging whether the current stack top node exists in the current stack or not and continuing the subsequent steps, stopping until the current stack top node does not exist in the current stack, and acquiring the stack-out sequence of each current stack top node and each current stack top node;
judging whether a third node with the same type as the node of the current stack top node exists at present or not aiming at each current stack top node; if the third node with the same node type as the current stack top node does not exist, the third node with the same node type as the current stack top node is created to obtain a third node corresponding to each current stack top node; according to the pop sequence of each current stack top node, sequentially passing through a third node corresponding to each current stack top node, and establishing a connection line between the first node and the second node; and if the third node exists, establishing a connection line between the first node and the second node sequentially through the third node corresponding to each current stack top node according to the pop-up sequence of each current stack top node.
5. The method of claim 1, wherein querying a node in the initial workflow whose previous node is empty to determine the node as being before the starting node, further comprises:
analyzing the node relation in the initial visualization workflow, determining the front node of each node in the initial visualization workflow, and storing the node relation between each node and the front node of each node in a database;
the querying a node with a null front node in the initial workflow to determine the node as a starting node includes:
and querying a node with a null front node in the initial workflow from the node relation stored in the database so as to determine the node as an initial node.
6. The method according to claim 1, wherein the method is applied in a back-end server; before the obtaining the initial workflow, the method further includes:
receiving the initial workflow sent by a first user end so as to store the initial workflow; the initial workflow is drawn by a first user through the target workflow designer installed in the first user side; a plurality of initial workflows are stored in the back-end server; each of the initial workflows corresponds to a respective flow type.
7. The method of claim 6, wherein obtaining the initial workflow comprises:
receiving an inquiry request sent by a second user end, returning a plurality of pre-stored initial workflows and the number corresponding to each initial workflow to the second user end, so that the second user end responds to the selection operation of a second user on the initial workflows, and sends the number corresponding to the selected initial workflows as the target number to the back-end server;
and receiving the target number sent by the second user end so as to obtain an initial workflow corresponding to the target number from a plurality of pre-stored initial workflows.
8. An apparatus for generating a workflow, comprising:
an acquisition module for executing step S1; the step S1 is to obtain an initial workflow; the initial workflow is drawn through a target workflow designer; the target workflow designer is a workflow designer shielding the gateway node;
a query module for executing step S2; step S2 is to query a node in the initial workflow, where a front node is empty, to determine the node as an initial node, and to use the initial node as a first node; the front node is used for representing a node before a current node in the flow direction relation of the initial workflow;
a determining module for executing step S3; step S3 is to determine a node adjacent to and behind the first node in the initial workflow as a second node;
a processing module for executing step S4; step S4 is to determine a processing manner corresponding to the second node according to the connection relationship between the first node and other nodes in the initial workflow and the connection relationship between the second node and other nodes, so as to process the second node through the processing manner; and repeatedly executing the step S3 to the step S4, and in the repeated execution process of the step S, determining the second node in the step S3 as a new first node, and stopping circulation until a target workflow meeting preset specifications is generated.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202211399518.8A 2022-11-09 2022-11-09 Workflow generation method and device, electronic equipment and readable storage medium Active CN115660396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211399518.8A CN115660396B (en) 2022-11-09 2022-11-09 Workflow generation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211399518.8A CN115660396B (en) 2022-11-09 2022-11-09 Workflow generation method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115660396A true CN115660396A (en) 2023-01-31
CN115660396B CN115660396B (en) 2023-09-19

Family

ID=85015608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211399518.8A Active CN115660396B (en) 2022-11-09 2022-11-09 Workflow generation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115660396B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227044A1 (en) * 2011-03-03 2012-09-06 Tata Consultancy Services Limited Automated workflow manager
US20130031542A1 (en) * 2011-07-28 2013-01-31 Yahoo! Inc. Method and system for distributed application stack deployment
CN110619473A (en) * 2019-09-19 2019-12-27 福建博思软件股份有限公司 Method for realizing reverse circulation based on Activiti workflow
CN114004477A (en) * 2021-10-27 2022-02-01 北京同创永益科技发展有限公司 Low-code-based automatic execution method and device for process arrangement
WO2022134424A1 (en) * 2020-12-24 2022-06-30 平安普惠企业管理有限公司 Service flow processing method and apparatus, and computer device and storage medium
CN115291856A (en) * 2022-07-19 2022-11-04 中电金信软件有限公司 Flow establishing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227044A1 (en) * 2011-03-03 2012-09-06 Tata Consultancy Services Limited Automated workflow manager
US20130031542A1 (en) * 2011-07-28 2013-01-31 Yahoo! Inc. Method and system for distributed application stack deployment
CN110619473A (en) * 2019-09-19 2019-12-27 福建博思软件股份有限公司 Method for realizing reverse circulation based on Activiti workflow
WO2022134424A1 (en) * 2020-12-24 2022-06-30 平安普惠企业管理有限公司 Service flow processing method and apparatus, and computer device and storage medium
CN114004477A (en) * 2021-10-27 2022-02-01 北京同创永益科技发展有限公司 Low-code-based automatic execution method and device for process arrangement
CN115291856A (en) * 2022-07-19 2022-11-04 中电金信软件有限公司 Flow establishing method and device and electronic equipment

Also Published As

Publication number Publication date
CN115660396B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN111831420B (en) Method for task scheduling, related device and computer program product
CN112527649A (en) Test case generation method and device
CN106548261A (en) A kind of Business Process Control method, device and electronic equipment
CN108681777A (en) A kind of method and apparatus of the machine learning program operation based on distributed system
CN109783197A (en) Dispatching method and device for program runtime environment
CN111695876A (en) Approval process processing method, device, equipment and storage medium
KR20130053407A (en) Enhancing an inquiry for a search of a database
CN109615410B (en) Data processing method and device, computer equipment and computer readable storage medium
CN114363407A (en) Message service method and device, readable storage medium and electronic equipment
CN110347688A (en) Feature fusion, device, equipment and the storage medium of multiple information
CN106096926B (en) Event processing method, device, electronic device and storage medium
CN111444077A (en) Method and device for generating flow node test data
CN112949973A (en) AI-combined robot process automation RPA process generation method
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
CN111754189A (en) Task delivery method and device, computer equipment and computer readable storage medium
CN110515741A (en) A kind of degradation processing method and device based on local task queue
CN113656502B (en) Data synchronization method, system, electronic device and storage medium
CN115660396A (en) Workflow generation method and device, electronic equipment and readable storage medium
CN112256999A (en) Page display method, device and equipment
CN110083351A (en) Method and apparatus for generating code
CN107679096B (en) Method and device for sharing indexes among data marts
CN110471968A (en) Dissemination method, device, equipment and the storage medium of ETL task
US20240054451A1 (en) Inventory information processing method and device
CN115860877A (en) Product marketing method, device, equipment and medium
CN113312359B (en) Distributed job progress calculation method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant