|EPF model transformation problem with Multi file xmi resources [message #500484]
||Thu, 26 November 2009 05:27
| Benjamin Honke
Registered: November 2009
I try to transform an EPF model via ATL into another model. In this case ATL needs one single InputStream as Input for this transformation. Unfortunately the EPF composer uses a MultiFileXIMResourceSet which contains a couple of MultiFileXMIResources to store one model by the means of multiple XMI files.
For transformation I want to load a plugin.xmi with a couple of uma:Tasks which contain some uma:Steps. But the plugin.xmi does not contain information about Steps directly. Instead it just contains cross document references (via ResourceManagers within the plugin.xmi) to other Task.xmi files which contain concrete information about the Steps and some other Task specific stuff. Now the problem is that during an ATL transformation the Step information cannot be loaded on demand.
I tried to load the whole MethodLibrary as Object via "LibraryService.getInstance().getCurrentMethodLibrary()" .
While this Object contains all necessary information atl cannot transform Objects. Moreover when I tried to save this Object within a newly generated resource (to load it by one InputStream after), the result also will be distributed over multiple files.
Does anyone know if and how it is possible to store/ load the model within one single model file without requiring other xmi files or without the MultiFileXMIResources? Is it possible to avoid EPFs multifile approach?
Thanks a lot for any ideas!
Powered by FUDForum
. Page generated in 0.01999 seconds