XML Reference

This section provides a reference to the underlying XML representation of rate.

Each rate instance contains:

The following XML implements the logic described in Example.

<?xml version="1.0" encoding="UTF-8"?>
<RuleSet name="Example_rate"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation=
"http://www.curamsoftware.com/CreoleRulesSchema.xsd">

  <!-- Rule class for a person on a case.  -->
  <Class name="Person">

    <!-- The total income for this person. -->
    <Attribute name="totalIncomeTimeline">
      <type>
        <javaclass name="curam.creole.value.Timeline">
          <javaclass name="Number"/>
        </javaclass>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

    <!-- Eligible if total income is below an income limit (from a
         rate table). -->
    <Attribute name="isEligibleTimeline">
      <type>
        <javaclass name="curam.creole.value.Timeline">
          <javaclass name="Boolean"/>
        </javaclass>
      </type>
      <derivation>
        <compare comparison="&lt;">
          <intervalvalue>
            <reference attribute="totalIncomeTimeline"/>
          </intervalvalue>
          <intervalvalue>
            <!-- code table constants for the rate table/rate
 row/rate column -->
            <rate table="RTT_LIMITS" row="RR_INCOME"
 column="RC_AMOUNT"/>
          </intervalvalue>
        </compare>
      </derivation>
    </Attribute>

  </Class>
</RuleSet>