|
|
|
|
|
|
|
|
|
|
Re: Exception running Moka example [message #1744950 is a reply to message #1744051] |
Mon, 03 October 2016 05:29   |
Eclipse User |
|
|
|
Hi Stephen,
Meanwhile Benoit fixed the bug, and I found the cause of your problem.
In the screenshot below, you forgot to set (actually modify) the 'element to be executed' to the generated factory, iso. the classifierbehaviour.
Still, it is at least very 'user-unfriendly' to generate an un-understandable exception if the wrong element is selected, especially since the field is filled by default, so I'll re-open the bug.
HTH,
Klaas
Stephen Blackwell wrote on Wed, 21 September 2016 14:52First off, a big "Thank you" to Géry Deloge et al for the tutorial (https://wiki.eclipse.org/Papyrus/UserGuide/ModelExecution)
I was following along but I got a Java NullPointerException when pressing debug in the "Starting an execution with a launch configuration" section.
I have attached an image of the event details.

I noticed one difference from the tutorial and that is that the New_Configuration window has an extra field. I have also attached an image of that window.

|
|
|
Re: Exception running Moka example [message #1744979 is a reply to message #1744950] |
Mon, 03 October 2016 13:40   |
Eclipse User |
|
|
|
Hi Klaas,
OK, that was the problem. The animation is working now.
I hope I'm not being rude here but I would be happy to help with the wording in the example. I guessing that English is not Jérémie's first language.
I curious about the order of the animation, specifically on the incrementMethod activity diagram. What I see is this:
First the "This" node animates, then the output pin, the control flow and the fork node.
Next the control flow to the "read counter" input pin then the "read counter" node, the "read counter" output pin and control flow to the "add" x input pin.
After that is the control flow from the fork to the "set counter" object input pin.
Then the "1" node, the "1" output pin.
etc, etc
I would have though that the "This" and the "1" node would have animated at the same time followed by their respective output nodes at the same time and then the output flows etc, etc.
So how is the animation ordering determined?
Thanks,
Steve
|
|
|
|
|
Re: Exception running Moka example [message #1748073 is a reply to message #1744979] |
Fri, 18 November 2016 05:46  |
Eclipse User |
|
|
|
Hi Stephen,
The ordering of animation follows the order in which nodes are executed by the execution engine. And the execution engine complies with the fUML specification. So, the execution order that you see with the animation is legal.
Arnaud
[Updated on: Fri, 18 November 2016 06:36] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.15690 seconds