SIM:SituationDef

From RuleCore Support

Jump to: navigation, search

Overview

A situation definition is inserted into the SIM using the AddSituationDef system event and can be found in the SIM as a SituationDef item in the SIM container /SysInfo/Items/Item[@name="SituationDef"].

Contents

The SituationDef contains one single root node for the situation detector tree defined with the <Detector> element.

The detector node can contain any of the following situation detector tree nodes:


Example

<SituationDef name="Sequence1">
  <Detector>
    <SequenceSearch>
      <EventPickup evalMode="once" keep="last" name="A"><base:XPath>sim:View/sim:Event[@type="A"]</base:XPath></EventPickup>
      <EventPickup evalMode="once" keep="last" name="B"><base:XPath>sim:View/sim:Event[@type="B"]</base:XPath></EventPickup>
      <EventPickup evalMode="once" keep="last" name="C"><base:XPath>sim:View/sim:Event[@type="C"]</base:XPath></EventPickup>
      <EventPickup evalMode="once" keep="last" name="D"><base:XPath>sim:View/sim:Event[@type="D"]</base:XPath></EventPickup>
    </SequenceSearch>
  </Detector>
</SituationDef>