Validation

This function is called before standard insert and standard update operations, and also before Pre-data Access functions. It provides a common place to put validation code.

The function is named autovalidate. Note that this exit point is enabled per entity rather than per operation.

The validation exit point always has exactly one parameter which is the standard details struct for the entity, and is declared to throw the same exceptions as stereotyped operations of the entity.

Since it is only insert and modify which are guaranteed to pass in the standard details struct, it is only these operation stereotypes which can utilize the validation exit point. Other operation stereotypes do not utilize this exit point, even if they have the standard details struct as one of their parameters.