Windows Workflow Foundation 3


Delay Activity - Stop, Resume and change Duration


Is it possible to achieve a Custom Delay Activity to Stop, Resume and Update Duration? I think these features are not possible with the OOB Delay Activity. Kindly help me.
 
Let me explain my business requirement. A Task’s SLA is 30 minutes.
 Escalations/ Notifications may happen at the following durations if the Task is not completed:
-          At 30 minutes (Escalation 1)
-          At 30 + 10 minutes (Escalation 2) and so on.
 
At any point of time, the User can set the Task to “OnHold”. When a task is set to “On Hold”, the timer should stop ticking. When the “On Hold” is released, the timer should presume.
 
Thanks in advance.
Nags
 
You can’t pause / resume the out of the box delay but what you can do is transition to a Paused state and have a workflow level variable that stores the remaining length for the delay.  When you transition back to the previous state that needs the delay, with the reduced timeout, you adjust the length that the delay will run for in the InitializeTimeoutDuration handler. 
 
Thanks,
Sung Hon
 
Hi Nag,
We are also looking for same solution. I hope some one will listen thread and will give a reply.If you have work around please post here.
 
Thanks,
Anjee.
Can anyone help on this?
Thanks in advance.
Nags
 
You can’t pause / resume the out of the box delay but what you can do is transition to a Paused state and have a workflow level variable that stores the remaining length for the delay.  When you transition back to the previous state that needs the delay, with the reduced timeout, you adjust the length that the delay will run for in the InitializeTimeoutDuration handler. 
 
Thanks,
Sung Hon
Hi Sung Hon,
Thanks for your reply. 
Have a query with your solution:
a. Let us say you have initiated the Delay Timer for 30 minutes. You get a Pause signal at 5th minute and you will store the remaining period 25 mins in a variable.
b. On the 10th minute the User resumes the Workflow, you will initiate a new Delay Timer with 25 minutes Duration.
c. My query is, two Delay Timers would be running and getting timed out (First on at exact 30 minutes and the next one at 35th minute). Will you be able to identify the right timer for my action?
Correct me if I am wrong on the understanding.
Thanks,
Nags

Related Links

Problem in WorkflowRuntime.WorkflowCompleted event
HandleExternalEvent Problem
WWF with .NET compact framework 2.0
How can I query StateMachineWorkflowInstance before the WF idles
Question about modifying a workflow
Rule Conditions against custom activities and XAML activation - how should I achieve this?
MOSS Publishing Site
WF custom persistence once again
Hands on Labs 2.2
WF Virgin
Error in the Hands on lab 09
Workflow Designer
How do you load XOML only State Workflow in WFPad for WWFBeta 2.2 (with namespace for codebehind assembly, and activities)?
invoke sub StateMachine workflow
Using WWF to model and support "Tech Trees" in RTS games
RuleConditionDialog and intellisense

Categories

MSDN
Game Development
Visual FoxPro
BizTalk Server
DevLabs
SQL Server (Pre-release)
Microsoft Research
Unified Communications
Archived Forums #
Archived Forums A-B
Archived Forums Visual...
Archived Forums W
OneDrive Development
Kinect for Windows SDKs
Software Entwicklung f...
Announcements for all ...
MSDN and TechNet Profi...
C++ Standards, Extensi...
Visual F#
Visual Studio Unit Tes...
Visual Studio Diagnost...
Windows Desktop Optica...
Windows Desktop Search...
Windows Desktop Perfmo...
Windows Desktop SDK
Windows Hardware WDK a...
General Office Develop...
Outlook for Developers
Word for Developers
SharePoint Legacy Vers...
Cloud Services (Web an...
Azure Media Services
Azure API Management
Azure CDN
Windows Communication ...
Team Foundation Server...
Team Foundation Server...
The Architect Role
BizTalk Server Adapter...
BizTalk Server RFID
Reactive Extensions (Rx)
Debugger Canvas
Scripting
Partnering with Microsoft
SyncFx - General [Read...
Microsoft Robotics - H...
SQL Server Reporting S...
SQL Server Tools
SQL Server Replication
Getting started with S...
Database Mirroring
SQL Server Master Data...
SQL Server Data Qualit...
SQL Server In-Memory T...
Standard 7: Components...
Standard 7: Tools
Windows Embedded Compa...
SQL Server 2012 PowerP...
SQL Server 2012 High A...
SQL Server 2012 PowerP...
ClickOnce and Setup & ...
Windows Forms Sample A...
Bing Maps: Map Control...
Windows Live ID: Devel...
CRM Deployment
MSDN and TechNet Searc...
MSDN, TechNet and Expr...
App Linking
Microsoft Automatic Gr...
The Samsung Windows De...
Office Live Basics, Es...
Windows File Sharing P...
Office XML, ODF, and B...
SQL Server Protocols
Accessing Web Services...
PivotViewer Control wi...
Expression Encoder
Customer Care Framework
Retired SharePoint Ent...
Retired SharePoint Acc...
.NET Framework 4 Appli...
.NET StockTrader Sampl...
Audio API and Programm...
Casablanca
CHESS – Find and Repro...
Commerce Server 2002 a...
Core Coding Experience...
Crystal Reports for Vi...
Developer Documentatio...
Game Technologies: XNA...
Getting Started With V...
Microsoft Security Dev...
Microsoft "Data Explor...
Pex and Moles PowerTool
Popfly Game Creator
Project Codename:  Jasper
Search Server: Report ...
Share your How to samp...
Storage Platform – ATA
SQL Server 2014 In Azu...
SQL Server 2014 High A...
SQL Server 2014 Report...
SQL Server 2014 Integr...
Tools for Windows Phon...
Tailoring your Windows...
Visual Basic Express E...
Visual Studio 2008 (Pr...
Visual Studio Editor i...
Visual Studio Performa...
Visual Studio Team Sys...
Visual Studio Tools fo...
Windows Presentation F...
XNA Game Studio Express
Windows Phone Preview ...
SQL Server 2016 Preview

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile