|Issue with code generation [message #1807912]
||Wed, 12 June 2019 08:22
| Yoann Farre
Registered: November 2017
Using the C++ code generator, I obtain an error that looks like to a bug but I'm not sure about.
The use case is the following one:
I generate automatically a transition in a state machine from a sequence diagram. To keep a link between the transition and the sequence diagram which produces the transition, I created a stereotype applied on the transition which contains a Message as stereotype attribute.
When I generate the code, I want to generate the state machine of the class but the sequence diagram and the Message is useless fot that use case so I applied the Stereotype NoCodeGen (C_Cpp profile) on the package which contains the sequence diagram (and all owned elements).
Now, if I generate the code from this model, I obtain an error (see attached files : pop up and stack trace).
If I remove the message from the transition (so I break the link), the error doesn't occur.
To generate the code correctly, I have to close and open the model.
Seeing the error log, I suppose that the transformation chain try to access to the values of SendEvent and Receive Event elements of the Message.
I precise that the Message Occurence Specifications are stored in the same resource (MyModel.uml) than the other UML elements.
Could you help me with this issue?
(Size: 7.44KB, Downloaded 18 times)
(Size: 19.29KB, Downloaded 77 times)
Powered by FUDForum
. Page generated in 0.01567 seconds