Book a Demo

Author Topic: States do not allow to “Select Composite Diagrams” anymore once a classifier is  (Read 36897 times)

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1000
  • Karma: +58/-18
    • View Profile
At least for SysML states within a state machine diagram which are e.g. classified by another state machine do not allow to “Select Composite Diagrams” because the menu item “New Child Diagram” is not shown anymore.
If not regard it as a feature request.

Bug reported
« Last Edit: September 26, 2025, 12:32:10 am by PeterHeintz »
Best regards,

Peter Heintz

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
If I understand correctly, the 'Select Composite Diagrams' is not necessary because we can open the child diagram by double-clicking the state.

To create a state which is related to another State Machine:
- drag a State Machine element from the Browser onto a diagram and select 'Invocation (State)'  - or -
- right click an existing State element and select 'Advanced' | 'Instance Classifier' and then select a target State Machine

In either case, we can move to the related StateMachine diagram by the double-click. I do not think we need to specify or change the child diagram to another.
--
t-kouno

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1000
  • Karma: +58/-18
    • View Profile
Takeshi, your second option is what I typically do. However, in ideal world I would assign the classifier to the state and by that, the link to the diagram is there out of the box. But it is not. Even worse, after assigning the classifier, I can not link to the classifier state machine diagram any longer, because the menu is gone.
 
To get it work I have to first assign the classifier state machine diagram to the state before I classify the state.
This is what the issue is about. I thing there is is absolutely  no need the hide the “Select Composite Diagrams” menu item once the state is classified.
Best regards,

Peter Heintz

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Hello PeterHeintz,

Thank you for your reply. However, there are still some uncertainties.

State elements must be classified by State Machine elements. When we create a new State Machine element, a child StateMachine diagram is always created. Therefore, I don't believe we need to manually link the state to any diagram. I think it is reasonable that we cannot change the linked diagram from the classifier's (in this case StateMachine's) diagram to another.

Maybe I misunderstand something...
--
t-kouno

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1000
  • Karma: +58/-18
    • View Profile
Hi, the issue is that I typically create the upper level state machine diagram first and add in all relavant states.

Later I start thinking how to refine the state details and if I decide to continue with a "state machine" refinement I create the state machine to be used to classify one of my upper level states.
It would be nice if EA would create (when I classify my upper level state machine state with the lower level state machine) the link to the lower level state machine diagram automatically.

But it does not!
Even worse EA does not allow the link to that diagram any longer ,because the menue disappears.

Therfore I always have to link to the state machine diagram first before I classify the state with the state machine.
This is what this issue is about.
Best regards,

Peter Heintz

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Thank you for your reply, now I understand the situation.

There is a difference by the steps:
create a State, then create a Statemachine, and then
- specify the StateMachine as a type for the State
- specify the StateMachine's child diagram for the child diagram for the State, then specify the type

In both cases, we can move the child diagram of the StateMachine by double-clicking the State. However, in only the latter case can we see the 'link' mark and the 'eye' icon to view the diagram.

This might be a bug because we can move the 'child' diagram in both cases (i.e., the state is linked to the diagram), but there is no linking mark in the former case.
--
t-kouno

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1000
  • Karma: +58/-18
    • View Profile
Almost;)
in case: then
- specify the StateMachine's child diagram for the child diagram for the State, then specify the type
all works fine
but in case: then
- specify the StateMachine as a type for the State
neither the link is show nor it works (I assume just not there) nor it is possible to correct that because the menu item is gone.
Best regards,

Peter Heintz