Abstract
Automated Web service composition is a critical challenge in Service-Oriented Architectures (SOAs). While classical planners scale well, they often fail to account for the stochastic nature of real-world services. Conversely, decision-theoretic models like Markov Decision Processes (MDPs) handle uncertainty but suffer from state-space explosion. This paper introduces a hierarchical framework using semi-Markov decision processes (SMDPs) to compose nested Web services. By treating high-level processes as temporally extended actions, the framework achieves scalability and robustness, effectively managing service failures and variable latencies.
Introduction
In modern Service-Oriented Architectures, complex business logic is implemented by orchestrating individual Web services. Automating this composition is a long-standing goal in AI planning. However, existing methods face a trade-off between scalability and robustness. Hierarchical Task Networks (HTNs) offer efficient scaling but assume deterministic outcomes, making them brittle when services fail or lag. Markov Decision Processes (MDPs) provide a robust probabilistic framework but become computationally intractable as process complexity grows.
This research bridges the gap by proposing a Hierarchical Semi-Markov Decision Process (H-SMDP) framework. This approach leverages the naturally nested structure of business processes to maintain computational efficiency while explicitly modeling the temporal and probabilistic uncertainties inherent in Web services.
Methodology: Hierarchical SMDPs
The core of the framework is the decomposition of business processes into a hierarchy of SMDPs. Unlike standard MDPs, which operate in discrete time steps, SMDPs allow for actions with variable durations (sojourn times). This is particularly suited for Web services, where response times follow probability distributions.
Process Hierarchy
The framework distinguishes between two types of SMDPs:
- Primitive SMDPs: These reside at the lowest level of the hierarchy, where actions correspond to direct Web service invocations.
- Composite SMDPs (C-SMDPs): These represent higher-level abstract processes. An action in a C-SMDP triggers the execution of an entire lower-level SMDP.
Parameter Derivation and Execution
A key contribution of this work is the mathematical derivation of C-SMDP parameters—such as transition probabilities, rewards, and sojourn time distributions—from the underlying primitive SMDPs. This bottom-up parameterization allows the system to solve the composition problem at each level of the hierarchy using Linear Programming, generating optimal policies without flattening the entire state space. A recursive algorithm then executes these policies, dynamically selecting services based on real-time state transitions.
Evaluation and Results
The framework was evaluated using two simulated scenarios: a singly nested supply chain process and a doubly nested patient transfer clinical pathway.
Robustness and Performance
Experimental results across 1,000 simulation runs demonstrated that the H-SMDP approach consistently outperformed classical HTN planners (specifically SHOP2) in uncertain environments. While HTN planners failed when preferred services were unavailable, the H-SMDP policy successfully rerouted to optimal alternatives. As the environment became more deterministic, the performance gap narrowed, but the H-SMDP remained superior in handling latency and cost-accumulation.
The computational overhead for this robustness was minimal. The supply chain scenario required 16ms for composition (vs. 11ms for HTN), while the more complex patient transfer scenario took 31ms (vs. 17ms for HTN). Furthermore, the generated policies were successfully translated into WS-BPEL, demonstrating compatibility with industry-standard SOA engines.
Conclusion
The H-SMDP framework provides a scalable and robust solution for automated Web service composition. By explicitly modeling time and uncertainty within a hierarchical structure, it overcomes the limitations of both classical and flat decision-theoretic planners. Future research will focus on extending the mathematical model to support concurrent service execution, further aligning the framework with the parallel nature of modern Web processes.
Summary updated