Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I set the duration (time span) for a Delay activity used inside a workflow externally from the host application?

0
Posted

Can I set the duration (time span) for a Delay activity used inside a workflow externally from the host application?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123