2. By marking the place “C” in Figur 2, the eval-
uation transitions “A” and “D” become eligible
to fire. The transition “A” is associated with the
guard which becomes true if the constraints are
satisfied. On the contrary, the transaction “D”
is associated with that which becomes true if the
constraints are NOT satisfied.
3. Under the control of the above guards, the transi-
tion “A” is activated if the integrity constraints are
satisfied. In such a case, a token is sent back to the
place “C”, and the succeeding transitions of the
“commit” or “abort” transitions become eligible
to fire. Otherwise, the transition “D” is activated,
and no token is sent back. Consequently, the suc-
ceeding processes of the corresponding transac-
tion is halted.
By adding the above mechanism to a CPN model
for transaction processing, erroneous transactions to
disturb the data integrity are detected based on the
constraints expressed in the form of predicate logic
formulae. The situation of the data integrity problems
is reported as a token in the place “D”.
5 CONCLUSIONS
Cloud computing environments, especially the PaaS
environments, provide us with the platforms for
highly productive development, flexible operation,
and easy maintenance of transaction systems. One of
the bottlenecks of them is the low capability of pre-
serving data integrity, which is often referred to as
“CAP theorem”. This paper presented a CPN based
modeling and evaluation techniques for transaction
systems from data integrity viewpoints.
Firstly, the definition of data integrity, which is
one of the most vague concepts in database systems
and applications, is introduced from three different
viewpoints, and then it is formalized using predicate
logic. Although there are a variety of transaction
management systems based on different technologies
and mechanism, the essential functionality is com-
mon and can be formally modeled.
The paper used CPN as a formalization and mod-
eling tool to express the behavior of transactions, and
the integrity rules are expressed within CPN models
using CPN/ML codes. The common functional com-
ponents among the different transaction management
systems, e.g. transaction queueing, scheduling, com-
mit, or abort, are represented as CPN structures with
appropriate CPN/ML codes for color, guard, and arc
functions. Integrity evaluation mechanism is also im-
plemented as a CPN structure, and is added to the
above CPN models. It evaluates the original CPN
models examining whether they satisfy the given in-
tegrity criteria.
The paper deals with the common functional-
ity among different transaction systems, however for
practical use, more platform dependent models are
needed, e.g. those for Google App Engine (GAE) or
Amazon E2C.
REFERENCES
Gray, J. and Reuter, A. (1993). Transaction Processing:
Concepts and Techniques. Morgan Kaufmann.
Harper, R., MacQueen, D., Milner, R., and Tofte, M.
(1997). The Definition of Standard ML. The MIT
Press.
Jensen, K. and Kristensen, L. (2009). Coloured Petri
Nets: Modeling and Validation of Concurrent Sys-
tems. Springer-Verlag.
Jensen, K., Kristensen, L. M., and Wells, L. (2007).
Coloured Petri Nets and CPN Tools for Modelling
and Validation of Concurrent Systems. In Inter-
national Journal on Software Tools for Technology
Transfer (STTT) Volume 9, Numbers 3-4, pages 213–
254. Springer-Verlag.
Martin, M. J. P., Quintales, L. A. M., and Garcia, M. N. M.
(2004). A Framework for the Modelling and Simu-
lation of Distributed Transaction Processing Systems
Using Coloured Petri Nets. In International Confer-
ence on Applications and Theory of Petri Nets, pages
351–270. Springer-Verlag.
Pritchett, D. (2008). BASE: An ACID alternative. In ACM
QUEUE Volume 6 Issue 3, pages 48–55. ACM.
Sanderson, D. (2009). Programming Google App Engine.
Oreilly & Associates Inc.
Shinkawa, Y. and Matsumoto, M. (2001). An Informa-
tion System View of Consistency and Integrity in En-
terprise Operations. In Proc. 3rd International Con-
ference on Enterprise Information Systems Volume 2,
pages 709–716.
Vliet, J. V. and Paganelli, F. (2011). Programming Amazon
EC2. Oreilly & Associates Inc.
ICSOFT2012-7thInternationalConferenceonSoftwareParadigmTrends
272