using a DelayActivity

How can I use a Delay Activity in Listen Branche without interupt the others Handler Event driven in the rest of branches(i.e let them in listenning mode)

the sweety sootion, is to use a asychron mode, but how

thanks.



Answer this question

using a DelayActivity

  • TiagoNobrega

    thanks,

    but if I am not forced to wait this delay to terminate.

    so, the idea is to generate an alert each time the delay is elapsed,but stop the delay Activity whenever a event has occurred on the other parallel branch.

     

     


  • BhaveshPatel

    The way the listen works is that once the delay occurs or one of the events is received all other branches are canceled. Do you always want the delay branch to be processed even if it is before or after the event If so, try using a parallel with the delay in one branch and the listen in the other. This would block further execution of the workflow until both the delay and event occurred.

  • jpoirier

    This won't work with a Listen because once the timeout expires for the delay the other branches are cancelled. If you send the event at that point you will get an event delivery exception. You are going to need to create a custom activity for this.



  • PhilipAnton

    A precision:

    I am using While statement in the branch containning the DelayActivity, whith a condition received from the other branche.


  • Lawrence of Sinking Spring

    How can I creat it

    I'am able to creat a costum activity, but I think that will be olso dificult. If not the case, can you give me some hints.

    thanks.


  • using a DelayActivity