...
The metadata structure of object types has to be defined in the schema. In this definition, properties are referenced that should be connected to the object type. Each property is in turn defined in the schema by the specification of its attributes. The properties can be referenced or not referenced in object type definitions, but their attributes are fixed and can not cannot be modified. There The required
attribute is the only exception as it can be overwritten by a propertyReference
in object type definitions. This makes it possible to decide for each property individually whether it is required in every single object type definition or not. Since schema structures can even be changed at runtime, yuuvis® Momentum offers a high flexibility in terms of document lifecycle management.
...
In an import management system, documents might may be imported with less properties than they will have lateron in their lifecycle. A freshly imported object for example does not necessarily have an editor. Later in the document lifecycle, this information may be required. By overwriting the required
attribute of the editor
property editor
, it is possible to use the same property throughout the entire lifecycle.
In the example code below, the editor
property is defined. The required
attribute of the editor
property is set to true
. If not overwritten by a propertyReference
, the editor
property will be mandatory for any object of a type including containing the editor
property in its definition.
...
In a document type definition, a propertyReference
can be used to set a value for the required
attribute of a property. This value can be different from the value specified in the property definition. In this case, the value of the required
attribute will have the value soecified be specified in the document type definition.
...
Overwriting Using a Secondary Object Type Definition
An alternative possibility option to reference a property in an object type definition is to include a floating secondary object type. Also in In the secondary object type definition, a propertyReference
can be used to set a value for the required
attribute for a property. The required
attribute value specified in the original property definition is again overwritten.
...
In the example code below, a document type imported3
is defined. The editor
property is included, but the required
attribute is overwritten to false
. Thus, which makes the editor
property would be property optional. However, the two secondary object types noeditor
and witheditor
may have different values specified for the required
attribute of the editor
property.
...
This tutorial gave an introduction into the possibilities provided by the option of overwriting the required
attribute of properties. Since this topic plays a role in the handling of the schema, also the following pages might be interesting for to you.
Info | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||
Read on
|
...