XML Reference

Here is an example rule set with rule attributes for related parent and child evidence rows annotated to be automatically populated using the Active Evidence Row Rule Object Propagator:

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


  <Class name="HouseholdMember" extends="ActiveEvidenceRow"
    extendsRuleSet="PropagatorRuleSet">
    <Attribute name="incomes">
      <Annotations>
        <!-- The Active Evidence Row Rule Object Propagator will
             automatically populate this attribute with a list of
             related Income rule objects.-->
        <relatedEvidence relationship="child"/>
      </Annotations>
      <type>
        <javaclass name="List">
          <ruleclass name="Income"/>
        </javaclass>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

  </Class>

  <Class name="Income" extends="ActiveEvidenceRow"
    extendsRuleSet="PropagatorRuleSet">

    <Attribute name="householdMembers">
      <Annotations>
        <!-- The Active Evidence Row Rule Object Converter will
             automatically populate this attribute with a list of
             related HouseholdMember rule objects.
             
             Note that a list is still used because there may be 
             multiple versions of the parent household member
             evidence.-->
        <relatedEvidence relationship="parent"/>
      </Annotations>
      <type>
        <javaclass name="List">
          <ruleclass name="HouseholdMember"/>
        </javaclass>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

  </Class>
</RuleSet>