Previous Topic

Next Topic

Book Contents

Book Index

Delay (Deprecated)

A delay condition remains satisfied for a specified delay time after another condition (called source condition) becomes satisfied.

Overview

A delay condition remains satisfied for a specified delay time after another condition (called source condition) becomes satisfied.

When the delay time after triggering the source condition elapses the DelayCondition becomes unsatisfied. There are two options for a DelayCondition:

No matter which option is chosen for a DelayCondition, if an unsatisfied event is received from the source condition within the delay time the DelayCondition becomes unsatisfied.

Managing Event 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 it in the Config Tree.

Via Config Tree

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 snippet represents an example Delay condition.

<config name="condition_id">

<property name=DELAYED_CONDITION_TYPE value="conditiontype" type="string" />

<property name=DELAYED_CONDITION_ID value="conditionid" type="string" />

<property name=DELAY value="delay" type="long" />

<property name=IS_RESET_TIMER value="isReset" type="boolean" />

</config>