Home » Modeling » Epsilon » ETL: creation of arbitrary number of target traceable elements
|
Re: ETL: creation of arbitrary number of target traceable elements [message #489060 is a reply to message #489059] |
Thu, 01 October 2009 12:10 |
Dimitrios Kolovos 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 |
Esther 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 |
Dimitrios Kolovos 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 |
Dimitrios Kolovos 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 |
Esther 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 |
Dimitrios Kolovos 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
>>
>>
|
|
|
Goto Forum:
Current Time: Sat Apr 20 02:55:18 GMT 2024
Powered by FUDForum. Page generated in 0.03786 seconds
|