if (for each element a in T, D a = null), then
{F.add(T);
H.remove(T);}
else
for each element a in T, do
if (D a! = null), then
{H a = D a(a);
H a.extend();
H.update(a, H a);}
}
return F
4 CONCLUSIONS
In this paper, a cooperative decentralized diagno-
sis approach for complex Web services is proposed.
BPEL Web services are chosen as our application due
to their popularity and perspective. For each individ-
ual activity, grey box is adopted, which means that we
do not model its internal behavior but the correlation
between its input and output parameters. Thus we can
infer how the correct/incorrect status of input param-
eters can affect the correct/incorrect status of output
parameters. Obviously, our approach greatly reduces
the computation complexity thanks to local diagno-
sis algorithm relying on Horn clauses inference and
global diagnosis based on decentralized architecture.
The details of our experimentations on real BPEL ex-
amples (in the framework of project WS-Diamond)
are omitted due to lack of space. In addition, our
approach can be easily extended to handle multiple
exceptions, especially for independent exceptions in
different paralleled branches. In this case, each ex-
ception should be diagnosed independently and then
the synthesized diagnoses are the union of all the di-
agnoses. Since we focus on the minimal diagnoses,
we remove the synthesized diagnoses that are super-
sets of other ones. Furthermore, it is straightforward
to extend our diagnosis architecture to multi-layered
hierarchies. For example, a coordinator can be de-
signed to be able to act as a local diagnoser for an-
other coordinator at higher level.
There are similar approaches in the literature. In
(Bauer, 2005), the problem of contradicting first or-
der system descriptions with observations is reduced
to propositional logic, which is similar to our DKB.
However, they have experiencedk-satisfiability by us-
ing state-of-the-art SAT solvers to determine conflict
sets and minimal diagnoses, which is avoided in our
approach since our DKB is made up of Horn clauses
and thus permits direct deduction. (Ardissono et al.,
2005) has proposed a similar decentralized model-
based diagnosis approach for Web services. Their
global diagnoser does not initially have any informa-
tion on the individual Web services such that the com-
munications between local diagnoser and global di-
agnoser should contain the information about diag-
nosis and interactions (like connection information).
Differently, our coordinator has the knowledge about
the connections between services, which lightens the
communication flow since just diagnosis information
should be considered. However, this knowledge does
not violate the privacy issues since it is at interface
level and thus the coordinator still does not know the
internal details of services. In addition, they just have
proposed the characterization of local diagnoser op-
erations without providing specific algorithms. While
in ours, since BPEL services are chosen as the appli-
cation, local diagnosis algorithm is precisely defined.
(Yan and Dague, 2007) has introduced an approach
similar in its principle but different in its implementa-
tion: automata are used instead of Petri nets for mod-
eling; trajectories in the synchronized product of the
automaton model and the observations are used in-
stead of data dependencies; the diagnostic algorithm
is centralized instead of being decentralized.
REFERENCES
Ardissono, L., Console, L., Goy, A., Petrone, G., Picardi,
C., Segnan, M., and Dupr´e, D. T. (2005). Enhanc-
ing web services with diagnostic capabilities. Proc. of
European Conference on Web Services (ECOWS-05),
pp. 182-191, Vaxjo, Sweden, IEEE.
Bauer, A. (2005). Simplifying diagnosis using lsat: a propo-
sitional approach to reasoning from first principles.
In vol 3524 of Lecture Notes in Computer Science.
Proc. of the 2005 International Conference on Inte-
gration of AI and OR Techniques in Constraint Pro-
gramming for Combinatorial Optimization Problems
(CP-AI-OR), Springer-Verlag.
Hamscher, W., Console, L., and de Kleer, J. (1992). Read-
ings in Model-based Diagnosis. Morgan Kaufmann.
Li, Y., Melliti, T., and Dague, P. (2007). Modelling bpel
web services for diagnosis: towards self-healing web
services. Proc. of the 3rd International Conference
on Web Information Systems and Technologies, pages
297-304, Barcelona, Spain.
Reiter, R. (1987). A theory of diagnosis from first princi-
ples. Artificial Intelligence, 32(1), 57-96.
Yan, Y. and Dague, P. (2007). Monitoring and diagnosing
orchestrated web service processes. Proc. of the 2007
IEEE International Conference on Web Services.
DECENTRALIZED DIAGNOSIS FOR BPEL WEB SERVICES
287