Hi all,
I'm using andromda-3.1-M1-20050601014005 in my cartridge I want instances with the stereotype <<ValidationFilter>> get deployed with the following templates andromda-cartridge.xml: ... <template path="templates/bpm4jformular/validation/validationFilter.java.vsl" outputPattern="$generatedFile" outlet="validation" overwrite="true"> <modelElements variable="validationFilter"> <modelElement stereotype="ValidationFilter"> <type name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/> </modelElement> </modelElements> </template> <template path="templates/bpm4jformular/validation/validationFilterImpl.java.vsl" outputPattern="$generatedFile" outlet="validation" overwrite="false"> <modelElements variable="validationFilter"> <modelElement stereotype="ValidationFilter"> <type name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/> </modelElement> </modelElements> </template> <template path="templates/bpm4jformular/population/populationFilter.java.vsl" outputPattern="$generatedFile" outlet="population" overwrite="true"> <modelElements variable="populationFilter"> <modelElement stereotype="PopulationFilter"> <type name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/> </modelElement> </modelElements> </template> <template path="templates/bpm4jformular/population/populationFilterImpl.java.vsl" outputPattern="$generatedFile" outlet="population" overwrite="false"> <modelElements variable="populationFilter"> <modelElement stereotype="PopulationFilter"> <type name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/> </modelElement> </modelElements> </template> ... my InstanceFacade in my metafacades extends from the andromda-InstanceFacade. As you can see I do the same with instances of the stereotype <<PopulationFilter>>. This works fine! But it seems that the stereotype <<ValidationFilter>> can not be found. I had a look at the xmi of my project and found for example the following entry: ... <UML:Object xmi.id='_9_0_f400345_1114006482633_732319_1231' name='zipCodeLengthValidation' classifier='_9_0_f400345_1114013801376_400174_3966'> <UML:ModelElement.stereotype> <UML:Stereotype href='dpcom-profile.xml.zip|_9_0_f400345_1116401137575_379370_109'> <XMI.extension xmi.extender='MagicDraw UML 9.0' xmi.extenderID='MagicDraw UML 9.0'> <referentPath xmi.value='de::dpcom::profile::stereotypes::class::ValidationFilter'/> </XMI.extension> </UML:Stereotype> </UML:ModelElement.stereotype> <UML:Instance.slot> <UML:AttributeLink xmi.id='_9_0_f400345_1114067145739_996055_317' attribute='_9_0_f400345_1114013891157_534363_3982' value='_9_0_f400345_1116424238200_955566_92'/> </UML:Instance.slot> </UML:Object> ... So the stereotype of the instance is set.. and here is the relating part of my andromda-metafacades.xml: ... <metafacade class="de.dpcom.metafacades.uml.JFormularInstanceFacadeLogicImpl"> <mapping class="org.omg.uml.behavioralelements.commonbehavior.Instance$Impl"> <stereotype>PopulationFilter</stereotype> </mapping> </metafacade> <metafacade class="de.dpcom.metafacades.uml.JFormularInstanceFacadeLogicImpl"> <mapping class="org.omg.uml.behavioralelements.commonbehavior.Instance$Impl"> <stereotype>ValidationFilter</stereotype> </mapping> </metafacade> ... I wonder why there is no code generated for the stereotype <<ValidationFilter>> because it is the same with the PopulationFilter and there everything works fine!? So it seems that only one stereotype for Instances can be referrenced, because I tried out another test-stereotype and there were also nothing generated for the second stereotype (for <<PopulationFilter>> everything is ok).. Does anybody have an idea why this stereotype can not be referrenced? Thanks Timo _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=671#671 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
