Skip to Content
avatar image
Former Member

Wait in Background execution Co

Hi,

Can a background execution co put to wait?

My requirement is to put an action on wait i.e. it should not be completed {should be in background}

I tried using background execution co.

on satisfying the condition I am setting the result state and completing the step by "executionContext.processingComplete();".

If condition is not satisfied,neither any result state is set nor this step is completed. It was found that background execution gets completed without any result state.

How to avoid this.

How to implement so that it should wait whenever condition is not satisfied?

Web dynpro CO completes on calling processingcomplete().

If we do not call this method it stays there.

Regards,

Pratik

Edited by: Pratik Khandelwal on Jul 16, 2009 9:30 AM

Edited by: Pratik Khandelwal on Jul 16, 2009 9:35 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 16, 2009 at 10:02 AM

    Hi Pratik,

    Let me explain what I understood by your query. You wish to perform a background job which waits for execution as long as a condition is not satisfied. If I am correct, then you can probably use the following pseudo code to achieve this:

    boolean boolCondition = false;
    do
    {
         if(<check if your condition got satisfied>)
        {
            boolCondition = true;
        }
    } while (!boolCondition)
    
    if(boolCondition)
    {
        executionContext.processingComplete();
    }
    

    I do not have the exact code right now, but I guess the above code will solve your purpose.

    Bye

    Ankur

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 16, 2009 at 10:11 AM

    Dear Prathik,

    Can you please help me for my thread

    [Problem with Parallel Dynamic Block;

    Regards,

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded