A Simple Example

Here is the XML for a simple rule set:

Figure 1. A Hello World rule set
<?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>

Here is the generated RuleDoc for the above rule set, listing its single rule class:

Figure 2. RuleDoc for the HelloWorldRuleSetThe generated rule documentation for the above rule set.

Clicking on the HelloWorld rule class shows its RuleDoc:

Figure 3. RuleDoc for the HelloWorld rule classThe generated rule documentation for the above rule class.

And clicking on the greeting attribute scrolls to its derivation:

Figure 4. RuleDoc for the greeting rule attributeThe generated rule documentation for the above rule attribute.