Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Need OCL help
Need OCL help [message #586107] Wed, 23 August 2006 12:22
Eclipse UserFriend
Originally posted by: camil.bartkowiak.imbus.de

Hello,

well how should i start to ask my question:-))
OK well i'm doing my thesis right now and got some Modeltransformation problem.

I'm using ATL(ATLAS Transformation Language) for my Modeltransformation.
My model is drawn by MagicDraw11.5 and its some .uml2-file.
MD11.5 got some nice EMF UML2 XMI export function which generater some valid .uml2-file
which can be directly read by ATL.

OK my model is some ActivityDiagram. It got some InitialNode (Start) and FinalNode.
Between there are CallOperationActions, ControlFlows, decisionNodes, MergeNodes.
Now what i want to do with ATL is a transformation into some SequenceDiagram.
But not simply the "whole" AcitvityDiagram into ONE big SequenceDiagram with all elements.
no no i want ONE Sequencediagram for EVERY path from Start to EndNode.

Well u can imagine that some ActivityDiagram got more than ONE "path" from Start to Endnode.
For example there is one decisionnode with 5 outgoing edges. So if i took the first edge and go till FinalNode
i also have to "come back" and took the next edge and again went to FinalNode.
That's how i want to generate my "paths".

OK ATL is OCL Based. So i can generate helpers,and use all that OCL stuff;-))
So what i want to do in first step is getting the path.
I want generate a Sequene{} for EVERY possible path.
And inside my Sequence there are my UMLElements from my input-model.
So my Sequnence will start with
Sequnece{IN!UML2InitialNode....} and it will end with Sequence{IN!UML2FinalNode}.
BUT i dont want simply use the .allInstancesFrom('IN') function cause that would give my
ALL elements as ONE big sequence{}.
That's what i dont want. I want to collect that elements i "pick up" on my path. And save that collection
as a Sequence. Later i want to transform the UMLElements into other UMLElements.
e.g
from s : UML2!InitialNode
to t : UML2!Lifeline
name <- s.name
.....

Well maybe someone can help me doing such a helper or i bet more than one helper.
The tricky part were the DecisionNodes cause here i have to pick ONE outgoing edge and follow it.
But i have to check all outgoing edges.?!?

Thx for any helps.
Regards
Camil
Previous Topic:Re: OCL constrains
Next Topic:[Announce] Artists needed for logo contest
Goto Forum:
  


Current Time: Sat Apr 27 00:48:47 GMT 2024

Powered by FUDForum. Page generated in 0.02648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top