CN107316139A - A kind of cancelling method of workflow and the device using this method - Google Patents
A kind of cancelling method of workflow and the device using this method Download PDFInfo
- Publication number
- CN107316139A CN107316139A CN201710475839.4A CN201710475839A CN107316139A CN 107316139 A CN107316139 A CN 107316139A CN 201710475839 A CN201710475839 A CN 201710475839A CN 107316139 A CN107316139 A CN 107316139A
- Authority
- CN
- China
- Prior art keywords
- workflow
- node
- revocation
- starting point
- cancel
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0633—Workflow analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06316—Sequencing of tasks or work
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Educational Administration (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of cancelling method of workflow, comprise the following steps:S1:Workflow is initiated, workflow includes node, and node includes initiating node, performs node;S2:According to preset flow template, the node of evaluation work flow, the configuration of each node of read work flow serializes each node, and with the form of dendrogram by each node store to graphic data base;S3:Workflow is performed, the incidence relation of each node is built, and by each vertex ticks of executed workflow in dendrogram;S4:Receive the cancel an order for workflow, cancel an order includes revocation starting point and revocation terminal, judge to cancel starting point whether executed workflow, and withdrawal operation is accordingly performed according to judged result.This method further provides a kind of revocation device of workflow, can not only cancel the workflow being not carried out by this method and the device, moreover it is possible to cancel the workflow of executed, and operating efficiency is higher.
Description
Technical field
The present invention relates to a kind of cancelling method of workflow and using the device of this method.
Background technology
In information system, the people having permission initiates a new workflow or mandatory task, and task just will stream
To in related operational staff.The revocation of task refers to because the task system mistake or human factor of initiation cause task flow
To not pair or mission bit stream is not right, the people having permission, which has permission, terminates task in progress.
Traditional software realizes, is that will go generation task according to the step of the execution of flow engine, it is impossible to know at the very start
The overall picture of road flow tasks, and data are also based on mysql row storage, and task revocation is exactly to enter on the basis of former flow
Row node, which is redirected, returns to a node, and the search efficiency of row storage is than relatively low, and using the section that cancels of progress of this method
Point can only be not carried out the workflow, if the node executed workflow, can not be cancelled.
Therefore, search efficiency how is improved, and destruction operation is carried out from the node of executed workflow, is urgent need to resolve
The problem of.
The content of the invention
In view of the shortcomings of the prior art, it is an object of the invention to provide a kind of cancelling method of workflow and the party is used
The revocation device of method, can not only cancel the workflow being not carried out, moreover it is possible to cancel the work of executed by this method and the device
Make flow, and operating efficiency is higher.
To achieve the above object, the invention provides a kind of cancelling method of workflow, workflow includes node, section
Point includes initiating node, performs node, and method comprises the following steps:
S1:Workflow is initiated, workflow includes node, and node includes initiating node, performs node;
S2:According to preset flow template, the node of evaluation work flow, each node of read work flow is matched somebody with somebody
Put, serialize each node, and with the form of dendrogram by each node store to graphic data base;
S3:Workflow is performed, the incidence relation of each node is built, and by executed workflow in dendrogram
Each vertex ticks;
S4:The cancel an order for workflow is received, cancel an order includes revocation starting point and revocation terminal, judges revocation
Starting point whether executed workflow, and withdrawal operation is accordingly performed according to judged result.
Compared with prior art, the cancelling method of workflow disclosed by the invention, by the form of dendrogram by node
Storage dynamically associate execution and the tree-shaped node of graph one-to-one corresponding so as to reach task to graphic data base, and with task,
The search efficiency of tree-shaped graph structure is higher, and can not only cancel the workflow being not carried out, moreover it is possible to cancel the workflow of executed
Journey.
According to another embodiment of the invention, in step S4, revocation starting point is performs node, and revocation terminal is initiates
Node performs node.
According to another embodiment of the invention, step S4 further comprises step S41:
If cancelling starting point executed workflow, withdrawal operation is performed by graphic data base.
According to another embodiment of the invention, step S4 further comprises step S42:
If revocation starting point is not carried out workflow, withdrawal operation is performed by workflow engine.
According to another embodiment of the invention, step S41 further comprises following steps:
S411:Initiate revocation auditing flow, revocation terminal examination & verification revocation auditing flow.
According to another embodiment of the invention, if by cancel further comprise after auditing flow, step S411 as
Lower step:
S412:Delete and cancel starting point to the incidence relation for cancelling each node between terminal, and revocation starting point is extremely cancelled
Marked each node between terminal is set to unmarked.
S413:Workflow engine is expanded, the node of workflow engine is retracted to revocation terminal.
S414:From revocation terminal release tasks.
S415:Revocation starting point is deleted to the cancelling each node executed between terminal of the task.
According to another embodiment of the invention, step S42 further comprises following steps:
S421:Node is withdrawn into by revocation terminal by workflow engine.
S422:Delete distributed to revocation starting point it is pending.
S423:Delete and cancel starting point to the incidence relation for cancelling each node between terminal, and revocation starting point is extremely cancelled
Marked each node between terminal is set to unmarked.
On the other hand, present invention also offers a kind of revocation device of workflow, it uses removing for above-mentioned workflow
Pin method, it includes:
Creation module, creation module is used to create workflow, and workflow is stored with the form of dendrogram, work
Flow includes node, and node includes initiating node, performs node;
Performing module, performing module is used to building the incidence relation of each node, and executed works in dendrogram
Each vertex ticks of flow;
Receiving module, receiving module is used to receive the cancel an order for workflow, and cancel an order includes revocation starting point
With revocation terminal.
According to another embodiment of the invention, revocation device further comprises:
Judge module, judge module be used for judge cancel starting point whether executed workflow;
Module is cancelled, revocation module is used to perform withdrawal operation by graphic data base, or is performed by workflow engine
Withdrawal operation.
According to another embodiment of the invention, revocation device further comprises auditing module, and auditing module is used to send out
Rise and examination & verification revocation auditing flow.
The revocation device for the workflow that the present invention is provided, it uses above-mentioned cancelling method, by creation module by work
Flow is stored with the form of dendrogram, and the dynamic associations of each node are set up by performing module, make holding for workflow
Row is corresponded with tree-shaped node of graph, and the search efficiency of tree-shaped graph structure is high, can not only cancel the workflow being not carried out,
The workflow of executed can also be cancelled, it is to avoid cause workflow further to spread or always hang up because initiating mistake
Problem.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Brief description of the drawings
Fig. 1 is the flow chart of the cancelling method for the workflow that embodiment 1 is provided;
Fig. 2 is the structured flowchart of the revocation device for the workflow that embodiment 2 is provided.
Embodiment
Embodiment 1
It is the flow chart of the cancelling method for the workflow that the present embodiment is provided referring to Fig. 1.The method comprising the steps of S1-
S4:
S1:Workflow is initiated, workflow includes node, and node includes initiating node, performs node.
S2:According to preset flow template, the node of evaluation work flow, each node of read work flow is matched somebody with somebody
Put, serialize each node, and with the form of dendrogram by each node store to graphic data base.
S3:Workflow is performed, the incidence relation of each node is built, and by executed workflow in dendrogram
Each vertex ticks.
S4:The cancel an order for workflow is received, cancel an order includes revocation starting point and revocation terminal, judges revocation
Starting point whether executed workflow, and withdrawal operation is accordingly performed according to judged result.
In this step, revocation starting point cancels terminal to initiate node or perform node to perform node.
Specifically, in this step, revocation starting point cancels terminal to initiate node or perform node to perform node.
The step further comprises step S41-S42:
S41:If workflow described in the revocation starting point executed, is performed by the graphic data base and recalls behaviour
Make.
The step is used to, in the case where judging revocation starting point executed workflow, perform and remove by graphic data base
Return operation.
Specifically, the step further comprises step S411:
S411:Revocation auditing flow is initiated, the revocation terminal audits the revocation auditing flow.
If revocation auditing flow passes through, step S412-S415 is further comprised after step S411:
S412:The revocation starting point is deleted to the incidence relation of each node between the revocation terminal, and is removed described
Pin starting point to marked each node between the revocation terminal is set to unmarked;
S413:The workflow engine is expanded, the node of workflow engine is retracted to the revocation terminal;
S414:From the revocation terminal release tasks;
S415:The revocation starting point is deleted to the task of each node executed between the revocation terminal.
Step S412-S415 is the step of performing withdrawal operation by graphic data base.
If cancelling auditing flow not by examination & verification, the revocation auditing flow is terminated, and does not perform withdrawal operation.
S42:If the revocation starting point is not carried out the workflow, withdrawal operation is performed by workflow engine.
The step is used to, when judging that revocation starting point is not carried out workflow, perform by workflow engine and recall behaviour
Make.Specifically, the step further comprises step S421-S422:
S421:Node is withdrawn into by the revocation terminal by workflow engine;
S422:Delete to have distributed to described and cancel the pending of starting point;
S423:The revocation starting point is deleted to the incidence relation of each node between the revocation terminal, and is removed described
Pin starting point to marked each node between the revocation terminal is set to unmarked.
The cancelling method for the workflow that the present embodiment is provided, by the form of dendrogram by node store to graph data
Storehouse, and dynamically associate execution so as to reach task with task and tree-shaped node of graph is corresponded, tree-shaped graph structure is looked into
Ask more efficient, and the workflow being not carried out can not only be cancelled, moreover it is possible to cancel the workflow of executed.
Embodiment 2
It is the structured flowchart of the revocation device for the workflow that the present embodiment is provided referring to Fig. 2.The revocation device is using real
The cancelling method of the offer of example 1 is provided.The revocation device includes:Creation module 1, performing module 2, receiving module 3, judge module 4, remove
Sell module 5, auditing module 6.
Creation module 1 is used to create workflow, and workflow is stored with the form of dendrogram, and workflow includes
Node, node includes initiating node, performs node;Performing module 2 is used for the incidence relation for building each node, and in dendrogram
Middle each vertex ticks by executed workflow;Receiving module 3 is used to receive the cancel an order for workflow, revocation
Instruction includes revocation starting point and cancels terminal.Judge module 4, for judging revocation starting point, whether executed works judge module 4
Flow;Module 5 is cancelled, revocation module 5 is used to perform withdrawal operation by graphic data base, or is removed by workflow engine execution
Operation is returned, if judging to cancel starting point executed workflow, withdrawal operation is performed by graphic data base, if judging to remove
Pin starting point is not carried out workflow, then performs withdrawal operation by workflow engine;Auditing module 6 is used to initiating and auditing revocation
Auditing flow.
The revocation device for the workflow that the present embodiment is provided, it uses the cancelling method that embodiment 1 is provided, by creating
Module 1 stores workflow with the form of dendrogram, and the dynamic associations of each node are set up by performing module 2, are made
The execution of workflow is corresponded with tree-shaped node of graph, and the search efficiency of tree-shaped graph structure is high, can not only cancel and not hold
Capable workflow, moreover it is possible to cancel the workflow of executed, it is to avoid cause workflow further to spread because initiating mistake
Or the problem of hang up always.
Although the present invention is disclosed above with preferred embodiment, the scope that the present invention is implemented is not limited to.Any
The those of ordinary skill in field, it is when a little improvement can be made, i.e., every according to this hair in the invention scope for not departing from the present invention
Bright done equal improvement, should be the scope of the present invention and is covered.
Claims (10)
1. a kind of cancelling method of workflow, it is characterised in that the cancelling method comprises the following steps:
S1:Workflow is initiated, the workflow includes node, and the node includes initiating node, performs node;
S2:According to preset flow template, the node of the workflow is calculated, each section of the workflow is read
The configuration of point, serializes each node, and with the form of dendrogram by each node store to graphic data base;
S3:The workflow is performed, the incidence relation of each node is built, and by executed institute in the dendrogram
State each vertex ticks of workflow;
S4:The cancel an order for the workflow is received, the cancel an order includes revocation starting point and revocation terminal, judged
The revocation starting point whether workflow described in executed, and withdrawal operation is accordingly performed according to judged result.
2. the cancelling method of workflow as claimed in claim 1, it is characterised in that described to cancel in the step S4
Point is performs node, and the revocation terminal is initiation node or performs node.
3. the cancelling method of workflow as claimed in claim 2, it is characterised in that the step S4 further comprises step
S41:
If workflow described in the revocation starting point executed, withdrawal operation is performed by the graphic data base.
4. the cancelling method of workflow as claimed in claim 2, it is characterised in that the step S4 further comprises step
S42:
If the revocation starting point is not carried out the workflow, withdrawal operation is performed by workflow engine.
5. the cancelling method of workflow as claimed in claim 3, it is characterised in that the step S41 further comprise as
Lower step:
S411:Revocation auditing flow is initiated, the revocation terminal audits the revocation auditing flow.
6. the cancelling method of workflow as claimed in claim 5, it is characterised in that if by the revocation auditing flow,
Further comprise the following steps after the step S411:
S412:The revocation starting point is deleted to the incidence relation of each node between the revocation terminal, and is cancelled described
Point to marked each node between the revocation terminal is set to unmarked;
S413:The workflow engine is expanded, the node of workflow engine is retracted to the revocation terminal;
S414:From the revocation terminal release tasks;
S415:The revocation starting point is deleted to the task of each node executed between the revocation terminal.
7. the cancelling method of workflow as claimed in claim 4, it is characterised in that the step S42 further comprise as
Lower step:
S421:Node is withdrawn into by the revocation terminal by workflow engine;
S422:Delete to have distributed to described and cancel the pending of starting point;
S423:The revocation starting point is deleted to the incidence relation of each node between the revocation terminal, and is cancelled described
Point to marked each node between the revocation terminal is set to unmarked.
8. the revocation device of a kind of workflow, it is characterised in that the revocation device is using described in claim any one of 1-7
Cancelling method, the revocation device includes:
Creation module, the creation module is used to create workflow, and the workflow is stored with the form of dendrogram,
The workflow includes node, and the node includes initiating node, performs node;
Performing module, the performing module is used for the incidence relation for building each node, and by executed in dendrogram
Each vertex ticks of workflow;
Receiving module, the receiving module is used to receive the cancel an order for the workflow, and the cancel an order includes
Cancel starting point and revocation terminal.
9. device is cancelled as claimed in claim 8, it is characterised in that the revocation device further comprises:
Judge module, the judge module be used for judge it is described revocation starting point whether workflow described in executed;
Module is cancelled, the revocation module is used to perform withdrawal operation by graphic data base, or is performed by workflow engine
Withdrawal operation.
10. device is cancelled as claimed in claim 9, it is characterised in that the revocation device further comprises auditing module, institute
Stating auditing module is used to initiating and auditing revocation auditing flow.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710475839.4A CN107316139A (en) | 2017-06-21 | 2017-06-21 | A kind of cancelling method of workflow and the device using this method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710475839.4A CN107316139A (en) | 2017-06-21 | 2017-06-21 | A kind of cancelling method of workflow and the device using this method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107316139A true CN107316139A (en) | 2017-11-03 |
Family
ID=60183360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710475839.4A Pending CN107316139A (en) | 2017-06-21 | 2017-06-21 | A kind of cancelling method of workflow and the device using this method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107316139A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109522078A (en) * | 2018-11-15 | 2019-03-26 | 用友网络科技股份有限公司 | Operation repealing method, computer equipment and computer readable storage medium |
CN111353752A (en) * | 2019-11-05 | 2020-06-30 | 泰康保险集团股份有限公司 | Flow processing method and device, electronic equipment and storage medium |
CN113554324A (en) * | 2021-07-28 | 2021-10-26 | 重庆允成互联网科技有限公司 | Production process withdrawal method, system, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101615269A (en) * | 2009-08-11 | 2009-12-30 | 用友软件股份有限公司 | Backing method in a kind of Workflow Management System and device |
CN102298735A (en) * | 2011-07-28 | 2011-12-28 | 中兴通讯股份有限公司 | Service management system cascade operation processing method and apparatus thereof |
CN103577906A (en) * | 2012-07-20 | 2014-02-12 | 杭州勒卡斯广告策划有限公司 | Workflow generation method, workflow execution method and workflow execution system |
CN103714414A (en) * | 2013-11-30 | 2014-04-09 | 北京科东电力控制系统有限责任公司 | Process node returning method used for intelligent power grid dispatching |
CN106779413A (en) * | 2016-12-16 | 2017-05-31 | 广州支点网络科技股份有限公司 | Information processing method and equipment in a kind of flow of task |
US9703600B2 (en) * | 2014-09-29 | 2017-07-11 | International Business Machines Corporation | Automated creation of executable workflow |
-
2017
- 2017-06-21 CN CN201710475839.4A patent/CN107316139A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101615269A (en) * | 2009-08-11 | 2009-12-30 | 用友软件股份有限公司 | Backing method in a kind of Workflow Management System and device |
CN102298735A (en) * | 2011-07-28 | 2011-12-28 | 中兴通讯股份有限公司 | Service management system cascade operation processing method and apparatus thereof |
CN103577906A (en) * | 2012-07-20 | 2014-02-12 | 杭州勒卡斯广告策划有限公司 | Workflow generation method, workflow execution method and workflow execution system |
CN103714414A (en) * | 2013-11-30 | 2014-04-09 | 北京科东电力控制系统有限责任公司 | Process node returning method used for intelligent power grid dispatching |
US9703600B2 (en) * | 2014-09-29 | 2017-07-11 | International Business Machines Corporation | Automated creation of executable workflow |
CN106779413A (en) * | 2016-12-16 | 2017-05-31 | 广州支点网络科技股份有限公司 | Information processing method and equipment in a kind of flow of task |
Non-Patent Citations (1)
Title |
---|
王家俊等: "近红外分析网络共享平台中复杂工作流实现算法", 《计算机应用》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109522078A (en) * | 2018-11-15 | 2019-03-26 | 用友网络科技股份有限公司 | Operation repealing method, computer equipment and computer readable storage medium |
CN111353752A (en) * | 2019-11-05 | 2020-06-30 | 泰康保险集团股份有限公司 | Flow processing method and device, electronic equipment and storage medium |
CN111353752B (en) * | 2019-11-05 | 2024-04-19 | 泰康保险集团股份有限公司 | Flow processing method and device, electronic equipment and storage medium |
CN113554324A (en) * | 2021-07-28 | 2021-10-26 | 重庆允成互联网科技有限公司 | Production process withdrawal method, system, equipment and storage medium |
CN113554324B (en) * | 2021-07-28 | 2022-02-25 | 重庆允成互联网科技有限公司 | Production process withdrawal method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107316139A (en) | A kind of cancelling method of workflow and the device using this method | |
JP5048417B2 (en) | Database management program and database management apparatus | |
CN106980636A (en) | Declaration form data processing method and device | |
CN109614226A (en) | A kind of stateful application memory management method based on Kubernetes | |
CN106412072A (en) | Service processing method and apparatus | |
CN103119550A (en) | Storing electronic content with time-varying properties | |
EP1760607A3 (en) | Information editing device, information editing system, information editing method, and program | |
CN103559098B (en) | Smart card test number control, Apparatus and system | |
CN104021219A (en) | Method and device for generating data template | |
CN106445622A (en) | Application program uninstalling method and uninstalling device and mobile terminal | |
CN106095824A (en) | A kind of JSON format text imports the method for data base | |
CN104331673B (en) | Intelligent terminal and photo security processing based on intelligent terminal | |
CN107193677B (en) | Method and system for notifying code defects | |
CN103455964A (en) | Case clue analyzing system and method based on case information | |
CN108229147B (en) | Memory detection device and method based on Android virtual container | |
CN105988863A (en) | Event processing method and device | |
CN112559186A (en) | Novel Kubernetes container resource expansion and contraction method | |
CN105447003A (en) | Parameter set generation method and device | |
CN106228299A (en) | One holds a memorial ceremony for the system of visiing | |
CN106909994A (en) | The fire fighting truck route planning method and system of urban fire control system | |
CN103425657B (en) | A kind of method and apparatus of e-mail search | |
CN108459925A (en) | The restorative procedure of private clound equipment and its database, the device with store function | |
CN103927345B (en) | A kind of nested method and device of JSP labels | |
CN103914481B (en) | Date storage method and device | |
CN107295142A (en) | terminal processing method, device and server |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171103 |