CN101477652A - Implementing process for timeout mechanism of flow - Google Patents
Implementing process for timeout mechanism of flow Download PDFInfo
- Publication number
- CN101477652A CN101477652A CNA2008102379623A CN200810237962A CN101477652A CN 101477652 A CN101477652 A CN 101477652A CN A2008102379623 A CNA2008102379623 A CN A2008102379623A CN 200810237962 A CN200810237962 A CN 200810237962A CN 101477652 A CN101477652 A CN 101477652A
- Authority
- CN
- China
- Prior art keywords
- overtime
- link
- time
- flow process
- database table
- 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
- 238000000034 method Methods 0.000 title claims abstract description 76
- 230000008569 process Effects 0.000 title claims abstract description 67
- 238000011282 treatment Methods 0.000 claims abstract description 15
- 238000005516 engineering process Methods 0.000 claims abstract description 5
- 230000000977 initiatory effect Effects 0.000 claims description 9
- 238000007689 inspection Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a method for realizing a process time-out mechanism. The method which is a solution examining and implementing two technologies of a database and an independent thread comprises the following steps: a system provides a time-out database table, and adds a record to the time-out table when a process or a link starts so as to record the time point of the process or the link to be time-out; and the independent thread is provided in addition to the system, the independent thread is used for examining which process or link in the time-out table is time-out at set intervals, the time-out processes or links execute corresponding time-out treatments, a workflow only provides the implementing interfaces of the time-out processes, and secondary developers implement the concrete implementation according to service requires. The greatest advantages of the invention are as follows: the processes of time-out services can be effectively ensured; and the performance of the system can not be affected by the processes of the time-out services.
Description
Technical field
The present invention relates to computer application field, specifically the implementation method of realization flow timeout mechanism in the Workflow system.
Background technology
Along with the continuous development of workflow technology, workflow has been widely used in fields such as office, E-Government, ecommerce, increasing application system Workflow system as basic platform, handle the operation flow of internal office work, government affairs or enterprise.Workflow system not only will become a secondary developing platform more and more towards the final user, to satisfy the demand of different business.
In office system, flow process or link are overtime, often require system to send short messages or send out a mail and point out the user promptly to handle.
Examine in the class operation flow in E-Government, in order to improve the work efficiency of government, flow process or link need be provided with the time in limited time, if the task of this link or flow process of not finishing in the official hour is handled, will warn and examine.The general business flow processing situation of using independent electronic monitoring system to monitor government of E-Government, the electronic monitoring system must depend on the process for timeout mechanism of flow of Workflow system.
When the operation flow of enterprise also often requires flow process or link overtime, do some operational operations.
Therefore, Workflow system is as a development platform, and what a treatment mechanism in the time of must providing flow process or link overtime specifically handles when overtime, gone to realize by application system secondary development personnel.
Traditional process for timeout mechanism of flow implementation method: when start flow or link, find that this flow process or link are provided with overtime restriction, start a timer, this timer is to be placed in the internal memory, and as a thread independently.The time limit that flow process or link initiation time are added flow process or link setting just equals the time point that this timer will be carried out.If arrived the time point that timer is carried out, flow process or link also do not finish, and timer will be carried out the timeout treatment class, and the timeout treatment class is gone to realize by the secondary development personnel.
The shortcoming of traditional approach is:
1) system cut-off or other situation cause the internal storage data in original when operation to be lost, and leave in the internal memory timer in and also will lose.This timer may be also to the execution time point, and timer is lost, and will can not carry out the timeout treatment class again.
2) flow process or the link of overtime restriction are set, flow process of every initiation or link all can start a timer, each timer all is individual independently thread, after system has moved a period of time, a lot of flow processs and link may have been initiated, will cause having in the system a large amount of timer threads to exist like this, cause system congestion easily, bring performance issue.
Summary of the invention
The objective of the invention is to solve the problem that traditional process timeout mechanism implementation method exists.
Method of the present invention is to realize in the following manner, use database and separate threads inspection to carry out the solution of two kinds of technology, system provides overtime database table, when flow process or link start, in overtime table, increase a record, note the time point that this flow process or link will be overtime, and outside system, an independently thread is provided, check overtime flow process or link in the overtime table at set intervals, overtime flow process or link are carried out corresponding timeout treatment class, and workflow only provides the realization interface of timeout treatment, and concrete steps are as follows:
A) a newly-built overtime database table, when start flow or initiation link, flow process or link are provided with overtime restriction, and the initiation time of flow process or link is added the time limit of setting, and this flow process or link and corresponding time-out time point are write down in the overtime database table;
When b) flow process or link finish, delete time-out information corresponding in the overtime database table.Delete the original overtime recorded information that increases in the overtime database table.
Beneficial effect of the present invention:
1) the flow process time-out information leaves in the database table, rather than leaves in the internal memory, even run into fortuitous events such as system cut-off, also can not cause the flow process time-out information to lose and causes the timeout treatment class not to be performed.
2) one independently thread check flow process or link is overtime and carry out the timeout treatment class, can not cause thread block certainly, can not influence system performance.
Embodiment
Use overtime data base table recording flow process or link time-out information, and by one independently thread check flow process overtime in the overtime table or link, overtime flow process or link are called its corresponding timeout treatment class, use data-base recording flow process or link time-out information, concrete steps are as follows:
A) a newly-built overtime database table, when start flow or initiation link, flow process or link are provided with overtime restriction, and the initiation time of flow process or link is added the time limit of setting, and this flow process or link and corresponding time-out time point are write down in the overtime database table;
When b) flow process or link finish, delete time-out information corresponding in the overtime database table.Delete the original overtime recorded information that increases in the overtime database table.
Application system is initiated an independently thread when starting, the function of this thread is to check overtime database table at set intervals, find the time-out time point of current time greater than certain flow process or link, represent that this flow process or link are overtime, carry out the timeout treatment class that this flow process or link are provided with, simultaneously the state of this record in the overtime database table is changed to executed.
Embodiment
A newly-built overtime database table.When start flow or link, if this flow process or link are provided with overtime restriction, the initiation time of flow process or link is added the time limit of setting, just equals the time point that flow process or link will be overtime, writes down time point that this flow process or link will be overtime in overtime database table.When flow process or link finish, delete the original record that increases in the overtime database table.
In addition, application system is initiated an independently thread when starting, the function of this thread is to check overtime database table at set intervals, if find the time-out time point of big fourth flow process of current time or link, represent that this flow process or link are overtime, carry out the timeout treatment class that this flow process or link are provided with, simultaneously the state of this record in the overtime database table is changed to executed, just do not reexamine this later on and write down.
Claims (2)
1, the implementation method of process for timeout mechanism of flow, it is characterized in that: use database and separate threads inspection to carry out the solution of two kinds of technology, system provides overtime database table, when flow process or link start, in overtime table, increase a record, note the time point that this flow process or link will be overtime, and outside system, an independently thread is provided, check overtime flow process or link in the overtime table at set intervals, overtime flow process or link are carried out corresponding timeout treatment class, and workflow only provides the realization interface of timeout treatment, and concrete steps are as follows:
A) a newly-built overtime database table, when start flow or initiation link, flow process or link are provided with overtime restriction, and the initiation time of flow process or link is added the time limit of setting, and this flow process or link and corresponding time-out time point are write down in the overtime database table;
When b) flow process or link finish, delete time-out information corresponding in the overtime database table.Delete the original overtime recorded information that increases in the overtime database table.
2, method according to claim 1, it is characterized in that, application system is initiated an independently thread when starting, the function of this thread is to check overtime database table at set intervals, find the time-out time point of current time greater than certain flow process or link, represent that this flow process or link are overtime, carry out the timeout treatment class that this flow process or link are provided with, simultaneously the state of this record in the overtime database table is changed to executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008102379623A CN101477652A (en) | 2008-12-04 | 2008-12-04 | Implementing process for timeout mechanism of flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008102379623A CN101477652A (en) | 2008-12-04 | 2008-12-04 | Implementing process for timeout mechanism of flow |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101477652A true CN101477652A (en) | 2009-07-08 |
Family
ID=40838360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008102379623A Pending CN101477652A (en) | 2008-12-04 | 2008-12-04 | Implementing process for timeout mechanism of flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101477652A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019223171A1 (en) * | 2018-05-21 | 2019-11-28 | 平安科技(深圳)有限公司 | Workflow management method and system, computer device and storage medium |
CN108256716B (en) * | 2016-12-29 | 2020-10-16 | 同方威视技术股份有限公司 | Method and apparatus for configuring/executing processes and/or atomic processes based on tables |
CN113011692A (en) * | 2019-12-20 | 2021-06-22 | 江苏省城市轨道交通研究设计院股份有限公司 | Urban rail transit general contract site safety management system and method |
-
2008
- 2008-12-04 CN CNA2008102379623A patent/CN101477652A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108256716B (en) * | 2016-12-29 | 2020-10-16 | 同方威视技术股份有限公司 | Method and apparatus for configuring/executing processes and/or atomic processes based on tables |
WO2019223171A1 (en) * | 2018-05-21 | 2019-11-28 | 平安科技(深圳)有限公司 | Workflow management method and system, computer device and storage medium |
CN113011692A (en) * | 2019-12-20 | 2021-06-22 | 江苏省城市轨道交通研究设计院股份有限公司 | Urban rail transit general contract site safety management system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8140591B2 (en) | Enabling workflow awareness within a business process management (BPM) system | |
CN102929585B (en) | A kind of batch processing method and system supporting the distributed data processing of many main frames | |
US20100223446A1 (en) | Contextual tracing | |
US8103911B2 (en) | Method and system for disaster recovery based on journal events pruning in a computing environment | |
US20060200829A1 (en) | Duplicate message elimination during recovery when multiple threads are delivering messages from a message store to a destination queue | |
EP1916601A3 (en) | Multiprocessor system | |
JP2012533796A5 (en) | ||
CN101719079A (en) | Method and device for processing tasks | |
US20110066834A1 (en) | Concurrent exception handling | |
US9483309B2 (en) | Eliminating execution of jobs-based operational costs of related reports | |
CN104021043A (en) | Interruption reentry method and system of batch applications | |
CN109669766A (en) | Processing method, device, equipment and the storage medium of batch processing job | |
CN102902589A (en) | Method for managing and scheduling cluster MIS (Many Integrated Core) job | |
JP2009536403A (en) | Work item event processing | |
CN109714249A (en) | A kind of method for pushing and relevant apparatus of small routine message | |
WO2012130162A1 (en) | System and method for generating information file based on parallel processing | |
CN106062738B (en) | Manage job state | |
US20080320275A1 (en) | Concurrent exception handling | |
CN101477652A (en) | Implementing process for timeout mechanism of flow | |
AU2015265595B2 (en) | System and method for dynamic collection of system management data in a mainframe computing environment | |
CN110324211A (en) | A kind of data capture method and device | |
US11016951B1 (en) | Microbatch loading | |
CN105760283B (en) | A kind of log-output method and device | |
CN107958414B (en) | Method and system for eliminating long transactions of CICS (common integrated circuit chip) system | |
CN107633090A (en) | A kind of method split based on distributed type file system client side lock |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20090708 |