How not to generate complex event multiple times? Exclude used events.

Hi all.
My problem is that I need to generate alerts in my application where time window is 30 minutes and it is moved on every new incoming events, so if I have event1, event2, event3 in the first time window where event2 and event3 cause an alert and I have event2, event3, event4 in the second time window then my alert will be generated twice, but I need an alert to be generated once.
Is there any solution to filter events which have caused an alert to prevent duplicate alerts?
Regards,
Sergey

I think the following query should satisfy your requirement
                SELECT
                      T.userId as userId,
                      T.totalAmount as totalAmount,
                      T.numEvents as numEvents
                FROM
                      helloworldInputChannel MATCH_RECOGNIZE (
                          PARTITION BY userId
                          MEASURES
                                userId AS userId,
                                SUM(BUY.amount) as totalAmount,
                                COUNT(*) as numEvents
                          PATTERN ( (B|S)+? (C|T) ) WITHIN 10 minutes
                          SUBSET
                                 BUY  = (B, C)
                                 SELL = (S, T)
                          DEFINE
                                B AS (B.operation = "BUY"),
                                S AS (S.operation = "SELL"),
                                C AS (C.operation = "BUY" AND (SUM(BUY.amount) = SUM(SELL.amount)) ),
                                T AS (T.operation = "SELL" AND (SUM(BUY.amount) = SUM(SELL.amount)) )
                      ) AS T

