THPDFSchematronSummary Record
규칙 수, 위반 총계, 엔진 가용성과 함께 한 번의 Schematron 실행을 요약합니다
선언
THPDFSchematronSummary= record
Profile: AnsiString;
TotalRules: Integer; // number of <assert>/<report> entries scanned
Evaluated: Integer; // rules whose contexts and tests were processed
Skipped: Integer; // legacy/stub engines only; zero for XE2+
EvaluationErrors: Integer;// rule expressions that could not be executed
Violations: Integer; // asserts that failed + reports that fired
EngineAvailable: Boolean; // False on Delphi 7 stub
EngineNote: AnsiString; // human-readable availability / error reason
end;
유닛
HPDFEInvoiceValidator
필드
| 필드 | 목적 |
|---|---|
Profile | 로드된 Schematron의 profile 식별자. 인보이스 conformance 레벨과 일치 |
TotalRules | 스캔한 <assert>와 <report> 항목 수 |
Evaluated | context와 test가 실제로 처리된 규칙 수 |
Skipped | 레거시 또는 stub 엔진이 건너뛴 규칙 수. XE2 이상에서는 0 |
EvaluationErrors | 실행하지 못한 규칙 식 수 |
Violations | 실패한 assert와 발동한 report의 합계 |
EngineAvailable | Delphi 7 stub 엔진만 있으면 False |
EngineNote | 사람이 읽을 수 있는 가용성 또는 오류 사유 |
사용 참고 사항
- 요약은
IHPDFESchematronEngine.LastSummary또는THPDFEInvoiceValidationReport.BusinessSummary에서 읽습니다 - 카운트는 미리 계산되어 있으므로, 호출자는 규칙 배열을 훑지 않고도 한 줄짜리 결과를 그릴 수 있습니다
EngineAvailable가 False면 비즈니스 규칙이 실행되지 않은 것이므로, 하이브리드 인보이스는 fail closed해야 합니다