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 11:18 Go to next message
Mahsa P is currently offline Mahsa P
Messages: 86
Registered: July 2013
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 13: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 10:20 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 86
Registered: July 2013
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 14:42 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 795
Registered: July 2009
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: Sat Jul 26 01:12:05 EDT 2014

Powered by FUDForum. Page generated in 0.58284 seconds