Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Using 'to' in an ETL guard(Using 'to' in an ETL guard)
icon4.gif  Using 'to' in an ETL guard [message #1711311] Wed, 14 October 2015 20:41 Go to next message
Nicolas   is currently offline Nicolas Friend
Messages: 38
Registered: October 2014
Member
Hello everybody,

I'm doing an ETL transformation and I need to do a guard on one rule; however, I've a little issue with it as I need to do a restriction which uses the attribute called "to":

c.select(a|a.to.Name = "Entity").size() > 0

The problem is that "to" is being loaded as part of the transformation (to indicate the destination of the model) and as a result I cannot use it as part of the guard, could someone explain me how to bypass this?

[Updated on: Wed, 14 October 2015 20:42]

Report message to a moderator

Re: Using 'to' in an ETL guard [message #1711312 is a reply to message #1711311] Wed, 14 October 2015 21:04 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Nicolas,

a.`to`.Name

should do the trick.

Cheers,
Dimitris

[Updated on: Wed, 14 October 2015 21:04]

Report message to a moderator

Re: Using 'to' in an ETL guard [message #1711313 is a reply to message #1711312] Wed, 14 October 2015 21:07 Go to previous message
Nicolas   is currently offline Nicolas Friend
Messages: 38
Registered: October 2014
Member
Thanks again mate, you're a genius Smile
Previous Topic:Creating custom Java tools for Epsilon
Next Topic:Exception running E*LStandaloneExample exported as jar: "URI is not hierarchical"
Goto Forum:
  


Current Time: Thu Apr 25 04:04:22 GMT 2024

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

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

Back to the top