BiProjectValidationEngine Class [AX 2012]
The BiProjectValidationEngine class is used as the engine to run validation before generating a SQL ServerAnalysis Services project.
|biProjectValidationResults||Gets or sets the value of the biProjectValidationResults property.|
|cancelTimeOut||Cancels a previous method call to the setTimeOut method. (Inherited from Object.)|
|equal||Determines whether the specified object is equal to the current one. (Inherited from Object.)|
|getTimeOutTimerHandle||Returns the timer handle for the object. (Inherited from Object.)|
|handle||Retrieves the handle of the class of the object. (Inherited from Object.)|
|new||Initializes a new instance of the BiProjectValidationEngine class.|
|notify||Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)|
|notifyAll||Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)|
|objectOnServer||Determines whether the object is on a server. (Inherited from Object.)|
|owner||Returns the instance that owns the object. (Inherited from Object.)|
|performValidation||Iterates through every registered validation classes and executes their validate method.|
|projectPerspectiveTreeNodes||Gets or sets the value of the projectPerspectiveTreeNodes property.|
|registerValidationClasses||Use this method to add new custom validation classes that extend from BiProjectValidationBase to the validation process.|
|registerValidator||Adds a BiProjectValidationBase object to the registered list of validation classes.|
|setTimeOut||Sets up the scheduled execution of a specified method. (Inherited from Object.)|
|toString||Returns a string that represents the current object. (Inherited from Object.)|
|usageCount||Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)|
|wait||Pauses a process. (Inherited from Object.)|
|xml||Returns an XML string that represents the current object. (Inherited from Object.)|
If a custom validation is to be performed when generating a SQL ServerAnalysis Services project then the developer should:
Create a new class and have that class extend from the BiProjectValidationBase class.
Add the appropriate validation logic to the class created in the first step.
Modify the registerValidationClasses method of this class by adding a new call to register the new class as a validation class so that the engine makes the necessary calls at runtime so that the validation logic is executed. This is performed by adding the following line to the registerValidationClasses method: this.registerValidator(new customProjectValidator()); where customProjectValidator is the name of the class that is created in step 1.