I have a use case where I want to execute two deliveries using segmentation on two different dates — 13th July and 14th July at 9:00 AM.
I do not want to use the Scheduler activity, as it will restart the entire workflow, which takes around 2 hours to execute.
Is there any other activity I can use to hold the another delivery execution instead?
Views
Replies
Total Likes
Hi @KD1 ,
I'm not sure what @ParthaSarathy will recommend you, but what I'd suggest is using a Wait activity. You can configure the inizialitation script to stop the workflow until de sepecific date and time that you need. It will not restart the workflow, it will pause the execution until then.
If you need more help or more detailes, just let me know!
Best,
Celia
Hi @ccg1706
Can you give more details about configuration using wait activity
Views
Replies
Total Likes
Hi @KD1,
The wait activity by default sets de duration on seconds you will need to use java Script via de Advanced tab to set your conditions. You will need to take into account the following things:
- Define the specific date and time on JS, thinking about your requirements
- Obtain the current system time when the workflow runs. Think about the JS function that gives you the current timestamp.
- Figure out how to calculate the difference between the two dates.
- Store the result on a workflow variable. Check the object.
- Don't forget to think about all the possible scenarios, unexpected behaviors. How should the script behave?
Let me know if you get stuck in any part, hope it helps.
Best,
Celia
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies