BPEL wait for an event activity

Hi,
I have requirement for two scenarios ::
1. BPEL waiting for a business event (like event from EO's create /update / delete)
2. BPEL waiting in between for callback from other processes.
if #2 is possible, inherently I can achieve #1 by having another
mediator listen the event and invoke the callback. (Please suggest if
there is any better way)
Can any point me some links / documents for implementing above two scenarios.
Thanks & Regards,
Harish

Using Events.
I have a little zip of 2 BPEL processes which do precisely what you want. Unfortunately, these forums do not have attachment capability (at least what I can find)
I have sent the Zip archive to your email (in your forums id).

Similar Messages

  • High "CPU + Wait for CPU" event on pl/sql execute operation

    I am executing a pl/sql in 256 parallel sessions, on 11G r2 DB (RAC 2 nodes), on a 42core IBM P7 Machine.
    PL/sql function opens a cursor on a huge table with around 20M rows and does further processing.
    Work-load is equally divided into 256 parallel sessions. 256 parallel sessions are opened by a middle-ware application and each session processes data based on an identifier (there are 256 distinct identifier values).
    PL/sql function is comprised of some SQL operations, on which i am experiencing some cluster waits. But CPU + wait for CPU event on pl/sql execute operation is close to 80% of the total execution time.
    Top user events:
    Event Event Class % Event Avg Active Sessions
    CPU + Wait for CPU CPU 80.88 98.15
    gc current block 2-way Cluster 3.33 4.05
    gc cr block busy Cluster 2.01 2.44
    gc cr block 2-way Cluster 1.97 2.39
    db file sequential read User I/O 1.81 2.20
    Top SQL command type:
    SQL Command Type Distinct SQLIDs % Activity Avg Active Sessions
    PL/SQL EXECUTE 3 60.99 74.02
    SELECT 66 12.90 15.65
    INSERT 24 9.89 12.01
    UPDATE 9 6.00 7.28
    DELETE 2 1.33 1.61Rest of the SQL queries seem to be very optimum, but waits on pl/sql execute operation are causing very low tps.
    Can anybody give me some heads-up about where to and what to look for to resolve?
    Please let me know if any extra information is required.

    AWR report :
    Header
    DB      Name      DB Id           Instance      Inst num      Startup Time           Release RAC
    FCR           1304316316      fcrypp1      1                01-12ÔÂ-12 04:12      11.2.0.2.0 YES
    Host           Name Platform                     CPUs      Cores      Sockets Memory (GB)
    z4ci2011      AIX-Based Systems (64-bit)      168      42        320.00
                   Snap Id      Snap Time                     Sessions      Cursors/Session
    Begin Snap: 40650           01-12ÔÂ-12 06:40:03      1203           5.8
    End Snap:      40669           01-12ÔÂ-12 09:50:01      1122           5.3
    Elapsed:        189.96 (mins)    
    DB Time:        22,251.65 (mins)
    Load profile
    Per Second           Per Transaction      Per Exec      Per Call
    DB Time(s):           117.1                19.5                     0.00           3.89
    DB CPU(s):                16.1                2.7                     0.00           0.53
    Redo size:                12,759,186.3      2,126,361.0    
    Logical reads:           181,875.9           30,310.2    
    Block changes:           54,515.5           9,085.2    
    Physical reads:      1,340.3           223.4    
    Physical writes:      8,788.9           1,464.7    
    User calls:           30.1                5.0    
    Parses:                26.5                4.4    
    Hard parses:           0.4                0.1    
    W/A MB processed:      8.5                1.4    
    Logons:                0.1                0.0    
    Executes:                41,176.0           6,862.1    
    Rollbacks:                1.9                0.3    
    Transactions:           6.0      
    Time model statistics
    Statistic Name                                             Time (s)          % of DB Time
    sql execute elapsed time                              1,334,935.55     99.99
    PL/SQL execution elapsed time                         1,180,376.60     88.41
    DB CPU                                                       182,904.44          13.7
    repeated bind elapsed time                              292.83               0.02
    sequence load elapsed time                              279.75               0.02
    parse time elapsed                                        87.4               0.01
    hard parse elapsed time                                   22.52               0
    failed parse elapsed time                              5.12               0
    connection management call elapsed time               4.61               0
    PL/SQL compilation elapsed time                         1.91               0
    hard parse (sharing criteria) elapsed time          0.49               0
    hard parse (bind mismatch) elapsed time               0.39               0
    inbound PL/SQL rpc elapsed time                         0.1     0
    DB time                                                       1,335,099.30     
    background elapsed time                                   33,298.67     
    background cpu time                                        11,692.76     
    Operating System Statistics
    Statistic Value End Value
    AVG_BUSY_TIME 202,428  
    AVG_IDLE_TIME 936,397  
    AVG_IOWAIT_TIME 4,124  
    AVG_SYS_TIME 84,480  
    AVG_USER_TIME 117,573  
    BUSY_TIME 34,074,303  
    IDLE_TIME 157,378,825  
    IOWAIT_TIME 755,368  
    SYS_TIME 14,256,010  
    USER_TIME 19,818,293  
    LOAD 21 10
    OS_CPU_WAIT_TIME 23,770,800  
    VM_IN_BYTES 20,496  
    VM_OUT_BYTES 2,086,940,520  
    PHYSICAL_MEMORY_BYTES 343,597,383,680  
    NUM_CPUS 168  
    NUM_CPU_CORES 42  
    NUM_LCPUS 168  
    NUM_VCPUS 42  
    GLOBAL_RECEIVE_SIZE_MAX 41,943,040  
    GLOBAL_SEND_SIZE_MAX 41,943,040  
    TCP_RECEIVE_SIZE_DEFAULT 16,384  
    TCP_RECEIVE_SIZE_MAX 9,223,372,036,854,775,807  
    TCP_RECEIVE_SIZE_MIN 4,096  
    TCP_SEND_SIZE_DEFAULT 16,384  
    TCP_SEND_SIZE_MAX 9,223,372,036,854,775,807  
    TCP_SEND_SIZE_MIN 4,096
    SQL ordered by CPU Time
    CPU Time (s)      Executions       CPU per Exec (s) %Total      Elapsed Time (s)      %CPU      %IO      SQL Id SQL Module SQL Text
    180,330.13           127                1,419.92                98.59      1,326,401.03           13.60      1.08      04kt8u64udphu    BEGIN :1 := ap_ch_eod_shell_en...
    8,025.48           9,868,469           0.00                     4.39      10,809.88                74.24      9.21      arnkbsnzhha77 ch_txn_shell_115  SELECT * FROM CH_ACCT_MAST WHE...
    6,117.64           9,873,495           0.00                     3.34      8,557.64                71.49      7.14      8qcryvj294s79 ch_eod_shell_138  UPDATE CH_ACCT_MAST_PAR SET DA...
    4,614.71           3,185,313           0.00                     2.52      11,130.77                41.46      11.88      b75wwkxw34x2k ch_eod_shell_228  INSERT INTO CH_TMP_XF_GL_TXNS ...
    4,374.29           9,866,217           0.00                     2.39      5,876.00                74.44      37.88      g22p493ra2zr5 ch_eod_shell_248  UPDATE CH_ACCT_MAST SET BAL_LA...
    3,514.57           14,026,451           0.00                     1.92      6,274.60                56.01      29.55      7bwhphfnnuqpr ch_eod_shell_59  INSERT INTO CH_ACCT_INT_BREAKU...
    3,253.36           3,185,706           0.00                     1.78      3,875.42                83.95      9.20      9dq134q9btxq8 ch_eod_shell_74  INSERT INTO CH_ST_CAP_INPUT_TX...
    3,131.64           9,875,603           0.00                     1.71      5,338.43                58.66      15.55      6xhwk1b37rh1t ch_txn_shell_143  UPDATE CH_ACCT_ATTRIBUTES SET ...
    2,954.15           9,878,718           0.00                     1.62      5,692.88                51.89      13.22      b4at7uq2hw6r7 ch_sweepin_shell  SELECT TRIM(A.COD_PKG) FROM RP...
    2,572.01           9,867,277           0.00                     1.41      4,605.88                55.84      12.58      54ud0a8tuwwbc ch_txn_shell_17  SELECT * FROM CH_ACCT_ATTRIBUT...
    1,941.29           19,730,455           0.00                     1.06      5,580.38                34.79      7.02      dx5kng8qu560t ch_txn_shell_59  UPDATE CH_ACTIONS_DUE SET COD_...
    1,846.01           9,875,239           0.00                     1.01      4,737.66                38.96      12.55      af7f92f13rmy4 ch_txn_shell_85  INSERT INTO CH_ACTIONS_DUE (CO...

  • Why use a wait timer when you can "wait for front panel activity"?

    Why does everyone:
    1) Wire a stop button to the while loop conditional terminal and add a wait for 100 ms (or so) timer to the loop.
    When they could:
    2) Wire the stop button to the while loop conditional terminal AND to "Wait for front panel activity" VI as described in the VI's help file?
    Thanks!
    Adam

    That's just a matter of habit. In previous LV versions, the wait for front panel activity was not available.
    And of course, now you can use the Event structure, that offers better possibilities...Message Edité par chilly charly le 06-25-2006 04:11 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Process Chains Always Hangs at the second step waiting for an event

    Gents;
    all BI process chains created in Production system are always hanging in the second step waiting for an event RSPROCESS with a certain parameter. This issue is happening for all process chains in Production system and it is not happening for the same in other systems in the landscape (development, Copy of porudction, quality and so on). I tried to trigger the event manually using SM62 but the job is always stick to status " released". the same thing was replicated in other systems and the job status has changed and the process was completed.
    Any idea what might cause this issue??
    Thanks.

    Hi,
    You said that this thing is happening only in production system.Try doing the following checks :
    1.Check SM21to see if there are any red entries.It can be possible that there is some data base RFC connection failure.While checking SM21, make sure you give proper selection condition.If there are any red entries, you may take the help of basis guys to understand the type of failure.May be file system has got some problems.
    2.Check St22 and try to analyse if any short dumps.
    3.Try to check Connection with the source system ( Goto RSA1->source system tab->right click on the source system and select check option to find if any errors in the connection.
    4.If possible, try to load manually in some other info provider.
    Thanks,
    Tarun Brijwani.

  • Error in work flow wait for change event

    Error in work flow wait for change event of business object bus1014, Actually this business object is triggering for two transaction one is me21n and another is c201 . am trying to create fork with two branches one is create and another if change occurs wait will trigger, bt when i trigger work flow controll is not after fork, it will stop in fork only. and am not getting my workflow container variable getting instantiate, am getting error in wait. please any one get out of me in this

    Hi Sangeetha
    What is LV_MATERIAL? is it a BO container element? or a class element or a just a simple variable?
    Error message is clear, you are trying to evaluate LV_MATERIAL but it does not contain a value.
    This is a custom workflow as it begins with WS9xxxxxxx... what is LV_MATERIAL used for? what are we expecting it to hold? maybe, from event to workflow binding we can pass the value to it.
    Please share the following:
    1) Definition screen shot of LV_MATERIAL
    2) Screen shot of The step where it is first used - from SWDD
    3) Screenshot of Event to Workflow Binding
    4) name of your base Business Object (seen in the triggering events tab of the WF template in PFTC)
    5) What is the corresponding variable for that BO in your workflow container
    6) Screen shot of WF definition from SWDD - please identify the step going in error in that screen shot
    Regards,
    Modak

  • Correlations in Workflow - wait for Delete event problem

    Hi All,
    I am working on version ECC5.
    I have a workflow that needs to wait for any changes to i0008, i0007, i0509 and i2001 for the person who is the subject of the workflow.  I have used correlations to do this and it is all working fine except for the Delete event.
    For each infotype I wait for each event ie. Approved, Changed, Created, ApprovedCancelled and Delete.  When the events are published the wait event is triggered and the workflow goes to the next steps where it does a recalculation,  fires off a new workflow and ends the current one.  This is working for all of the events except Delete.  The Delete event is set up exactly the same as the rest, but somehow the workflow wait event is not triggered.  It is happening with the Delete event for all the Infotypes I am waiting for.
    Does anybody have any suggestions as to what may be the problem. 
    Thanks
    Sandra

    Arghadip/Martin thanks for your replies.
    Yes, the delete event is being published.  I am using the same object e.g BasicPay for the delete event that I am using for the other events - Approved, Created etc. that are working.   The correlation and the wait for event steps are set up exactly the same way as they are for the events that are working.  I find it curious that the delete event doesn't work for any of the infotypes.   Why?  Could it be that when a record is deleted the object no longer exists?
    Any suggestions?
    Thanks
    Sandra

  • Wait for stopper event to be increased - SMON

    Dear all,
    we have restarted a database, but sessions seem to hang. The smon has these waits:
    wait for stopper event to be increased
    what does this mean?

    Hi,
    you could have problem with a transaction.
    Check on v$session_wait to retrieve where this session hangs..
    In v$session_longops you can also find the progress of the session.
    Undo tbs are ok?
    Acr

  • Shopping Cart Workflow - "Wait for change event" not firing?

    Hi there,
    I have a scenario where if I create a shopping cart above my spending limit it will go into the approver's inbox, that is fine.
    Now if I change the total value of the shopping cart to be within my spending limit the original workflow should be "logically deleted" and a "no step approval workflow" should be triggered.
    I see when the SC workflow triggers it also branches with a "wait for events", so that if it changes etc it will get caught here.
    When I change the SC it does not do anything, the value of the cart changes but it still sits in the approvers inbox and the "no step approval workflow" does not trigger.
    We are busy upgrading to SRM 5.0, it worked perfectly in the SRM 3.0 system we had.
    Any ideas what would cause the "change event" not to fire?
    Thanks for the help
    Lynton

    Hey Masa,
    You are the man!! That solved it.....I have implemented the BBP_WFL_SECUR_BADI and for whatever reason I set the security level to 4 when it should have been 2.
    4     "High" (workflow is never restarted when changes are made)
    3     "Medium" (WF restarted conditionally when changes are made)
    2     "Low" (workflow is always restarted when changes are made)
    1     "None" (changes to the object are not allowed)
    0     "Not defined"
    Thanks for the help
    Lynton

  • How to make a component wait for an event?

    Hey there Adobe community, I recently started using Flash Builder and I have a problem. I have a windowed application in Flash Builder with some script code and then a base64 image.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:flexlib="http://code.google.com/p/flexlib/" preinitialize="loadImage()">
        <fx:Script><![CDATA[
            import flash.display.BitmapData;
        import flash.utils.ByteArray;
        import mx.controls.Image;
        import mx.core.UIComponent;
        import mx.graphics.codec.JPEGEncoder;
        import mx.utils.Base64Encoder;
        private var image:Bitmap;
        private var base64image:String="";
        private function loadImage():void
            var loader:Loader = new Loader;
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
            loader.load(new URLRequest("mypic.jpg"));
            trace("started loading");
        private function getimg():String
            trace("flexlib accessing image ", base64image);
            return base64image;
        private function imageLoaded(event:Event):void
            image = new Bitmap(event.target.content.bitmapData);
            base64image = getBase64FromComponent(image);
            trace("image converted");
        ]]></fx:Script>
        <flexlib:Base64Image value="{getimg()}"/>
    </s:WindowedApplication>
    The flexlib tag should render an image from a string. I want to load an image in the actionscript code, convert it to a string and then draw it. However, as soon as the application starts it attempts to render the string, which is still empty.
    The trace is like this, for some reason the getimg() is called twice:
    flexlib accessing image
    started loading
    flexlib accessing image
    image converted
    As you can see, the image isn't converted until after flexlib tries to draw it. The solution would be to make the flexlib component wait for the imageLoaded event, or make the specific tag re-initialize itself. How can I do this?

    Great, thanks. Now I can narrow my problem scope down.
    This is now the isolated culprit of my program:
    "Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space"
    I already ran garbage collector just before 2nd method but the same error still occures.
    But if I were to comment out method 2, run the program (to generate the file from method 1), then do the opposite and run again, it will work. ie. I have to run the main program twice.
    I don't understand this. The free memory after running GC after method 1 has reset the free mem to approx 1654kb so why can't method 2 run properly?
    Even if I just run method 2 alone, the free mem it starts with is 1639kb.
    Here are the memory values during the execution.
    //all memory values in kb
    Max memory = 65088
    Allocated memory = 1984
    total free memory: 64743
    free memory before method 1: 1639
    // Run method 1
    free memory after method 1: 875
    free memory after running garbage collector: 1654
    //Run method 2
    free memory after the main computation in method 2: 4807
    free memory AFTER running garbage collector: 6733
    Any solutions?

  • Make coded ui tests wait for onfocus event during playback - SharePoint 2010 InfoPath form

    I recorded a coded UI test of a SharePoint 2010 site hosting an InfoPath form. The combobox on the infopath form loads the items on onfocus event. It seems that the  coded ui test do not wait for the onfocus event to complete and tries to select the
    item and fails with the error
    The web page could not be accessed. If the page is refreshing, please wait until the page refreshes and then perform actions on it. 
    how can i make the Test to wait till it completes the onfocus event and then select the item.
    one approach i applied was  
    bool bReady = false;while (!bReady)
    try
    uID4ComboBox1.WaitForControlReady();
    // Select 'RMA2' in 'D4' combo box
    uID4ComboBox1.SelectedItem =this.CreateProposalParams.UID18ComboBox1SelectedItem;
    bReady =true;
    catch
    Playback.Wait(1000);
    But i have a lot of combo boxes which makes this solution difficult to implement.
    Thanks in advance.

  • GP callable object waiting for abap event

    Hello expertes,
    I'd like to develop a gp process which contains a callable objects which keeps the process instance waiting until an abap function module send something like an event.
    I don't want to put too much load on the machine and block expensive JCO ressources.
    Does anyone have an idea how to solve this?
    Thanks very much
    Stefan

    Hi Shanto Aloor,
    I tried assigning a default user(using initiation defined) to the process , also tried settting the processor as "initiator", but still not working..
    I have been searching for documentation on this issue , but I couldn´t find anything..
    Any other clue?
    Thanks in advance,
    Marco.

  • Workflow WAIT FOR EVENT STEP deadline not working

    Hi,
    Need some inputs for the experienced people;
    I have a wait for event step in a workflow with deadline monitoring (Latest End) but it doesn't seem to work.
    Ofcourse, all the required setting are in place and deadline works fine for other Activity steps.
    The problem is specific to Wait for event step.
    The alternative is having a fork but I just want to know why the wait step with deadline doesn't work.
    Thanks,
    Roopesh

    Hello Ajay,
    Can you share with us what did you do to solve your problem?
    I'm facing the same thing in my project now, I'm wandering if you could help me with this one.
    I have this wait for an event step wich is configured to wait 4 minutes since the work item creation. I've also selected 'Modeled' on the Action field, and a display text for the outcome.
    But in one of my tests, the event hasn't occurred and the workflow stuck in this task forever.
    Thanks in advance.
    Regards.
    Actually, I think I got this handled. This thread was really helpful to me: http://scn.sap.com/thread/47482
    Message was edited by: Leandro Farias dos Santos Abreu

  • Stop waiting for event 'SEND_OK_TRANSPORT' of CL_SWF_XI_MESSAGE

    Hi,
    I designed a BPM with a sender requesting for a Transport Acknowledgement.
    But earlier I defined via IDX_NOALE, that no Ack. should be sent.
    My problem is now, that I have a lot of messages waiting for the event 'SEND_OK_TRANSPORT' of object type CL_SWF_XI_MESSAGE.
    How can I stop these workitems (>10000 workitems
    Is there a report to fix this problem?
    Thanks a lot
    Regards
    Wolfgang

    Hi Wolfgang,
    If you go to SXMB_MONI_BPE you can see various options to play around with work item and work flows.
    if you want to change workflow state manually just execute Diagnosis Processes with Error option here you can edit work item and workflow states.
    Cheers,
    Jag

  • Problem with wait for event

    Hi everyone,
    I'm using wait for event step in my workflow of a custom event called zevent2.
    I'm not using the event as a start event of the workflow.The event is getting triggered at a certain point of the workflow programmatically.
    So for that what should be the entry in SWE2? I've maintained the following entry for zevent2 at swe2 tcode.
    Object type: BUS2000126
    Event: ZEVENT2
    Receiver type:
    Receiver function module: SWW_WI_CREATE_VIA_EVENT_IBF
    In swel I'm finding out that event got triggerd but it is giving error "No Receiver Entered".
    And the workflow is getting stuck at 'wait for step event'.
    So can anybody please tell me what is the step am I missing? is the swe2 correct?
    Thanks & Regards,
    Anirban

    HI....
    you have to specify RECIEVER TYPE without which you will be getting this error
    goto SWE2 and give the value and your problem will be done
    regards
    Edited by: Mohit Kumar on Feb 20, 2009 10:50 AM

  • Error in "Wait for event" step in a WF

    Hi,
    I try to use a wait for an event on a Z object
    When i test the workflow i get the error: "WL 442 No valid object for the container element".
    Can someone please help me with this error?
    So far, i have only created the event in the object zaccount. This event has to be trigger everyday at 12:00AM so taht every workflow in wait restarts, i also do not know how to do this, because using the function SWE_EVENT_CREATE or SAP_WAPI_CREATE_EVENT i ahve to pass the objectkey, how do i obtain the workflow keys? can't i just trigger this event for everyworkflow waiting for it, no matter what the key is?
    Thanks in advance for any help given
    Regards,

    Hello,
    I haven't created any binding, i jsut assigned it in the vent, as i tried with another event from another object and it needed no binding.
    What i do is I assign the container element and the BOR type, and then assign the event. I haven't defined any binding because it shouldnt be needed i believe.
    BTW, i am new to WFs, so again, thanks for eveyr answer.
    Thanks
    Hello,
    "WL 442 No valid object for the container element".
    How is the binding between the event and the workflow, are you passing the object? Are you using a key?
    regards
    Rick Bakker
    Hanabi Technology

Maybe you are looking for

  • PanelGroupLayout line wrapping and af:iterator

    Hello. I have a collection of elements and I would like to form a layout where those elements would be horizontal in a line while they fit allowed space or wrap to another line. The collection elements are displayed with af:iterator. I thought a pane

  • Oracle 10.2 to MS-SQL Server 2005 connectivity

    Hi, I Have oracle10.2 installed on windows server 2003 (server2) and MS SQL server 2005 on windows server 2005(server1). Connectivity architecture 1. I have created the DSN in windows odbc drivers in server2 and tested (connectivity is successful). 2

  • How to remove OTHER files on storage

    please help me remove the other files section. its higher than my apps and higher than system. 1320 user

  • Win 7 cannot uninstall or reinstall CS4

    Tried to reinstall CS4 shortly after original install. When it finished uninstalling, it came up with an error message saying that the program didnt uninstall properly and tells me to "read below for details". There is no information given "below", i

  • LR 1.4.1 Hangs on Import

    Importing from SD card or from folder on hard drive, LR 1.4.1 hangs on import into an existing catalog. Sometimes it imports 1 picture, sometimes more, and then it hangs. Canceling the import does not work. This is a Vista machine with plenty of hors