Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » assign value to Enumeration type in ETL
assign value to Enumeration type in ETL [message #1176883] Fri, 08 November 2013 16:18 Go to next message
Mahsa P is currently offline Mahsa PFriend
Messages: 115
Registered: July 2013
Senior Member
Hello,

I want assign value to one attribute with Enumeration type in ".etl" code. My ".ecore" model is similar to:
index.php/fa/16706/0/
and I want define one instance from "A" and assign "I" to direction feature of it.
in ".etl" code:

rule ....
	.......
	
	 var A :new Package!A;
	 
	 A.direction := Direction#I;  (this line is my question!)
         ...........


How I assign "I" to "direction feature" of A?

[Updated on: Fri, 08 November 2013 18:41]

Report message to a moderator

Re: assign value to Enumeration type in ETL [message #1179821 is a reply to message #1176883] Sun, 10 November 2013 15:20 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa PFriend
Messages: 115
Registered: July 2013
Senior Member
Hello my friends
My problem is solved using:

A.direction := Package!Direction#I;

Good luck:)
Re: assign value to Enumeration type in ETL [message #1180105 is a reply to message #1179821] Sun, 10 November 2013 19:42 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Masha,

Great! Glad you got this working.

Cheers,
Dimitris
Previous Topic:"org.xml.sax.SAXParseExceptionpublicId"
Next Topic:Setting xsi:noNamespaceSchemaLocation in generated xsd-back xml
Goto Forum:
  


Current Time: Wed Apr 24 17:39:26 GMT 2024

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

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

Back to the top