An End-to-End Code Generation from UML Diagrams to MVC2 Web Applications

(*) Corresponding author

Authors' affiliations

DOI's assignment:
the author of the article can submit here a request for assignment of a DOI number to this resource!
Cost of the service: euros 10,00 (for a DOI)


Code generation isn't a new concept. It's been around for a while and has been gaining popularity with the model-driven development (MDD) movement as a way to increase productivity. In this paper, we experience a high level technique method based on JET2 to generate the code of an e-commerce web application which is a PC online shopping. This technique is based on the combination of the UML class diagram and the UML activity diagram. In the algorithm of transformation, we consider only the operations belong to the two diagrams already combined. Practically, we transform only the operations that have an activity diagram and belong to the class diagram. In this technique method, we begin by written the transformation rules in ATL transformation language in order to generate the MVC2 web model. In The second step, we use the generated model as an input file of JET2 to generate the code of the e-commerce web application. Also, it presents a case study to illustrate this proposal.
Copyright © 2013 Praise Worthy Prize - All rights reserved.


MDA; ATL Transformation; MVC2 Web; E-Commerce; PIM; PSM; Metamodel; Code Generation

Full Text:



OMG Model Driven Architecture, document update/2012-06-27, ( (Accessed 26 July 2012).

X. Blanc, MDA en action: Ingénierie logicielle guidée par les modèles (Eyrolles, 2005).

S. J. Mellor, K. Scott, A. Uhl, D.Weise, MDA Distilled: Principles of Model-Driven Architecture (Addison-Wesley, 2004).

L. MENET, Formalisation d’une Approche d’Ingénierie Dirigée par les Modèles Appliquée au Domaine de la Gestion des Données de Référence. PhD thesis, Université de Paris VIII, Laboratoire d’Informatique Avancée de Saint-Denis (LIASD), école doctorale: Cognition Langage Interaction (CLI), 2010.

F. Jouault, F. Allilaire, J. Bézivin, I. Kurtev, ATL : A Model Transformation Tool. Sciences of Computer Programming-Elseiver, Vol. 72, n. 1-2, pp 31–39, 2008.

Omg/mof Meta Object Facility (mof) specification, omg document ad/2012-06-27, (Accessed 26 July 2012) ( jet_tutorial2.html. (Accessed 25 July 2012).

Mbarki, S., Erramdani, M., Model-driven transformations: From analysis to MVC 2 web model, (2009) International Review on Computers and Software (IRECOS), 4 (5), pp. 612-620.

OMG Unified Modeling Language (OMG UML), Infrastructure OMG Document Number: formal/2010-05-03 (Accessed 10 August 2012).

J. Bennett, K. Cooper and L. Dai, Aspect-Oriented Model-Driven Skeleton Code Generation: A Graph-Based Transformation Approach. Science of Computer Programming, Vol.75, n. 8, pp. 689-725, 2010.

Nassar, M., Anwar, A., Ebersold, S., Elasri, B., Coulette, B., Kriouile, A., Code Generation in VUML Profile: A Model Driven Approach, IEEE/ACS International Conference on Computer Systems and Applications (pp. 412 – 419 Year of publication: 2009).

Bontà, E. and Bernardo, M., PADL2Java: A Java Code Generator for Process Algebraic Architectural Descriptions, IEEE/ACS International Conference on Computer Systems and Applications (pp. 412 – 419 Year of publication: 2009).

Feiler, P., Niz, D., Raistrick, C., Lewis, B., From PIMs to PSMs, Proceedings of the 23rd IEEE International Conference on Engineering Complex Computer Systems(Year of publication : 2007), Auckland, New Zealand.

Chehade, W. E. H., Radermacher, A., Terrier, F., Selicy, B., Gerard, S., A Model-Driven Framework for the Development of Portable Real-time Embedded Systems, Proceedings in the 16th IEEE International Conference on Engineering of Complex Computer Systems (Year of publication: 2011).

Chao-Sheng Lin, Chun-Hsien Lu, Shang-Wie Lin, Yean-Ru Chen, Pao-Ann Hsiung, VERTAF/Multi-Core: A SysML-Based Application Framework for Multi-Core Embedded Software Development. Journal of Computer Science and Technology, Vol. 26, n. 3, pp: 448–462, 2011, DOI 0.1007/s11390-011-1146-3.

Cheng, f., MDA Implementation Based on Patterns and Action Semantics, Third International Conference on Information and Computing (pp. 25-28 Year of publication: 2010).

P. Sánchez, M. Jiménez, F. Rosique, B. Álvarez, A. Iborra, A Framework for Developing Home Automation Systems: From Requirements to Code, The Journal of Systems and Software, Vol. 84, pp. 1008–1021, 2011.

A. Muñetón, C. Zapata, Definition of a Semantic Platform for Automated Code Generation Based on UML Class Diagrams and DSL Semantic Annotations, Dyna, Vol.79, n. 172, pp. 94-100, 2012, ISSN 0012-7353.

Roy Grønmo, Fredrik Sørensen, Birger Møller-Pedersen, Stein Krogdahl, A Semantics-based Aspect Language for Interactions with the Arbitrary Events Symbol, In European Conference on Model Driven Architecture - Foundations and Applications (ECMDA)-Springer (Year of publication: 2008), doi:10.1007/978-3-540-69100-6-18.

Rahmouni, M., Mbarki, S., Combining UML class and activity diagrams for MDA generation of MVC 2 web applications, (2013) International Review on Computers and Software (IRECOS), 8 (4), pp. 949-957.


  • There are currently no refbacks.

Please send any question about this web site to
Copyright © 2005-2024 Praise Worthy Prize