Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » [ATL] how can I know the path of the model output and xmiID of newly created elements?
[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 Go to previous message
_md2_ on Forum is currently offline _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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:[ATL] model element references in input model
Next Topic:error message
Goto Forum:
  


Current Time: Fri May 24 11:37:23 EDT 2013

Powered by FUDForum. Page generated in 0.10955 seconds