모든 검사 규칙 세트가 범용 액세스 내에서 실행될 수 있도록 검사 규칙 인터페이스를 사용해야 함에 유의하십시오. 인터페이스는 아래에 설명되어 있습니다.
<?xml version="1.0" encoding="UTF-8"?> <RuleSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.curamsoftware.com/ CreoleRulesSchema.xsd" name="ScreeningInterfaceRuleSet"> <!-- This class must be extended by all rule sets invoked by the Citizen Portal screening results processing. --> <Class name="AbstractScreeningResult" abstract="true"> <Initialization> <Attribute name="calculationDate"> <type> <javaclass name="curam.util.type.Date"/> </type> </Attribute> </Initialization> <!-- The programs supported by this Screening Ruleset. --> <Attribute name="programs"> <type> <javaclass name="List"> <ruleclass name="AbstractProgram"/> </javaclass> </type> <derivation> <!-- Subclasses of AbstractScreeningResult must override this attribute to create a list of the Programs supported by the rule set. --> <abstract/> </derivation> </Attribute> </Class> <!-- This class must be extended by all programs supported in the rule set. --> <Class name="AbstractProgram" abstract="true"> <!-- Identifies the program as configured in the Citizen Portal administration application. --> <Attribute name="programTypeReference"> <type> <javaclass name="String"/> </type> <derivation> <abstract/> </derivation> </Attribute> <!-- Whether the claimant is eligible for this program. --> <Attribute name="eligible"> <type> <javaclass name="Boolean"/> </type> <derivation> <abstract/> </derivation> </Attribute> <!-- The localizable explanation as to why the claimant is or is not eligible for this program. May contain HTML formatting/hyperlinks/etc. --> <Attribute name="explanation"> <type> <javaclass name="curam.creole.value.Message"/> </type> <derivation> <abstract/> </derivation> </Attribute> </Class> </RuleSet>
검사 규칙 세트에는 위에서 설명한 AbstractScreeningResult 규칙 세트를 확장하는 클래스가 포함되어야 합니다.
AbstractTriageResult 규칙 클래스의 이 사용법은 규칙 실행 동안 필수 속성을 사용할 수 있도록 보장합니다.