cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a delay element for XMC workflow

Is there a delay element for XMC workflow

StephanH
Valued Contributor III
Hello,

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

Regards Stephan
1 ACCEPTED SOLUTION

StephanH
Valued Contributor III

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)

Regards Stephan

View solution in original post

2 REPLIES 2

Chad5
Contributor

Hi @StephanH ,

Wondering if you find the answer for this question?

I tried time.sleep() python function but it didn't like it.

Thanks

StephanH
Valued Contributor III

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)

Regards Stephan
GTM-P2G8KFN