Subworkflow - event trigerring within workflow

Hi,
Scenario -- WF is triggered when customer creates quote and it goes to manager for approval. If the manager rejects it, work item goes back to the user. My requirement is -- if the user makes any change with price - he changes the status of the quote to 'revised' at header level. Then it should again go back to manager for approval. If the user makes some other changes and does not change the status to revised--- then it need not go back to manager. How do I keep it in loop. Is there need for me to check some table and trigger a new event and create a subworkflow. How do I go about. Please help me. It is urgent.
Thanks,
Raju

First of all do not include new question in existing thread. Post a new Thread for this.
Your original question resolution.
Create a fork(1 necessary branch and 2 parallel branch). In one branch put the approval step. In aonther branch put the wait for Change Event Step. Put this step in a loop. Now create an attribute inside your business object or amethod that will check whether it is a price change or not. You can achieve this by Changedocument. Read CDHDR and CDPOS table. Accordingly set a flag. If the flag is X means change in price the Loop condition will tereminate. Otherwise flag not X that means changes not relevant for approval.
Please close thread if resolved.
Thanks
Arghadip

Similar Messages

  • How to respond Events defined within workflow

    I have a workflow in which I have defined and event (that star thing). the event says
    that if the root of the xml is "ERoot" then this event should be triggered.
    I have an xml with 'ERoot' as the root. I think i have to post this xml into a jms
    queue inorder to wake up my event.
    to which jms queue/topic should I post this xml?
    is it com.bea.wli.bpm.EventQueue? or is it some other TOPIC?
    thanks,
    Naveen

    u need to create the events step by step in the workflow.
    first event would be the condition which should be checked so that it gets triggered when the condition is satisfied.
    second would be the the triggering in which u will get this triggered. u need to create a class in which the adobe form's code will be present like the FM it generates etc.in this class u will to write some methods for eg: if u create method say send_mail in this class u will code all the logic for sending the adobe form as a mail and u assign this in the workflow. So now, in the workflow all the methods that u assign will get triggered.

  • 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?

  • 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.

  • 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

  • Can I use an event structure within another event structure

    Hi
    Can use an event structure within another event structure?
    Thanks
    Yasamin
    Solved!
    Go to Solution.

    I attached my Vi from my old project (MY OLD VI). It is worked correctly.
    But I decided that use event structure instead of case structure.
    I attached my new VI as a picture and as a LabVIEW VI too (network_analyzer_8510_920527 Frequency Sweep.vi )
    My graphs show by pressing "case 5: button (Bottom of page right hand).
    Then I want to show each of graph in a large window( in a new VI) by clicking a key (for example "show 1").
    Thanks
    Yasamin
    Attachments:
    my VI.JPG ‏256 KB
    network_analyzer_8510_920527 Frequency Sweep.vi ‏72 KB
    MY OLD VI.vi ‏69 KB

  • 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.
    *====================================================

  • Oracle Issue around handling CLOB within Workflow Transaction

    Hi,
    - In Workflow Notification Message I am using an CLOB Document for building the
    message Body
    - This CLOB value is going to be SELECTed and initialized from a TABLE
    (having CLOB column) during the document related procedure execution
    NOTE: In order to select from a CLOB we need to issue FOR UPDATE
    to have read consistency
    (otherwise it will give LOB not locked for update error during notification display)
    Here the issue I am facing is :
    The same notification is going to be sent to Multiple users (thru Notification
    to a Apps.Responsibility i.e. WF Role)
    When USER1 opens the notification, the CLOB Table row gets a lock
    (due to FOR UPDATE) and is not released until ROLLBACK/COMMIT
    which will not happen as it is a workflow (if I put this Select FOR UPDATE
    in a AUTONOMOUS transaction then it gives error as LOCATOR id cannot
    spawn between transactions during the notification display)
    When USER2/USER3 opens the same notification which he received being a member
    of the Responsibility , the notificaiton screen gets hanged as it again
    tries to issue SELECT FOR UPDATE and sees USER1 holds the lock.
    My Requirement is:
    When first time anyone user opens the notification, it will not find a record in table
    so it builds the notification and stores the CLOB record into the table.
    Next time onwards all the users should get the stored record from the table
    (Read CLOB value from Table and show in the Notification Message Body)
    Please help me in resolving the SELECT FOR UPDATE of a CLOB within Workflow
    when multiple users need to issue without the need of a COMMIT/ROLLBACK
    NOTE: Even I am only Reading the CLOB value from a Table, without
    having any need of updating it, still I need to Issue FOR UPDATE
    as per Oracle CLOB constraint.
    thanks,
    Shashi

    Hi,
    I didn't do the select directly into document when I did it in my test. Here's the two different methods that I used in my database to test the problem:
    create or replace procedure msclobtest
                       (document_id   IN     VARCHAR2
                       ,display_type  IN     VARCHAR2
                       ,document      OUT    CLOB
                       ,document_type OUT    VARCHAR2
                       ) as
    cursor c1 is select theclob from ms3 where clob_id = 4;
    v_clob clob;
    begin
    debug('started clob');
    open  c1;
    fetch c1 into v_clob;
    close c1;
    document := v_clob;
    document_type := 'text/html';
    debug('clob ended');
    end;
    create or replace procedure msclobtest
                       (document_id   IN     VARCHAR2
                       ,display_type  IN     VARCHAR2
                       ,document      OUT    CLOB
                       ,document_type OUT    VARCHAR2
                       ) as
    cursor c1 is select theclob from ms3 where clob_id = 4;
    v_clob clob;
    begin
    open  c1;
    fetch c1 into v_clob;
    close c1;
    dbms_lob.createtemporary(document,FALSE);
    dbms_lob.copy(document,v_clob,dbms_lob.getlength(v_clob));
    document_type := 'text/html';
    end;If it's not the code, then it might be something in the Workflow itself.
    Are the values of the document attribute being set correctly in the Workflow? Are you sending to a role? Have you checked the "Expand Roles" tick box? Have you checked the "Attach Content" tick box?
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com

  • 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

  • Business Object for Event trigering

    Hi All:
    I want to use Business Object for Event trigering so just wondering if anybody has detail steps required for it.I already looked at transaction SWO1 but I don't know all the required steps.
    I need to call a program/function to send data to external system when user changes following objects.
    1) Customer master
    2) Quote
    3) Contact
    Thanks in advance.
    Nilesh

    Hi nilesh
    you need to find the appropriate standard business object first . this can be don eby using event trace . switch on the trace by swe4 perform the required transaction and then display the trace in swel. if a standard object is there you will get it listed there with the event that got triggered when u performed the transaction.then u can eventually make a zcopy of it and use
    do let me kno if anything else is required
    regards
    ravish
    reward points is the best way of saying thanks in sdn
    Message was edited by:
            Ravish Garg

  • 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

  • Purchase Order Workflow event trigered when i create the Schedule Agrrement using ME31l.

    Hi expert,
         When i create Schedule agreement using me31l it will raise the PO workflow instead of SA  Workflows. ?  where is the configuration mismatch happen ?

    HelloTithira,
    I'm very sorry to admit that I haven't entirely looked at a running system when talking about the CEKKO. You're absolutely right that the document category type is not part of it and you couldn't proceed with maintaining the classification in that way.
    I did mention the BSTYP field, as I was used to have the field available, as I usually add this at the first place when starting a project for PO-releases.
    As far as I remember, there's a MOVE-CORRESPONDING statement at one point, where the CEKKO structure is initialized, from the EKKO structure that is available. So when you name an APPEND-field of the CEKKO structure BSTYP having the same type as the EKKO, you should find that field filled, without(!) implementing the CEKKO user exit yourself.
    It this doesn't help either, please implement the CEKKO user exit to fill your BSTYP field.
    If nothing helps at that point, and you're still stuck, you can enable a "Workflow start condition" for the two events on BUS2012.ReleaseStepCreated and the same for BUS2013, where you check the EKKO-BSTYP of the BOR Business Object types against the corresponding object, i.e.
    _EventObject.PurchasingCategory = 'F'     (For the event on BUS2012)
    Do get the PurchasingCategory, you'll need to subtype and delegate systemwide and create a database field for EKKO table, choosing the field BSTYP. Do this for both the BUS2012  and  the  BUS2012  or a common super-type if you find so.
    With the very best wishes
       Florin

