Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Papyrus generate Java code from State Machine Diagram(Papyrus generate Java code from State Machine Diagram)
Papyrus generate Java code from State Machine Diagram [message #1810428] Sat, 10 August 2019 19:57 Go to next message
Dionisie Rosca is currently offline Dionisie RoscaFriend
Messages: 2
Registered: August 2019
Junior Member
I create a state machine diagram following this steps:

1. Build your class diagram (at least one class)
2. In the outline view, right click on the class that should get behaviour defined with a state diagram
3. Select "Add a diagram -> Create a new state machine diagram", the new SM diagram opens
4. Select StateMachine in the palette
5. Click or click-drag into the state machine diagram to position the state machine
6. Start entering states and transitions into the state machine

When I try to generate java code from the class diagram it works fine, but when I try to generate from state machine diagram i got this erro:

No classes or packages produced from the transformation. Nothing is generated.

I don't understand what it's wrong, please help.

Re: Papyrus generate Java code from State Machine Diagram [message #1810850 is a reply to message #1810428] Tue, 20 August 2019 15:26 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 228
Registered: March 2011
Location: Paris Saclay, France
Senior Member

state-machine code generation is currently only supported for C++, not for Java. The error message is caused by invoking the generator on the diagram and not on the class (e.g. via the model explorer). If you do the latter, you'll get the code for the class without state-machine support.


Previous Topic:Property in a custom palette
Next Topic:DB State Machine to Papyrus
Goto Forum:

Current Time: Mon Dec 16 02:08:09 GMT 2019

Powered by FUDForum. Page generated in 0.02125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top