| [ATL] how can I know the path of the model output and xmiID of newly created elements? [message #929933] |
Mon, 01 October 2012 18:33  |
_md2_ on Forum Messages: 7 Registered: February 2012 Location: L'Aquila |
Junior Member |
|
|
Hi,
In a transformation I create two models, the first is a classic model, while the second is the weaving model , used to trace elements. you can know the path of the model output directly from ATL?
I used the function
TRACE!ElementRef.allInstances()->select(e|e.name.startsWith('OUT')).first().oclType().generateModelRef('OUT')
For input model returns the expected result (path of input model) while for output model returns "new-model"
how can I know the xmiID of newly created items?
using the attribute xmiID do not get the expected result, ie "//object.0" but only "/0".
Regards
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01670 seconds