Use EDMinterface
The EDMinterfaceâ„¢ is a very comprehensive API, and it is neither practical nor necessary to include all its functionality in the CppExpressAPI (see chapter 3.14). But since CppExpressAPI is layered on top of EDMinterface, all its functionality is available. The prototypes of all functions are defined in sdai.h.
As mentioned in chapter 3.14, rule validation is not included in the CppExpressAPI, so we can use that as an example. There are various options for validation, but we can use the most common one, and exemplify a full validation of the whole population in a data model.
SdaiRepository rep = sdaiOpenRepositoryBN("DataRepository",sdaiRO);
EdmiError rstat = edmiValidateModelBN(rep,"MyModel","DiaFile",FULL_VALIDATION | FULL_OUTPUT,NULL,NULL,validationErrorId);
Documentation of EDMinterface is found in EDMAssist Volume IV.
http://edmserver.epmtech.jot ne.com/EDMassist/WebHelp/EDMAssist.htm