CN111222783A - Method for processing workflow and electronic equipment - Google Patents

Method for processing workflow and electronic equipment Download PDF

Info

Publication number
CN111222783A
CN111222783A CN201911425805.XA CN201911425805A CN111222783A CN 111222783 A CN111222783 A CN 111222783A CN 201911425805 A CN201911425805 A CN 201911425805A CN 111222783 A CN111222783 A CN 111222783A
Authority
CN
China
Prior art keywords
node
workflow
task
rule
task corresponding
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.)
Pending
Application number
CN201911425805.XA
Other languages
Chinese (zh)
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.)
Shenzhen Idreamsky Technology Co ltd
Original Assignee
Shenzhen Idreamsky Technology 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 Shenzhen Idreamsky Technology Co ltd filed Critical Shenzhen Idreamsky Technology Co ltd
Priority to CN201911425805.XA priority Critical patent/CN111222783A/en
Publication of CN111222783A publication Critical patent/CN111222783A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The embodiment of the application discloses a method for processing a workflow and electronic equipment. The method comprises the steps that the electronic equipment executes a first task corresponding to a first node; the first node belongs to a plurality of nodes included in a workflow, and the workflow is used for describing the logical relationship among a plurality of tasks in the business process; when the first node is in a finished state, the electronic equipment determines a second node according to a branch rule of the first node; the first node is in a finished state, namely the electronic equipment finishes executing a first task corresponding to the first node; the second node belongs to a plurality of nodes included in the workflow; under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node; the electronic equipment processes the second tasks with more logic relationships according to the branch rules of the first nodes and the combination rules of the second nodes, processes the workflow more flexibly, adapts to complex business requirements, and improves user requirements.

Description

