Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » ETL: creation of arbitrary number of target traceable elements
ETL: creation of arbitrary number of target traceable elements [message #489059] Thu, 01 October 2009 12:08 Go to next message
Esther is currently offline EstherFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Dimitris,

I need to define ETL rules that create an arbitrary number of
target elements (not known a priori), and I need to be able to
access those created elements in the body of the rule by using
the operation "equivalents".

Is that possible, e.g. by defining that the target element of
the rule is a Bag, or by including the created elements in the
trace so that the "equivalents" operation return them?

If this is not possible, perhaps I could store in a variable
all these created elements, and then build my own operation
"myEquivalents"... Would that be possible, and how?

Thanks & cheers,

Esther
Re: ETL: creation of arbitrary number of target traceable elements [message #489060 is a reply to message #489059] Thu, 01 October 2009 12:10 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Esther,

Yes, collection types (Bag, Sequence etc.) are supported as target types
of ETL rules so you should be able to do this.

Cheers,
Dimitris

Esther wrote:
> Hi Dimitris,
>
> I need to define ETL rules that create an arbitrary number of
> target elements (not known a priori), and I need to be able to
> access those created elements in the body of the rule by using
> the operation "equivalents".
>
> Is that possible, e.g. by defining that the target element of
> the rule is a Bag, or by including the created elements in the
> trace so that the "equivalents" operation return them?
>
> If this is not possible, perhaps I could store in a variable
> all these created elements, and then build my own operation
> "myEquivalents"... Would that be possible, and how?
>
> Thanks & cheers,
>
> Esther


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ETL: creation of arbitrary number of target traceable elements [message #489149 is a reply to message #489060] Thu, 01 October 2009 15:55 Go to previous messageGo to next message
Esther is currently offline EstherFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks a lot.

Also, is there a method, similar to "equivalents", that returns
the target elements in which a source element has been transformed,
but without invoking any rule in case the source element has not
been transformed yet? I know how to do it by accessing transTrace,
but is there another way?

Thanks again,
Esther


Dimitris Kolovos escribió:
> Hi Esther,
>
> Yes, collection types (Bag, Sequence etc.) are supported as target types
> of ETL rules so you should be able to do this.
>
> Cheers,
> Dimitris
>
> Esther wrote:
>> Hi Dimitris,
>>
>> I need to define ETL rules that create an arbitrary number of
>> target elements (not known a priori), and I need to be able to
>> access those created elements in the body of the rule by using
>> the operation "equivalents".
>>
>> Is that possible, e.g. by defining that the target element of
>> the rule is a Bag, or by including the created elements in the
>> trace so that the "equivalents" operation return them?
>>
>> If this is not possible, perhaps I could store in a variable
>> all these created elements, and then build my own operation
>> "myEquivalents"... Would that be possible, and how?
>>
>> Thanks & cheers,
>>
>> Esther
>
>
Re: ETL: creation of arbitrary number of target traceable elements [message #489153 is a reply to message #489149] Thu, 01 October 2009 16:05 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Esther,

There is no built-in function for this but as you mentioned, you can
indeed trace target->source elements by querying the transformation trace.

Cheers,
Dimitris

Esther wrote:
> Thanks a lot.
>
> Also, is there a method, similar to "equivalents", that returns
> the target elements in which a source element has been transformed,
> but without invoking any rule in case the source element has not
> been transformed yet? I know how to do it by accessing transTrace,
> but is there another way?
>
> Thanks again,
> Esther
>
>
> Dimitris Kolovos escribió:
>> Hi Esther,
>>
>> Yes, collection types (Bag, Sequence etc.) are supported as target
>> types of ETL rules so you should be able to do this.
>>
>> Cheers,
>> Dimitris
>>
>> Esther wrote:
>>> Hi Dimitris,
>>>
>>> I need to define ETL rules that create an arbitrary number of
>>> target elements (not known a priori), and I need to be able to
>>> access those created elements in the body of the rule by using
>>> the operation "equivalents".
>>>
>>> Is that possible, e.g. by defining that the target element of
>>> the rule is a Bag, or by including the created elements in the
>>> trace so that the "equivalents" operation return them?
>>>
>>> If this is not possible, perhaps I could store in a variable
>>> all these created elements, and then build my own operation
>>> "myEquivalents"... Would that be possible, and how?
>>>
>>> Thanks & cheers,
>>>
>>> Esther
>>
>>
Re: ETL: creation of arbitrary number of target traceable elements [message #581234 is a reply to message #489059] Thu, 01 October 2009 12:10 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Esther,

Yes, collection types (Bag, Sequence etc.) are supported as target types
of ETL rules so you should be able to do this.

Cheers,
Dimitris

Esther wrote:
> Hi Dimitris,
>
> I need to define ETL rules that create an arbitrary number of
> target elements (not known a priori), and I need to be able to
> access those created elements in the body of the rule by using
> the operation "equivalents".
>
> Is that possible, e.g. by defining that the target element of
> the rule is a Bag, or by including the created elements in the
> trace so that the "equivalents" operation return them?
>
> If this is not possible, perhaps I could store in a variable
> all these created elements, and then build my own operation
> "myEquivalents"... Would that be possible, and how?
>
> Thanks & cheers,
>
> Esther


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ETL: creation of arbitrary number of target traceable elements [message #581255 is a reply to message #489060] Thu, 01 October 2009 15:55 Go to previous message
Esther is currently offline EstherFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks a lot.

Also, is there a method, similar to "equivalents", that returns
the target elements in which a source element has been transformed,
but without invoking any rule in case the source element has not
been transformed yet? I know how to do it by accessing transTrace,
but is there another way?

Thanks again,
Esther


Dimitris Kolovos escribió:
> Hi Esther,
>
> Yes, collection types (Bag, Sequence etc.) are supported as target types
> of ETL rules so you should be able to do this.
>
> Cheers,
> Dimitris
>
> Esther wrote:
>> Hi Dimitris,
>>
>> I need to define ETL rules that create an arbitrary number of
>> target elements (not known a priori), and I need to be able to
>> access those created elements in the body of the rule by using
>> the operation "equivalents".
>>
>> Is that possible, e.g. by defining that the target element of
>> the rule is a Bag, or by including the created elements in the
>> trace so that the "equivalents" operation return them?
>>
>> If this is not possible, perhaps I could store in a variable
>> all these created elements, and then build my own operation
>> "myEquivalents"... Would that be possible, and how?
>>
>> Thanks & cheers,
>>
>> Esther
>
>
Re: ETL: creation of arbitrary number of target traceable elements [message #581273 is a reply to message #489149] Thu, 01 October 2009 16:05 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Esther,

There is no built-in function for this but as you mentioned, you can
indeed trace target->source elements by querying the transformation trace.

Cheers,
Dimitris

Esther wrote:
> Thanks a lot.
>
> Also, is there a method, similar to "equivalents", that returns
> the target elements in which a source element has been transformed,
> but without invoking any rule in case the source element has not
> been transformed yet? I know how to do it by accessing transTrace,
> but is there another way?
>
> Thanks again,
> Esther
>
>
> Dimitris Kolovos escribió:
>> Hi Esther,
>>
>> Yes, collection types (Bag, Sequence etc.) are supported as target
>> types of ETL rules so you should be able to do this.
>>
>> Cheers,
>> Dimitris
>>
>> Esther wrote:
>>> Hi Dimitris,
>>>
>>> I need to define ETL rules that create an arbitrary number of
>>> target elements (not known a priori), and I need to be able to
>>> access those created elements in the body of the rule by using
>>> the operation "equivalents".
>>>
>>> Is that possible, e.g. by defining that the target element of
>>> the rule is a Bag, or by including the created elements in the
>>> trace so that the "equivalents" operation return them?
>>>
>>> If this is not possible, perhaps I could store in a variable
>>> all these created elements, and then build my own operation
>>> "myEquivalents"... Would that be possible, and how?
>>>
>>> Thanks & cheers,
>>>
>>> Esther
>>
>>
Previous Topic:ETL: creation of arbitrary number of target traceable elements
Next Topic:[EuGENia] unable to create some elements
Goto Forum:
  


Current Time: Sat Apr 20 02:55:18 GMT 2024

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

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

Back to the top