Documentation Center

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 NameField Level
The name of the field specified in the MetadataField parameterThe level of the field specified in the MetadataFieldLevel parameter
The following parameters can be configured:
ParameterRequiredDefault valueAllowed valuesDescription
MetadataFieldYes  The metadata field that needs to be checked for emptiness.
MetadataFieldLevelNolnglogical, 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>