Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] Trace of transformation execution
[QVTO] Trace of transformation execution [message #98453] Tue, 27 January 2009 09:30 Go to next message
Vincent Aranega is currently offline Vincent AranegaFriend
Messages: 10
Registered: July 2009
Junior Member

Hi,

I'd like to get the trace of a transformation execution. Using the
QVTOTrace and the output model.
Currently, I found an execution tree for an object (the sequence of rules
from the main to the rule witch create the object) but due to some QVTO
particularity, some rules are missing (when a disjunct is used for
example, or a call in an init section).

Do a way exist to catch theses rules ? Where trace are generated/specified
in source code ?

In QVTOTrace, a property called "Runtime execution" is present, what is
its usage ? In every QVTOTrace I read, this property was never filled.

Best regards

Vincent


Re: [QVTO] Trace of transformation execution [message #98497 is a reply to message #98453] Tue, 27 January 2009 12:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Alexander.Igdalov.borland.com

Hi Vincent,

A QVTO trace record is created every time a mapping body is executed. As
you have mentioned, the record is not created in other cases such as
when a mapping is invoked more than once with the same parameters
(including its context). In such cases the mapping is NOT executed,
therefore, the results are populated from the trace (available from the
previous mapping execution). Thus, answering your question whether there
is a way to catch these rules - from trace you can only see the mappings
which were executed and no way to get mapping invocations that didn't
cause mapping execution. If you anyways wish to do so, you should use
some user techniques such as flag properties located before/after the
mapping call, etc.

> Where trace are
> generated/specified in source code ?

See org.eclipse.m2m.internal.qvt.oml.evaluator.TraceUtil class.

> In QVTOTrace, a property called "Runtime execution" is present, what is
> its usage ? In every QVTOTrace I read, this property was never filled.

I suppose you meant "runtimeMappingOperation". This one is used in
runtime for trace checking for duplicate mapping invocation with the
same parameters and for resolveIn functions. It's containment is false
thus you didn't find it.

HTH,
Alex.

Vincent Aranega wrote:
> Hi,
>
> I'd like to get the trace of a transformation execution. Using the
> QVTOTrace and the output model. Currently, I found an execution tree for
> an object (the sequence of rules from the main to the rule witch create
> the object) but due to some QVTO particularity, some rules are missing
> (when a disjunct is used for example, or a call in an init section).
>
> Do a way exist to catch theses rules ? Where trace are
> generated/specified in source code ?
>
> In QVTOTrace, a property called "Runtime execution" is present, what is
> its usage ? In every QVTOTrace I read, this property was never filled.
>
> Best regards
>
> Vincent
>
Re: [QVTO] Trace of transformation execution [message #98556 is a reply to message #98497] Wed, 28 January 2009 07:56 Go to previous message
Vincent Aranega is currently offline Vincent AranegaFriend
Messages: 10
Registered: July 2009
Junior Member

Hi Alex,

Thank you very much for your explanations.

Regards

Vincent


Previous Topic:[ATL]Hierarchical structure not preserved with called/lazy rules
Next Topic:MDR model Handler
Goto Forum:
  


Current Time: Tue May 14 12:44:18 GMT 2024

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

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

Back to the top