The problem is that, in UML 1.3, you cannot do what you are trying to
do. The "context" aggregation has a 0..1 multiplicity on the
"aggregating" end. That is, while a model element can aggregate any
number of state machines, a particular state machine can be in no more
than one context.
The Rose addin chooses the first context link in the XMI file as the
state machine owner. It does not look at any additional context links
for that state machine. (Why do I know this? I wrote it that way.)
My guess is that any other UML-conformant modeling tool will do the
same.
The "x"s in my return address are spam preventers.
On 11 May 2004 02:41:39 -0700,
rr*****@libero.it (insane79) wrote:
I'm developing an XMI interface and i have
found some problems in the utilization
of the contex attribute.
For example if i have two classes (class_1,
class_2) and i want to associate the same
state machine to both class i will wrote
the following XMI declaration
...
<UML:StateMachine xmi.id="id_123" name="foo"
contex="id_class_1 id_class_2" >
...
I've tried to import the document in rose
and poseidon but only one class own the
state machine.
With poseidon i've used the element based
version of contex.
There is someone that can help me?
Thanks