<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    The events contain a field with a source time. Refering this time
    the events can be compared. It has to be done this way, because
    unlike the source times the receive times aren't synchron.<br>
    <br>
    In my case, the testing for missing elements is more complex than:<br>
    &nbsp; $a: EventA()<br>
    &nbsp; not EventB(this after[1d] $a)<br>
    Because there may be the events A, C, D, E and F and it should be
    noticed, that there's B missing between A and C. But I have no hint
    about that, because the events are neither numbered nor do I know
    there should be a event B with a time A.time+Xseconds.<br>
    <br>
    <br>
    <blockquote
      cite="mid:AANLkTinYtnGsTLtdyBjCrWJ46SbmetHxPoxVcN+uv=pW@mail.gmail.com"
      type="cite">You can use it without time.. but each time that you
      have an EventA and not an EventB the will be activated<br>
      <br>
      <div class="gmail_quote">2010/10/22 Tina Vie&szlig;mann <span dir="ltr">&lt;<a
            moz-do-not-send="true"
            href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> Yeah, normally I would
            solve it that way. But you're using a time (1d) which I
            unfortunately don't know off in my scenario. <br>
            <br>
            I'm afraid that there will be no other solution than that I
            have to use a time...<br>
            <br>
            Thanks anyway :)
            <div>
              <div class="h5"><br>
                <br>
                <br>
                <blockquote type="cite">Sounds that you can use the Not
                  Conditional Element for that right?
                  <div>something like</div>
                  <div><br>
                  </div>
                  <div>$a: EventA()</div>
                  <div>not EventB(this after[1d] $a)</div>
                  <div><br>
                  </div>
                  <div><br>
                    <br>
                    <div class="gmail_quote"> On Fri, Oct 22, 2010 at
                      5:49 PM, Tina Vie&szlig;mann <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:tviessmann@stud.hs-bremen.de"
                          target="_blank">tviessmann@stud.hs-bremen.de</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin: 0pt
                        0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                        204, 204); padding-left: 1ex;"> Hi,<br>
                        <br>
                        I'm working on a use case where I want to know
                        if 20 events with a<br>
                        specific value are contained in at maximum the
                        last 150 events. So far I<br>
                        know what have to do. ;-)<br>
                        My problem is that as extension to my condition,
                        the rule shall also<br>
                        trigger if one ore more events are missing. But
                        I don't know the time<br>
                        interval with which the events arrive, so that I
                        don't know when a new<br>
                        event should arrive and by implication I don't
                        know about the absence of<br>
                        an event.<br>
                        <br>
                        In our environment events arrive in "counts" and
                        not in a specific time<br>
                        interval as e.g. ever 1 second. &nbsp;So we talk
                        about the last two or 150<br>
                        counts if we talk about the last two ore 150
                        data packages received.<br>
                        Yes, behind a count always is a time interval,
                        but only the data source<br>
                        knows about the time interval. My recipient
                        doesn't<br>
                        Also the data of a data package is inserted in
                        the working memory<br>
                        independently, so that I have e.g. 10 data
                        events instead of a single<br>
                        package event.<br>
                        (Now that you know that, my first sentence would
                        be correctly: I want to<br>
                        know if 20 counts of the max. last 150 counts
                        have contained a specific<br>
                        event.)<br>
                        <br>
                        If my explanation (or my attempt to explain) is
                        difficult to understand,<br>
                        please ask me what you want to know.<br>
                        <br>
                        I would be very happy about any ideas.<br>
                        <br>
                        Thank you.<br>
                        Tina<br>
                        _______________________________________________<br>
                        rules-users mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:rules-users@lists.jboss.org"
                          target="_blank">rules-users@lists.jboss.org</a><br>
                        <a moz-do-not-send="true"
                          href="https://lists.jboss.org/mailman/listinfo/rules-users"
                          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <br>
                    -- <br>
                    &nbsp;- CTO @ <a moz-do-not-send="true"
                      href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>&nbsp;
                    <br>
                    &nbsp;- MyJourney @ <a moz-do-not-send="true"
                      href="http://salaboy.wordpress.com"
                      target="_blank">http://salaboy.wordpress.com</a><br>
                    &nbsp;- Co-Founder @ <a moz-do-not-send="true"
                      href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
                    &nbsp;<br>
                    &nbsp;- Salatino "Salaboy" Mauricio -<br>
                  </div>
                  <pre><fieldset></fieldset>
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          rules-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            href="https://lists.jboss.org/mailman/listinfo/rules-users"
            target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      &nbsp;- CTO @ <a moz-do-not-send="true" href="http://www.plugtree.com">http://www.plugtree.com</a>&nbsp;
      <br>
      &nbsp;- MyJourney @ <a moz-do-not-send="true"
        href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
      &nbsp;- Co-Founder @ <a moz-do-not-send="true"
        href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br>
      &nbsp;<br>
      &nbsp;- Salatino "Salaboy" Mauricio -<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>