Similar Messages

  • I imported a different catalog. It brought all images in but not in their folders and multiple times on many images. How do I undo?

    I imported a different catalog. It brought in all images but not in their folders and multiple times on many images. How do I undo?

    Restore your catalog from a backup of your catalog which was made before you did this.

  • How can I  get System dates  with time scheduler using threads

    how can I get System dates with time scheduler using threads.is there any idea to update Date in my application along with system Date automatic updation...

    What the heck are you talking about and whatr has it to do with threads?
    Current time: System.currentTimeMillis. Date instances are not supposed to be updated.

  • How can I restore Thunderbird behavior so I can delete emails by pressing delete key multiple times (without using mouse to change focus back to message list)?

    Thunderbird 24.3.0 (latest under OpenBSD)
    I (like most people) get spam in my inbox. When there are multiple spam messages in a row in my inbox I used to click on the first message and then press the delete key repeatedly for each sequential spam message.
    After upgrading, this doesn't work. Instead, when I click a message it opens in the message preview pane and moves the focus to the message. Thus I need to click twice to even be able to press the delete key to delete one message. When I press the delete key, the message is deleted and the highlighted message becomes the next one in the list. This opens the message in the preview pane and again shifts the focus to the message. Thus I can't press the delete key again but must move the mouse to click on the message before I can delete it.
    As a result, what used to be a very fast process of weeding through spam has become a real annoyance.
    I realize I can hide the message preview pane to prevent the focus from moving, but this means I must delete solely based on the email subject/sender -- or open each message (which is even slower).
    I also realize that I can press tab multiple times (sometime 4, sometimes many more) to shift the focus back but that's not much faster than using the mouse.
    How can I prevent Thunderbird from shifting the focus away from the email list panel unless I actually click somewhere else?

    Well said! And you said it about six weeks ago. And 4 other people said "Me Too." - I guess we're screwed.
    I guess it's time to switch to GMail.
    Such a trivial thing, but it irritates me every single time.
    MOZILLA - YOU'RE GOING DOWNHILL...

  • Itunes will not login on ATV- checked multiple times

    ran the new update for apple tv then logged out of itunes thru apple tv and now the system will NOT recognize my login info. I've tried multiple times and reset system. I've entered my user/pass just how it reads on itunes, apple account, etc. (case sensetive). Any suggestions? Thanks

    So if you restart computer & ATV, then at iTunes at computer you don't see ATV?
    I fooled myself the other day with my old ATV by clicking on 'connect to iTunes'.
    The code come up on the Tv screen, and I just expected to see a spot to enter the code on the computer, but I was already connected.
    And you will see ATV at iTunes.
    But I may have scrolled past the menu on iTunes left panel hiding it.
    This may not be your issue from the details you have.

  • I keep getting a server error and my emails are not deleting and showing up multiple times

    I am getting emails multiple times and they aren't deleting.  They keep coming back.  I then get a server errer that mail.me may be a false server pretending to be mail.me.  Don't know how to fix this.

    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • How to control the opening form multiple times

    Greetings to all,
    I used Open_Form to open the form in my 'Menu.mmb'.
    My Question is:
    How we control the opening of a form from multiple times?
    Ex:
    In my menu.mmb I used OPEN_FORM.If we open the form,which was already opened ,I want to stop the form to open. How to do this?
    Thanks,
    Bhujendra

    pls try with
    FIND_FORM('EMPDETAILS1');
    OPEN_FORM('C:\INH\EMPDETAILS1');
    jeneesh                                                                                                                                                                                           

  • How to trigger Condition Access sequence multiple times for one line item?

    Hi,
    We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
    Logic goes like this:
    1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
    2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
    3.we have enhanced the tkomp structure to hold the sale deal.
    Challenge:
    As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
    Functional team maintained diffrent access tables in the access sequence!!!
    Fnds, please help me to get some clue
    Thanks,
    Sunil Y

    Hi Eduardo , Thanks for the response.
    I am trying to explain again, this is the requirment given by the functional guys.
    we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
    At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP.  We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
    We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
    Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items.  Line item 10  may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
    We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
    Please help me ...
    Thanks,
    Sunil Y

  • Please:How to repeat the return values multiple times in sapscript

    Currently my subroutine is returning a value called TOQBSSHB single time and i am working with standard layout called RFFOUS_C.Please can anybody tell me if i want to show multiple times TOQBSSHB for different values of VBLNR .Is it possible if it is what are changes i should make on layout and subroutine.
    PERFORM EXTRACT IN PROGRAM Y_MIT_TEST2
    USING &REGUH-VBLNR&
    USING &REGUH-NAME1&
    CHANGING&TOTQBSHB&
    ENDPERFORM
    FORM EXTRACT TABLES IN_PAR STRUCTURE ITCSY OUT_PAR STRUCTURE ITCSY.
    TABLES : REGUP,BSEG,REGUH,REGUD.
      DATA : BILL_NO LIKE REGUH-VBLNR.
      DATA : ITAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : JTAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : BELNR1 LIKE ITAB-BELNR.
      DATA : QBSHB1 LIKE REGUD-SWNES.
      DATA : QBSHB2 LIKE REGUD-SWNES.
      DATA : TOTOQBSHB LIKE REGUD-SWNES.
      READ TABLE IN_PAR WITH KEY NAME = 'REGUH-VBLNR'.
      IF SY-SUBRC = 0.
       BILL_NO = IN_PAR-VALUE.
      ENDIF.
    SELECT * FROM REGUP INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE VBLNR
    = BILL_NO.
      READ TABLE ITAB INDEX 1.
      IF SY-SUBRC = 0.
      MOVE ITAB-QBSHB TO QBSHB1.
      MOVE ITAB-BELNR TO BELNR1.
      ENDIF.
    SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE JTAB WHERE BELNR
    = BELNR1.
      LOOP AT JTAB.
      READ TABLE JTAB INDEX SY-TABIX.
      IF SY-SUBRC = 0.
      QBSHB2 = QBSHB2 + JTAB-QBSHB.
      ENDIF.
      ENDLOOP.
      TOTOQBSHB = QBSHB1 + QBSHB2.
      READ TABLE OUT_PAR WITH KEY NAME = 'TOTQBSHB'.
      IF SY-SUBRC = 0.
      MOVE TOTOQBSHB TO OUT_PAR-VALUE.
      MODIFY OUT_PAR INDEX SY-TABIX.
      ENDIF.
    ENDFORM.

    I said :
    - A) you should copy the main program without to copy
         includes, so when the systems ask you which objects
         you want to copy: check all excluding INCLUDES.
    So you'll have a new program which uses the same includes of the standard program.
    - B) in your z-program you find the point where you should insert your code: you'll have two cases:
    - you should insert code in a point that is writen in z-program;
    - you should insert code in a point (for example a form) that isn't write in z-program, but in a standard include your z-program use.
    In first case you only write your code, in second one before you should copy the include, than insert it in your z-program and so insert your code in the include.
    For example:
    - A) Copy RFFOUS_C in ZRFFOUS_C
    - B) I should change the code of routine  
         SCHECKDATEN_EINGABE, it's defined in RFFORI01, so I copy it in ZRFFORI01, insert my code in it.
    - C) found where my z-program call include RFFORI01:
    subroutines for check print and prenumbered checks                  *
      INCLUDE RFFORI01.
    now replace this with the call to my new include:
      INCLUDE RFFORI01.
      INCLUDE ZRFFORI01.
    If you do in this way you copy only includes where you should change the code.
    Message was edited by: max bianchi
    Message was edited by: max bianchi

  • How to back up Home folder to Time Capsule using Backup in OS 10.4.11

    I'm new to Time Capsule, but just set up one that I was given, which does 802.11n wireless. No problem connecting to my Intel MacBook and Time Machine. HOWEVER, using Backup v 3.2 on a Dual G4 running OS 10.4.11 was not seamless. The Backup app (needs a MobileMe subscription to use over 100 Mb) gave me the option of a Time Capsule backup, but kept failing to back up my Home folder. The reason given was not enough disk space. Not the problem; plenty of space when I accessed Time Capsule using Airport on my MacBook (OS 10.5). Finally I accessed the Time Capsule from the G4 using the path: Finder => Go => Network => Time Capsule => Connect => TC Password. In other words, I had to access the Time Capsule as if I were networking to another computer.
    So had Backup given me some instructions along this line, I wouldn't have had to dither around so long. When I quit Backup and reopened it, the backup plan for the home folder proceeded as normal.

    I've found a solution, no need to post a response. Thanks!

  • How to store the result with a time are using?

    Hi,
    I'm using the adobe captivate 5.5 to create the Visual Aid Project.
    What i want to ask in captivate 5.5 is :
    Q1. How to record and store the time are using in each slide. ( Record down how long need to take by user to complete one slide)
    Q2. How to create the file above (Q1), and save it in computer. ( For review purpose)
    The purpose for this project is record down how long(time) are need to complete for each Slide. Besides, this project will store the result in computer hardisk and for review purpose.
    Example :
    Slide
    Time Used (in sec)
    Slide 1
    10 sec
    Slide 2
    5 sec
    Slide 3
    20 sec
    Slide 4
    5 sec
    Slide 5
    30 sec
    Total Time
    70 sec
    Thanks,
    Regards,
    Shen

    Hello,
    It is possible to store the time in user variables. How to export those variables depends on the deployment of the file.
    Some information about showing elapsed time can perhaps give you a start:
    Display Time Information
    Lilybiri

  • Using firefox 5 - when ever I try to use the same key more than once in a row, it does not work. Hitting the multiple times does nothing at all. How can this be corrected. HELP!!!

    everything that needs to be done on the keyboard is effected - letters, numbers, backspace, directionals, delete, home, end, page up, page down, '''all keys that are pressed more than once''' It does not matter what webpage I am on.
    PLEASE HELP
    this is very frustrating

    You may have switched on an accessibility feature called FilterKeys by keeping the Shift key pressed for too long.
    * http://www.microsoft.com/enable/products/windowsxp/default.aspx
    *http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true

  • Basic sites (google, youtube) will not load, and intermittently, images on forums will not appear without clicking refresh multiple times, what is wrong?

    Some sites and images will intermittently not load or make me click "try again" several times.
    For example, a forum with a picture thread will not load the pictures, even if they are from multiple reliable hosts.
    Also, I can attempt to visit youtube and must click try again several times to reach the site.

    Do a malware check with several malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How do I generate URL with multiple variables from input fields?

    I'm creating an ad with four input text fields labels fname, lname, city and prov, and I wanted to know how to generate URLs based on information entered into the fields. The text fields default to display "First Name," "Last Name," "City" and "State," respectively, but if a user does not enter information in those fields, I want the URL to behave as if those were empty, if that makes sense. The text fields are in a movie clip called "input_text" and the button is labeled "send". If any of you can provide insight, I would be greatly appreciative. Thank you.

    1. use if-statements to see if the text properties of your textfields meets your requirements for creating that url.
    2. you can use the flash string methods and properties to create your url.
    p.s.  the plus sign + can be used to concatenate strings.

  • "Could not activate cellular data network" multiple times a day

    Several times a day (up to 10 times/day) my phone says "Could not activate cellular data network" and this problem has been going on for about 2 weeks. Does anyone know how to help or troubleshoot it?

    I was having the same problem with my factory unlocked phone. Try this it worked for me:
    In Settings go to GENERAL-->NETWORK--> and turn off ENABLE 3G. I did this a week ago and I have not had an issue with dropped data since. Why does this work? I don't know.
    BE AWARE THAT THE NEW 5.1.1 OS BY DEFAULT TURNS ON 3G EVERYTIME YOU RESTART YOUR PHONE, EVEN IF YOU TURN IT OFF MANUALY

Maybe you are looking for