Can I set the duration (time span) for a Delay activity used inside a workflow externally from the host application?
The DelayActivity class runs the code method associated with the InitializeTimeoutDuration event before the activity starts and you can use the code-beside method to initialize the TimeoutDuration property. Refer the following links: • http://msdn.microsoft.com/en-us/library/system.workflow.activities.delayactivity.initializetimeoutduration.aspx • http://msdn.microsoft.com/en-us/library/system.workflow.activities.delayactivity.timeoutduration.aspx Alternatively, you can bind the TimeoutDuration property to a property on workflow. You can then start the workflow with input parameters from the host where you can supply the duration as input to the workflow.