|国家预印本平台
首页|改进Sagas事务模型实现工作流中的任务回滚

改进Sagas事务模型实现工作流中的任务回滚

ask Rollback of Workflow Based on Improved Sagas Transaction Model

中文摘要英文摘要

传统工作流管理系统的事务处理能力不足,会使系统在失败时不能尽快恢复流程的执行,影响工作流的普及使用。Sagas事务模型的一个长事务由多个子事务组成,当其中一个子事务失败时,系统将逆向补偿所有的子事务并退出。这会造成资源的极大浪费。本文提出一种改进的Sagas事务模型,当某个子事务出错时部分补偿子事务,回到一个回退点然后继续执行,提高效率。并应用该改进模型到工作流中解决业务中出现的任务回退与任务追回需求,使得当业务流程出错时用户可以采取有效的补救措施。

raditional workflow management systems lack the abilities of handling transactions, thus cannot recover quickly enough when it fails, affecting the applying of workflow. Sagas transaction model, a long lived transaction which is composed of ordered transactions set. If a transaction is abnormal, the compensate transactions will be implemented in the opposite direction to remove the results and quite. This can cause a waste of resource. An improved Sagas is proposed, if a transaction is abnormal, do part of the compensate transactions to get back to a rollback point. And apply the improved model to workflow to settle the problem of return a task and cancel a task, so when there is a failure the users can do something to remedy.

王柏、崔磊

计算技术、计算机技术

工作流Sagas事务模型任务回退

WorkflowSagas Transaction ModelTask Rollback

王柏,崔磊.改进Sagas事务模型实现工作流中的任务回滚[EB/OL].(2012-08-03)[2025-08-16].http://www.paper.edu.cn/releasepaper/content/201208-15.点此复制

评论