Insert a Context
You can define a context to get the chapter titles of a requirement specification.
-
From the Data
tab,
drop the To Specification Structure method from the
Outgoing Relationships folder of the
reqSpec variable into the work area.
A loop onto the specification structure appears in the work area. The associated iteration rel variable appears in the Data tab.
-
From the Structures list, drop the
Context element into the loop.
A context area is added to the loop. The default context name is c, you can rename it by context.
-
To define the context, select the context and in the Properties
tab:
-
Optional: Replace the default name of the context.
Important: Each context name must be unique. -
In the Parameters area, click New
.
A parameter with a default name p appears in the Parameters table and in the Data tab.
- Optional:
Replace the default name by speStruct.
Important: Each parameter name must be unique. Note: You can change this name afterward even if the parameter is used. For more information, see Renaming Template Elements. - In the Type field, select the type corresponding to the type that you can exploit in the context element. For this scenario, select Specification Structure relationship.
- To create the association with the upper loop of this scenario, enter the iteration variable corresponding to the previous selected type in the Parameters area. In this scenario, enter rel for the parameter speStruct.
-
Optional: Replace the default name of the context.
-
To define the content of your context based on the parameters of this context, drop
the To Chapter method from the Outgoing
Types folder of the speStruct variable into the
context.
A loop on to chapters appears in the template. The associated iteration cha variable appears in the Data tab.
- From the Structures list, drop the Paragraph element into the loop.
- Drop the Title method from the Attributes folder of the cha variable into the paragraph.
Result:
The following context is created in the work area:

