Going beyond templates

Bibliographic Details
Main Author: Seco, João Costa
Publication Date: 2024
Other Authors: Lourenço, Hugo, Parreira, Joana, Ferreira, Carla
Format: Article
Language: eng
Source: Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
Download full: http://hdl.handle.net/10362/169108
Summary: Publisher Copyright: © The Author(s) 2024. Acknowledgements Partially supported by Grant Lisboa-01-0247-Feder-045917. Funding Open access funding provided by FCT|FCCN (b-on).
id RCAP_ebfdea4ad1a4329a27128a2075c426a8
oai_identifier_str oai:run.unl.pt:10362/169108
network_acronym_str RCAP
network_name_str Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
repository_id_str https://opendoar.ac.uk/repository/7160
spelling Going beyond templatescomposition and evolution in nested OSTRICHLow-code modelsMetamodelMetaprogrammingModel reuseTemplatingTypechecking templatesSoftwareModelling and SimulationPublisher Copyright: © The Author(s) 2024. Acknowledgements Partially supported by Grant Lisboa-01-0247-Feder-045917. Funding Open access funding provided by FCT|FCCN (b-on).Low-code frameworks strive to simplify and speed up application development. An essential mechanism to achieve these goals is to have native support for the safe reuse and usage of parameterized coarse-grain components, providing developers with strong guardrails and a rich software-building experience. OSTRICH —a rich template language for the OutSystems platform—was designed to simplify the use and creation of such components. Thus, the application developer can quickly reuse and assemble sophisticated and thoroughly tested application blocks. However, without a built-in composition and evolution mechanism, OSTRICH templates are still hard to create and maintain. This sometimes requires the repetition of code across different templates and creates a conflict between the customizations of the instantiated application models, and the update and reapplication of a template definition. This paper presents a principled mechanism for using abstraction in the creation of templates and simultaneously supporting the evolution of OSTRICH templates in applications after use. First, we introduce a template composition mechanism, its typing discipline, and its instantiation algorithm for model-driven low-code development environments. We start by extending OSTRICH to support nested templates and allow the instantiation (hatching) of templates in the definition of other templates. Nesting promotes a significant increase in code reuse potential, leading to a safer evolution of applications. We then introduce the support for customizable template instances, which allows one to evolve templates’ code and then update a template instance without losing customizations performed in the generated code. The present definition seamlessly extends the existing OutSystems metamodel with template constructs expressed by model annotations that maintain backward compatibility with the existing language toolchain. We present the metamodel, a set of annotations to support the extensions, and the corresponding validation and instantiation algorithms. In particular, we introduce a type-based validation procedure for abstractions that ensures that using templates always produces valid models. This work also extends prior developments on Nested OSTRICH with the support for safe customizations of instantiated code. We validate Nested OSTRICH using the OSTRICH benchmark by identifying the degree of reusability that can be reached in the existing sample of real templates and template uses. Our prototype is an extension of the OutSystems IDE that allows the annotation of models and their use to produce new models. We also analyze which existing OutSystems sample screen templates can be improved by using and sharing nested templates.NOVALincsRUNSeco, João CostaLourenço, HugoParreira, JoanaFerreira, Carla2024-06-26T22:25:57Z2024-05-202024-05-20T00:00:00Zinfo:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/article26application/pdfhttp://hdl.handle.net/10362/169108eng1619-1366PURE: 93106274https://doi.org/10.1007/s10270-024-01178-winfo:eu-repo/semantics/openAccessreponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiainstacron:RCAAP2024-07-08T01:33:54Zoai:run.unl.pt:10362/169108Portal AgregadorONGhttps://www.rcaap.pt/oai/openaireinfo@rcaap.ptopendoar:https://opendoar.ac.uk/repository/71602025-05-28T17:57:14.750745Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiafalse
dc.title.none.fl_str_mv Going beyond templates
composition and evolution in nested OSTRICH
title Going beyond templates
spellingShingle Going beyond templates
Seco, João Costa
Low-code models
Metamodel
Metaprogramming
Model reuse
Templating
Typechecking templates
Software
Modelling and Simulation
title_short Going beyond templates
title_full Going beyond templates
title_fullStr Going beyond templates
title_full_unstemmed Going beyond templates
title_sort Going beyond templates
author Seco, João Costa
author_facet Seco, João Costa
Lourenço, Hugo
Parreira, Joana
Ferreira, Carla
author_role author
author2 Lourenço, Hugo
Parreira, Joana
Ferreira, Carla
author2_role author
author
author
dc.contributor.none.fl_str_mv NOVALincs
RUN
dc.contributor.author.fl_str_mv Seco, João Costa
Lourenço, Hugo
Parreira, Joana
Ferreira, Carla
dc.subject.por.fl_str_mv Low-code models
Metamodel
Metaprogramming
Model reuse
Templating
Typechecking templates
Software
Modelling and Simulation
topic Low-code models
Metamodel
Metaprogramming
Model reuse
Templating
Typechecking templates
Software
Modelling and Simulation
description Publisher Copyright: © The Author(s) 2024. Acknowledgements Partially supported by Grant Lisboa-01-0247-Feder-045917. Funding Open access funding provided by FCT|FCCN (b-on).
publishDate 2024
dc.date.none.fl_str_mv 2024-06-26T22:25:57Z
2024-05-20
2024-05-20T00:00:00Z
dc.type.status.fl_str_mv info:eu-repo/semantics/publishedVersion
dc.type.driver.fl_str_mv info:eu-repo/semantics/article
format article
status_str publishedVersion
dc.identifier.uri.fl_str_mv http://hdl.handle.net/10362/169108
url http://hdl.handle.net/10362/169108
dc.language.iso.fl_str_mv eng
language eng
dc.relation.none.fl_str_mv 1619-1366
PURE: 93106274
https://doi.org/10.1007/s10270-024-01178-w
dc.rights.driver.fl_str_mv info:eu-repo/semantics/openAccess
eu_rights_str_mv openAccess
dc.format.none.fl_str_mv 26
application/pdf
dc.source.none.fl_str_mv reponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
instacron:RCAAP
instname_str FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
instacron_str RCAAP
institution RCAAP
reponame_str Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
collection Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
repository.name.fl_str_mv Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
repository.mail.fl_str_mv info@rcaap.pt
_version_ 1833597086096949248