Book a Demo

Author Topic: Putting States into Regions  (Read 2482 times)

rainerf

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
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:
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.
« Last Edit: September 26, 2012, 11:17:47 pm by rainerf »

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Putting States into Regions
« Reply #1 on: September 27, 2012, 01:05:41 am »
Since the EA database model stores the regions of a state(-machine) just as secondary information along with their dimensions, there's no other way to check for contained states using their positional data from the diagram. I guess this is the problem with the XMI exporter, whenever this data is inconsistent somehow.

I know this wouldn't help, but explains the behavior.

Regards,
Günther