Skip to Content
author's profile photo Former Member
Former Member

Two Start events in a workflow being triggered simultaneously

Hi,

I have a workflow which waits for 2 start events. These 2 start events are generated because of 2 change document objects being created for the same document.

I have to keep track of both the change document objects. All instances do not trigger both the events.

But during the changes pertaining to both the change objects, the same event is being triggered twice leading to the workflow instance being generated twice.

Please let me know how i can make this to be one instance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2007 at 12:05 PM

    This is a tricky situation. I am not sure you will be able to filter the situation in the start condition. You have to put something in the design.

    Suppose the 2 events are event1 an event2. Now in the first step there will be a step that checks the the triggering event. If it is event1 then it should follow the normal path. If it is event2 then there should be a task that will check whether a workitem for the same key fields has been triggered for the sunsequent task. Subsequent task mean the task after the this condition step. Use SAP_WORKITEM_TO_OBJECT FM.

    I cannot understand how will you take care when only one event is getting triggered. Verm I feel you forgot that wflow will get triggered when single event gets triggered but not duplicate workflow for different event at same time

    <b>Reward points if useful</b>

    Message was edited by:

    Arghadip Kar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2007 at 12:10 PM

    hi

    you give the name for the <b>event as X</b> and <b>link the event as X for both the change documents in SWEC.</b>

    and then

    you give start condition in basic data <b>start event</b> itself or <b>swb_cond</b> transaction.

    <b>you check both the condition using AND operator.</b>

    it will be very helpful...

    thanks,

    reward points if helpful...

    vel.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 08:40 PM

    This was done by using SAP's way of populating CDHDR records. In one transaction all the CDHDR records created were having the same date and timestamp.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.