Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The xpxValidateGlobalRule function invokes the EDMmodelChecker  to validate the specified data model against the specified global rule. The specified global rule must be defined in the dictionary model (Express schema) that is the underlying schema of the specified data model, or the global rule must be defined in an EDMruleSchema appropriate to the specified data model. The actual data model must be open before this operation can be successfully performed. The expressions logging can be used to log (trace) the execution of the global rule in the EDMexpressVM. The EDMsupervisor  and the interactive EDMdebugger can be used for testing and debugging global rules as well as getting detailed information of a validation process. A globalRuleId can be retrieved by the xpfGetGlobalRule operation.

Arguments

...

TypeNameComment
GENERICmodelId
 
 A numeric modelID that uniquely identifies the data model of interest in the EDMdatabase
GENERICglobalRuleId
 
 A numeric globalRuleID that uniquely identifies the global rule to validate.
STRINGuserOutputFile Specifies the name of a file that will be used to receive the result of executing the xpxPrintf and xpxOutputValue function in the actual global rule. The specified file can be an existing file or the name of a file that will be created by the EDMmodelChecker. The default file extension is ".txt". The output of the xpxPrintf and xpxOutputValue function in the actual global rule will be written to the EDMinterface current output device when the <userOutputFile> is set to NULL.
LOGICALresult 

Address of a LOGICAL variable that will receive the result of the validation operation. The returned result is as follows:

result
  • TRUE: No global rule violation.
  • FALSE: Actual data model violates specified global rule.
  • UNKNOWN: Unpredictable result due to unset values or error in operation. 

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

...