|Re: CompleteOCL to XMI [message #1017172 is a reply to message #794388]
||Sun, 10 March 2013 09:19
| Ed Willink
Registered: July 2009
After revisiting this thread, I suspect there is a misunderstanding.
There are two possible use cases.
A) Exploit Complete OCL definitions to provide additional facilities to
be used by the Acceleo transformation engine.
B) Use a Complete OCL model as one of the source models to be transformed.
My responses have been in regard to the loadable validity of a Complete
OCL document from its XMI serialization for B). It presents many
challenges some of which are outlined in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=371018 and others in
I think the actual problem is A). This too presents problems addressed
in https://bugs.eclipse.org/bugs/show_bug.cgi?id=402830. These are
variously language and tooling issues. There is no language
specification indicating how a Complete OCL document might be loadable.
Consequently Acceleo provides no syntax to support such loading and
Eclipse OCL provides limited facilities that might assist Acceleo in
For Acceleo there are two problems. Firstly loading the Complete OCL
document so that the editor/builder exploits it. Then loading so that
the run-time uses it. For the latter there is a semi-programmatic
workaround; user code may be added to the auto-generated Java main
program to load the Complete OCL document using the Ecore-based OCL API.
I can see no workaround for the former;
On 09/02/2012 08:19, Ed Willink wrote:
> OK. That makes sense. You definitely want the full model, not just the
> Complete OCL contribution.
> The MetaModelManager.pivotResourceSet has one Resource for each
> contribution, typically
> - primary meta-model
> - Complete OCL contributions
> - orphanage of synthesized types
> packages and types appearing in multiple contributions have additional
> server/client relationships so that using reflection you can access a
> composite or partitioned view.
> See my 'design' discussion with myself on
> Ed Willink
> On 08/02/2012 22:57, D O wrote:
>> I want to use Acceleo. OCL is defined by a metamodel, it is usually
>> possible to use tools such Acceleo, does not it?
Powered by FUDForum
. Page generated in 0.01740 seconds