Examples of programatic creation of EPN elements

Hello,
I'm looking for examples of how to create things like Channels, CQL Statements, etc programatically, not just statically creating them using the EPN editor in eclipse.
For example:
I want to have a static processing network that just takes all events and passes them to a bean. The bean then looks at the events and decides that a new channel should be created for something in this event (say event type, or subject). So it would dynamically create a new channel and pass that event on to it. Then any time it started seeing similar events, it would pass those on to this new channel as well. I'm not sure if this is a good idea or a good use of CEP or not though at the same time...
Here is another example:
We want to expose an API to allow clients to create new queries into the stream on demand. So we have predefined queries set up that handle default events. A new client comes in and wants to start getting certain events (content based routing basically). So they make a call to the API and say I want to start getting events with x in them. A new CQL query is created (select * from stream [now] where thing = x) and probably also a new channel/bean is created as a destination.
I can't find anywhere that describes how you do any of these things. You can do all this using Esper, so I assume Oracles CEP has a way to do it too...If you can help, that would be great.

serff wrote:
I want to have a static processing network that just takes all events and passes them to a bean. The bean then looks at the events and decides that a new channel should be created for something in this event (say event type, or subject). So it would dynamically create a new channel and pass that event on to it. Then any time it started seeing similar events, it would pass those on to this new channel as well. I'm not sure if this is a good idea or a good use of CEP or not though at the same time... We don't currently expose any programmatic API for creating EPN elements - part of this is because the connection between elements is augmented in many different ways when the EPN is constructed and also because we optimize certain cases. What is your new channel going to do in this instance? There is nothing stopping you writing an event bean that manages its own "channels" (written by you), but it would help to know a few more details in order to make any recommendation here.
Here is another example:
We want to expose an API to allow clients to create new queries into the stream on demand. So we have predefined queries set up that handle default events. A new client comes in and wants to start getting certain events (content based routing basically). So they make a call to the API and say I want to start getting events with x in them. A new CQL query is created (select * from stream [now] where thing = x) and probably also a new channel/bean is created as a destination. The JMX API allows you to create queries dynamically - this is what wlevs.admin does. This may be the easiest way to manage dynamic queries. You could also do this directly by making a bean ApplicationContextAware (a Spring class) and then from that get the BeanFactopry and then the bean you are interested in, cast to the appropriate API and add rules. Unfortunately the java API for the processor is not public, so you would be on your own trying this approach.

