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

Hi all.

My problem is that I need to generate alerts in my app where time window is 30 minutes away and it is offered on each new incoming events, so if I event1, event2 event3 in the first window of time where event2 and event3 cause an alert and I event2 event3, event4 in the second window of time so my alert will be generated twice , but I need an alert to be generated once.

Is there a solution to filter the events that caused an alert to avoid duplicate alerts?

Kind regards
Sergey

I think that the following query should meet 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

Tags: Fusion Middleware

Similar Questions

  • My browser is running do not. I uninstall, install several times. Uninstall cookies, delete the data from the user, install in another user - no reaction. What's wrong? Help, please

    My browser is running do not. I uninstall, install several times. Uninstall cookies, delete the data from the user, install in another user - no reaction. What's wrong? Help, please

    Start Firefox in Safe Mode {web link} by holding down the < shift >
    (Mac options)
    key and then from Firefox. Is always the problem?

    Start your computer in safe mode with network. Then launch Firefox.
    Try the sites secure web. Is always the problem?

    Start the computer in Mode safe;
    Free online encyclopedia

  • Cannot download apps - constantly says that cc has lost functionality I have re installed several times and used the cc cleaning tool - HELP please not very impressed with not be able to use a new customer applications!

    Hi all

    New customer to CC, cc said constantly that he lost the functionality and to re - install, I have done this several times and used the CC cleaning tool. What's the point of having CC if you cannot use this?

    Thanks for your reply, but I spent some time with support online yesterday which has managed to make me sort, I do not have a UPDATER AAM file, I could not delete the contents of the OOBE folder either, I had to rename the folder creative cloud. I was sent then the application manager - who was then updated to the new until I'm able to get apps. Long-term, but it worked. I tried the procedure you have above, just not all the steps worked for me. Thanks to the Member of the support staff who helped me, I have been literally pulling my hair out!

  • How to extract the same song, several times using different bit rates or formats and store all the digital music files in WMP 12 default on the same HDD music library

    Using Windows Media Player 12 (w/under Windows 7), "can I ripping the same song, several times, using different bitrates & and/or formats and store all the digital music files in the music library by default WMP - 12, on the same hard drive?

    1.) #1 goal: tear up the same song repeatedly, w / "different rates" as a WMA file.

    2.) #2 goal: tear up the same song repeatedly, w / "different rates" as an mp3 file.

    3.) #3 objective: NOT to each subsequent copy (version) of the song, deleted & and/or replaced by the previous version of the song [even].

    4.) question Bottom Line Up Front--> is Windows Media Player 12 (included with the Windows 7 operating system) are able to achieve '#1 objectives; #2; & #3 above?

    5.) details/example: I want to tear the piece "Maria Maria by Carlos Santana" to my laptop as a Windows Media Audio [WMA] file.  In addition, I would like to rip the song 'Maria Maria' three several times with 3 different bitrates in format WMA; and, as an MP3 file.  Therefore, my final result wished (after the extraction process), will take place the four 4 audio files split up as follows: (a) 'Maria Maria by Carlos Santana'--> Format: file WMA; Ripped @128 Kbps bitrate.  (b) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped to the "Variable bit rate; (c) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped commissioning "Lossless." and (d). 'Maria Maria by Carlos Santana'--> Format: MP3 file. Ripped @256 Kbps bitrate.

    6.) my preference: I do NOT want to rename the file (s). {for example, 'Maria Maria by Carlos Santana' renamed/changed for--> "Maria_Maria_by_Carlos_Santana_128kbps.wma",...} 'Maria_Maria_by_Carlos_Santana_256kbps.mp3 '; etc.}.  In addition, I am not concerned about the additional disk space that will be consumed after multiple copies of the same song with different speeds of transmission and different formats.

    7.) my experience w / Windows Media Player 10 (w / the operating system of Windows XP): using WMP - 10, my goal (s) described above is not a problem at all.  Simply insert the CD purchased by Carlos Santana, containing the song "Maria Maria"... Select the desired Format (WMA; WMA VBR; WMA Lossless; or mp3)... Select the desired flow rate (WMA... 128/160/192kbps_mp3: 128/192/256/320 kbit / s; etc.) ; and click on the "RIP" button to start the copy process on the hard disk of of Carlos Santana's "Maria Maria".  This process (w / WMP-10) would result in having the same song, copied on the hard disk, with levels of quality different "audio" (via the different bit rate settings); regardless of the format (MP3/WMA) which was chosen.

    8.) my experience w / Windows Media Player 11 (w / the operating system of Windows XP): using WMP 11, to described above of my objective (s) could not be reached e-a-s-i-l-y.  The problem with WMP - 11 - in short - which was after the desired selection "Rip settings" tab 'Options' of WMP - 11 (i.e., Format & Bit Rate) and heart-wrenching piece wanted to {'Maria Maria by Carlos Santana'} a moment later/second, WMP11 remove / would crush the previous version of the song [even].  Therefore, the program would NOT allow the user to have multiple copies of the same song on the hard drive of the PC; which obviously restricts a user to have the freedom to choose what level of quality digital audio, they prefer to listen to.

    9.) the ability to have multiple copies [at my descretion] of the same song (on my hard drive) with different bitrates and formats in my music library, is important for me because it has a direct impact on "how I enjoy MY music ', and in what form (audio quality), I choose to listen to my music.  {For example, when I exercise and listening to my camera, digital audio player (Zune), a song ('Maria Maria by Carlos Santana'), will usually be torn off at a lower rate due to the unit of capacity reduction of storage - compared to the storage capacity of notebook PCs/desktop/external hard drives PC.}  However, when I listen to my music through my home cinema or entertainment system (which contains a hard disk dedicated with a large storage capacity), I prefer to load the entertainment system with digital music files that have been ripped to WMA... with the bit being rate-setting is for the: settings "WMA Variable Bit Rate" or "WMA Lossless.

    10.) there you have it.  This is my first post in this forum.  I hope that [detailed] explanations, will be sufficient to encourage these "with knowledge & the hands on experience" using Windows Media Player 12 (as well as with WMP-10/WMP-11 respectively), by providing a [step] "How-to"... "solution to my situation.  It would be highly appreciated.  I'm looking forward-'the solution' - and relevant suggestions & and/or community feedback regarding my request for assistance.

    * Thank 'All' (that would) in advance... For your time & Assistance *.

    Certainly, you can, but I would say that they be in different folders, for your convenience as well as Windows.  You can create one for each debit/format, then you will know who is who.

    In Windows Media Player, on the toolbar, select Tools, Options, Rip, and then select the flow you want first, rip music, then change the folder (higher on the same tab) and rip again... and so on and so forth.

    When you are at home on your home theater, you can use the 320 bitrate folder, when you transfer to the Zune, you can use one of the lower bitrate files (although I personally tear it up to 320 and let the Zune reduce as he wants, even with the iPhone via iTunes, hard drive space is not really a problem here) my server has several hard drives, and I can always add more if and when space is low!

  • pencil iPad does not work. I tried several time matching it, it never worked. Should I return it?

    MY pencil to the iPad does not work. Have tried many times matching. Still does not work. Should I return it?

    You try to use your Apple pencil with an iPad Pro, right?  It is the only device with pencil Apple works.

    Use the pencil to Apple with iPad Pro - Apple Support

    If you follow the tips in the article, that they fail to return the pencil of Apple.

  • How to split a string into several substrings parent using a delimiter

    Hello

    I am forced to split a string into several substrings parent using a delimiter.

    And insert these substrings in variuou of the columns of a table in a row.

    For example. The sting is: ABC * DEF * GHI * JKH *.

    where ' *' is the separator.

    Desired output:

    Col1 Col2 Col3 Col4 Col5

    -------     --------     --------     -------     ---------

    JKH GHI ABC DEF (null)

    Could you please guide me how can I achieve this.

    Thank you

    Bogoss

    Hello Salim,

    Leave the thread for reference... got this excerpt:

    with t as

    (

    Select "c: its: hgfd:1:23" Str

    )

    Select

    REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 1, null, 1) col1

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 2, null, 1) col2

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 3, null, 1) col3

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 4, null, 1) col4

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 5, null, 1) col5

    t;

    This code snippet works well, but for the fixed columns. Here are 5 predefined columns.

    But I need to have a logic that I can browse the string any No.. sometimes.

    For example. If I get 3 secondary channels of the parent chain... I need to insert into 3 columns.

    And if I get 6 strings under... I need to insert into 6 columns.

    Could you please help me develop a logic like that.

    I use Oracle database 10g.

    And the data are currently being collected on external table... but I can store in a variable or a column of a database table.

    Thank you

    Bogoss

  • Same link several times variable using dynamic SQL

    Salvation;
    I have a query that uses the variable even several times, is there a way I could just use that variable only once and it will take several times.
    Request is;
    run immediately "SELECT count (*) x WHERE MONTH_ID =: VOMNTH_ID"
    UNION
    SELECT count (*) FROM Y WHERE MONTH_ID =: VOMNTH_ID
    Union
    SELECT count (*) FROM WHERE MONTH_ID = z: VOMNTH_ID ' help months1, month1, months1
    What I don't want only once to provide months1.
    Your help is appreciated.
    PKM
    execute immediate
      'with p as (select :vmonth_id pmon from dual)
    SELECT count(*) FROM x,p WHERE MONTH_ID = p.pmon
    UNION
    SELECT count(*) FROM Y,p WHERE MONTH_ID = p.pmon
    union
    SELECT count(*) FROM z,p WHERE MONTH_ID =p.pmon '
    using month1;
    

    HTH

    Nigel cordially

  • I have a xp system and I am getting the error message following, that c:\windows\system32\nimariwu.dll is not a valid windows image several times. How can I fix this problem?

    Error message for several packages of software that I installed, including Outlook and Adobe. Where can I get a copy of the correct file to copy on the wrong file I have. I have no installation disk, and need this file to be correct.

    Looks like some sort of malware infection.

    I suggest talk us a bit about your system and then run the scans indicate below, then when the scans is clean, the persistent problems.

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The afflicted system has a CD/DVD drive work?

    If the system works, what do you think might have changed since the last time it did not work properly?

    This will minimize back Q & A and eliminate guesswork.

    While you wait, I could do this:

    No matter what you use for protection against malware, perform the following analyses for malware, then correct any problems:

    Download, install, update and do a full scan with these malware free
    detection programs:

    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    They can be uninstalled later if you wish.

    The scans by operating clean, then to solve any problems.

  • videos will not completely play without slaughter several times why?, why? Pourquoiiii?

    I tried everything and I can not play them thru ihav downloaded the latest version of java and also I downloaded active x idont know what else someone can you please help me? !!!

    Do you mean the videos that play you in Windows Media Player, or videos that you view in a browser, from sources online?

    If you mean online videos played through the browser, then the reason of they stop has to do with the speed of the internet connection that you are using, and how long your computer is buffering videos. Basically, the video plays faster, then data is downloaded and stored while it freezes while downloading catches up. On Youtube and similar sites, you might be able to get around this by pausing the video for a few minutes at the beginning, to give him a head start on the download. Or see the video twice: the second about must be smooth, because the data has already been stored.
    Now, if you mean videos has played in Media Player directly from your hard drive, I have no idea why he would do that. :)
    I hope someone else can chime and you help in this matter.
    Best wishes
    Tiffany McLeod aka BookwormDragon
  • I downloaded Firefox, but it does not open. I tried several times to install and uninstall, but it still does not work.

    We used to use Firefox... but for some reason, it stopped opening. We have uninstalled and we found that the old version of Firefox would open but it would be immediately updated to the new version and then the problems start again and it would not start.

    You use a different browser, download the FULL installer of
    Download Firefox full installation for all systems and languages {web link}
    Save the file. Then;

    Using your file browser, open the folder of programs on your computer.

    Windows: C:\Program Files
    C:\Program Files (x 86)
    Mac: Open the folder "Applications".
    Linux: See your user manual.

    Find and rename the files Mozilla and Firefox adding .old to them.

    Now run the full installer.

  • Can someone help me, I am trying to download mcafee total protection, but making the load down a message comes back saying files could not be downloaded I try several times

    When I try to download mcafee total protection I will not download. It has something to do with the files

    Hello

    If you purchased the product, McAfee should be able to help with this problem.

    Then start http://service.mcafee.com/default.aspx
    http://service.McAfee.com/ProductSelect.aspx?LC=1033&SG=TS&PT=1

    To get help:
    Install and uninstall issues
    Download problems
    General technical questions
    Error messages

    Hope this helps,
    Don

  • When I turn the Windows computer does not stop. I used hive cleaning. but does not work. have re installed several times,

    the computer I have I have a h.p. it ued wa when I got it. When I turn it on. a notice comes up saying that the driver installation is complete.  I have not laod a driver.  I'm not terms computer litterate.please profane EU. Thank you

    Hi johnbrandon,
     
    -What happens when you try to shut down the computer? You receive an error message or error code? If Yes, indicate the same.
     
    -Have you been able to shut down the computer without any problem earlier?
     
    -Remember you proceed with recent computer between the calendar changes when things worked fine and now?
     

    You can unplug the connected external devices, as appropriate and check if the problem is resolved.

    Here are some links that you might find useful. Try the methods listed in the following items and check, if this can help you in the matter of fixing:

    Your computer stops responding when you try to shut down in Windows XP

    Computer does not close properly if selective suspension is enabled

  • I could not install update KB978207 No. several times but every time it failed. Can anyone help?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem.
    • Tried to install this update about 7 or 8 times, but each time it failed.  I could install withoy updates all the problems later.

    Windows Update Forum:

    It comes with Vista, upgrade install and activate Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

  • How can I duplicate a layer several times?

    Currently, I reproduce once, then hightlight the original and duplicate and then duplicate those to get four layers and so on.  I need about 80 duplicates and it's tedious to do it this way.  Any suggestions?  I use PS CC2014.

    Too bad.  It is easier to simply hold CTRL and push J as soon as possible (the numbering is sequential, so you can see how much you have in this way).  Reminds me of playing video games as a kid.

    Well, it was fun, guess I should go to work today.

  • The CD/DVD-rom does not open. I rebooted several times and nothing. I push the button and it makes the sound like it wants to open, but won't.

    No error message

    Hello

    There is a small hole on the drive where you can put a paperclip to get the door open.

    Create a trombone in car Opener
    http://pcsupport.about.com/od/tipstricks/HT/ppdropen.htm
    Open a Driveon stuck your PC - video
    http://video.about.com/pcsupport/open-a-stuck-drive-on-your-PC.htm

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for