command. Condition part in t
0
is evaluated to true, because amount is equal to 150,
and the condition is if amount > 100. Then, token generator creates a new token
according to action part of rule 1 stored in t
0
, where the employee’s rank is increased
by one, i.e. the value for employee’s rank now is 4. New token is sent to the output
place p
1
, which sends the token to t
4
. t
4
replicates the token and it sends one token to
p
3
and the other one to p
4
. Transitions t
1
and t
3
are activated, but they are not triggered
because both conditional parts of these transitions are evaluated to false against the
token information.
5 Conclusion and Future Work
In this research work, an ECA rule base simulator ECAPNSim is developed. ECAP-
NSim uses a Conditional Colored Petri Net (CCPN) as a model to depict ECA rules.
Unlike other ECA rule simulators or DB management systems, ECAPNSim is indepen-
dent on the actual database system, i.e., a developed ECA rule base can work with any
database system the communication bridge ODBC-JDBC between ECAPNSim and its
DBMS. Through the CCPN model, ECAPNSim can simulate an ECA rule base behav-
ior and analyze its static properties. Furthermore, the portability of the programming
language Java makes it possible to connect ECAPNSim with many DBMS in different
operating systems, such as Postgresql in both Linux and Macintosh platforms, and MS
Access, MS Visual Fox Pro, and Oracle, in MS Windows platform, etc.
For future, ECAPNSim will be enhanced with distribution functions such as defin-
ing interarrival times among primitive events.
References
1. Zimmer, D.: ”Rule Termination Analysis based on a Rule Meta Model”. In: Cadlab Report 2,
Cadlab, Bahnhofstr. 32, 33102 Paderborn, Germany, April 1995
2. Schlesinger, M. and L
¨
orincze, G. : ”Rule modeling and simulation in ALFRED”. 3rd Interna-
tional workshop on Rules in Database (RIDS’97), Sk
¨
ovde, Sweden, June, pp. 83-99, 1997
3. Gatziu S., Dittrich K.R., “Detecting Composite Events in Active Database Systems Using
Petri Nets”, Proc. 4th International Workshop on Research Issues in Data Engineering: Active
Database Systems, Houston, Texas, February 1994
4. Li X., Medina Mar
´
ın J., and Chapa S. V., ”A Structural Model of ECA Rules in Active
Database”, Mexican International Conference on Artificial Intelligence 02, M
´
erida, Yucatan,
M
´
exico, April 22-26, 2002
5. Li X., Medina Mar
´
ın J., ”Composite Event Specification in Active Database Systems: A Petri
Net Approach”, IEEE International Conference on System, Man, and Cybernetics, The Hague,
The Netherlands, Oct, 2004.
6. Jensen K., ”An Introduction to the Theoretical Aspects of Colored Petri Nets”. Lecture Notes
in Computer Science: A Decade of Concurrency, vol. 803, edited by J. W. de Bakker, W.-P. de
Roever, G. Rozenberg , Springer-Verlag, 1994, pp. 230-272
7. Hanson E.N., ”The Design and Implementaci
´
on of the Ariel Active Database Rule System”,
IEEE Transactions on Knowledge and Data Engineering, Vol. 8, No. 1, february 1996.
8. Widom J., ”The Starburst Active Database Rule System”, IEEE Transactions on Knowledge
and Data Engineering, Vol. 8, No. 4, August 1996.
101