Similar Messages

  • Question regarding creation of xml-elements with numerical values

    When i create xml-documents from xml stored in the database (xmltype table based on an xml-schema), i find that numerical values which were stored as 0.395 (with the "." as the decimal separator) are retrieved as .395.
    Is it possible to apply a format mask so that the numerical value is retrieved as 0.395?
    thanks, Bart
    N.b. Note that i select a complete xml-fragment. So my problem seems related to the storage or retreival of 'schredded' XML. I do not use SQL/XML-functions with relational data, in which case i know how to apply a format mask.

    I don't use XSLT, i just query the XML-documents stored in an XMLType column with a simple SQL-statement.
    I have posted a simple example over here Re: Is it possible to influence the creation of empty elements?

  • Regarding creation of node element

    Hi
    i hav a doubt regarding creation of node element. u can create new node element using method create(cn)Element available either directly from wdContext or from wdContext.node(cn) where cn is any context node.
    can any one plz explain me what's the difference between two.
    does it has any thing to with node being singelton or non-singelton?
    also can anyone explain me the difference between add and bind method.
    thanks.

    hi
    good
    Data Binding Methods
    If a property can, or must be bound to the context, the respective bind and bound methods are available.
    ●     The bind methods bind the value of a property to the context element specified by the path.
    The name of the method is created according to the following pattern:
    BIND_<runtime name of the property>.
    Example: table, property: design, method: BIND_DESIGN.
    &#9679;     The bound methods return the path of the context element to which a property is bound and return NULL if no binding exists.
    The name of the method is created according to the following pattern:
    BOUND_<runtime name of the property>.
    Example: table, property: design, method: BOUND_DESIGN.
    ADD METHOD->
    Two add methods that add an element.
    &#9675;     If only the element is transferred as parameter, then the element is added at the and of a list
    &#9675;     If an index is transferred as well, then this element is transferred at the specified index position.
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/18b44145143831e10000000a155106/content.htm
    thanks
    mrutyun^

  • Creation of PL Element without it being a cost element

    Hi
    I have to asign two PL elements in T code 0KEK for transfer of material between two profit centers. The two elements should not be <b>cost elements</b> but they should be PL Elements to be used only in PCA.
    We have to create PL elements through FS00. But the system automatically creates a new cost element when i create a GL as a PL nature. Pls let me know how to create a PL element without it being a cost element.
    Regards
    Sanil Bhandari

    Hi Sanil
    IN OB13 
    Controlling integration tab
    select : Manual creation of cost element and create GL accts.
    Hope this works
    Best Regards
    Ashish Jain

  • Automatic creation of cost elements

    Dear All,
    The automtic creation of cost elements functionality is not working for some GL accounts in production. When new GL accounts are created, the same are not created as cost elements. All the standard settings viz 'selection of automatic creation' in controlling area configuration, creation of number ranges in OKB2 etc are in place. We posted in OSS and they are not able to find reasons why this is happening.
    Has anyone faced a situation like this? Please post your valuable thoughts and share your inputs. We currently have a log created by user on this and pending for quite sometime.
    Thanks in advance
    Venkatesh

    Hi,
    Yes. We do face problem like this often. We wriggle out by updating through manually when we are very nearer to go-live date. Otherwise, we can create an abap program and meet the deficiency.
    Trust this helps much!
    Cheers!

  • Automatic creation of WBES element using front end application

    Hi,
    i am looking at developing a front end tool where user will provide the required data and project name/wbes lement in the request. upon approval from project manager, sytem must creation requird WBE element in the requested project automatically. there will be multiple requests supplied to create wbes lements under the existing projects.
    for Eg. assume that there is a project AB11.00001 
    i have already have one 4th level wbes element like displayed below:
    AB11.00001
    AB11.00001.01
    AB11.00001.01.01
    AB11.00001.01.01.01
    AB11.00001.01.01.02
    AB11.00001.01.01.03
    now i would like to add new 3rd level and 4th level for above project as mentioned below:
    AB11.00001
    AB11.00001.01
    AB11.00001.01.01
    AB11.00001.01.01.01
    AB11.00001.01.01.02
    AB11.00001.01.01.03
    AB11.00001.01.02
    AB11.00001.01.02.01
    AB11.00001.01.02.02
    AB11.00001.01.02.03
    AB11.00001.01.03
    AB11.00001.01.03.01
    AB11.00001.01.03.02
    AB11.00001.01.03.03
    this must be done either using bapi or any other programme, i tried with bapi, but not able to solve, pls help me with best way of executing this auto application rather creating manually one by one using CJ20N. i am very sure we have finest ABAP'rs in this forum who will build this programme..
    thanks
    naveen lewis
    Edited by: naveennl on Aug 16, 2010 11:39 AM

    Hi Rifaee,
    appplogies for misunderstanding..
    i want only the clues how i can execute this using some of the available SAP functionalities.. ofcourse finest ABAP'rs only think out of the box to solve this and rest will usually answer it as not feasible.
    Edited by: naveennl on Aug 16, 2010 11:51 AM

  • Issue in BAPI_PS_PRECOMMIT in mass creation of WBS Elements

    Hi,
    I am facing a issue with BAPI_PS_PRECOMMIT.
    we have the following WBS Hierarchy:
    S - Proj, (level1)
    S-XXX WBS Element (level2)
    S-XXX-001 WBS Element (level3)
    I have created a program for mass creation of WBS elements creation
    which uses the following BAPI's
    BAPI_PS_INITIALIZATION
    BAPI_BUS2054_CREATE_MULTI
    BAPI_PS_PRECOMMIT
    BAPI_TRANSACTION_COMMIT
    The proj: 'S' and the level2 WBS element: 'S-XXX' already exist in the system.
    When I run the program for delta load, so as to create the following level3 WBS elements:
    S-XXX-001
    S-XXX-002
    S-XXX-003
    The system is throwing the following errors at the BAPI_PS_PRECOMMIT:
    1. Final Check of the project definition and WBS elements: Error
    2. Validation unsuccessful
    Pls help me on this.
    Thanks,
    Deepak

    Check the WBS elements doesn't exist already in your system.
    Here is what I coded some days back for deletion of Network Activities, most of the things are same.
    You are doing for WBS element.
    * Call to initialization BAPI Before Delete
          CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
    * Call to Network Activity Deletion BAPI
          CALL FUNCTION 'BAPI_BUS2002_ACT_DELETE_MULTI'
            EXPORTING
              i_number           = t_bapi_activity-network
            TABLES
              it_delete_activity = l_t_del_vornr
              et_return = l_t_bapiret2.
          DELETE l_t_bapiret2 WHERE type <> 'E'.
          READ TABLE l_t_bapiret2 INDEX 1.
          IF sy-subrc EQ 0.                                      "If error in Deletion
            MOVE: f_idoc_contrl-docnum TO t_idoc_status-docnum,
                  l_t_bapiret2-type TO t_idoc_status-msgty,
                  'CNIF_PI' TO t_idoc_status-msgid,
                  l_t_bapiret2-number TO t_idoc_status-msgno,
                  l_t_bapiret2-message TO t_idoc_status-msgv1.
                  MOVE c_idoc_status_error TO t_idoc_status-status.
                  APPEND t_idoc_status.
                  ROLLBACK WORK.
                  EXIT.
          ELSE.                                                  "If Delete is successful COMMIT
    * Call to PreCOMMIT BAPI
            CALL FUNCTION 'BAPI_PS_PRECOMMIT'
             TABLES
               ET_RETURN       = l_t_bapiret3.
    * Call COMMIT BAPI
    *        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          ENDIF.
    The other solution is use BAPI_PROJECT_MAINTAIN.

  • Manual/Autometic creation of cost elements in chart of accounts field

    Dear Friends,
    While creation of Chart of accounts (OB13) under  Controlling Integratiion tab
    thers is two options are there.
    1 manual creation of cost elements
    2 autometic creation of cost elements.
    While creation of cost elements if we select
    (MANUAL CREATION OF COST ELEMENTS) what will happen???
    (AUTOMETIC CREATION OF COST ELEMENTS) what will happen?
    What is the main difference between about two fields?
    Thanks in advance,
       Mallika

    Hi,
    MANUAL CREATION OF COST ELEMENTS -  Cost elements maintained manually. A push button is available for
    this purpose, with which you can go directly to the related cost
    element.
    AUTOMETIC CREATION OF COST ELEMENTS - Cost elements maintained automatically. When you save a new G/L
    account, the related cost element is automatically created. A prerequisite is that a default value for the cost element category
    has been set up for this cost element. If no default value is found, the system will not create a cost element.
    You can make default settings via :
    Cost Element accounting --> master data --> cost element --> automatic creation of primary and secondaru cost element --> make default settings
    Dhara.

  • Creation of cost element or not for GBB-VAX,GBB-INV and UMB

    Dear Experts,
    I have few doubt regarding creation of cost element. Whether i will create Cost element or not.
    1) GBB-VAX - used in PGI(Vl02n)We have costing based COPA .whether we will create cost element or not.If i will create cost element then need to be bydefault in okb9 with PSG tick.
    2) GBB-INV- Used for Material taging(MI01,MI04,MI07)whether we will create cost element or not.If i will create cost element then what will be my cost object and how i will charge from my product costing.
    3) UMB- is used whenever standard price is changed. Shall i create cost element for the same
    If yes hen what will be my cost object and how i will charge from my product costing.
    Request you to help me on the same.
    regards
    RR

    1) GBB-VAX -  No, Goods Issue for sales order with no assignment object and hence without Cost Element
    2) GBB-INV- Yes to post expenditure/income from inventory differences
    3) UMB- Yes
    Regards
    KS

  • Creation of Data Element

    Hi,
    I am working on special project of Automation of all utility billing and housing system for a big company in SAP.
    For that I have to create 26 tables and obviously I am creating a lot of dataelements.
    Now the problem is my quality dept says that I should use the inbuilt data elements and refrain from creating new ones. In this case the field label is not matching my field. He says that who is going to see the table and says that you can change the field description in reports as you like. Is it justified.
    I can see that there are more than 500 standard datalements created for  a char field of length 4 by SAP. but none of the description matches my field description. if the case is of reducing the load then does sap recommend not to create z data elements. 
    Can we create dataelement just for the sake of field label and what is the other purpose of a dataelement if not
    How much load will be generated by creating a dataelement.
    kindly give some insight into the need to create dataelements.

    Hi!
    If your Quality people are that much particular about creation of data elements, there is one way to solve this problem. Use standard data elements.
    I know here you will get a doubt that after creating a maintenance generator you will not be able to see the description whatever you want in SM30. For this follow the below procedure.
    While creating maintenance generator you will give the function group name right, go to SE80 -> and give the function group name there -> double click on the screen number of maintenance -> click on element list tab -> click on 'Texts/I/O templates' tab -> now against the field names under 'Text or I/O Field' column remove the value '+____________' and type the field description there -> repeat the procedure for all the fields -> now save, check and activate the screen as well as function group.
    Now if you go to SM30, you can see the field description for every field.
    This is somewhat time consuming, but it may help you.
    Reward points, if useful.
    Regards,
    Venkat.

  • Creation of cost elements automatically

    Hi,
    When I selected "manual creation of cost elements" in OB13, Then we can create a group of cost elements in OKB2 followed by OKB3 and SM35.
    Even I need to do same thing  I when I select " automatic creation of cost elements" ??
    I tried selecting " automatic creation of cost elements".  and I checked in KA03 whether it had created any cost element automatically. but it didnt created any thing...
    Please suggest..

    Dear Santosh Dharana,
    Good Question.  i can clarify you. this question
    1. when you select in ob13 create cost elements manually
    when your are using in obk2  we have to maintain here Acc from no. to Acc to no. ranges for Gl's and cost element categeory.
    after we can run batch in put in obk3 & SM 35 it's updated successfully.
    Note: After execute, *when you are try create another GL account with cost element we have to give cost element categeory by manually.
    2.when you select in ob13 create cost elementsAutomatically
    when your are using in obk2  we have to maintain here Acc from no. to Acc to no. ranges for Gl's and cost element categeory.
    after we can run batch in put in obk3 & SM 35 it's updated successfully.
    Note: After execute, when you are try create another GL account with cost element we don't have to give any cost element categeory here  system automatically give .
    Please try it.  i worked for this one
    Thanks & Regards
    shankar

  • It is a suggestion on Adobe Dreamweaver:  Could you change the setting of the page or template; to a free platform?  example; move: images, tables and other elements all over the place covering the page. in order to facilitate the user in the design envir

    It is a suggestion on Adobe Dreamweaver:
    Could you change the setting of the page or template; to a free platform?
    example; move: images, tables and other elements all over the place covering the page. in order to facilitate the user in the design environment.
    free
    Thank you for your attention

    Adobe has been trying this and the product is called Muse ( Web design software | Download free Adobe Muse CC trial ).  It doesn't give you the control over the code that most developers prefer but it could help bridge the gap for design if that is what you are looking for.

  • Restrict Creation of Cost Elements

    Hi All,
    I have a situation in which I have to restrict creation of Cost Elements for some of my P&L GL accounts. Is there any way I can restrict them. Any help would be appreciated.
    Thanks
    MKR

    Hi MKR,
    I would recommend not to have any validations for this.. This is the heart of the whole system and needs to be maintained in a very disciplined way
    If you put hard stops for such things, people will never understand the relevance of things and slowly the mind set evolves like "Unless the system gives a hard stop, any thing and every thing can be done"...  So, they go on creating nuisance in the system till the system stops them
    Moreover, there is no logic by which you can control this even if you try for an ABAP check... If you do still, it will propose probs in future...
    Provide the authorization for creating/changing cost elements to one single person who understands the system well and have a central control...
    Regards
    Ajay M

  • BAPI for Production order creation against wbs element

    dear all,
    I am using BAPI (BAPI_PRODORD_CREATE) for Production order creation against wbs element.I am putting following input paramters in this
    material no,
    order type
    plant
    qty
    basic start dt & end dt
    wbs
    But during GRN it is not taking the account assignment as project stock i.e. its picking movement type 101 but it should be 101Q.
    For this what changes are required.
    regards
    ravi arora

    Hi,
    2 options i can think of:
    1. Create a BDC program by recording co10
    2. Create a planned order with order type PR using BAPI_PLANNEDORDER_CREATE, specify the WBS element & other details. Now use BAPI_PRODORD_CREATE_FROM_PLORD to create a production order with reference to the planned order created earlier.
    I believe option 2 should meet your need. Check & revert.
    Regards,
    Vivek

  • Creation primary cost elements

    Primary cost elements can be generated in batch for creation, but then it seems to me it's all of them or nothing.
    Is this also possible for 1 year for instance or for a limited number of cost elements, via another transaction for instance.  MASS create?

    Hi Walter,
    First of all you have to select automatic creation of cost elements for your chart of account in OB13.
    Next in OKB2, you have to specify the cost element category for the range or single cost elemets.
    Next create batch input session in OKB3, here you can give from and to valid date.
    You have to execute the created batch input session in SM35.
    Rgds
    Murali. N

Maybe you are looking for

  • Unable to get Jdeveloper to run helloworld

    I have installed jedeveloper from patch4573517 for 11.5.10CU2. However, Everytime i compile the toolbox.jws, i firstly get 67 warnings about missing bits and pieces and then i get IE to start with hello world and all the other links. However, once i

  • Errors while upgrading from 9i to 11gR1 during catuprd.sql

    Hi, I am very new into the world of databases and am learning it the hard way. Testing all sorts of work on my home PC. I am in the process of upgrading my Win 32 9.2.0.8 to 11gR1 and am at the stage of running catupgrd.sql. The SQL ran for hours and

  • Remove Personal Domain from MMe

    I have added a Personal Domain to a MMe account. However, the domain transfer process is going to take a few more days, because of the grace period built into the process. As soon as I added the personal domain name in MMe (I have not clicked the "Do

  • PCMCIA on Solaris 7

    I have a dual boot Dell Inspiron 3800 (Solaris 7 and NT). I'm trying to get a 3COM EtheIink III (3C589C) PCMCIA card to work on the Solaris partition. The on-line manual suggests this should work with the pcelx driver. The pkginfo command tells me th

  • Users group help?

    greetings, i can't find another place for this question. i'm having problems registering our macintosh user's group. over the last couple weeks, i've sent several messages to the email listed for user's group help, but have not gotten any response. i