CN109062675A - A kind of Workflow system relies on the monitor implementation method of affairs - Google Patents
A kind of Workflow system relies on the monitor implementation method of affairs Download PDFInfo
- Publication number
- CN109062675A CN109062675A CN201810876450.5A CN201810876450A CN109062675A CN 109062675 A CN109062675 A CN 109062675A CN 201810876450 A CN201810876450 A CN 201810876450A CN 109062675 A CN109062675 A CN 109062675A
- Authority
- CN
- China
- Prior art keywords
- monitor
- affairs
- event
- executes
- flow engine
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of monitor implementation method of Workflow system dependence affairs, belong to computer field, the present invention is this method comprises: define one group of dependence affairs monitor interface in Workflow system, registration relies on affairs monitor and realizes the interface for relying on affairs, the monitor transaction status is set when process modeling and executes opportunity, to check whether monitor is a transaction dependency monitor when flow engine parses the procedural model, if it is, it is not immediately performed the monitor, and shoot current execution state snapshot, the triggering response monitor when transaction status changes, delay executes, and affairs monitor carries out delivery processing using the method for external event table.This method can guarantee that flow engine under micro services architecture mode executes succinct simultaneously guarantees data consistency.
Description
Technical field
The present invention relates to the monitor implementation methods that computer technology more particularly to a kind of Workflow system rely on affairs.
Background technique
Nowadays, Workflow system is not only a set of process control system, even more data integrated system, traditional workflow
Engine is all to guarantee data consistency using local matter and distributed transaction, but data are all services in micro services framework
Privately owned, need the API provided by service to access, so distributed transaction is no longer applicable in micro services framework, workflow
Issued transaction is complicated more many than the issued transaction in database, so that the integrality of workflow transactions, consistency are unable to get
Guarantee.
Summary of the invention
In order to solve the above technical problems, the invention proposes the monitor realization sides that a kind of Workflow system relies on affairs
Method with guarantee that flow engine under micro services architecture mode executes succinct and guarantees data consistency.
The technical scheme is that
The implementation method of the monitor of affairs is relied in a kind of Workflow system, comprising:
The monitor interface and register method of one group of dependence affairs are defined by workflow engine, process monitor is realized above-mentioned
Interface, and realize the service logic of oneself.
The monitor transaction status is set when process modeling and executes opportunity.
Flow engine operation checks whether it is a transaction dependency monitor when being resolved to the monitor, holds if it is delay
Row.
Further, the monitor interface of affairs is relied on.It specifically includes that
The monitor executes the affairs opportunity relied on, and monitor executes context parameters.
Further, the monitor executes after affairs opportunity includes before affairs are submitted, affairs are submitted and transaction rollback;
It includes that flow instance ID, monitor ID, system context dictionary and custom context become that monitor, which executes context parameters,
Measure dictionary.
Further, it is not immediately performed the monitor when flow engine operation is resolved to affairs monitor, but shoots
Current execution state snapshot, when transaction status changes, triggering responds the monitor.
Further, flow engine, which saves, executes the independent preservation of state snapshot needs, identifies flow instance ID, monitor ID
And trigger timing.
Affairs monitor is delivered using the method for external event table, mainly includes,
Flow engine before affairs submission, request to send thing to event system by real-time event service by the monitor of triggering
Part, event system only record event and do not send really.
Flow engine is submitting affairs and then secondary triggering to send by real-time event service to event system confirmation, thing
Part is confirmed rear event system and just really issues event to Message Agent.
When flow engine is in case of abnormal rollback, event is cancelled to event system by real-time event.
It may be noted that be a little that better event system needs event and restores service, which should periodically find not
Confirm that the event sent inquires state to business service, the state returned according to flow events management service determines that event is to send out
Cloth is still cancelled.
Detailed description of the invention
Fig. 1 is workflow schematic diagram of the invention;
Fig. 2 is method delivery schematic diagram of the affairs monitor using external event table.
Specific embodiment
More detailed elaboration is carried out to the contents of the present invention below:
The monitor interface and register method of one group of dependence affairs are defined by workflow engine, process monitor is realized above-mentioned
Interface, and realize the service logic of oneself.
The monitor transaction status is set when process modeling and executes opportunity.
Flow engine operation checks whether it is a transaction dependency monitor when being resolved to the monitor, holds if it is delay
Row.
Rely on the monitor interface of affairs.It specifically includes that
The monitor executes the affairs opportunity relied on, and monitor executes context parameters.
The monitor executes after affairs opportunity includes before affairs are submitted, affairs are submitted and transaction rollback;Monitor is held
Row context parameters include flow instance ID, monitor ID, system context dictionary and custom context variable dictionary.
Flow engine operation is not immediately performed the monitor when being resolved to affairs monitor, but shoots current execution
State snapshot, when transaction status changes, triggering responds the monitor.
Flow engine, which saves, executes the independent preservation of state snapshot needs, mark flow instance ID, monitor ID and triggering
Opportunity.
Affairs monitor delivers (see Fig. 2) using the method for external event table,
Flow engine before affairs submission, request to send thing to event system by real-time event service by the monitor of triggering
Part, event system only record event and do not send really.
Further, flow engine is submitting affairs and then secondary triggering true to event system by real-time event service
Recognize transmission, event is confirmed rear event system and just really issues event to Message Agent.
Further, when flow engine is in case of abnormal rollback, event is cancelled to event system by real-time event.
Claims (6)
1. the monitor implementation method that a kind of Workflow system relies on affairs, which is characterized in that
It specifically includes that
The monitor interface and register method of one group of dependence affairs are defined by workflow engine, process monitor realizes above-mentioned connect
Mouth, and realize the service logic of oneself;
The monitor transaction status is set when process modeling and executes opportunity;
Flow engine operation checks whether it is a transaction dependency monitor when being resolved to the monitor, executes if it is delay.
2. the method according to claim 1, wherein
Wherein,
The monitor interface for relying on affairs, specifically includes that
Monitor executes the affairs opportunity relied on, and monitor executes context parameters.
3. according to the method described in claim 2, it is characterized in that,
Monitor execute affairs opportunity include affairs submit before, affairs submit after and transaction rollback;
Monitor execute context parameters include flow instance ID, monitor ID, system context dictionary and it is customized up and down
Literary variable dictionary.
4. according to the method described in claim 3, it is characterized in that,
Flow engine operation is not immediately performed the monitor when being resolved to affairs monitor, but shoots current execution state
Snapshot, when transaction status changes, triggering responds the monitor.
5. according to the method described in claim 4, it is characterized in that,
Flow engine, which saves, executes the independent preservation of state snapshot needs, mark flow instance ID, monitor ID and trigger timing.
6. according to the method described in claim 3, it is characterized in that
Affairs monitor is delivered using the method for external event table, is specifically included that
For flow engine before affairs submission, the monitor of triggering requests transmission event to event system by real-time event service,
Event system only records event and does not send really;
Flow engine is submitting affairs and then secondary triggering to confirm transmission to event system by real-time event service, and event obtains
Event system just really issues event to Message Agent after to confirmation;
When flow engine is in case of abnormal rollback, event is cancelled to event system by real-time event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810876450.5A CN109062675A (en) | 2018-08-03 | 2018-08-03 | A kind of Workflow system relies on the monitor implementation method of affairs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810876450.5A CN109062675A (en) | 2018-08-03 | 2018-08-03 | A kind of Workflow system relies on the monitor implementation method of affairs |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109062675A true CN109062675A (en) | 2018-12-21 |
Family
ID=64833012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810876450.5A Pending CN109062675A (en) | 2018-08-03 | 2018-08-03 | A kind of Workflow system relies on the monitor implementation method of affairs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109062675A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981789A (en) * | 2019-04-03 | 2019-07-05 | 山东浪潮云信息技术有限公司 | A kind of micro services engine based on proxy mode |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1044420A1 (en) * | 1997-11-28 | 2000-10-18 | International Business Machines Corporation | Processing extended transactions in a client-server system |
CN101807272A (en) * | 2010-03-24 | 2010-08-18 | 上海普元信息技术有限责任公司 | System structure and method for realizing integrities of process affairs and business affairs in workflow system |
CN103593236A (en) * | 2013-11-14 | 2014-02-19 | 华为技术有限公司 | Computer equipment, method and device for scheduling service process |
CN106777026A (en) * | 2016-12-08 | 2017-05-31 | 用友网络科技股份有限公司 | Support method, the apparatus and system of micro services framework affairs final consistency |
CN106993023A (en) * | 2017-03-01 | 2017-07-28 | 北京交通大学 | Distributed transaction solution under micro services framework |
-
2018
- 2018-08-03 CN CN201810876450.5A patent/CN109062675A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1044420A1 (en) * | 1997-11-28 | 2000-10-18 | International Business Machines Corporation | Processing extended transactions in a client-server system |
CN101807272A (en) * | 2010-03-24 | 2010-08-18 | 上海普元信息技术有限责任公司 | System structure and method for realizing integrities of process affairs and business affairs in workflow system |
CN103593236A (en) * | 2013-11-14 | 2014-02-19 | 华为技术有限公司 | Computer equipment, method and device for scheduling service process |
CN106777026A (en) * | 2016-12-08 | 2017-05-31 | 用友网络科技股份有限公司 | Support method, the apparatus and system of micro services framework affairs final consistency |
CN106993023A (en) * | 2017-03-01 | 2017-07-28 | 北京交通大学 | Distributed transaction solution under micro services framework |
Non-Patent Citations (4)
Title |
---|
YUN YA-LI: "Research of atomicity in workflow transaction", 《JOURNAL OF COMPUTER APPLICATIONS》 * |
YVO SWILLENS: "Transaction dependent listeners in activiti", 《HTTP://BLOG.MARK-IT-ZERO.COM/TRANSACTION-DEPENDENT-LISTENERS》 * |
宋怀明: "一种数据库中间件的配置服务的研究和实现", 《小型微型计算机系统》 * |
看山: "微服务架构下的数据一致性:可靠事件模式", 《HTTP://WWW.VOIDCN.COM/ARTICLE/P-FTUSASWK-XP.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981789A (en) * | 2019-04-03 | 2019-07-05 | 山东浪潮云信息技术有限公司 | A kind of micro services engine based on proxy mode |
CN109981789B (en) * | 2019-04-03 | 2021-09-07 | 浪潮云信息技术股份公司 | Micro service engine based on agent mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111831420B (en) | Method for task scheduling, related device and computer program product | |
US6092086A (en) | System and method for handling backout processing during capture of changed data in an enterprise computer system | |
US20200319982A1 (en) | Notification mechanism for disaster recovery events | |
CN111459640B (en) | Cross-platform batch job scheduling method and system | |
US9633094B2 (en) | Data load process | |
US6959401B2 (en) | Recovery guarantees for software components | |
WO2020258666A1 (en) | Distributed system and data processing method | |
CN110290218A (en) | File annotation method and system, computer-readable medium | |
CN103957258A (en) | Trans-regional data communication method and system | |
CN109062675A (en) | A kind of Workflow system relies on the monitor implementation method of affairs | |
CN108038141A (en) | Ensure the method for data consistency under micro services framework HTTP interactive modes | |
CN106951341A (en) | A kind of database backup method for realizing distributed structure/architecture | |
CN114416769A (en) | To-do task query method and device and electronic equipment | |
US11681666B2 (en) | “Bouncing” IO pattern for replication protocols | |
CN116384993B (en) | Method and system for realizing high consistency of order payment state based on cloud payment center | |
CN105874435B (en) | Non- block registration in distributed transaction | |
CN115617480A (en) | Task scheduling method, device and system and storage medium | |
CN115658745A (en) | Data processing method, data processing device, computer equipment and computer readable storage medium | |
US10187462B2 (en) | Methods, system, and server for constructing microblog management circle | |
JP2010211593A (en) | Progress input support system | |
CN112612807B (en) | Distributed transaction data consistency system design method | |
CN106330500B (en) | Error recovery method and device | |
US20110093505A1 (en) | Asynchronous state engine with plug-ins for flexible application development | |
WO2020181798A1 (en) | Data processing method and device, server and computer-readable storage medium | |
EP2169552A1 (en) | System and method for transactional application lifecycle management for mobile devices |
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 |
Application publication date: 20181221 |
|
RJ01 | Rejection of invention patent application after publication |