Model-Based Tracing of UML models in Papyrus - Generated artifacts
Prepare your model and execute the transformation chain
In order to prepare your model for tracing, you need to add an additional set of transformations to your transformation chain. These transformations are defined in an additional transformation chain. The concrete library depends on the chosen tracing implementation. It is available as a registered model library. Also see the implementation specific part.
Since a recent extension, a whole set of transformations can be added via the attribute "additionalChains" of the stereotype ExecuteTransformationChain (or DeploymentPlan which inherits from the former). This is shown in the following screenshot.

Once, you execute the transformantion chain "normally" via the menu entry "Designer -> Transform and Generate code", the tracing chain will add the trace instrumentation to the generated code."
Custom parameter passing
If the passed data is not supported by the automatic code generation, the user can provide a trace hint.
The TraceHint stereotype from the code generation profile provides three attributes. The following example is for a
BareCTF instrumentation, but the principle is independent of a particular tracing implementation: the user can specify
a preparation code, the code to use in a configuration file (if applicable for the implementation mechanisms) and provide
his own parameter passing code.
