Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: Robo on June 18, 2008, 04:58:32 pm
-
I have some problems during generation of RTF reports. If I try the following in the template:
external requirements>
{ElemExtRequirement.Name}{ElemExtRequirement.Type}
{ElemExtRequirement.Notes}
<external requirements
The field '{ElemExtRequirement.Type}' is replaced by 'Requirement'. I expected something like 'Safety' as selected in the properties dialog of the requirement. The other fields are replaced as expected.
I had a realization relationship of a component with a requirement. I am not sure if this has something to do with the issue mentioned in my last post (problems with realisation relationship) some days before.
Any help is welcome!
-
It looks like the {ElemExtRequirement.Type} is accessing the element type, which will always be 'Requirement' for requirements. If I'm understanding you correctly, I think that the field you're after is in Stereotype. So try {ElemExtRequirement.Stereotype} if that is available.
-
hm, it seems to work with the stereotype ...
I think it's a little bit confusing if I set Type 'Safety' in the requirement properties dialog and have to use the stereotype field in the template editor to receive the type of requirement. :-?
Anyway, many thanks for the hint.
-
I agree, it is a bit confusing.
What I guess is happening is that it is reusing the existing element substitutions, where {Elem.Type} could be Class, Actor, Requirement etc.
So the requirement type is something like a subtype, and often this is what a stereotype represents.