SIM:Rule

From RuleCore Support

Jump to: navigation, search

Contents

Overview

The Rule nodes, obtained by selecting /sim:SysInfo/sim:Items/sim:Item[@name="Rule"] from the SIM, contain information about the current rule instances.

Each node contains the following sub-elements:

View

The View element contains one Event element for each event present in the rule event view.

Situation

The Situation element contains detailed information about the situation belonging to this rule instance.

Example

A typical Rule SIM node can look like this:

<Rule xmlns:base="http://www.rulecore.com/base" name="R2" id="c1650b61-926d-49ae-90a9-d73de98bde28" triggerCount="0">
  <Views>
    <View default="true" name="None">
      <Event timestamp="2008-03-17T16:16:05.120000" type="A" id="d11ed23e-7c9e-40e9-b04b-3879a00efa82">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:06.732000" type="D" id="eab167b2-d576-4558-aa58-38be68b4749f">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:08.840000" type="A" id="0fe1727c-38a8-4dbf-9bb2-9ccb6fa9d94a">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:10.435000" type="A" id="927f123c-cc4c-416a-924d-3a44d12e2025">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:11.864000" type="C" id="26589810-a494-4538-ae8d-e4ddea15f6d6">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:13.480000" type="B" id="04b99c77-f331-43be-b003-8785a64bd800">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:15.820000" type="C" id="ddbb20e5-3715-4ef2-a45f-6d389432c364">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
      <Event timestamp="2008-03-17T16:16:16.900000" type="A" id="842caa73-e242-4c62-9cd7-ff828ab71df1">
        <EventBody>
          <Value>1</Value>
          <Other>
            <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
          </Other>
        </EventBody>
      </Event>
    </View>
  </Views>
  <Situation ruleId="c1650b61-926d-49ae-90a9-d73de98bde28" id="877bd07d-5626-44d9-94fb-91463ed149a5" name="S2">
    <Detector completionDegree="1.0" evalMode="once" name="" value="false" evalCount="8">
      <SequenceSearch completionDegree="1.0" evalMode="once" name="" value="false" evalCount="8">
        <Pickup completionDegree="1.0" evalMode="once" name="A1" value="true:const" evalCount="1"/>
        <Pickup completionDegree="1.0" evalMode="once" name="B1" value="true:const" evalCount="6"/>
        <Pickup completionDegree="1.0" evalMode="once" name="A2" value="true:const" evalCount="1"/>
        <Pickup completionDegree="1.0" evalMode="once" name="D1" value="true:const" evalCount="2"/>
        <Pickup completionDegree="1.0" evalMode="once" name="C1" value="true:const" evalCount="5"/>
      </SequenceSearch>
    </Detector>
    <PickupSets pickupNode="A1">
      <EventSet>
        <Event timestamp="2008-03-17T16:16:05.120000" type="A" id="d11ed23e-7c9e-40e9-b04b-3879a00efa82">
          <EventBody>
            <Value>1</Value>
            <Other>
              <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
            </Other>
          </EventBody>
        </Event>
      </EventSet>
    </PickupSets>
    <PickupSets pickupNode="A2">
      <EventSet>
        <Event timestamp="2008-03-17T16:16:05.120000" type="A" id="d11ed23e-7c9e-40e9-b04b-3879a00efa82">
          <EventBody>
            <Value>1</Value>
            <Other>
              <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
            </Other>
          </EventBody>
        </Event>
      </EventSet>
    </PickupSets>
    <PickupSets pickupNode="B1">
      <EventSet>
        <Event timestamp="2008-03-17T16:16:13.480000" type="B" id="04b99c77-f331-43be-b003-8785a64bd800">
          <EventBody>
            <Value>1</Value>
            <Other>
              <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
            </Other>
          </EventBody>
        </Event>
      </EventSet>
    </PickupSets>
    <PickupSets pickupNode="D1">
      <EventSet>
        <Event timestamp="2008-03-17T16:16:06.732000" type="D" id="eab167b2-d576-4558-aa58-38be68b4749f">
          <EventBody>
            <Value>1</Value>
            <Other>
              <t:data xmlns="urn:t" xmlns:t="urn:t">1234</t:data>
            </Other>
          </EventBody>
        </Event>
      </EventSet>
    </PickupSets>
  </Situation>
</Rule>
Personal tools