IWriteMetadataPlugin - CheckMandatoryField
Checks whether a certain metadata field value is empty or not empty. If the value is empty, a ValueEmptyException is raised.
Plugin Configuration
The following workset fields need to be configured:
| Field Name | Field Level |
|---|---|
| The name of the field specified in the MetadataField parameter | The level of the field specified in the MetadataFieldLevel parameter |
The following parameters can be configured:
| Parameter | Required | Default value | Allowed values | Description |
|---|---|---|---|---|
| MetadataField | Yes | The metadata field that needs to be checked for emptiness. | ||
| MetadataFieldLevel | No | lng | logical, version, lng, annotation, reply | The metadata field level that needs to be checked for emptiness. |
plugin name="CHECKANNOTATIONTEXTONREPLY" example
<plugin name="CHECKANNOTATIONTEXTONREPLY" handler="CheckMandatoryField" ishcondition="CurrentAction in ('Create', 'Update') and (ISHLevel='reply')">
<description>Checks that the annotation text is filled in for replies</description>
<workingset>
<ishfields>
<ishfield name="FISHANNOTATIONTEXT" level="reply"/>
</ishfields>
</workingset>
<initialize>
<parameters>
<parameter name="MetadataField">FISHANNOTATIONTEXT</parameter>
<parameter name="MetadataFieldLevel">reply</parameter>
</parameters>
</initialize>
</plugin>