단순 예제

다음은 단순 규칙 세트에 대한 XML입니다.

그림 1. Hello World 규칙 세트
<?xml version="1.0" encoding="UTF-8"?>
<RuleSet name="HelloWorldRuleSet"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation=
"http://www.curamsoftware.com/CreoleRulesSchema.xsd">
  <Class name="HelloWorld">

    <Attribute name="greeting">
      <type>
        <javaclass name="String"/>
      </type>
      <derivation>
        <String value="Hello, world!"/>
      </derivation>
    </Attribute>

  </Class>

</RuleSet>

다음은 위의 규칙 세트에 대해 생성된 RuleDoc으로 단일 규칙 클래스를 나열합니다.

그림 2. HelloWorldRuleSet의 RuleDoc위의 규칙 세트에 대해 생성된 규칙 문서입니다.

HelloWorld 규칙 클래스를 클릭하면 다음과 같은 RuleDoc이 표시됩니다.

그림 3. HelloWorld 규칙 클래스의 RuleDoc위의 규칙 클래스에 대해 생성된 규칙 문서입니다.

greeting 속성을 클릭하면 다음과 같이 파생 사항으로 화면 이동합니다.

그림 4. greeting 규칙 속성의 RuleDoc위의 규칙 속성에 대해 생성된 규칙 문서입니다.