Role details

The 'General properties' subsection encompasses the main properties of the role. The user can provide:

  • An informal description which the user will see when he applies the pattern.


  • A conformity constraint written in OCL (see section 'The OCL Editor'). When the user checks the conformity of an instance with respect to its pattern, the conformity constraint of every role is tested against the corresponding element(s) of the instance.





  • When a pattern is being applied, each of its roles is associated to one or several elements of the user model. These elements are used either for merging the pattern elements mapped to the role or as a container for storing them, as explained above. The two subsections described below allow specialising the behaviour of the role for these two kinds of usage.

  • Subsection 'Application by merge'.
  • Subsection 'Application by addition'.