Method for processing workflow and electronic equipment
Technical Field
The present application relates to the field of business process management, and in particular, to a method for processing a workflow and an electronic device.
Background
In the information technology age of the present day, the related business fields are more and more extensive. In order to improve the work efficiency of business processing, people combine some or all of the business processes with office automation technology to form various workflows. A business process can generally be broken down into tasks. In the process of processing the business process, the nodes of the workflow can be used for describing the tasks in the business process, and the flow situation between the nodes of the workflow can be used for describing the logical relationship between the tasks in the business process.
In the process of processing the business process, there may be a plurality of upper-level tasks of a certain task, and there may also be a plurality of lower-level tasks of a certain task. It can also be said that there may be a plurality of upper level nodes associated with a certain workflow node, and there may also be a plurality of lower level nodes associated with a certain workflow node. And finishing the task corresponding to the last node in the workflow, and successfully processing the business process corresponding to the workflow.
Therefore, how to flexibly process the workflow, that is, how to execute the task in the business process corresponding to the workflow, is a problem that needs to be solved at present.
Disclosure of Invention
In view of the above, the present application is proposed to provide a method of processing a workflow and an electronic device that overcome or at least partially solve the above problems. And the workflow is flexibly processed, so that the user requirements are met.
In a first aspect, an embodiment of the present application provides a method for processing a workflow, which may include: the electronic equipment executes a first task corresponding to the first node; the first node belongs to a plurality of nodes included in a workflow, and the workflow is used for describing the logical relationship among a plurality of tasks in the business process; when the first node is in a finished state, the electronic equipment determines a second node according to a branch rule of the first node; the first node is in a finished state, namely the electronic equipment finishes executing a first task corresponding to the first node; the second node belongs to a plurality of nodes included in the workflow; under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node; wherein the branching rule of the first node and the merging rule of the second node together indicate: various logical relationships between multiple tasks in a business process.
By the method provided by the first aspect, the electronic device executes tasks with more logical relationships according to the branch rules and the merge rules, flexibly processes the workflow, adapts to more complex business processes, and improves user experience.
In one possible implementation, the branching rule of the first node is associated with the form data of the first task, and/or the merging rule of the second node is associated with the form data of the second task. And the workflow is flexibly processed, so that the user requirements are met.
In one possible implementation, the form data of the first task includes one or more of: data of a user associated with a first task corresponding to the first node, or an account state of the user associated with the first task corresponding to the first node; and/or the form data of the second task comprises one or more of: data of a user associated with a second task corresponding to the second node, or an account status of the user associated with the second task corresponding to the second node.
In a possible implementation manner, after the electronic device determines the second node according to the branch rule of the first node, the method further includes: under the condition that the merging rule of the second node is not met, the electronic equipment executes the first task corresponding to the first node again; when the first node is in a finished state, the electronic equipment determines a second node according to a branch rule of the first node; and under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node. And processing the workflow again to ensure that the business process is executed, and improving the user experience.
In a possible implementation manner, the determining, by the electronic device, the second node according to the branch rule of the first node specifically includes: the electronic equipment determines a correlation node of the first node according to the workflow; the electronic device determines a second node from the branch rule and the associated node of the first node. The second node comprises part or all of the associated nodes, flexibly processes the workflow and adapts to the requirements of users.
In a second aspect, an embodiment of the present application provides an electronic device for processing a workflow, including:
the processing unit is used for executing a first task corresponding to the first node; the first node belongs to a plurality of nodes included in a workflow, and the workflow is used for describing the logical relationship among a plurality of tasks in the business process;
the determining unit is used for determining the second node according to the branch rule of the first node when the first node is in the finished state; the first node is in a finished state, namely, the processing unit finishes executing a first task corresponding to the first node; the second node belongs to a plurality of nodes included in the workflow;
the processing unit is further used for executing a second task corresponding to the second node under the condition that the merging rule of the second node is met; wherein the branching rule of the first node and the merging rule of the second node together indicate: the processing unit executes a plurality of logical relationships used when the second task is executed according to the logical relationship.
In one possible implementation, the branching rule of the first node is associated with the form data of the first task, and/or the merging rule of the second node is associated with the form data of the second task.
In one possible implementation, the form data of the first task includes one or more of: data of a user associated with a first task corresponding to the first node, or an account state of the user associated with the first task corresponding to the first node; and/or the form data of the second task comprises one or more of: data of a user associated with a second task corresponding to the second node, or an account status of the user associated with the second task corresponding to the second node.
In a possible implementation manner, the processing unit is further configured to, after the determining unit determines the second node according to the branch rule of the first node, execute the first task corresponding to the first node again if the merge rule of the second node is not satisfied; the determining unit is further used for determining a second node according to the branch rule of the first node after the processing unit executes the first task corresponding to the first node again and when the first node is in a finished state; and the processing unit is further used for executing a second task corresponding to the second node under the condition that the merging rule of the second node is met.
In a possible implementation manner, the determining unit is specifically configured to: determining a correlation node of the first node according to the workflow; and determining the second node according to the branch rule of the first node and the associated node of the first node.
In a third aspect, an embodiment of the present application provides an electronic device for processing a workflow, including a memory, one or more processors; the memory is coupled to the one or more processors, and the memory is configured to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method according to the first aspect, which is not described herein again.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is executed by a processor to implement the method of the first aspect.
By implementing the technical scheme provided by the embodiment of the application, the electronic equipment utilizes the branch rule and the merge rule to realize the workflow with various logic relations, flexibly processes the workflow, adapts to the user requirements and improves the user experience.
Drawings
FIG. 1 is a workflow diagram for describing a business process according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a communication system for processing a workflow according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for processing a workflow according to an embodiment of the present application;
FIG. 4 is another operational diagram for describing a business process provided by an embodiment of the present application;
FIG. 5 is a flow chart illustrating another method for processing a workflow provided by an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an electronic device for processing a workflow according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device entity for processing a workflow according to an embodiment of the present application.
Detailed Description
The terms "first," "second," and "third," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, "include" and "have" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As used in this application, the terms "server," "unit," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a server may be, but is not limited to, a processor, a data processing platform, a computing device, a computer, two or more computers, and the like.
First, some terms in the present application are explained so as to be easily understood by those skilled in the art.
(1) And (3) service flow: and (4) the overall process of a service. The service may be a purchase service, a leave request service, a group purchase service, a charge reimbursement service, a supply chain management service, an information management service, etc., and is not limited herein. A business process can be broken down into one or more tasks.
(2) Workflow: for describing logical relationships between one or more tasks in a business process. A workflow may include one or more workflow nodes. A node in the workflow corresponds to a task in the business process.
(3) A workflow engine: and the business process is used for realizing workflow description. The workflow engine runs in the electronic equipment and can automatically transmit documents, information or tasks among a plurality of participants in the business process according to a predefined logical relationship, so as to complete the business process.
The above concepts will be described below in connection with a specific business process.
The business process of the leave-asking business is taken as an example for explanation. Suppose that the business process of the leave-asking business comprises 4 tasks: task 1. ask dummy a to submit a leave requisition. Task 2. approver B processes the leave request. Task 3. approver C processes the leave requisition. Task 4. approver D processes the leave requisition. In the business process, when any one of three persons, namely an approver B, an approver C and an approver D agrees to please apply for the dummy A, the dummy A is asked to succeed.
Referring to fig. 1, fig. 1 shows a workflow for describing the business process. The workflow includes 4 nodes: node 101, node 102, node 103, and node 104. Node 101 corresponds to task 1, node 102 corresponds to task 2, node 103 corresponds to task 3, and node 104 corresponds to task 4. As shown in the figure, the logic relationships among 4 tasks in the business process described by the workflow are 3 types:
1. the dummy A is requested to submit a leave request sheet, then the approver B processes the leave request sheet, and the dummy A is requested to succeed in leave.
2. The dummy A is requested to submit a leave request sheet, then the leave request sheet is processed by the approver C, and the dummy A is requested to succeed in leave.
3. The dummy A is requested to submit a leave request sheet, then the leave request sheet is processed by the approver D, and the dummy A is requested to succeed in leave.
In some possible embodiments, the workflow may be handled by a communication system as shown in fig. 2. Specifically, the communication system includes: electronic device 201, terminal device 202, terminal device 203, terminal device 204, terminal device 205, terminal device 206.
In some possible embodiments, the terminal device may be a portable terminal device, such as a smartphone, a tablet, a wearable terminal device with wireless communication capabilities (e.g., a smart watch), and so on. Exemplary embodiments of the portable terminal device include, but are not limited to, a mount
Figure BDA0002352563250000051
Or other operating system. It should also be understood that, in some other embodiments, the terminal device may also be a non-portable terminal device such as a desktop computer, and is not limited herein.
For example, the user a may log in to the terminal device 202 and the terminal device 203 through a user account, the user B may log in to the terminal device 204 through a user account, the user C may log in to the terminal device 205 through a user account, and the user D may log in to the terminal device 206 through a user account. The user A can be a leave applicant A, the user B can be an approver B, the user C can be an approver C, and the user D can be an approver D.
The electronic device 201 may be a server, and specifically, the server may be a global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time division code division multiple access (time-division multiple access, TD-SCDMA), Long Term Evolution (LTE), Wireless Local Area Network (WLAN) (e.g., wireless fidelity (Wi-Fi) network), global navigation satellite system (global navigation satellite system, GNSS), and other wireless communication technologies, and the server may be connected to the terminal device through a wire, or a wire connected to the terminal device through a wire.
And the terminal equipment is provided with an application program related to the business process. After the terminal device is connected to the server related to the business process in the network, the server related to the business process can provide the form data of each task for the terminal device, so that the server can complete each task in the business process.
In processing the workflow, the electronic device 201 runs a workflow engine corresponding to the workflow. In some possible embodiments, the terminal device 202 submits the leave request to the electronic device 201 in response to the user operation of the user a, and the electronic device 201 may push the leave request to the terminal device 204 that the user B logs in through the user account, and the user B processes the leave request. The terminal device 204 receives the user operation of the user B to obtain the processing result of the user B, and sends the processing result to the electronic device 201.
In order to automatically process tasks in a business process described by a workflow, the embodiment of the application provides a method for processing the workflow. In the method, the electronic device determines a second task to be executed after the first task is executed according to a branch rule corresponding to the first node, and judges whether the second task can be executed according to a combination rule of the second node. In the case where it is determined to execute the second task according to the merge rule, the electronic device executes the second task. The branching rules and the merging rules herein collectively indicate a variety of logical relationships for the electronic device to perform the second task. The branch rule and the merge rule corresponding to the node may refer to the related description of the subsequent method embodiment, which is not described herein again.
By the method provided by the embodiment of the application, the electronic equipment executes tasks of various logic relations according to the branch rules and the combination rules of the nodes, and flexibly processes the workflow, so that the complex business process described by the workflow is flexibly adapted, and the user requirements are adapted.
The embodiments of the present application will be described in detail below.
Please refer to fig. 3, which is a flowchart illustrating a method for processing a workflow according to an embodiment of the present application. As shown in fig. 3, the method of processing a workflow may include:
step S301: the electronic equipment executes a first task corresponding to a first node, wherein the first node belongs to a plurality of nodes in the workflow.
The workflow may be used to describe a business process of an enterprise, and a workflow engine operated by the electronic device may implement the business process.
It should be clear that in the workflow description, multiple tasks can be performed simultaneously. For example, the current step is not started until a plurality of tasks of the previous step are executed, that is, there are a plurality of previous nodes associated with a certain workflow node. After the execution of the current step is finished, a plurality of tasks are executed simultaneously, namely a plurality of next-level nodes associated with a certain workflow node are provided.
Specifically, the first task is a task being processed in the business process described by the workflow. In some possible embodiments, the number of the first nodes may be one, so that the number of the first tasks corresponding to the first nodes is one. As shown in fig. 1, the first task may be task 1 corresponding to node 101.
In other possible embodiments, the number of the first nodes may be plural, and thus the number of the first tasks corresponding to the first nodes is plural. Referring to fig. 4, fig. 4 shows a workflow depicting another business process. Assume that the business process of purchasing an item includes 3 tasks: task 41. user M submits an application form. Task 42. user N submits an application form. Task 43. approver K approves the purchase. The workflow includes 3 nodes: node 401, node 402, and node 403. Node 401 corresponds to task 41, node 402 corresponds to task 42, and node 403 corresponds to task 43. The first task may be task 41 corresponding to node 401 and task 42 corresponding to node 402.
In some possible embodiments, user intervention may be required while the electronic device performs the first task, and the electronic device performs human-computer interaction with the user through the terminal device. Reference may be made to the description related to fig. 2, which is not repeated here.
Step S302: when the first node is in a finished state, the electronic equipment determines a second node according to a branch rule of the first node; the second node belongs to a plurality of nodes comprised by the workflow.
For convenience of description, the processing state of the corresponding task by the node may be indicated by the state of the node. The states of the nodes include: an un-started state, an in-process state, a completed state. The node being in the un-started state indicates that the task corresponding to the node has not been performed by the electronic device. The in-process state of a node indicates that the task corresponding to the node is being performed by the electronic device. The node being in the completed state indicates that the task corresponding to the node has been performed by the electronic device.
Specifically, the branch rule of the first node is used to indicate a task that should be executed after the execution of the first task corresponding to the first node is completed. The branching rule of the first node is stored in the electronic device in advance. The electronic equipment determines a next-level node associated with the first node according to the association relation among the nodes in the workflow, and determines a second node according to the branch rule of the first node. The second node is part or all of the next-level nodes associated with the first node. In some possible embodiments, the electronic device may obtain the association relationship between the nodes in the workflow through the "v _ get _ entries" and "v _ get _ children" instructions.
The branching rules of the first node are associated with the form data of the first task. The electronic device may determine the second node from the form data of the first task. The form data of the first task includes one or more of the following: the data of the associated users of the first task corresponding to the first node and the account state of the associated users of the first task corresponding to the first node are obtained.
The following description will be made with reference to specific examples.
And the electronic equipment determines the second node according to the data of the associated user of the first task corresponding to the first node. Reference is made to the workflow shown in fig. 1, and the workflow describes 3 logical relationships among 4 tasks in the business process, and specifically, reference may be made to the description of fig. 1. Assume that the first task is task 1, i.e. ask dummy a to submit a leave requisition. And when the electronic equipment finishes the first task, the terminal equipment responds to the user operation of the dummy A to successfully submit the leave request form. The electronic device determines the second node according to the leave request sheet, namely the leave request sheet is the data of the associated user of the first task. Assume a leave-ask rule: when the applicant A applies for the disease or the false, any one of three persons, namely an approver B, an approver C and an approver D, needs to approve the applicant. When the applicant A applies for the application, any two of three persons, namely an approver B, an approver C and an approver D, need to approve the application. When the applicant A applies for the annual application, three persons, namely an approver B, an approver C and an approver D, need to agree with the applicant.
If the dummy a submits a leave request sheet for a sick leave, any one of the nodes 102, 103 and 104 may be determined as the second node according to the branch rule and the associated node of the first node. If the dummy a submits a leave order for a leave, any two of the nodes 102, 103 and 104 may be determined as the second nodes according to the branch rules and the associated nodes of the first node. If the dummy a submits a leave request sheet for annual leave, three nodes among the node 102, the node 103, and the node 104 may be determined as the second node according to the branch rule and the associated node of the first node.
It should be understood that the data of the associated user of the first task corresponding to the first node is only for illustrating the method of the present application and should not be construed as a limitation.
And the electronic equipment determines the second node according to the account state of the associated user of the first task corresponding to the first node. The account status includes: online and offline. Referring to the workflow shown in fig. 1, when the electronic device finishes the first task, that is, the terminal device successfully submits the leave request form in response to the user operation of the leave request person a. Assume a leave-ask rule: when the applicant A asks for a fake, the applicant requiring account status to be on-line agrees to the application. If the dummy A submits a leave request, the account state of the approver B is online, the account state of the approver C is offline, the account state of the approver D is offline, and the node 102 can be determined as a second node according to the branch rule and the associated node of the first node. If the dummy A submits a leave request, the account state of the approver B is online, the account state of the approver C is online, the account state of the approver D is offline, and the nodes 102 and 103 can be determined as second nodes according to the branch rule and the associated nodes of the first nodes. If the dummy A submits a leave request, the account state of the approver B is online, the account state of the approver C is online, the account state of the approver D is online, and the node 102, the node 103 and the node 104 can be determined as a second node according to the branch rule and the associated node of the first node.
It should be understood that the account status of the associated user of the first task corresponding to the first node is only for illustrating the method of the present application and should not be construed as limiting.
It is to be understood that the number of second nodes determined according to the branching rule of the first node may be one or more. And are not limited herein.
Step S303: and under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node.
Specifically, the merge rule of the second node is pre-stored in the electronic device, and is used to determine whether to execute the second task corresponding to the second node.
The merge rule of the second node is associated with the form data of the second task. The form data of the second task includes one or more of the following: the data of the user associated with the second task corresponding to the second node and the account state of the user associated with the second task corresponding to the second node. Reference may be made to the description relating to the embodiment of fig. 5 which follows.
Through the method provided by the embodiment of the application, the electronic equipment determines various logic relations of the executed task mainly according to the branch rule of the node, flexibly processes the workflow and adapts to the requirements of users. For example, in the business process of the leave-asking business, the business process can realize that the leave-asking person can succeed in asking for the leave-asking application when any one or more approvers approve the leave-asking application, and the leave-asking person can succeed in asking for the leave-asking application without the fixers agreeing with the leave-asking application. In the business process of buying goods by grouping, the business can realize that the user can buy the goods by grouping price when the number of people buying the goods is more than a first threshold value. Flexibly adapt to the user requirements and save human resources and material resources.
Please refer to fig. 5, which is a flowchart illustrating another method for processing a workflow according to an embodiment of the present application. As shown in fig. 5, the method of processing a workflow may include:
step S501: the electronic equipment executes a first task corresponding to a first node, wherein the first node belongs to a plurality of nodes in the workflow. Referring to step S301, details are not described here.
Step S502: when the first node is in the completed state, the electronic equipment determines a second node according to the branch rule of the first node, wherein the second node belongs to a plurality of nodes included in the workflow. Referring to step S302, no further description is provided here.
Step S503: and under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node.
The merge rule of the second node is associated with the form data of the second task. The electronic device may determine whether to execute the second node according to the form data of the second task. The form data of the second task includes one or more of the following: the data of the user associated with the second task corresponding to the second node and the account state of the user associated with the second task corresponding to the second node.
The following description will be made with reference to specific examples.
And the electronic equipment determines to execute the task corresponding to the second node according to the data of the associated user of the second task corresponding to the second node. Referring to the workflow shown in fig. 1, it is assumed that the second node includes node 102, node 103, and node 104. After the electronic device determines the second node, the merging rules of all the nodes in the second node are obtained, and the executed second task is determined according to the merging rules of all the nodes in the second node. For example, the data of the associated user of the second task corresponding to the second node is a leave list. Assume a rule of a leave application: when a dummy A is requested to apply for a disease, any one of three persons, namely an approver B, an approver C and an approver D, needs to approve the request for the fake application. When the applicant A applies for the application, any two of three persons, namely an approver B, an approver C and an approver D, need to approve the application. When the applicant A applies for the annual application, three persons, namely an approver B, an approver C and an approver D, need to agree with the applicant.
If the dummy A submits a leave list of sick and vacated leave, any one of the tasks 2, 3 and 4 can be executed according to the merging rule. If the dummy a submits a leave order for a leave, any two of tasks 2, 3, and 4 may be performed. If the dummy a submits a leave sheet for annual leave, three tasks of task 2, task 3, and task 4 are performed.
It should be understood that the data of the associated user of the second task corresponding to the second node is only for illustrating the method of the present application and should not be construed as a limitation.
And the electronic equipment determines to execute the task corresponding to the second node according to the account state of the associated user of the second task corresponding to the second node. Reference is made to the workflow shown in fig. 1, and the workflow describes 3 logical relationships among 4 tasks in the business process, and specifically, reference may be made to the description of fig. 1. The second nodes include node 102, node 103, and node 104. After the electronic device determines the second node, the merging rules of the nodes in the second node are obtained, and the executed second task is determined according to the merging rules of the second node. Assume a leave-ask rule: when the applicant A asks for a fake, the applicant requiring account status to be on-line agrees to the application. And if the dummy A submits a leave request, the account state of the approver B is offline, the account state of the approver C is online, the account state of the approver D is offline, and the task 3 is executed according to the merging rule. If the dummy A submits a leave request, the account state of the approver B is online, the account state of the approver C is online, the account state of the approver D is offline, and the tasks 2 and 3 are executed according to the merging rules. If the dummy A submits a leave request, the account state of the approver B is online, the account state of the approver C is online, the account state of the approver D is online, and the tasks 2, 3 and 4 are executed according to the merging rule.
It should be understood that the account status of the associated user of the first task corresponding to the first node is only for illustrating the method of the present application and should not be construed as limiting.
Further, in some possible embodiments, in a case that none of the merging rules of the second node is satisfied, the electronic device performs step S501, step S502, and step S503 again. For example, after the leave applicant a submits the leave applicant, there is no approver whose account status is online for a while, and the electronic device re-executes the first task in step S501.
Through the method provided by the embodiment of the application, the electronic equipment determines various logic relations of the executed task mainly according to the combination rule of the nodes, and flexibly processes the workflow.
In the method described in the above embodiment, the electronic device determines various logical relationships for executing the task by using the branch rule of the node and the merge rule of the node separately. In other possible embodiments, the electronic device may determine multiple logical relationships for performing tasks using both the branching rules and the merging rules of the nodes. And are not limited herein.
Through the method provided by the embodiment of the application, the electronic equipment determines various logic relations of the executed task mainly according to the branch rule of the node, flexibly processes the workflow and adapts to the requirements of users. For example, in the business process of the leave-asking business, the business process can realize that the leave-asking person can succeed in asking for the leave-asking application when any one or more approvers approve the leave-asking application, and the leave-asking person can succeed in asking for the leave-asking application without the fixers agreeing with the leave-asking application. In the business process of buying goods by grouping, the business can realize that the user can buy the goods by grouping price when the number of people buying the goods is more than a first threshold value. Flexibly adapt to the user requirements and save human resources and material resources.
The method of the embodiments of the present application is explained in detail above, and the electronic device related to the workflow of the embodiments of the present application is provided below. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device for processing a workflow according to an embodiment of the present disclosure. May comprise a processing unit 601, a determining unit 602.
A processing unit 601, configured to execute a first task corresponding to a first node; the first node belongs to a plurality of nodes included in a workflow, and the workflow is used for describing a logical relationship among a plurality of tasks in the business process.
A determining unit 602, configured to determine a second node according to a branch rule of a first node when the first node is in a completed state; the first node being in the completed state means that the processing unit 601 completes the first task corresponding to the first node; the second node belongs to a plurality of nodes comprised by the workflow.
The processing unit 601 is further configured to execute a second task corresponding to the second node when the merging rule of the second node is satisfied; wherein the branching rule of the first node and the merging rule of the second node together indicate: a plurality of logical relationships used in executing the second task according to the logical relationship.
In a possible implementation manner, the processing unit 601 is further configured to, after determining the second node according to the branch rule of the first node, execute the first task corresponding to the first node again if the merge rule of the second node is not satisfied.
In a possible implementation manner, the determining unit 602 is further configured to determine the second node according to the branch rule of the first node after the processing unit executes the first task corresponding to the first node again and when the first node is in the completed state.
In a possible implementation manner, the processing unit 601 is further configured to execute a second task corresponding to the second node if the merge rule of the second node is satisfied.
In a possible implementation manner, the determining unit 602 is further configured to determine, according to the workflow, a relevant node of the first node; and determining the second node according to the branch rule of the first node and the associated node of the first node.
It should be noted that implementation of each operation may also correspond to the corresponding description of the reference method embodiment, and details are not described here.
Referring to fig. 7, fig. 7 is a simplified physical device structure diagram of an electronic device for processing a workflow according to an embodiment of the present application, which is convenient for understanding and illustration, and the electronic device 70 of fig. 7 may include one or more of the following components: memory 701, one or more processors 702.
The memory 701 may include one or more memory units, each of which may include one or more memories, and the memory 701 may be coupled to one or more processors, and may be used to store programs and various data, and to enable high-speed, automatic access to the programs or data during operation of the electronic device 70. In the embodiment of the present application, the memory 701 may be used to store program code related to a workflow engine, branching rules, merging rules and form data of each node in a workflow.
The processor 702, which may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP. The processor 702 is configured to call the data in the memory 701 to execute the related description of the method, which is not described herein again.
It should be noted that the specific implementation of each operation may also correspond to the corresponding description of the reference method embodiment, and is not described herein again.
In the present application, 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 place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional components in the embodiments of the present application may be integrated into one component, or each component may exist alone physically, or two or more components may be integrated into one component. The integrated components can be realized in a form of hardware or a form of software functional units.
The integrated components, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes several 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 described in 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.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. While the present application has been described herein in conjunction with various embodiments, other variations to the disclosed embodiments may be understood and effected by those skilled in the art in practicing the present application as claimed herein.

