Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsState machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1784430/#msg_1784430
I see that it is possible viewing this YouTube example:
I have followed the tutorials and have successfully animated the Activity diagrams found in the BasicActiveObjectExample. However, when I add a simple 2 state state machine to the Increment class, it does not animate.
Animation of state machines seems to be a hole in the available documentation as well as in the available YouTube videos. If a detailed tutorial exists, please point me toward it.
I have attached the exported files. Perhaps I'm not initializing something I should?]]>Steve Zielinski2018-03-27T19:54:45-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1784450/#msg_1784450
do you have the Moka components installed?
And there is an issue starting the simulation working with the Moka debug perspective.
Please try to start the simulation within the Papyrus perspective and switch to the Moka perspective after the animation is running.
/Carsten ]]>Carsten Pitz2018-03-28T07:05:22-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1784521/#msg_1784521
Yes, I do have the Moka components installed.
I seem to have gone backwards - the BasicActiveObjectExample is no longer executing reliably. I will have to reload and try again.
Steve
]]>Steve Zielinski2018-03-28T21:53:23-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1785090/#msg_1785090
Did you select the org.eclipse.papyrus.moka.fuml.statemachines execution engine ?
Maurice]]>THEOBALD Maurice2018-04-09T11:48:47-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1797879/#msg_1797879
I now have the BasicActiveObjectExample running and animating. However, no breakpoints appear to work. I have tried setting breakpoints on items labeled [Activity Edge] and those labeled [Activity Node], yet Moka never hits the breakpoints.
I have attached an image of the incrementMethod showing multiple blue dots.
I do notice something interesting in the "Breakpoints" tab. Each breakpoint is listed as "BasicActiveObjectExample.uml". This is also shown in the attached image.
This is unlike the ModelExecution tutorial where the breakpoint tab shows things like " ObjectFlow5" and "read counter".
Ideas??]]>Steve Zielinski2018-11-07T22:27:43-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1797881/#msg_1797881
See attached image.
I then re-generated the Increment_Factory.
I then created a new Debug Configuration using org.eclipse.papyrus.moka.fuml.statemachines
as the Execution Engine. See attached image.
The statemachine did not animate. Both the IncrementClassifierBehavior diagram and the incrementMethod did animate.
]]>Steve Zielinski2018-11-07T23:12:25-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1797928/#msg_1797928
However, completely exiting Eclipse and re-starting now has breakpoints working. When I came back into the project, I noticed all the existing breakpoints had been removed. I created one and it worked.
I do continue to note, however, the "Breakpoints" tab lists the breakpoint as BasicActiveObjectExample.uml (nothing more specific than that).]]>Steve Zielinski2018-11-08T16:15:29-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1804279/#msg_1804279
I've been also struggling with Moka simulation for both activity and state machine diagrams. If you clone the Moka source code from its Eclipse Git repository:
You can find therein in the directory ./bundles/core/engines/org.eclipse.papyrus.moka.fuml.statemachines/resources/tests/ the Papyrus model PSSM_TestSuite.di, which contains dozens of valid activity/statemachine test models.
I've tested those in model folder Behavior. You can run all them by executing the activity BehaviorTests or by individual cases. For both, create a Moka run configuration that uses as execution engine the org.eclipse.papyrus.moka.fuml.statemachines . To select the element to be executed you cannot rely on the drop-down combo box, since the huge number of behaviors in the model makes Eclipse to collapse, but you can transverse this list using the arrow keys up/down until you find the activity you want to simulate. Remember to have opened beforehand the activity/state machine models you want to visualized. It is not working the automatic opening of models option that you can configure in the Moka Animate view.
Hope this helps!.
Yosu]]>Jesús Gorroñogoitia2019-03-21T17:20:50-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1805780/#msg_1805780
Thank you for the reply.
Your directions did help. I did not clone the Git repository yet.
My simple 2 state statemachine did start to animate! However, not for long.
I see it follow the initial transition into State1. Then I get a java.lang.NullPointerException.
I don't know how to get further information about that exception in order to debug it. Is there a way to view the code itself?
Thanks for your help,
Steve
]]>Steve Zielinski2019-04-23T20:31:42-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1805891/#msg_1805891
https://youtu.be/eFprYBUCpvc
https://youtu.be/eFprYBUCpvc]]>Steve Zielinski2019-04-26T16:34:27-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1805934/#msg_1805934
Could you also post your simple model ?]]>THEOBALD Maurice2019-04-29T05:21:50-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1805982/#msg_1805982
Steve Zielinski2019-04-29T17:56:36-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1806233/#msg_1806233
It seems that your model is not conform to the norm since you want to run a standalone state machine which is not active.
According to the PSSM norm, if the state machine is not active then the there is no object activation for this element and there is no way to receive events. This is a known bug that Moka should provide better error messages or at lease validate the model.
So to fix your problem, it seems that you should set the field "isActive" of your state machine to true.
HTH,
Pauline]]>Pauline Deville2019-05-06T15:47:28-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1836939/#msg_1836939
Chao Tan2021-01-19T11:18:04-00:00Re: State machine animation
https://www.eclipse.org/forums/index.php/mv/msg/1092505/1837054/#msg_1837054
Papyrus Team]]>Patrick Tessier2021-01-21T13:13:40-00:00