1
General Board / Re: Generate Code from Interaction and Activity diagrams
« on: April 21, 2018, 04:58:40 am »
Yeah the documentation for this is completely absent. I finally figured this out. Here are the steps.
1. Go select a class.
2. Right Click Choose "Add/Interaction/With Sequence Diagram"
This will create a Interaction (Sequence) Diagram for you.
a. Be aware the Interaction is represented as a method/operation in your class. Click on properties and you can set its name and arguments.
3. Now go back to your class and drag it onto the Interaction.
4. When the Dialog asks you to Drop As: Choose Not Link, but LifeLine from the option window
Now hit generate code and you will see the (Interaction(Sequence) diagram) in your code.
1. Go select a class.
2. Right Click Choose "Add/Interaction/With Sequence Diagram"
This will create a Interaction (Sequence) Diagram for you.
a. Be aware the Interaction is represented as a method/operation in your class. Click on properties and you can set its name and arguments.
3. Now go back to your class and drag it onto the Interaction.
4. When the Dialog asks you to Drop As: Choose Not Link, but LifeLine from the option window
Now hit generate code and you will see the (Interaction(Sequence) diagram) in your code.