Creates an Interval (see Handling Data that Changes Over Time) of a given type, with a value valid from a specified date.
This expression is typically used as part of the construction of a Timeline.
<?xml version="1.0" encoding="UTF-8"?> <RuleSet name="Example_Interval" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://www.curamsoftware.com/CreoleRulesSchema.xsd"> <Class name="CreateInterval"> <Attribute name="aNumberTimeline"> <type> <javaclass name="curam.creole.value.Timeline"> <javaclass name="Number"/> </javaclass> </type> <derivation> <Timeline> <intervaltype> <javaclass name="Number"/> </intervaltype> <initialvalue> <Number value="0"/> </initialvalue> <!-- Another interval--> <intervals> <fixedlist> <listof> <javaclass name="curam.creole.value.Interval"> <javaclass name="Number"/> </javaclass> </listof> <members> <!-- Creates an interval of the specified type. Typically used as input into a <Timeline>. --> <Interval> <intervaltype> <javaclass name="Number"/> </intervaltype> <start> <Date value="2001-01-01"/> </start> <value> <Number value="10000"/> </value> </Interval> </members> </fixedlist> </intervals> </Timeline> </derivation> </Attribute> </Class> </RuleSet>