[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [QVTO] forcing late resolve

Hi, Radek,

I begun the transformation using different passes, one for the main tree (containment tree) and one for each type of reference, in a very deterministic approach. But then, I don't remember well why -maybe by laziness- , I decided to use late resolve with the last type of reference. As I did not remember this detail, it took me almost two hours to realize the problem, because looking at the generated target model, all references were there ;-)
Besides, just to check, I removed the 'late' from the resolves, but it broke the transformation from the beginning, so I can't see other way out, other than using the multiple-pass approach to the end. Or am I missing something?


CÃsar


The 'late resolve' is always to be executed in the end of the transformation,
just after the body of main() has finished its job.
If you do not want to wait until that time, you can use the available variants of
normal 'resolve'. In this case, you always get the objects instantly available
in traces.
As you have mentioned, this requires a bit of specific knowledge of the
transformation writer, in order to know whether neccessary traces have already been created
based on the execution flow.


Though, I'm not sure, I completely got your problem.

Regard,
/Radek


On Tue, 06 May 2008 18:01:29 +0200, kaiserlautern <comouraf-lixo@xxxxxxxx> wrote:


Hi,

At some specific parts of my transformation I decided to use late resolve
:-(. But now I realize that I need some objects halfway through my
transformation - and not at the end, when 'late resolve' resolves the references.
So, I'd like to know if there is a way of forcing pending references (to be
used, at my own risk, at some point when I know that all objects from the
first part of the transformation should already be created).


Thank you in advance,

CÃsar




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/