1
General Board / Putting States into Regions
« on: September 26, 2012, 11:17:13 pm »
Hi all,
can anyone tell me how to (reproducibly) put states into regions in a State Machine? For example, take the following State Machine:

I'd expect "State2" to be a member of region "a" and "State3" a member of region "b", but when exporting the XMI, both are put in a third region instead:
Sometimes, dragging the substates around in the region they should belong to seems to fix this, sometimes moving the dashed line between the two regions up or down a few pixels seems to fix it, but sometimes there's nothing that seems to work. Is there any way to reliably assign a state to a region (preferrably without creating new states which would be very painful when changing an existing diagram)?
Thanks,
Rainer.
can anyone tell me how to (reproducibly) put states into regions in a State Machine? For example, take the following State Machine:

I'd expect "State2" to be a member of region "a" and "State3" a member of region "b", but when exporting the XMI, both are put in a third region instead:
Code: [Select]
<subvertex xmi:type="uml:State" xmi:id="EAID_1FC64472_591A_4fa3_AF50_8441A75D99C1" name="State1" visibility="public" isSubmachineState="false">
<region xmi:type="uml:Region" xmi:id="EAID_SP000025_591A_4fa3_AF50_8441A75D99C1" name="a" visibility="public"/>
<region xmi:type="uml:Region" xmi:id="EAID_SP000054_591A_4fa3_AF50_8441A75D99C1" name="b" visibility="public"/>
<region xmi:type="uml:Region" xmi:id="EAID_SR000009_57C6_4772_A2DE_A30F77B39290" name="EA_Region9" visibility="public">
<subvertex xmi:type="uml:State" xmi:id="EAID_5641A017_130C_4b43_9FB1_C43FB395F020" name="State2" visibility="public" isSubmachineState="false"/>
<subvertex xmi:type="uml:State" xmi:id="EAID_1B6F5722_D9E1_4411_9DD2_B794640437C0" name="State3" visibility="public" isSubmachineState="false"/>
</region>
</subvertex>
Sometimes, dragging the substates around in the region they should belong to seems to fix this, sometimes moving the dashed line between the two regions up or down a few pixels seems to fix it, but sometimes there's nothing that seems to work. Is there any way to reliably assign a state to a region (preferrably without creating new states which would be very painful when changing an existing diagram)?
Thanks,
Rainer.