Previous Topic

Next Topic

Book Contents

Book Index

Postpone (Deprecated)

A postpone condition is triggered following a specified delay time after another condition (called source condition) is triggered.

Overview

A postpone condition is triggered following a specified delay time after another condition (called source condition) is triggered.

For example: Suppose there is a motion detector in a corridor and every movement detected triggers a given condition. This condition can for example trigger a command to switch on a light. A PostponeCondition can be set for this given condition with a delay (e.g. 5000) in milliseconds. This PostponeCondition can for example trigger a command to switch off the light the specified delay time after a movement was detected and the light was switched on.

There are two options for a PostponeCondition:

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 Postpone condition.

<config name="condition_id">

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

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

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

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

</config>