Raise Event Activity in a process

Hello !
I wonder if someone can help me with some advice about the raise activity in a process.
I want my process to send a message to an agent and wait for the response. I have configured my process to do this by having a send transitioning into a recieve.
However, when the process transitions into the recieve the control is returned back to the user(well calling procedure).
What I want to happen is the process to wait until it has recieved a message before carrying on and not returning control to the user until it has happened.
The workaround to this would be to use the DEQUEUE packages to DQ as with a normal AQ however I would really like to stick with the theme and use the workflow business events system.
Perhaps someone could advise? Would it be best to raise a TAR for this?

Sometimes this operator hangs. If it hangs, you need to "exit" sqlplus.
For example, in the SCRIPT Value:
@myscript.sql;
commit;
exit
PS - I needed to have a Carriage Return after that last /
-Tim

Similar Messages

  • Raising Event within an Activity Expects that Event to be in Current Proces

    Hi:
    I have a workflow process that is started by a business event. The process has an activity that calls a pl/sql procedure. Within that procedure I raise another event (let's call it event2). When this workflow process runs, it seems that the workflow engine expects event2 to be received by an activity in the currently-running process.
    Question: Is there any way to raise an event without the engine expecting the new event to be received in the currently-running process?
    Hope this makes sense.
    Thanks.

    Hi,
    Instead of raising the event from pl/sql, try creating a new 'event' activity and setting the Event Action to 'Raise'. Drag and drop the new Event into your process and set the Event Details tab.
    Hope this helps,
    Meg Hanson
    [Oracle XML Gateway Consultant|http://xmlgatewayconsultant.com]

  • Raise event from within process chain

    Is there some way to easily raise an event from within a process chain?  The only way I know to do this is to run an ABAP program that raises the event.

    Hi Shashank,
    sorry for the delay: I didn't notice your question. Try this way.
    1 - define ABAP Report Z_EVENT_RAISER (see sample code below)
    2 - define a variant for this Report (Event Name mandatory)
    3 - Call ABAP Report Z_EVENT_RAISER from within your Proces Chain.
    This should work
    Hope it helps
    GFV
    *====================================================
    *& Report  Z_EVENT_RAISER                                              *
    REPORT  Z_EVENT_RAISER                          .
    selection-screen begin of block parametri with frame.
    parameters:
      EVENT like BTCH1250-EVENTID obligatory,
      PARAM like BTCH1250-PARAMETER.
    selection-screen skip.
    selection-screen end of block parametri.
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        eventid                      = EVENT
        EVENTPARM                    = PARAM
      TARGET_INSTANCE              = ' '
    EXCEPTIONS
      BAD_EVENTID                  = 1
      EVENTID_DOES_NOT_EXIST       = 2
      EVENTID_MISSING              = 3
      RAISE_FAILED                 = 4
      OTHERS                       = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *====================================================

  • Raise event to trigger process chain

    I have to raise the event to trigger the process chain, but I don't have authorizations to sm64, se37 to triger form fm bp_event_raise, can any body please help me in triggering the process chain.
    [email protected]

    Hi,
    Execute FM bp_event_raise in se37.
    give input parameters:
    EVENTID: *******  ( Mandetory , it is in process chain's event)
    EVENTPARM:  ( Optional)
    TARGET_INSTANCE  : (Optional).
    Then press F8.
    that all you need to do.
    Hope this will help.
    Manju

  • PO workflow process raises event but subscription does not fire

    Hi:
    We are sending POs electronically in XML (11.5.10.2). The PO reaches the supplier correctly. The workflow process to send the PO to the supplier completes successfully. The workflow diagrammer shows that the process fully completes. The last task in the standard process raises an event called oracle.apps.po.event.xmlposent. By default this event has no subscriptions, but I created a subscription that will call a custom workflow process. In testing, I can manually raise this event, and my custom process works. But when the full process runs and completes my custom process does not run. Again, according to the workflow diagrammer, the event in question gets raised. I find no evidence of the event in question in an queue. Why would the process complete, including the step to raise the event in question, but I find no trace of it.
    Can anyone suggest additional debugging steps or a solution?
    Thank you!

    Hi,
    I have answered your duplicate post on the [WorkflowFAQ forum|http://smforum.workflowfaq.com/index.php?topic=1045.0].
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to Raise Event in BW using ABAP program

    Hi BW Experts,
    Can anyone tell how to raise event in BW using a ABAP program.
    Program should ask for the event to be raised and destination server.
    Edited by: Arun Purohit on May 14, 2008 11:04 AM

    Hi Arun,
    By Using BP_EVENT_RAISE function module you can raise an event.Create an ABAP program and call the function module BP_EVENT_RAISE and create a avariant to specify the event to be raised. Schedule this ABAP code. Go to the start process type and set the schedule to "after event" and mention the event name that you created. Also, I think now you can mention the time as well and you can also schedule for periodic scheduling.
    T Code : SM62 --> To Create an Event.
    T Code : SE38 --> To Create an ABAP Program
    Use Function Module : BP_EVENT_RAISE to raise an event.
    Related links:
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset
    Hope this helps
    Regards
    CSM Reddy

  • Wait for a message to proceed to the next activity in BPM Process??

    Hi,
    1. After a BPM process is initiated, is it possible to have a "Wait step" in the process ?...That is, I would like to continue to the next activity in the BPM process ONLY after I have received a certain message...
    We do have a "Wait" step in ccBPM(PI) wherein , we could wait until a certain message is received(based on correlation) and then proceed to the next step....
    Is this possible in BPM ???
    There was a query similar to this in the forum :
    Inter-Process Asynchronous Event
    (or search for "Inter-Process Asynchronous Event "  - Ingo Taraske)
    and a suggestion was provided by David Conil which I didn't quite get...
    Would be great if some one could throw more light on if this is possible in EhP1...Thanks.
    Best Regards
    Arun

    Hi Arun,
    In a nutshell, wait steps are not supported in EhP1. The workaround consists of splitting the process in two processes. In BPMN 1.1, wait steps are modeled using "Intermediate Message Events". The idea is to consider the intermediate message event as start event of the second process. The asynchronous aspect would be covered using PI.
    Best regards,
    David

  • RAISE EVENT usage in real world

    Hi,
    I wonder what is the advantage of the statement RAISE EVENT in contrast to a normal call to a class method.
    Given the following example coding:
    METHOD pai_0100.
      CASE ok_code.
        WHEN 'START'.
          RAISE EVENT read_sflight_data_event EXPORTING i_carrid = i_carrid.
      ENDCASE.
    ENDMETHOD.
    This will raise the event read_sflight_data_event. This event calls the method read_sflight_data set as handler in the class constructor:
    METHOD constructor.
      SET HANDLER me->read_sflight_data FOR me.
    ENDMETHOD.
    Reading data from database...
    METHOD read_sflight_data.
      IF NOT i_carrid IS INITIAL.
        SELECT * FROM sflight INTO TABLE gt_sflight
          WHERE carrid = i_carrid.
      ELSE.
        SELECT * FROM sflight INTO TABLE gt_sflight.
      ENDIF.
    ENDMETHOD.
    Of course I could have written, too:
    METHOD pai_0100.
      CASE ok_code.
        WHEN 'START'.
          me->read_sflight_data( i_carrid = i_carrid ).
      ENDCASE.
    ENDMETHOD.
    Which results in exactly the same result of course, however what is the advantage of events in real world? When is it useful to raise an event instead of calling the event handler directly?
    Thanks for shedding some lights on this topic.

    You don't have to look far to get real world SAP examples for event handling:
    <ul style="list-style:circle!important">
    <li>Workflow (e.g. trigger an event upon creation/change of a document)</li>
    <li>ALV (e.g. react to user input like a double click)</li>
    <li>Job control (e.g. fire a job upon a specific event)</li>
    </ul>
    When you look at the examples it's obvious that the event producer doesn't necessarily know anything about any possible future event consumers: You can ignore events, have one or multiple listeners and the listeners are usually separate from the coding unit that raised the event. Note that it depends on the event handling framework how events are processed (e.g. asynchronous versus synchronous, sequential versus parallel). For class based events the event handler processing is synchronous and sequential; for multiple event handlers their execution sequence is based on their registration order (see [raise event|http://help.sap.com/abapdocu_70/en/ABAPRAISE_EVENT.htm]).
    In a simple example like the one you gave I'd say the event handling approach is possibly questionable (at least as long as all the event listeners are within the same class and there is clearly no need for other objects to listen to this event). Anyhow, the example is probably designed to show the gist of event handling, but sometimes examples from SAP look overly complicated because they seem to prefer the [SoC|http://en.wikipedia.org/wiki/Separation_of_concerns] design principle over [KISS|http://en.wikipedia.org/wiki/KISS_principle] (couldn't resist this little rant).
    Cheers, harald

  • Raise event data_changed doesnu00B4t pass parameter

    I'm using a editable alv (inheritance).
    CLASS lcl_my_alv DEFINITION INHERITING FROM cl_gui_alv_grid.
      PUBLIC SECTION.
        METHODS: activate_data_chg.
    ENDCLASS.                    "lcl_my_alv DEFINITION
    CLASS lcl_my_alv IMPLEMENTATION.
      METHOD activate_data_chg.
        DATA: pr_data_changed TYPE REF TO cl_alv_changed_data_protocol.
        RAISE EVENT data_changed
          EXPORTING er_data_changed = pr_data_changed.
      ENDMETHOD.                  
    ENDCLASS.                    "lcl_my_alv IMPLEMENTATION
    The event is raised by
      CALL METHOD alv_loc_onh->activate_data_chg
    The method handling the event is activated.
    The problem is that the parameter er_data_changed remains empty.
    Suggestions how to solve this ?

    Hi ,
            you have to call checked_changed_data using the class cl_alv_gui_grid object
    Please reward if useful.

  • TCA Business Object Events: Raise Events Program

    Hi,
    We are integrating two ebiz instances using SOA and both the instances currently are on 11.5.10. We have back ported patches from ebiz 12i into these instances to use TCA Business Objects functionality(Business Object API's and events). I have a few questions realted to the concurrent program "TCA Business Object Events: Raise Events Program":
    1) Do I need to schedule this concurrent program to raise business object events?
    2) Is there an alternate way to raise these business object events(any profiles)?
    Appreciate if someone can answer these questions.
    Thanks,
    Sak

    Hi,
    We use AIA and TCA Business Object Events program to integrate from one Ebiz instance to another.
    To achieve what you want I would not do anything in SOA.
    In out integration TCA ends up putting messages into WF_BPEL_Q.
    I would use the following process: (Assuming offline time is a possibility)
    1. Retire the parts of AIA that dequeue from WF_BPEL_Q. (depending on how messages are picked up.)
    2. Create a PLSQL script that dequeues all messages from WF_BPEL_Q but dosn't process them. Using relevant select statements you can dequeue by message ID and select only relevant messages
    3. Run whatever process you need that puts fires the Raise Events Program
    4. Run the script to dequeue the messages that does nothing with them.
    5. Re-activate the parts of AIA that dequeue from WF_BPEL_Q
    This should give you the desired effect. Just be careful you don't screen out messages that do need to be transfered.
    Robert

  • Invocation error in Java Embedding activity of BPEL process in 10g

    Hi,
    I am facing an issue as below in Java embedding activity of BPEL process in 10g...
    Could not invoke: "GTM servlet URL" with verb: POST and context: null
    and the code in java embedding activity is as below...
    // create a new rest invoker stub
    RestInvocation invocation = new RestInvocation();
    org.w3c.dom.Element callOtm_process_InputVariable = (org.w3c.dom.Element)getVariableData("Variable_GTMTransmission");
    // get the result el - so we can derive the namespace needed
    org.w3c.dom.Element callOtm_process_OutputVariable = (org.w3c.dom.Element)getVariableData("Variable_GTMTransmissionAck");
    String GTMURL = "GTM servlet URL";
    try
    callOtm_process_OutputVariable = invocation.invoke
    (callOtm_process_InputVariable, "GET", GTMURL, null,
    callOtm_process_OutputVariable.getNamespaceURI());
    setVariableData("Variable_GTMTransmissionAck", callOtm_process_OutputVariable);
    } finally
    addAuditTrailEntry(invocation.getAuditAsString());
    If anybody is aware of this error, please help me to resolve this issue.
    Thanks in advance.

    Try copy the code from java embedding and paste it to eclipse and run it from there. you will find the exact issue.
    Thanks

  • Difference between business activity and service process in transaction

    Hi Friends,
    Can anyone explain me  the difference between business activity and service process in transaction category of service desk
    Thanks & regards,
    Shanmugam Balamurugan

    Hi,
    Activity means e.g.. sales call, customer visit etc.
    But service process means after you sale your product if some service related issue arrives then that is taken care by this transaction.
    Inspire by rewarding.
    Regards,
    Nikhil

  • Error in wait for event activity

    hi all,
    i am gettin gfollowing error when i am using wait for event activity in my WF.
    wait step 0000000088: No valid object ID in container element 'EVENT_BOR'
    'EVENT_BOR' is my container element of type BOR object which contain event.
    please tell me correct way to use wait for event step.
    i am using this on one parallel branch of Fork.
    thanks.

    Hi,
    check the event in SWO1 if there is an import parameter defined. If there is one you have to define the binding in the task waiting for event. You have to bind the relevant object type from workflow to containerelement &_WI_OBJECT_ID& of the event container.
    reagrds,
    Steffen

  • Taskflow Raise event foucs problem

    Hi,
    We are using Oracle ADF JDeveloper version 11.1.1.4 (released version) for our development.
    We have used several taskflows / reusable taskflows in our application. For most of the taskflows we have "raised events".
    However we are facing strange problem with the same.
    For example:
    Consider a screen where height of the screen is more than the WINDOWS height. For such a screen vertical scroll bar will be there.
    There is a taskflow which is at the bottom of the screen. To see that taskflow user will use the vertical scroll and will reach there.
    If USER performs any action on this taskflow then events get fired correctly but the focus atomically gets shifted to first element of the screen. Due to this behavior USER needs to scroll the screen every time which is irritating. If we disable the raise event focus doesn’t shift.
    Can somebody look into this?

    Hi,
    customer support would be a good point of contact for analyzing the problem if you have a test case. I can only assume you are talking about contextual events ?
    Frak

  • Delay - job created by the RAISE EVENT

    It's possible to change the scheduling of a job created by a RAISE EVENT, and instead of executing immediately, to schedule it as +1 minute delay?
    Thanks!
    PS: i have to wayt because, after the event, some tables are updated in my program and i have to wait the commit
    Edited by: Was Wasssu on Sep 6, 2010 9:08 AM

    That's true, but from the sparse information in the original post I understood that he is issueing a COMMIT WORK anyway in his code. So Mr. Wasssu, are you inside a customer exit? Anything else we need to know?
    Thomas

Maybe you are looking for

  • IPod touch 4G keeps flashing battery in lock screen

    I plugged my iPod 4G into my new windows 8.1 laptop and I keep getting the battery/charging symbol flash on my lock screen when plugged in. My iPod worked completely fine in my windows 7 laptop, there is nothing wrong with the iPod or the USB as far

  • How To upload business partner into sap crm using xif Adapter by XML File

    HI Guru's,              I got Requirement to upload the business partner information into sap crm system using xif adapters from xml file , please give  imformation how can achive this . Regards, Naveen Kumar MS

  • Changed value in Appent not written to change document

    Hello, I have added some fields to a table using an append. During test I realized that the function that creates the change document does not consider appended fields (I debugged deep into some SAP function to see why). This is a problem now. All ch

  • These two rams are same?

    Hi,i am new hereI am looking for a ram for my desktop , while browsing rams on amazon i found this Crucial CT51264BF160B ram and when i searched for this ram on Crucial's website and then tried to check if its compatible with my PC ,the product page

  • Reset Time Capsule Password - Will No Longer Back Up

    Any help greatly appreciated. I changed my TC password and now the machine will no longer back up information. If anyone has experienced this issue, advice would be appreciated.