Page 1 of 1

How to show the SD of activity inside a state machine ?

PostPosted: Wed Oct 17, 2018 3:47 pm
by John S
Hi,

We have a state machine as you see in [1].
The Running state has an Entry activity connected to an activity diagram as seen in [2].
Inside the activity diagram we have couple of Opaque Actions. One inside the SUT block (of swimlane) and one part of the Target block.

When we simulate this state machine and auto-generate the Sequence Diagram for it we would like to see the actors and System Under Test (SUT) blocks it means the internal interactions of the Running state. But we only see the states of the state machine in the sequence diagram generated (see [3]).

During the simulation it shows the transitions in [2] from Swimlane owners it means from EndUser to SUT to Target but the auto-generated Sequence Diagram doesn't show them.

How can we show the interaction of the Swimlane owners (blocks) [2] in the auto-generated Sequence Diagram ?

Thanks,
John

[1]
1.PNG


[2]
2.PNG


[3]
3.PNG

Re: How to show the SD of activity inside a state machine ?

PostPosted: Mon Oct 22, 2018 3:54 am
by chairat_p
Hello, John

Please see the sample model which have connectors between blocks via ports. Also see documentation:
https://docs.nomagic.com/display/CSTTWR ... ce+diagram

Best Regards,
Chairat

Re: How to show the SD of activity inside a state machine ?

PostPosted: Mon Oct 22, 2018 2:37 pm
by John S
Hi Chairat,

Thanks for the example. But your example is not matching to our use case. You have just a state machine for waiting some time but our use case is our system has a state machine (think a vending machine or Coffee Machine). Then each state has an internal activity diagram. Now when we simulate the state machine we see only the sequence diagram created for different states of the state machine. We don't see the blocks (A and B in your example) of the swimlane of an activity diagram inside each state.

Note1: You will see the same issue if you right click on your State Diagram and simulate that you see the picture as below in [1]. In your case your state machine doesn't have any inner activities but if you had that you would still see the picture as [1] for your generated state machine.

Note2: The documentation link you sent requires a login/password

Thanks,
John

[1]
1.PNG

Re: How to show the SD of activity inside a state machine ?

PostPosted: Fri Oct 26, 2018 2:57 am
by chairat_p
Hello, John

Thanks for the useful info. We're investigating the issue, and this is probably a bug as you mentioned. We'll try our best to fix it for the next service pack.

Best Regards,
Chairat