Is it possible to have Rhapsody generate code from sequence diagrams?
Just as a simple test, I have created 2 classes and they have round-tripped into Java code fine. I then created a simple sequence diagram using these classes and was able to realize methods on them and round-trip this.
I then thought that if I drew a message from the call to Class1.methodA on my sequence to Class2.methodB that Rhapsody would generate a call to Class2.methodB in the body of Class1.methodA. Is this how it is intended to work, I have attached a picture of my sequence diagram.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2011-12-08T09:36:39Z by SystemAdmin
Pinned topic Code generation from sequence diagrams
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-12-08T09:36:39Z at 2011-12-08T09:36:39Z by SystemAdmin
SystemAdmin 110000D4XK1305 PostsACCEPTED ANSWER
Re: Code generation from sequence diagrams2011-12-08T09:36:39Z in response to paspinallHi Patrick,
Try creating Sequence diagram in Design mode (A radio button while creating a SD)
Or, after completing the SD, do the following-
Edit > Select unrealized
Edit > Auto realize