XML Reference

Here is an example rule set with rule attributes for related parent and child succession sets annotated to be automatically populated using the Active Succession Set Rule Object Propagator:

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


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

  </Class>

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

    <Attribute name="householdMembers">
      <Annotations>
        <!-- The Active Succession Set Rule Object Converter will
             automatically populate this attribute with the
             related HouseholdMember rule object. -->
        <relatedSuccessionSet relationship="parent"/>
      </Annotations>
      <type>
        <ruleclass name="HouseholdMember"/>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

  </Class>
</RuleSet>