Maybe it is just me, but I am having a hard time to make my shape script work on stereotyped components and interfaces.
Results when applied on usecase types are very good, however on components and interfaces it seems to be a no-go.
Before I file that bug - can someone please try out the following shape script (including decorations) on a stereotyped component just to see whether it works in general or not ? I do not even get blue and red rectangles to see.
shape main
{
setFillColor(0,0,255);
rectangle(20,20,100,100);
}
decoration linkeddocument
{
setFillColor(255,0,0);
rectangle(0,0,100,100);
/*if (hasproperty("haslinkeddocument","true"))
{
image("document.png",10,10,70,90);
}*/
}
Thanks in advance.
Oliver