Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » MessageEnd for ETL transformation (How to access the UML Sequence diagram MessageEnd for ETL transformation )
MessageEnd for ETL transformation [message #1726976] Thu, 17 March 2016 21:25 Go to next message
Deji Paul is currently offline Deji PaulFriend
Messages: 5
Registered: August 2015
Junior Member

How can I translate this OCL code in EOL for my UML ETL transformation:

isSend() : Boolean
This query returns value true if this MessageEnd is a sendEvent.
pre: message->notEmpty()
body: message.sendEvent->asSet()->includes(self)


Kindly advise about the equivalent in EOL.

Thanks
Re: MessageEnd for ETL transformation [message #1727018 is a reply to message #1726976] Fri, 18 March 2016 10:00 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Hi Deji,

Not sure about that "message" variable, but off the top of my head:

$pre self.notEmpty()
operation MessageEnd isSend() : Boolean {
  return self.sendEvent.asSet().includes(self)
}


Have you checked the Epsilon book for the syntax of ETL?

http://www.eclipse.org/epsilon/doc/book/

No problem,
Antonio
Re: MessageEnd for ETL transformation [message #1727308 is a reply to message #1727018] Tue, 22 March 2016 00:18 Go to previous message
Deji Paul is currently offline Deji PaulFriend
Messages: 5
Registered: August 2015
Junior Member
Hi Antonio,

Thanks for the response. It really helped.


Thanks,

Paul DD.

Previous Topic:[EVL] Could not locate a metamodel with the URI
Next Topic:EvlUnsatisfiedConstraint - only UnsatisfiedConstraint sources available
Goto Forum:
  


Current Time: Fri Apr 19 21:40:53 GMT 2024

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

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

Back to the top