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

&nbsp; &nbsp; &nbsp; &nbsp; 
path="templates/bpm4jformular/validation/validationFilter.java.vsl"

&nbsp; &nbsp; &nbsp; &nbsp; outputPattern="$generatedFile"

&nbsp; &nbsp; &nbsp; &nbsp; outlet="validation"

&nbsp; &nbsp; &nbsp; &nbsp; overwrite="true">

&nbsp; &nbsp;&nbsp; &nbsp;<modelElements variable="validationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<modelElement 
stereotype="ValidationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<type 
name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</modelElement>

&nbsp; &nbsp;&nbsp; &nbsp;</modelElements>

&nbsp; &nbsp; </template>

&nbsp; &nbsp;<template

&nbsp; &nbsp; &nbsp; &nbsp; 
path="templates/bpm4jformular/validation/validationFilterImpl.java.vsl"

&nbsp; &nbsp; &nbsp; &nbsp; outputPattern="$generatedFile"

&nbsp; &nbsp; &nbsp; &nbsp; outlet="validation"

&nbsp; &nbsp; &nbsp; &nbsp; overwrite="false">

&nbsp; &nbsp;&nbsp; &nbsp;<modelElements variable="validationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<modelElement 
stereotype="ValidationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<type 
name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</modelElement>

&nbsp; &nbsp;&nbsp; &nbsp;</modelElements>

&nbsp; &nbsp; </template>

&nbsp; &nbsp;<template

&nbsp; &nbsp; &nbsp; &nbsp; 
path="templates/bpm4jformular/population/populationFilter.java.vsl"

&nbsp; &nbsp; &nbsp; &nbsp; outputPattern="$generatedFile"

&nbsp; &nbsp; &nbsp; &nbsp; outlet="population"

&nbsp; &nbsp; &nbsp; &nbsp; overwrite="true">

&nbsp; &nbsp;&nbsp; &nbsp;<modelElements variable="populationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<modelElement 
stereotype="PopulationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<type 
name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</modelElement>

&nbsp; &nbsp;&nbsp; &nbsp;</modelElements>

&nbsp; &nbsp; </template>

&nbsp; &nbsp;<template

&nbsp; &nbsp; &nbsp; &nbsp; 
path="templates/bpm4jformular/population/populationFilterImpl.java.vsl"

&nbsp; &nbsp; &nbsp; &nbsp; outputPattern="$generatedFile"

&nbsp; &nbsp; &nbsp; &nbsp; outlet="population"

&nbsp; &nbsp; &nbsp; &nbsp; overwrite="false">

&nbsp; &nbsp;&nbsp; &nbsp;<modelElements variable="populationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<modelElement 
stereotype="PopulationFilter">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<type 
name="de.dpcom.metafacades.uml.JFormularInstanceFacade"/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</modelElement>

&nbsp; &nbsp;&nbsp; &nbsp;</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&#58;Object xmi.id='_9_0_f400345_1114006482633_732319_1231' 
name='zipCodeLengthValidation' 
classifier='_9_0_f400345_1114013801376_400174_3966'>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;<UML&#58;ModelElement.stereotype>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;<UML&#58;Stereotype 
href='dpcom-profile.xml.zip|_9_0_f400345_1116401137575_379370_109'>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;<XMI.extension xmi.extender='MagicDraw UML 9.0' 
xmi.extenderID='MagicDraw UML 9.0'>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<referentPath 
xmi.value='de&#58;&#58;dpcom&#58;&#58;profile&#58;&#58;stereotypes&#58;&#58;class&#58;&#58;ValidationFilter'/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;</XMI.extension>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;</UML&#58;Stereotype>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;</UML&#58;ModelElement.stereotype>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;<UML&#58;Instance.slot>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;<UML&#58;AttributeLink xmi.id='_9_0_f400345_1114067145739_996055_317' 
attribute='_9_0_f400345_1114013891157_534363_3982' 
value='_9_0_f400345_1116424238200_955566_92'/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;</UML&#58;Instance.slot>

</UML&#58;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">

&nbsp; &nbsp; &nbsp; &nbsp; <mapping 
class="org.omg.uml.behavioralelements.commonbehavior.Instance$Impl">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<stereotype>PopulationFilter</stereotype>

&nbsp; &nbsp; &nbsp; &nbsp; </mapping>&nbsp; &nbsp; &nbsp; &nbsp; 

&nbsp; &nbsp; </metafacade>

&nbsp; &nbsp;<metafacade 
class="de.dpcom.metafacades.uml.JFormularInstanceFacadeLogicImpl">

&nbsp; &nbsp; &nbsp; &nbsp; <mapping 
class="org.omg.uml.behavioralelements.commonbehavior.Instance$Impl">

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<stereotype>ValidationFilter</stereotype>

&nbsp; &nbsp; &nbsp; &nbsp; </mapping>&nbsp; &nbsp; &nbsp; &nbsp; 

</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

Reply via email to