xpxValidateGlobalRuleWithParameters


 

FUNCTION xpxValidateGlobalRuleWithParameters   (modelId                    : GENERIC;
                                                globalRuleId               : GENERIC;
                                                userOutputFile             : STRING;
                                                VAR result                 : LOGICAL;  
                                                VAR returnValue            : GENERIC;
                                                numberOfParameters         : INTEGER;
                                                argument1, ... , argumentN : GENERIC)
                                                status                     : INTEGER;

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 globalRuleId that uniquely identifies a global rule in an EDMdatabase  can be retrieved by invoking the xpfGetGlobalRule operation. A number of arguments can be supplied to the "global rule validation process" in the arguments argument1, .., argumentN. Hence the validation process can be made parameterized. The validation process can return a value to the caller through the returnValue argument. The value to return must be set in the validation process by invoking the xpxReturnValueToCaller operation. The actual data model must be open before this operation can be successfully performed.

Arguments


TypeNameComment
GENERICmodelIdA numeric modelID that uniquely identifies the data model of interest in the EDMdatabase . 
GENERICglobalRuleIdA numeric globalRuleID that uniquely identifies the global rule to validate. The globalRuleID can be found by invoking the xpfGetGlobalRule operation.
STRINGuserOutputFileSpecifies 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. The EDMinterface current output device can be defined by the edmiDefineOutputFunction operation.
LOGICALresult

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

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

Address of a variable of type PrimitiveType that is used both as an input argument and an output argument:

  • Input: specifies the expected datatype of the value returned in the <returnValue> argument. The returned value must be type compatible with the datatype specified in the <returnValueDataType> argument.
  • Output: actual data type of the return value <returnValue>. When no value is returned the <returnValueDatatype> is set to ? (INDETERMINATE).
INTEGERnumberOfParametersSpecifies the number of parameters supplied in the actual invocation of the operation. For each parameter the following two arguments must be specified in this order:
GENERICargument(n)arguments values

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.

Options


 

Example


<Missing Example>

 

See also

Filter by label

There are no items with the selected labels at this time.

Â