Mulitple Events in a workflow

Hi All,
I have created a Single workflow for Sales order CHANGE & CREATE events.
Now inside the workflow i want to have different branch for triggering of each event.
I mean i want to give message 'Changed' when change event it triggered!
I want to give message 'Created' when create event it triggered!
Any variable i can use inside the workflow which gives the event that triggered the worflow?
Waiting for your inputs.
Sai Ramesh

Just check the event container. There is a container element with the event name use this.
Regards,
Martin

Similar Messages

  • Want to fire event receiver before workflow is execute while adding File in Document Library.

    Hi,
    I have Event receiver and workflow attached to same Document
    Library.
    Is it possible to fire event receiver before Workflow is
    executed ?
    Regards,
    Milind

    Hi,
    According to your description, my understanding is that you want fire event receiver before workflow is excuted.
    If the workflow for a list is set to auto-start, it will always execute before event receiver by default.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/3147/execution-order-of-event-receivers-and-workflow-on-a-list
    As a workaround, you can set the workflow start by manually. Then , after executing the event receiver, you can start workflow using code at the end of event receiver.
    Here is a demo for your reference:
    http://zimmergren.net/technical/starting-a-sharepoint-workflow-from-code-event-receiver
    More information about start workflow using C#:
    http://jainnitin2411.wordpress.com/2012/07/06/programmaticallystartsharepointworkflow/
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Wait for event by using workflow

    Hi Experts,
    Can someone explain with example the purpose or functionality of 'Wait for event by using workflow' of Wait step-type.
    Regards
    Balu

    I suggest first you go throughly through the SAP help
    [Wait|http://help.sap.com/saphelp_nw70/helpdata/en/8d/25f07b454311d189430000e829fbbd/content.htm]
    [Event Creator|http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4b9e6453d11d189430000e829fbbd/content.htm]
    and then reffer to the wiki that is given in the above post

  • Multipal Event  in One Workflow

    Hello Everybody ,
    Can we Used two Triggaring  Event in  one  Workflow  with two different transaction ? .
    My Req is that I used Bus2038  for  PM  Notification Using Create Event (  Tcode :  IW21  ) .
    When Notification is Created ( IW21)  user can get mail in his  INBOX he  excuted  the Work Item
    ( IW22  here  user are creating Maintance Order  )  .
    After Excute Work Item ( using Tcode  IW22  i.e  After Creating Maintance Order )  User should directly goes to another  transaction  i.e   ( IW32   i.e  Change Maintance Order )  .
    is it  Possible  such kind of Req  . 
    can we triggered  Two  Event  in One workflow ?
    Regards,
    Sandeep Jadhav

    Hi,
    Suggest you the following steps.
    1. Create delegation object type ZBUS2038 of standard BUS2038.
    2. Use the created event of BUS2038 as start event in the Basic data of your workflow.
    3. Then include a send mail step to notify the agent.(user)
    4. create a custom method Z_call_IW22  for ZBUS2038->within the method call transaction IW22.
    5. Then include an activity step in the workflow->create a Task for this activity step->within that Task
        attach BOR ZBUS2038, method Z_call_IW22.
    6. Set your user as Agent for this activity step, so that at runtime user will receive work item for this step and that WI will take him to transaction IW22.
    7. Then include another activity step in the workflow and follow the same process to call IW32.
    Thanks,
    Sonali.

  • Please help me to visible the create event menu in workflow administrator.

    Hi All,
    please help me to visible the create event menu in workflow administrator.
    (select workflow administrators responsibility navigate to administrator workflow -->
    Business events-->events-->here i am seeing only search options,but i required create event,subscriptions.... )
    Regards
    Gopinath

    Hi,
    please help me to visible the create event menu in workflow administrator.
    (select workflow administrators responsibility navigate to administrator workflow -->
    Business events-->events-->here i am seeing only search options,but i required create event,subscriptions.... )You should find "Create Event" and "Create Events Groups" buttons in the same page under "Results : No Search Conducted".
    Regards,
    Hussein

  • Can any body tell me about event container in workflows

    hi Experts,
                      could you please tell me some details about event container concept. is there a way to see event container in SWO1 transaction. how can we create event container when we create new events.

    Hi Praveen,
    Event container is the container which stores the values of the BO attaribures which get assigned to that instance of the BO.
    If you go to SWO1 transaction and check the BO for which the event is triggered, you would see all the possible attributes than can be assigned.
    To pass the values of the BO event container to the workflow, you need to maintain the necessary binding between the BO event container and the workflow container. This can be done in the 'Basic Data', Start Events tab. If you click on automatic binding, the system would prompt for a default binding. You could opt to use that or create your own binding. Make sure that the datatypes match.
    After mapping the event container to workflow container, you can check in the workflow log for the values passed to the workflow container. If you like to directly check the values stored in the event container, go to SWO1 and simulate an instance of the BO. You can then check the values there.
    Hope this helps!
    Regards,
    Saumya

  • Call business event from oracle workflow

    Hi,
    how to call business event from oracle workflow ?
    if possible, could you give any sample code.
    Thanks.

    In short terms: assign values to the attributes that compose the payload of the event. Then raise it. Here a simple example of raising the Flex Field compilation event:
    declare
    l_application_id fnd_application.application_id%TYPE := &1;
    l_descriptive_flexfield_name varchar2(200) := '&2';
    l_application_short_name fnd_application.application_short_name%TYPE;
    l_parameters wf_parameter_list_t := wf_parameter_list_t();
    begin
    SELECT application_short_name
    INTO l_application_short_name
    FROM fnd_application
    WHERE application_id = l_application_id;
    wf_event.addparametertolist(p_name => 'APPLICATION_SHORT_NAME',
    p_value => l_application_short_name,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'APPLICATION_ID',
    p_value => l_application_id,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'DESCRIPTIVE_FLEXFIELD_NAME',
    p_value => l_descriptive_flexfield_name,
    p_parameterlist => l_parameters);
    wf_event.raise(p_event_name => 'oracle.apps.fnd.flex.dff.compiled',
    p_event_key => (l_application_short_name || '.' ||l_descriptive_flexfield_name),
    p_event_data => NULL,
    p_parameters => l_parameters,
    p_send_date => Sysdate);
    end;
    Regards.

  • Triggering event - start business workflow

    Hi,
    I have developed an business workflow which should start if a "transfer order" (Logistic Execution) was created.
    If I create an event (manual) to start the business workflow (BUS2018) it works fine, but if I create a "transfer order" it doesn't work (no event where created).
    I have coupled (and activated) the event to the workflow (transaction SWETYPV). Whats the reason? Any idea?
    Thanks Michael

    Check if check function modules exist on this event which prevents it from instantiating a workflow. (SWE2, or SWETYPV double click the event-->wf entry)
    do the same with conditions (transaction SWB_COND)
    Kind regards, Rob Dielemans

  • Asynchronous Business Object Event not triggering Workflow

    Hello everybody,
    I created a workflow for processing of inbound messages (IDoc). The workflow is correctly started when an IDoc arrives. Then it prepares some data and runs into a waiting step. After the user processes the messages via a custom transaction, the workflow should proceed and send some additional information to the message origin.
    I created a new BO with an event ProcessComplete, which is called in the custom transaction via the following code:
    INCLUDE <cntn01>.
    DATA lo_zisu TYPE swc_object.
    swc_container lo_container.
    swc_create_container lo_container.
    swc_set_element lo_container 'VAR1' lv_var.
    swc_create_object lo_zisu 'ZABC' lv_object_key.
    swc_raise_event lo_zisu 'ProcessComplete' lo_container.
    But when I call this code, the workflow does not continue. When I use SWEL to manually create an event on this object, the workflow only continues when I set the check box "synchronous call". So in some way, the asychronous calls disappears completely.
    Can anyone give me a hint, where to look for these calls? May there be a setting not active on the system for this particular workflow? Other workflows with the same method of event handling work well.
    Thanks and regards,
    Christoph

    Hello,
    I debugged deeper into the whole issue. When I call the function module for the event creation directly (not via the macro posted in my initial post), I have the option to control syncronous va. asynchronous processing:
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        objtype              = 'ZISU_MDC'
        objkey               = lv_objkey
        event                = 'ProcessComplete'
        start_recfb_synchron = 'X'
      IMPORTING
        receiver_count       = lv_rcvcnt
        event_id             = lv_evtid
      TABLES
        event_container      = lo_container
      EXCEPTIONS
        objtype_not_found    = 1
        OTHERS               = 2.
    The export parameter start_recfb_synchron controls this. In the program flow, the following is the difference between the two ways:
    Synchronous:
          CALL FUNCTION im_handler->m_linkage-recfb
               DESTINATION im_handler->m_linkage-rfcdest
               EXPORTING
                 sender                   = l_sibf_object_por
                 event                    = l_sibf_event
                 rectype                  = l_sibf_rectype
                 handler                  = l_receiver_por
                 exceptions_allowed       = 'X'
                 xml_size                 = l_xml_size
                 event_container          = lt_xml_container
               IMPORTING
                 result                   = l_result
               EXCEPTIONS
                 temp_error               = 1
                 OTHERS                   = 99.
    Asynchronous:
          CALL FUNCTION im_handler->m_linkage-recfb
               IN BACKGROUND TASK
               AS SEPARATE UNIT
               DESTINATION im_handler->m_linkage-rfcdest
               EXPORTING
                 sender                   = l_sibf_object_por
                 event                    = l_sibf_event
                 rectype                  = l_sibf_rectype
                 handler                  = l_receiver_por
                 exceptions_allowed       = ' '
                 xml_size                 = l_xml_size
                 event_container          = lt_xml_container
          CALL FUNCTION 'ID_OF_BACKGROUNDTASK'
               IMPORTING
                    tid = l_trfc_id.
    The first one works fine, the event gets processed, there is an entry in SWEL, the workflow continues. The second way does not work. The second function returns a tRFC ID, but when locking tRFC in the debugger and search for the call via SM58, there is no entry.
    In parallel I opened an OSS message, but did not get any (useful) response yet.
    Regards,
    Christoph

  • Event not triggering workflow always

    Hi,
    I have a parallel approval workflow which I trigger everytime I receive a decision from a UWL.it works fine but in some cases all the decisions are not received by the workflow.
    Steps: I receive the decision from UWL via a RFC
               I trigger the workflow with the decision using SAP_WAPI_EVENT_CREATE.
               However sometimes out of 5 decisions only 4 reaches and the workflow never completes since I wait till all the decisions  are received.
    After triggering the event I also update a table which shows correct values meaning the data is correctly passed from UWL.
    Not sure what can be the cause. Anyone any ideas.
    Thanks
    Papiya

    Hello,
    Either the event isn't being created, or the event is being created ad the workflow isn't triggering.
    Check tx SWEL (event trace, turn on with SWELS) to see if SAP_WAPI_CREATE_EVENT is creating the events.
    It will also show you if a workflow is triggered, and what the workitem id is. It will also show any errors.
    regards
    Rick Bakker
    Hanabi Technology

  • Business Event System in Workflow

    Hi,
    I am having difficulties with the Business Event System (BES).
    Actually, I've read the Oracle documentation about BES. Still I don't understand much.
    There are little documentation about the BES, and I still get blank point.
    Here are my questions :
    1. What the Business Event System is?
    2. Some of documentations show that using the BES, the workflow can interact with
    different system.
    What does 'different system' mean?
    Does it mean to another computer (perhaps Client Server type)?
    Or to another system (like headquarter which has several branches) located in
    different location?
    Or to another database service in the same computer (perhaps ORCL and ORCL2)?
    Or with another database applications (i.e Microsoft SQL Server, MySQL)?
    3. How do we use the BES?
    How do we define BES?
    Where do we use the BES?
    Is it using PL/SQL?
    Or the BES itself is a PL/SQL which is inside a procedure or function or trigger (used
    to manipulate the database)?
    What does the BES look like? Is it a PL/SQL code, an e-mail, or ...?
    4. Some documentations said that using the Event (with Receive type) as a start node
    (in Workflow Builder), the process will wait and respon <u>until</u> a Business
    Event is detected?
    How do we interact with BES?
    How do we know what kind of BES to start the process?
    Do we use the Oracle Advanced Queuing?
    Is it using an e-mail to start the Event?
    5. There is a statement from the "Feature Overview Oracel9i Application Server : Oracle Workflow" (from Oracle site)
    "Business event messages from Oracle Workflow can be placed on or received from Oracle9i Advanced Queues, providing support for Oracle Net as well as HTTP and HTTPS communication protocols."
    and
    "The Business Event System uses Oracle Advanced Queuing to propagate messages between communication points on systems, called agents, using a specified protocol. Events received from external systems are processed by an agent listener that runs on the agent's queue."
    Actually what the Advanced Queuing is?
    Is it the mechanism of scheduling activites such as sending a message?
    Is it use to start the Workflow Background Engine periodically?
    What does the Events received from external system is? Is it an e-mail?
    If it is True, so the workflow process could be start using an e-mail?
    6. There is also a documentation stated that the Event can be raised using the PL/SQL WF_EVENT.Raise() API.
    The Event also could be launch using the Workflow Home Page (Workflow monitor) in Event link?
    So what does the BES is used for, if the Event could be launch using a PL/SQL?
    Is the process of raising the Event called BES?
    Such as a procedure to manipulate database tables that consist the WF_EVENT.Raise().
    What is Generate Function is?
    7. What Agent is?
    What Subscription is?
    What Event group is?
    8. Perhaps there is a guide book of using the Business Event System?
    Any light would be grateful.
    Many many thanks,
    Buntoro

    Hi
    I am in exactly the same position...
    Have queued up my events using wf_event and the subscription is putting them in WF_OUT ok.
    So, I guess that WF_OUT is a multisubscriber queue, so when we register with it in BPEL it asks for us to identify ourselves using the consumer and/or correlation ID.
    However, I'm with you in that I have no idea how to specify the consumer.
    There is a CORRID column in WF_OUT and I'm banking on that being the correlation ID at the moment....
    I'll let you know if I crack it!
    Chris

  • Training and Event Management: Start Workflow after PV15 is finished

    I need to start a workflow when transaction PV15 (Follow Up Business Event) is finished for a business event. As I saw in event trace there is no standard BO event created when finishing the follow up. So obviously I have to do it manually. But I also didn't find a BAdI or user exit which can be used for it. Has anyone an idea how to solve this problem? If there is no solution for it I will eventually use a job who checks new follow up flags for business events. But maybe there is a better way?
    Regards,
    Robert

    Well, I really thought these transactions could be helpful. But I'm not yet sure if they could solve the problem. Transaction PV15 changes infotype 1026 (field FLUPX - Indicator: business event follow-up processing completed). That's what I'm interested in. So I'm not sure if Infotype 1001 with subtype A025 with activity as ACER is responsive to finishing PV15. Therefore I added a new entry in SWEHR3 for infotype 1026 and update operation using my own delegated business object Z_PDOTYPEE with the new event POSTPROCESSINGSTARTED. Additionally I wrote a check function module to be sure that the workflow is started only in case IT1026->FLUPX is set. But I don't know what kind of object key will be used when calling event POSTPROCESSINGSTARTED of business object Z_PDOTYPEE. Maybe the key of IT1026? Does anyone know that? In fact the key seems to be different to the expected object key of my business object. When finishing transaction PV15 for a business event the new check function module was called but execution fails with a very strange object key and a very strange error message. What else can I do to solve it?
    Regards,
    Robert

  • Error in event receiver in workflow for PO release strategy

    Hi Expert,
    I am trying to trigger an email through workflow for PO release. I have setup following
    In SWETYPV,I have check marked on Type linkage active and Enable event queue. Status no error.
    In PFTC, under Triggering events, Object type BUS2012 is green light
    When i create the PO in my SAP inbox, i get notification, however, i getting this error u201CERROR IN EVENT RECEIVER".
    Also, how can i send the notification to the user's outlook inbox? Your help will be appreciated.

    laurarice wrote:
    Hi Expert,
    >
    > I am trying to trigger an email through workflow for PO release. I have setup following
    >
    > In SWETYPV,I have check marked on Type linkage active and Enable event queue. Status no error.
    > In PFTC, under Triggering events, Object type BUS2012 is green light
    > When i create the PO in my SAP inbox, i get notification, however, i getting this error u201CERROR IN EVENT RECEIVER".
    > Also, how can i send the notification to the user's outlook inbox? Your help will be appreciated.
    I suppose, you are using the workflow WS20000075. Add sending email as an additional task to the same workflow in SWDD.

  • Apps/Business events/getting Event name in workflow?

    Hello,
    I've created a new workflow that is supposed to receive an event (specifically oracle.apps.gml.po.receipt), and I've subscribed that workflow that business event.
    Within the workflow itself, I am trying to determine what the event is that spawned the workflow. I had thought a call to wf_engine.getitemattrtext for EVENT_NAME would do it, but that's apparently not set yet, or something's broken. Within the workflow, I have an EVENT_NAME and EVENT_KEY attributes, but neither of them are populated.
    The workflow is being started, and processing ok...that is, the p_itemkey (containing the event key) seems to be populated.
    I'm on 11.5.9, OWF.G.
    Does anyone know what I might be missing?
    Thanks,
    Gordon

    To verify - is the Event Name property set to the EVENT_NAME attribute in the Event Details tab for the activity node in the WF Builder?

  • Event Linkage to Workflow

    Hi,
    I need to enable the Standard WF 1000105 PdvAppraisal for the Appraisal Approval/Rejection by Appraisee.
    I enabled the Event linkage in the Trnx: SWETYPV.
    Unlike the other WFs, this WF has the binding with the triggering Event deactivated.
    I activated the binding, saved the WF. But after some time..approx 15 min, I check the binding linkage in other session and see it deactivated. The Linkage dint get saved actually. I am not sure of what might be the reason.
    Please suggest.
    Thanks,
    Suryakiran D.
    Thanks,
    Suryakiran D.

    Suryakiran,
    I assume that this workflow runs every 15 minutes or is activated after the period and an error occurs during runtime.
    One possible cause might be that something in your workflow or even the standard SAP WF went wrong. I've watched this behaviour, too when coding some own workflows before.
    This means that the workflow system will deactivate any faulty workflow in case sthg. went wrong.
    Perhaps you can check using transaction SM58 for any RFC errors or look into ST22 for short dumps.
    Of course you could also debug ot test methods using transaction SWUD. Transaction SWU0 allows you to test event linkage.
    HTH,
    Michael

Maybe you are looking for

  • Embed flv instead of linking?

    Is there a way to embed flv files (the same way images are embeded) within the published SWF? From this thread I see the default behavior is to link to flv files, I'm just wondering if there is a way to change that behavior without bringing the code

  • Icloud deactivation

    Hello to the community I had a big problem regarding me icloud account. I couldnt remember my password so i couldnt turn the find my phone off and couldnt restore it as well. Then i contact my country support and then i did the whole procedure with t

  • Access Database for Mac-Replacement

    What is the application for mac that is the most similar to Microsoft Access? I used to use it in my PC days, and it was so much easier to use than free mac solutions I've tried such as NeoOffice Database. I was hoping to find an app in the <100 rang

  • RPCIPE00 error log/messages

    Hi all, When I run this RPCIPE00 program, I will get some error messages on certain employees regarding "posting balance not cleared" in the error log button in"Evaluation of Posting Item " screen. I want to know is the error log stored permanently?

  • Another external HD up the spout

    Hi all, like a few others I am having trouble with my external USB 20G hard disk. The thing connects ok and my Mac writes files without a problem, but when I try and read them back the machine freezes. I have tried all the format options and in reads