A customer asked me:
I've done a UML diagram of my business domain classes. How can I generate business components from this? When I click on the Generate menu in the right mouse, everything is greyed out.
Here is problem is one of terminology. The user is thinking "generate", and indeed we have a Generate menu item, so he understandably goes for that menu. What he's looking for is actually under the Transform menu pick in that same right-mouse menu. I'm not sure what the semantic subtlety between Transforming and Generating is, so I'll probably file a bug to have this clarified, but in the meantime, here's how to do what he wants to do:
-
Select the UML classes and associations in the UML diagram that you want to transform.
You could do that with a lasso-select of everything in a rectangle, or [Ctrl]-clicking a number of elements separately.
-
Pick the Transform option on the right-mouse menu, and decide whether you want to transform the selected UML element into a:
-
Model Only
which will just create the target classes/components
-
Same Diagram
which creates the target classes/components and adds them to the same diagram
-
New Diagram
which created the target classes/components and adds them to a new diagram.
-
At that point, a dialog appears asking you to confirm whether you want to transform the selected UML elements into Java classes, or ADF business components. Confirm your choice, and away it goes!
11:56:54 AM
|
|