Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 23 06:15:26 EDT 2025

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

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

Back to the top