作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (24): 99-102. doi: 10.3969/j.issn.1000-3428.2009.24.033

• 软件技术与数据库 • 上一篇    下一篇

基于Web Service的工作流补偿机制

张晓雯,黄永忠,李占峻   

  1. (信息工程大学信息工程学院,郑州 450002)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-12-20 发布日期:2009-12-20

Workflow Compensation Mechanism Based on Web Service

ZHANG Xiao-wen, HUANG Yong-zhong, LI Zhan-jun   

  1. (Institute of Information Engineering, Information Engineering University, Zhengzhou 450002)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-12-20 Published:2009-12-20

摘要: 针对Web Service事务处理机制中的补偿问题,提出一种半自动的事务补偿机制,使用数据库系统中的触发器技术,解决了在Web Service分布、异构平台上对事务活动进行统一的补偿问题,将机制应用在Web Service中,可以规范补偿逻辑,从而保证系统的一致性,Web Service设计者可以确定补偿的规则,并在事务运行时动态生成补偿策略。实验结果表明,该方法有利于集中利用补偿策略,具有良好的可扩展性。

关键词: Web服务, 工作流, 触发器, 事务, 补偿

Abstract: Aiming at the compensation problem in Web Service transaction processing mechanism, this paper presents a semi-automatic compensation mechanism for the transaction. The mechanism uses the database system triggers technology to solve unified compensation in the distributed and heterogeneous platforms. This mechanism is applied in Web Service, which can standardize compensation logic in order to ensure system consistency. Web Service designers can determine the compensation rules, and dynamically generate compensation at the transaction run-time. Experimental results show this method is beneficial to focus on the use of compensation strategies, with a certain degree of expansibility.

Key words: Web Service, workflow, trigger, transaction, compensation

中图分类号: