[ http://jira.andromda.org/browse/BPM-256?page=comments#action_12130 ] Wouter Zoons commented on BPM-256: ----------------------------------
there is documentation regarding this kind of stuff, basically you would just need to use the cartridge but override one or more templates, see this documentation: http://docs.andromda.org/andromda-cartridges/index.html#mergeLocation to learn what properties you can call on the Velocity variables see these JavaDocs: (generic: http://galaxy.andromda.org/docs/andromda-metafacades-uml/apidocs/index.html) (bpm4struts: http://galaxy.andromda.org/docs/andromda-bpm4struts-cartridge/apidocs/index.html) for example, if you see $action in a bpm4struts template it's most likely an instance of StrutsAction (http://galaxy.andromda.org/docs/andromda-bpm4struts-cartridge/apidocs/org/andromda/cartridges/bpm4struts/metafacades/StrutsAction.html) good luck! (btw, you'll see it's actually fun to play ith a cartridge like that) > Dummy list should use a factory, not "new" > ------------------------------------------ > > Key: BPM-256 > URL: http://jira.andromda.org/browse/BPM-256 > Project: Bpm4Struts Cartridge > Type: Bug > Versions: 3.1-RC1 > Reporter: Igor Kuzmitshov > Assignee: Wouter Zoons > > Currently generated dummy list uses "new" to create dummy data: > private static final com.my.data.Phone[] phoneListDummyList = > new com.my.data.Phone[] > { > new com.my.data.Phone(null, "number-1"), > new com.my.data.Phone(null, "number-2"), > new com.my.data.Phone(null, "number-3"), > new com.my.data.Phone(null, "number-4"), > new com.my.data.Phone(null, "number-5") > }; > resulting in compilation error (because entity representing class is > com.my.data.PhoneImpl): > .../PhoneControllerImpl.java:56: com.my.data.Phone is abstract; cannot be > instantiated > new com.my.data.Phone(null, "number-5") > ^ > A factory could be created to populate the list. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php