Claims (12)

1. A method of processing a workflow, comprising:
the electronic equipment executes a first task corresponding to the first node; the first node belongs to a plurality of nodes included in a workflow, and the workflow is used for describing the logical relationship among a plurality of tasks in a business process;
when the first node is in a finished state, the electronic equipment determines a second node according to a branch rule of the first node; the first node is in a completed state, that is, the electronic equipment completes a first task corresponding to the first node; the second node belongs to a plurality of nodes included in the workflow;
under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node;
wherein the branching rule of the first node and the merging rule of the second node together indicate that: and multiple logic relations among multiple tasks in the business process.
2. The method of claim 1,
the branching rule of the first node is associated with the form data of the first task,
and/or the presence of a gas in the gas,
the merge rule of the second node is associated with the form data of the second task.
3. The method of claim 2,
the form data of the first task includes one or more of: data of a user associated with a first task corresponding to the first node, or an account status of the user associated with the first task corresponding to the first node;
and/or the presence of a gas in the gas,
the form data of the second task includes one or more of: and the data of the user associated with the second task corresponding to the second node, or the account state of the user associated with the second task corresponding to the second node.
4. The method of claim 1, wherein after the electronic device determines a second node according to the branching rules of the first node, the method further comprises:
under the condition that the merging rule of the second node is not met, the electronic equipment executes the first task corresponding to the first node again;
when the first node executed again by the electronic equipment is in a finished state, the electronic equipment determines the second node according to a branch rule of the first node;
and under the condition that the merging rule of the second node is met, the electronic equipment executes a second task corresponding to the second node.
5. The method of claim 1,
the determining, by the electronic device, the second node according to the branching rule of the first node specifically includes:
the electronic equipment determines a correlation node of the first node according to the workflow;
the electronic device determines the second node from the branching rule and the associated node of the first node.
6. An electronic device that processes a workflow, comprising:
the processing unit is used for executing the first task corresponding to the first node; the first node belongs to a plurality of nodes included in the workflow, and the workflow is used for describing a logical relationship among a plurality of tasks in the business process;
a determining unit, configured to determine a second node according to a branch rule of the first node when the first node is in a completed state; the first node is in a finished state, namely the processing unit finishes executing a first task corresponding to the first node; the second node belongs to a plurality of nodes included in the workflow;
the processing unit is further configured to execute a second task corresponding to the second node when the merge rule of the second node is satisfied; wherein the branching rule of the first node and the merging rule of the second node together indicate that: and the processing unit executes a plurality of logic relations used when the second task is executed according to the logic relations.
7. The electronic device of claim 6,
the branching rule of the first node is associated with the form data of the first task,
and/or the presence of a gas in the gas,
the merge rule of the second node is associated with the form data of the second task.
8. The electronic device of claim 6,
the form data of the first task includes one or more of: data of a user associated with a first task corresponding to the first node, or an account status of the user associated with the first task corresponding to the first node;
and/or the presence of a gas in the gas,
the form data of the second task includes one or more of: and the data of the user associated with the second task corresponding to the second node, or the account state of the user associated with the second task corresponding to the second node.
9. The electronic device of claim 6,
the processing unit is further configured to, after the determining unit determines the second node according to the branch rule of the first node, execute the first task corresponding to the first node again if the merge rule of the second node is not satisfied;
the determining unit is further configured to determine the second node according to a branch rule of the first node after the processing unit executes the first task corresponding to the first node again and when the first node is in a completed state;
the processing unit is further configured to execute a second task corresponding to the second node when the merge rule of the second node is satisfied.
10. The electronic device of claim 6,
the determining unit is specifically configured to determine, according to the workflow, a relevant node of the first node; and determining the second node according to the branch rule of the first node and the associated node of the first node.
11. An electronic device that processes a workflow, the electronic device comprising a memory, one or more processors; the memory coupled with the one or more processors, the memory to store computer program code, the computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-5.
12. A computer-readable storage medium, characterized in that it stores a computer program which is executed by a processor to implement the method of any one of claims 1 to 5.
CN201911425805.XA 2019-12-31 2019-12-31 Method for processing workflow and electronic equipment Pending CN111222783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911425805.XA CN111222783A (en) 2019-12-31 2019-12-31 Method for processing workflow and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911425805.XA CN111222783A (en) 2019-12-31 2019-12-31 Method for processing workflow and electronic equipment

