views:

11

answers:

1

My custom activity has a delay that will need to be set different values at different times. The first time it is set, it might be 5 seconds. The second time, it might be 10 seconds, and so on. How can one do this... Delay does not have an ActivityContext lambda that will allow me to get a workflow variable.

A: 

The Duration is a TimeSpan expression. Just enter a formula that results in the correct amount of time. Something like TimeSpan.FromSeconds(5 * loopCounter)

Maurice