- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎11-06-2018 10:26 AM
is there a delay element available in XMC workflows?
I know there is a boundary timer, but if I understand correctly this element is useful in case of an activity is not completed correctly and this timer uses an alternative path.
But I need an element within the path. I will pause the workflow for a given time (example 30 seconds) and then go forward in the same path! I do not want to observe the outcome of an activity.
I know I can create a timer with python but I hope there is a ready to run solution in workflows .-
Best regards
Stephan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-12-2023 12:58 PM
Hello Chad,
There seems to be no function in the workflows.
Therefore I work with the sleep function of Python.
As a test just create a simple workflow with a "Script Activity" and put the following in it to check the function. This works fine for me.
import time
import datetime
print("Before")
now = datetime.datetime.now()
print(now)
time.sleep(10)
print("After")
now = datetime.datetime.now()
print(now)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-11-2023 06:38 AM - edited ‎07-11-2023 06:38 AM
Hi @StephanH ,
Wondering if you find the answer for this question?
I tried time.sleep() python function but it didn't like it.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-12-2023 12:58 PM
Hello Chad,
There seems to be no function in the workflows.
Therefore I work with the sleep function of Python.
As a test just create a simple workflow with a "Script Activity" and put the following in it to check the function. This works fine for me.
import time
import datetime
print("Before")
now = datetime.datetime.now()
print(now)
time.sleep(10)
print("After")
now = datetime.datetime.now()
print(now)
