Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » How to print output of ATL programs to eclipse console
How to print output of ATL programs to eclipse console [message #1851997] Mon, 25 April 2022 12:57 Go to next message
Lavya Thippabathini is currently offline Lavya ThippabathiniFriend
Messages: 10
Registered: February 2022
Junior Member
Hi ,


we are working on Multi-module maven project in Eclipse IDE and it consists of ATL files. We are trying to print the output of ATL code to eclipse console. we have tried in many ways , but can't able to produce output to the console.

For Example :

rule Member2Female {
from
s: Families!Member (s.isFemale())
to
t: Persons!Female (
fullName <- s.firstName
)
}



For suppose , we want to print the value of fullName to the console , how it can be printed?

could you please suggest us on ways that can be used to print the output of ATL to the console?

Regards,
Lavya.
Re: How to print output of ATL programs to eclipse console [message #1852011 is a reply to message #1851997] Mon, 25 April 2022 19:10 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

You can use the debug() operation for that as follows:
rule Member2Female {
  from
    s: Families!Member (s.isFemale())
  to
    t: Persons!Female (
      fullName <- s.firstName.debug('fullName')
    )
}


Cheers,
Dennis
Previous Topic:About stereotype management
Next Topic:Strange error with the __xmiID__ field
Goto Forum:
  


Current Time: Fri Apr 26 22:29:23 GMT 2024

Powered by FUDForum. Page generated in 0.02953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top