Publications (1)

Publication Number Publication Date
CN111222783A true CN111222783A (en) 2020-06-02

Family

ID=70828069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911425805.XA Pending CN111222783A (en) 2019-12-31 2019-12-31 Method for processing workflow and electronic equipment

Country Status (1)

Country Link
CN (1) CN111222783A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465446A (en) * 2020-11-09 2021-03-09 深圳市和讯华谷信息技术有限公司 Work order data processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109583746A (en) * 2018-11-26 2019-04-05 东软集团股份有限公司 The method and device of the routing rule of setting procedure, readable storage medium storing program for executing
CN110163554A (en) * 2019-04-09 2019-08-23 北京奇艺世纪科技有限公司 Operation method, device, server and the storage medium of workflow
CN110443573A (en) * 2019-07-23 2019-11-12 杭州数梦工场科技有限公司 Examination & approval management platform and its measures and procedures for the examination and approval, workflow generation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109583746A (en) * 2018-11-26 2019-04-05 东软集团股份有限公司 The method and device of the routing rule of setting procedure, readable storage medium storing program for executing
CN110163554A (en) * 2019-04-09 2019-08-23 北京奇艺世纪科技有限公司 Operation method, device, server and the storage medium of workflow
CN110443573A (en) * 2019-07-23 2019-11-12 杭州数梦工场科技有限公司 Examination & approval management platform and its measures and procedures for the examination and approval, workflow generation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465446A (en) * 2020-11-09 2021-03-09 深圳市和讯华谷信息技术有限公司 Work order data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5449628B2 (en) Determining category information using multistage
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN107798108A (en) A kind of asynchronous task querying method and equipment
CN106407021A (en) Queue-based business request processing method
CN111192089B (en) Electronic ticket generation method and device and computer system
CN107783861A (en) transaction rollback method, device, storage medium and computer equipment
CN110880100A (en) Business approval processing method, device and system
CN108229925B (en) Data matching method and system for electronic receipt
CN112818250A (en) Content recommendation method and device, electronic equipment and system
CN102135895A (en) System upgrading method and system
US20220292558A1 (en) Method, device, and medium for utilizing machine learning and transaction data to match boycotts of merchants to customers
CN112308590B (en) Parameter processing method and device, computing equipment and storage medium
US10396980B1 (en) Determining a change to product information or user information via hashing
CN111222783A (en) Method for processing workflow and electronic equipment
US8935264B2 (en) Characteristic-based selection in a networked computing environment
CN107249019A (en) Data handling system, method, device and server based on business
CN107291923B (en) Information processing method and device
US20180285825A1 (en) Method of evaluation processing, information processing apparatus and non-transitory computer-readable storage medium
CN110515929B (en) Book display method, computing device and storage medium
EP3751500A1 (en) System and method for technology recommendations
CN110765144B (en) Distributed heterogeneous database data processing method and device
CN110175182B (en) Data checking method and device
KR102270381B1 (en) Method for providing shopping interface based on consumer data and apparatus thereof
WO2014124127A1 (en) Methods and systems for inter-application communication
CN109074552A (en) Knowledge based figure enhances contact card

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