The Interval Timer Condition is triggered at a specific time interval. The length of the interval can vary from several minutes to several years.
Managing Interval Timer Conditions
Via Java API
After creating a condition as described in Managing Conditions you can configure it by using the following methods:
After you configure your condition, call the save method. The Condition Provider will save the condition in Config Tree.
Via ConfigTree
All conditions are stored in the Config Tree, which allows you to import/export them and to add/edit them by simply creating and modifying XML files.
The following example represents an interval timer, named "My Interval Timer", as a configuration XML file which becomes active at Mon Nov 28 2011 16:00:00 GMT+0200 (specified as 1322488800000 milliseconds to the startTime condition property). The timer event is fired twice over 2 minutes (specified as hour - 0, minute - 2 and seconds - 0).
<config name="My Interval Timer">
<property key="id_gen" value="1" type="long"/>
<config name="6">
<property key="hour" value="0" type="int"/> <property key="minute" value="2" type="int"/>
<property key="name" value="My Interval Timer" type="string"/>
<property key="repeatCount" value="2" type="int"/>
<property key="seconds" value="0" type="int"/>
<property key="startTime" value="1322488800000" type="long"/>
</config>
</config>