tja
November 1, 2018, 3:47pm
1
Hi everybody.
I have a lot of use case diagrams. Each use case has several requirements associated with a trace relationship. In a generated document (doc composer) i want to plot all requirements for the respective use case in a table. Is this possible?
Thanks a lot
You can customize a Template XML to retrieve the requirement from use case.
<?xml version="1.0" encoding="UTF-8"?>
<ElementBaseInitiationBlock>
<Inline template="General/Element Basic"/>
<!-- Check whether connects with Requirement by trace-relationship -->
<ForEachRelationshipConditionChecker>
<Conditions>
<ValueChecker property="stereotypes" value="trace"/>
<ToElementConditionChecker>
<ValueChecker property="modelType" value="Requirement"/>
</ToElementConditionChecker>
</Conditions>
<Text style="@heading+">Traced Requirement(s)</Text>
<ParagraphBreak/>
<!-- For-Each the trace-relationships -->
<ForEachRelationship>
<Conditions>
<ValueChecker property="stereotypes" value="trace"/>
<ToElementConditionChecker>
<ValueChecker property="modelType" value="Requirement"/>
</ToElementConditionChecker>
</Conditions>
<!-- Get the Requirement -->
<ToElement>
<!-- Show Requirement by its "Basic" template -->
<Inline template="Basic"/>
</ToElement>
</ForEachRelationship>
</ForEachRelationshipConditionChecker>
</ElementBaseInitiationBlock>
Sample: