移動式エンティティーの位置の初期化

ソリューションのロジック内で使用できるように、位置の移動に関連した値を保管する属性を初期化できます。

以下の演算子を使用して、移動式ジオメトリー属性を初期化します。

set <attribute> of [attribute of]* <entity> to a new moving geometry [tracked for <calendar period>]

構成体 tracked for <calendar period> はオプションです。デフォルトで、ジオメトリーを追跡する期間を決定するヒストリー制限は 24 時間ですが、移動式ジオメトリーごとに異なるカレンダー期間を指定できます。

以下の例では、ルールが実行されると、the car の the location が新しい移動式ジオメトリーとして初期化され、このジオメトリーは 2 日間追跡されます。

ビジネス・モデル定義:

a car is a business entity identified by a plate number with a model, a capacity (numeric), a color, a location (a moving geometry).

a telemetry report is a business event related to a car.
a telemetry report has a location (a point).

ルール:

when a car telemetry event occurs
if
   the location of 'the car' is null
then
   set the location of 'the car' to a new moving geometry tracked for 2 days;