How to aggregate all the events which lead to the occurrence of a complex event?

Hello

Is it possible to aggregate all of the events that lead to the occurrence of a complex event in this complex event?

Let's say we have six singles events
id    amount    groupId
1     1         1 
2     0         2 
3     1         1
4     1         2
5     2         2
6     1         1
The definition of complex event is
select sum(amount), groupId from myStream[range 20 seconds slide 20 seconds] group by groupId having sum(amount) = 3
Consider that I have the following class for my complex event:
public class ComplexEvent {
    private int groupId;
    private int amount;
    private List<SimpleEvent> events;

    // getters and setters
    ...
}
Is it possible to have two complex events:
ComplexEvent1 = {groupId=1, amount=3, events=[{id=1, amount=1, groupId=1}, {id=3, amount=1, groupId=1}, {id=6, amount=1, groupId=1}]}
ComplexEvent2 = {groupId=2, amount=3, events=[{id=2, amount=0, groupId=2}, {id=4, amount=1, groupId=2}, {id=5, amount=2, groupId=2}]}
How can achieve us?

Hello

I blogged an example of solution to this type of use case since it is a common scenario in the CEP applications:

http://blogs.Oracle.com/CEP/2010/08/enriching_complex_events_with.html

There are not currently out-of-the-box support for the events of paging to disk storage. If you really more events that can fit into the Java heap, you can try persistent events of the database or a data grid, such that the consistency and by linking to the database or the cache to create the event complex containing the events of causality.

Another approach is to horizontally partition the flow of incoming events on multiple servers.

Kind regards
Seth

Tags: Fusion Middleware

