cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I induce delay into my order fulfillment process so that the next action gets called after the delayed time.

former_member669248
Discoverer
0 Kudos
539

While proceeding for payments and getting redirected to the payment provider's page i create order from the cnd the order process starts.

I need to check the status of payment even if the browser did not catch any response. I want to requery the payment provider after a certain amount of time, say 30 minutes. This check i wanted to include in order process. For this i need to induce a delay. I am not sure how to do that. Any help on how to do that?

I need some sort of delayer like they use in spring integration. Like:

 <delayer input-channel="input" default-delay="3000" output-channel="output"/>

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Misra, I hope this piece of code will help you on delaying the order process. Here we are delaying 5 seconds to to make sure that the order was fully cancelled. You can use delay='PT30M' to match your scenario.


     <event>waitBeforeDetectFullCancelOrder</event>
     <timeout delay='PT5S' then='detectFullCancelOrderPostModificationAction' />
 </wait>**
former_member669248
Discoverer
0 Kudos

Isn't this timeout where it says if the event "waitBeforeDetectFullCancelOrder" does not happen for 5 sec then it will automatically call the action "detectFullCancelOrderPostModificationAction"?

I need something like: Wait for 30 mins before calling the next action.