Maybe you are looking for

  • In need of help creating a photo to look like...

    Hey guys and gals, I'm trying to basically to make an image very similar to this one, only with different people and a different color.  For the life of me, I can't figure out how to create this effect.  If anyone could help me, I would be SO appreci

  • Needy person has a problem

    Please HELP! I'm trying to reset the monthlabel to the selected menuItem but i keep getting this ERROR symbol : variable monthlabel location: class calendarReminder monthlabel.setText("January"); // verify that i is the correct index ^ 1 error If you

  • Page cannot be found errors

    Using MacBook 3.1 running OS X Snow Leopard, I am getting random "page cannot be found" errors, or the inability to load images, usually on specific sites. Google, Facebook, and Amazon were giving the most trouble yesterday. Now it's happening with m

  • Oracle Retail Analytics

    Hi, i would like to setup the Standard reports of Oracle Retail Analytics in OBIEE can anyone explain, how do i get the data from RMS(Oracle retail merchandising system) to Retail Analytics, and the sequence of batch files needs to be executed for po

  • [solved] unable to compile mame with gcc 4.7.2

    I tried to compile mame : http://mamedev.org/downloader.php?file= - e0147s.zip but it doesn't work, it fails with gcc 4.7.2 : Compiling src/emu/cpu/tms32051/tms32051.c... Generating TMS57002 source file... obj/sdl/build/tmsmake src/emu/cpu/tms57002/t