Similar Questions

  • How to find all the my post anywhere in the forum?

    Desktop HP Pavilion Elite HPE - 110 t... Operating system: Windows 7 Home Premium

    .

    Several months ago (maybe even a couple of years), I discovered that backup/restore are not created.  At this time I posted a question here.  Which lead to a very long series of back & suite assignments between myself & a answering machine (name?) & Finally I planned a daily task to create backup/restore points.  I saved the instructions into a Word document on my computer, but now I can't find them.

    .

    I just found out that there is still no restore point, even though the Task Scheduler shows that he ran this morning @ 02:00.

    .

    I just searched (I thought that all the forums here) for my username (jarhtmd) & only found 4 son, none of whom was what I was looking for.

    .

    How to find all the my post anywhere in the forum?

    Hello:

    Click on your user name to access your user name page.

    Then click recent posts by jarhtmd. Click on view all.

    Maybe it's the post you were talking about.

    http://h30434.www3.HP.com/T5/desktop-operating-systems/scheduling-system-protection-backup-restore-points/m-p/647911#M32431

    Paul

  • How to check all the hotfixes installed on the ESX 4.0 host so far

    Hello

    I tried with the command vmware - v

    VMware-l

    esxupdate query

    but can only updates and patches which has been updated later after the update, can someone please tellme how to get all the patches previously installed as well, I mean all the hotfixes installed until updates

    How abt 'esxupdate query - a '?

  • How to integrate all the .js files in .html file?

    Hello!

    I need to create a sequence of html5, which will take place on an ad server. According to its policy, all the banners of html5 can only contain images and html files and all the css and js codes is the part of the .html file.

    So my question is how to incorporate all the JS code into the html?

    If I publish the project, animate Edge produces a file of * _edge.js next to the html file and I tried several solutions to integrate this code into the HTML file, but the result was a blank white page all the time

    Thank you in advance,

    George

    The runtime of edge looks specifically for this file * _edge.js, and if she could not find this file, it will give you error which will hinder the animation.

    We can understand your problem, and Adobe might consider providing a solution for this in the next version of edge animate.

    HTH,

    Vivekuma

  • How to select all the values populated both of LOV

    Hi all.

    I developed a form containing fields in a table. I join these areas a LOV (which get values in the other table). Now, I have to select a value only once for each record.
    But my question is how to map all the LOV values to these fields at a time. If it is possible what exactly is the way.
    If this is not possible then what is the way to do that.

    Thanks in advance

    Hello!
    Try using this code.
    You will get a lot of messages, but you can discover what column could not be red:

    declare
    l_group recordgroup := find_group ( 'lov27' );
    l_result pls_integer;
    begin
    if
      show_lov --> show the lov and user selected a value
    then
      l_result := populate_group ( l_group );
      clear_record;
      for i in 1..get_group_row_count ( l_group ) loop
        message ( 'reading  personal no' );
        :bill_detail.personal_no := get_group_char_cell ( 'lov27.personal_no', i );
        message ( 'reading  name' );
        :bill_detail.name := get_group_char_cell ( 'lov27.name', i );
        message ( 'reading  desigantion' );
        :bill_detail.designation := get_group_char_cell ( 'lov27.designation', i );
        message ( 'reading  rank' );
        :bill_detail.rank := get_group_char_cell ( 'lov27.rank', i );
        message ( 'reading  basic scale' );
        :bill_detail.basic_scale := get_group_number_cell ( 'lov27.basic_scale', i );
        message ( 'reading  basic pay' );
        :bill_detail.basic_pay := get_group_number_cell ( 'lov27.basic_pay', i );
        message ( 'reading  basic pay' );
        :bill_detail.vendor_no := get_group_number_cell ( 'lov27.vendor_no', i );
        message ( 'reading  branch code' );
        :bill_detail.branch_code := get_group_number_cell ( 'lov27.branch_code', i );
        message ( 'reading  sr no' );
        :bill_detail.sr_no := get_group_number_cell ( 'lov27.sr_no', i );
        create_record;
      end loop;
    first_record;
    end if;
    end;
    
  • How to remove all the photos from my iphone 5?

    How to remove all the photos from my iPhone 5?

    1. Open the Photos app.
    2. Click on the photo or video you want to delete.
    3. Type > delete the Photo.

    Delete several photos

    1. Open the Photos app and press Select.
    2. Click on each photo or video that you want to remove.
    3. Type > delete Photos.

    Delete photos on your iPhone, iPad and iPod touch - Apple Support

  • How to remove all the pictures imported from my I phone 6

    How to remove all the pictures imported from my I phone 6

    Imported from the place where?

    If they were imported from your computer, you remove the same way that you put on there: by syncing with iTunes. to remove them, you need to synchronize an empty folder, or simply turn off the Photo in the form of synchronization option summary pane when the iPhone is connected.

  • How to add all the tabs open as I used to?

    How to add all the tabs open as I used to?

    You can go to bookmark all tabs by right-clicking a tab, or use the hotkey Ctrl + Shift + D

  • How to disable all the selections at once?

    How to disable all the selections at once?

    If you are referring to the playlist, artist, album & kind selection boxes, then I don't think that there is a way to uncheck those all at once.

    If you mean the boxes in the view of songs Ctrl + click and the checkbox to check or uncheck all of the boxes. Note, however, that the use of these boxes is a bad way to manage the synchronization. Uncontrolled songs are ignored in the normal course of track in track or shuffle playback. Better to use one or more playlists to control what is synchronized and have checked most, if not all of your library. Items not controlled in my library are things like interview bonus tracks that had never what to hear accidentally, I keep in my library.

    TT2

  • How to draw all the info my old to my new laptop computor

    Original title: draw all the information in my old laptop to the new

    How to draw all the info my old to my new laptop computor

    Hello

    1. What are the operating systems installed on both computers?

    2 you want to transfer all the settings from the old computer to the new computer?

    You can use Windows Easy Transfer to perform the task.

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Windows-easy-transfer

    Hope this information helps

  • How to view all the files on my computer from big to small

    Hello

    could someone tell me how to view all the files on my computer from big to small

    There should be thousands of them. music movies photos the entire batch.

    THX

    Hello

    I suggest that you sort files by size and check if that helps.

    Reference:

    Behavior and change folder views

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-folder-views-and-behavior

    Work with files and folders

    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders

    Demo: Working with files and folders

    http://Windows.Microsoft.com/en-us/Windows-Vista/demo-working-with-files-and-folders

    Let us know if it helps.

  • How to print all the files in a folder without having to open each one?

    Hello

    Can someone tell me how to print all the files in a folder? I often need to print multiple files in a folder and it would allow me to save a lot of time!

    Thank you!

    I've done some testing, and it seems that Windows 7 allows print several files when they are all the same type of file.  So, for example, you can select and print 15 Word documents, but not a Word document and a single PDF document.

    To work around this limitation, you can print each file type separately.  For example, to print PDF files in a folder:

    1. Type *. PDF in the search for top-right box.
    2. For 1-15 files, press on CTRL + A to select all the.
    3. For 16 or more files, select 15 of them (click on the first, SHIFT + click the last).
    4. Click any file, and then click print .
    5. Repeat steps 3 and 4 as needed.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • Outlook express 6 - How to put all the unread messages in "BOLD"?

    How to put all the unread messages in "BOLD" with outlook express 6?

    Are you referring to messages unread, displayed in the preview pane?

    If a message is unread, it should be in bold by default.

    ========================================

    * Moved to appropriate forum. *

  • How to find all the old files and documents on the hard drive

    Original title: how to find a file

    How to find all THE old files and documents on the hard drive

    Hello

    -Are the old hidden files?

    I recommend you follow the steps in these articles for help.

    Show hidden files
    Find a file or folder

  • How to get all the icons on the desktop after installing xp

    After installation of xp only recycle bin makes its appearance. How to get all the other program on the desktop icons?

    Like internet explorer, my computer...

    Hello

    How to create a shortcut on the desktop?

    If the item is located in the start menu:

    1. click on start. The start menu appears.

    2 find the item that you want to create a shortcut. If the element is in a submenu of the menu, go to the submenu.

    3 right click on the element. A context menu is displayed.

    4. click on send to. A submenu appears.

    5. click on desktop (create shortcut). XP creates a shortcut to the item.

    _____________________________________________________________________________

    Here is the vista forums

    Try the xp forums at the below link for any other question of XP

    http://answers.Microsoft.com/en-us/Windows/default.aspx#tab=4

    Answers by topic

