CER 규칙 세트에서 애플리케이션 코드 테이블을 데이터 유형으로 사용할 수 있습니다.
코드 테이블 항목의 인스턴스를 작성하려면(즉, 코드 테이블에서 특정 항목을 참조하려면) 코드 표현식을 사용하십시오.
<?xml version="1.0" encoding="UTF-8"?> <RuleSet name="Example_codetableentryDataType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://www.curamsoftware.com/CreoleRulesSchema.xsd"> <Class name="Person"> <Attribute name="gender"> <type> <!-- 이 속성의 값은 Cúram 코드 테이블 "Gender"의 항목이 됩니다. --> <codetableentry table="Gender"/> </type> <derivation> <specified/> </derivation> </Attribute> <Attribute name="isMale"> <type> <javaclass name="Boolean"/> </type> <derivation> <!-- "Code"를 사용하여 비교할 코드 테이블 항목 값을 작성하십시오. --> <equals> <reference attribute="gender"/> <Code table="Gender"> <!-- 코드 테이블의 코드 --> <String value="MALE"/> </Code> </equals> </derivation> </Attribute> </Class> </RuleSet>