Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Query about in/out/inout and check/enforce or create/append/update execution mode
[QVTo] Query about in/out/inout and check/enforce or create/append/update execution mode [message #546518] Tue, 13 July 2010 09:08 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi

I am not clear how the mode of transformation execution is controlled.
Sometimes my transformations fail unless the output is seeded.

Using the Helios Simpleuml_To_Rdb example, if run once it creates a
Model in /SimpleUML to RDB/Simpleuml_To_Rdb.rdb as might be expected.

If run again and again and again, it creates further Models (remember to
refresh the file to see the multiples). This seems odd, but nowhere is
there an explicit statement that the output is enforce.

If RDB/Simpleuml_To_Rdb.rdb is changed to make RDB an inout model, the
transformation fails if the output does not exist, but otherwise creates
multiple copies again and again and again.

In the absence of any control flags in the Run Configuration, I would
expect in->out to be a create/overwrite, and in->inout to be a
create/update. I would expect to need in,in->out to get create/append.

Am I missing something?

Regards

Ed Willink
Re: [QVTo] Query about in/out/inout and check/enforce or create/append/update execution mode [message #547097 is a reply to message #546518] Thu, 15 July 2010 12:11 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Ed,

This is definitely a bug. The [out] direction is enforced old objects to
be discarded. Could you please raise bugzilla for that?

Regards,
Sergey


Ed Willink wrote:
> Hi
>
> I am not clear how the mode of transformation execution is controlled.
> Sometimes my transformations fail unless the output is seeded.
>
> Using the Helios Simpleuml_To_Rdb example, if run once it creates a
> Model in /SimpleUML to RDB/Simpleuml_To_Rdb.rdb as might be expected.
>
> If run again and again and again, it creates further Models (remember to
> refresh the file to see the multiples). This seems odd, but nowhere is
> there an explicit statement that the output is enforce.
>
> If RDB/Simpleuml_To_Rdb.rdb is changed to make RDB an inout model, the
> transformation fails if the output does not exist, but otherwise creates
> multiple copies again and again and again.
>
> In the absence of any control flags in the Run Configuration, I would
> expect in->out to be a create/overwrite, and in->inout to be a
> create/update. I would expect to need in,in->out to get create/append.
>
> Am I missing something?
>
> Regards
>
> Ed Willink
Re: [QVTo] Query about in/out/inout and check/enforce or create/append/update execution mode [message #550524 is a reply to message #547097] Fri, 30 July 2010 16:24 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi Sergey

(Bug 320010 raised for the rerun causing append.)

Now I want to execute in update mode. Is this supported?

(OMG QVT Issue raised on the very opaque and contradictory definitions
of "enforce", "checkonly" and MappingOperation.refinement.)

Regards

Ed Willink


On 15/07/2010 13:11, Sergey Boyko wrote:
> Hi Ed,
>
> This is definitely a bug. The [out] direction is enforced old objects to
> be discarded. Could you please raise bugzilla for that?
>
> Regards,
> Sergey
>
>
> Ed Willink wrote:
>> Hi
>>
>> I am not clear how the mode of transformation execution is controlled.
>> Sometimes my transformations fail unless the output is seeded.
>>
>> Using the Helios Simpleuml_To_Rdb example, if run once it creates a
>> Model in /SimpleUML to RDB/Simpleuml_To_Rdb.rdb as might be expected.
>>
>> If run again and again and again, it creates further Models (remember
>> to refresh the file to see the multiples). This seems odd, but nowhere
>> is there an explicit statement that the output is enforce.
>>
>> If RDB/Simpleuml_To_Rdb.rdb is changed to make RDB an inout model, the
>> transformation fails if the output does not exist, but otherwise
>> creates multiple copies again and again and again.
>>
>> In the absence of any control flags in the Run Configuration, I would
>> expect in->out to be a create/overwrite, and in->inout to be a
>> create/update. I would expect to need in,in->out to get create/append.
>>
>> Am I missing something?
>>
>> Regards
>>
>> Ed Willink
Previous Topic:[AM3] AM3 under Eclipse 3.6.0?
Next Topic:[ATL] Ant Task: set "Is metametamodel" option
Goto Forum:
  


Current Time: Sat Dec 14 08:18:49 GMT 2024

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

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

Back to the top