Maybe you are looking for

  • macOS Sierra and reminders badge notification counter stuck

    Hello everyone, I upgraded my MBP 2015 beginning 13 "retina to macOS Sierra 10.12 a week ago and since then my notification reminders badge icon shows '1', even if I have no obsolete reminder. On my iPhone 6, Pro "(à la fois avec iOS 10.0.2) and iClo

  • How do the elements to work with iTunes game

    I have a large collection of music on CD I am downloading from iTunes. I am subscribed to iTunes Match so that they are not available on all of my devices, including my iPad and iPhone. Some of my CDs are more obscure artists and not found in the iTu

  • Satellite P70-A-104 - no available in Windows virtualization technology

    HelloMy problem is that Intel virtualization technology is not enabled on my Toshiba Satellite P70-A-104. I have selected in Bios options: Virtualization VT - X only, but in windows 8 x 64 Technology intel fact processor detection utility appear that

  • form field check box control in word with report generation toolkit for Microsoft office

    Hi all Happy new year! In the word template, I insert the checkbox field. It has a bookmark name "Check1." Now, I try to checked or unchecked this field using the tool to generate report for Microsoft office and I couldn't. If someone now how to do?

  • User profile problem

    I tried to enter my laptop model: dv6-1310ei Prod No.: #acq, vs080ea series No.: cn94769wf, pavilion dv6, after typing my password, the result I get is «user profile service failed to connect, user profile cannot be loaded, please help...» Thanks Ste