이동하는 엔티티의 위치 초기화
위치 이동에 관련된 값을 저장하는 속성을 초기화하여 솔루션 로직에 사용할 수 있습니다.
다음 연산자를 사용하여 이동하는 도형 속성을 초기화할 수 있습니다.
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;