Abstract
For transactional Composition Web Services (CWS), traditional transaction theory in the database is introduced into the Long Running Transactions (LRTs) domain. In practical application, the typical LRTs employ forward or backward rollback. In order to improve the expansibility of LRTs, it is important to accurately specify the dependency between tasks in composition transaction; contemporary technologies usually statically specify dependency point and avoid implicit interaction in LRTs. In this paper, we propose a task dependency modeling method for LRTs, firstly we present formal description of atomic Web Services (WS) and discuss atomic WS such as pivot, compensable, retriable and vital, then execution logs of LRTs data dependency and action dependency rules between tasks in LRTs are analyzed, specify, finally application of TRP shows that it is feasible to ensure consistent execution of reliable LRTs based dependencies.
Introduction
In the ecosystem of Web Services, multiple independent services are often integrated into a single "Composition Web Service" (CWS) to handle complex business processes, such as travel booking. These are categorized as Long Running Transactions (LRTs). Unlike traditional database transactions that adhere to strict ACID properties (Atomicity, Consistency, Isolation, Durability), LRTs cannot simply roll back if a failure occurs mid-process, as some actions (like charging a credit card) have real-world side effects.
Instead, these systems require compensation—a programmatic way to undo or mitigate a completed task. The primary challenge is that tasks are often deeply interconnected; if one task fails, its dependencies must also be addressed. This paper proposes an automated framework to discover and verify these dependencies using Extended Petri-Nets and execution log analysis.
Methodology
The authors leverage Extended Petri-Nets to formalize service interactions and recovery logic. The methodology follows three core stages:
- Service Categorization: Atomic services are classified by their recovery properties: Pivot (irreversible), Compensable (can be undone), Retriable (can be restarted), and Vital (critical for the entire transaction).
- Dependency Rule Modeling: The system establishes rules for both Data Flow Dependency (explicit and implicit interactions) and Action Dependency (how task states like 'commit' or 'abort' affect others).
- Mapping and Verification: The framework maps the primary service flow to a corresponding compensation flow. As shown in Figure 4, failures are monitored to trigger specific compensation transitions ($CFtrans$) that map original tasks ($I_n$) to their recovery counterparts ($I'_n$).
Case Study: Traveling Reservation Process (TRP)
The framework was evaluated using a "Multi-partner Cooperation Traveling Reservation Composition" (TRP). This workflow involves ten distinct tasks coordinating between hotels, airlines, and transportation services across multiple locations.
The implementation was tested on the ActiveBPEL engine within a distributed hardware environment. The system demonstrated the ability to dynamically reconstruct compensation contexts and execute reverse flows accurately, proving the feasibility of the dependency-based approach in a realistic scenario.
Key Insights and Results
- Implicit Dependency Discovery: The paper highlights "relaxed-def-use" relationships—implicit dependencies where tasks share data states without direct input/output. Identifying these "silent killers" is crucial for consistent recovery.
- Algorithmic Efficiency: The algorithm for generating dependency sets operates at a time complexity of $O(n^3)$, which is computationally feasible for enterprise-level service compositions.
- Verification Safety: By using propositional logic to verify recovery paths before execution, the system prevents recovery loops and ensures the transaction reaches a consistent state.
Conclusion and Future Work
This research provides a formal foundation for managing failure recovery in complex web service workflows. While the current model successfully automates dependency mapping, future work will focus on addressing complex "AND/OR-Join" structures and optimizing the performance overhead for high-throughput, real-time environments.
Summary updated