Administration spécialisée > Personnalisation des objets métier > Administration des règles d'initialisation d'un objet > Understanding Object Initialization Rules > Specifying Object Initialization Rules in a Context Template
  
Specifying Object Initialization Rules in a Context Template
The recommended method for including a specific set of object initialization rules in a context template is to set the rules in an existing context using the Object Initialization Rules Administration utility. Then, either save the current context as a template or export the context to a ZIP file on your system. Be sure to select the Object Initialization Rules option when you save or export a context. After you have a ZIP file containing the object initialization rules (along with any other administrative items you want in the template), import the template using the ZIP file as input.
For the details on how to create a context template, see Context Templates – Reference.
The XML file containing the object initialization rules in a context template includes the specification of TypeBasedRule elements as described in Setting File-based or State-based Versioning for Objects as well as additional elements that define what is being set through the template.