.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

ASP.Net + State Machine Workflow + Delay Activites

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :WPF
We have been developed an approval/rejection/Escalation 3 level State machine worklfow which has been hosted in an ASP.Net application. For escalation we are using multiple delay activities. We have deployed the ASP.Net application in a server. The application is running perfectly as we were expecting when the server is in unlocked state. But Once the server is in Locked or Logged off state the escalation part of the workflow is not functioning as required. Please give us suggestions as we are unable to identify what the issue is?

Thanks any suggestions.

View Complete Post

More Related Resource Links

Delay Activity is not working with SharePoint state machine workflow

Hello,   I have a problem with Delay Activity in Sharepoint state machine workflow. This issue is kind of common to many people but so far I haven't come accross any working solution. In one of the workflow states, I want to add a delay activity to send email notification if no action is taken after certain time. Below is what I have done:   In the targeted state: 1) add one eventDriven activity to handle the normal process (approve the item) 2) add another eventDriven activity to send the reminder email. In this eventDriven activity, I first add a delayActivity, set it to 2 minutes for test purpose. Then I add a Sharepoint SentEmail activity.   With my test, the Dealy Activity is never invoked after timeout period. What should I do to make the delay activity work in the SharePoint state machine workflow? Is there any work around if the delay activity is simply not working there?   Any suggestions are appreciated.

State Machine Workflow + External Event + Delay activity



I have state machine workflow with a state contain 2 event driven activities, one is waiting for an external event, and second one is delay. If the external event didn't happen within specified time, timeout occurs and send email. But if the external event delivered, it transited to next state.


Both situation works fine. But once the external event occurred and transited to next state, the delay activity time out happens and it sends the mail. I don't want it happen, When i read through various blog, I learnt that once the workflow instance moved to next state, all event subscriptions related to the previous state are removed from the queue.... But it is not happening in my situation

Kindly help me to find where i am going and to resolve this issue..


p.s I set manualworkflow scheduler  - useActiv

Create Content Type in State Machine Workflow

Hi, I created a state machine workflow in share point 2007 with default associated task list. This is working fine. Now I want to add a custom content type to task in which I want to show 3 fields on task form : Title, Description, status And also I want to set some default values in these fields. How can I create and add this custom content type in state machine workflow ? G. Goyal

state machine workflow project creation error

Hi,   I have a dev environment which i had sharepoint 2007 and now i upgraded it to sharepoint 2010. Now when i try to create a state machine workflow project it gives me an error Object Reference not set to an object. I uninstalled Sharepoint extensions 1.3 (as i 64bit win2008 vm) and when i am trying to install it. In one of the installation screens where it asks for the port no  and the select the app pool it only shows the sharepoint central v3 app pool . i was expecting to have sharepoint 2010 product app pool in the drop down. I know that there should be a app pool on port 80. Since i upgraded sharepoint to 2010. I want sharepoint visual studio extensions 1.3 to point to sharepoint 80 app pool . Please can you tell me how i can do it.    

How to create custom task form in state machine workflow?

Hi, I want to create custom task form in state machine workflow. How can I create & install?  G. Goyal

can't debug anymore a state machine workFlow in Visual Studio

Hi, I have an issue with debuging a workFlow with visual studio when it should start the workFlow when I create an item nothing happen and sharepoint stay stuck : I can't refresh any lists, visual studio rich 40% of the CPU, no exception on log. At the same time if i deploy without debugging it works. Please help me. Thanks, Patrice  

workflow 4 state machine load

Hi, I'm using StateMachine for WF4 from codeplex. I can save it to file very well, but when I load it again I see only the states not the connectors also. Same behavior can be reproduced by double clicking a state and then coming back to whole state machine. Could you please help me? Thank you very much

State Machine Workflow XOML issue

"Please help me out this problem" "Its too urgent" I have modified State Machine Workflow XOML file and upload again with my application. Now i am getting error while calling CreateWorkflow(). I am getting the following error. "Wokflow Validation Failed" "Activity 'handleExternalEventActivity1' validation failed: Property 'InterfaceType' is not set." If i am uploading the existing XOML file then it is working fine without any error. What i have to do and where i did mistake?

State Machine Workflow timer

Hi all,

I am wondering what the best way is to map the following scenario with a state machine workflow.

A customer books a seat online. The seat enters the "Reserved" state. The customer has up to one minute to confirm the reservation, and when he does, the state would change to "Sold".

If, however, he does not do that within that minute, the system would automatically cancel the reservation.

I am stuck on implementing the one minute timer. I would imagine that it would involve a DelayActivity, but I won't know where it fits in the workflow.

Terminating state machine workflow



I am creating a state machine workflow with 20 states.

My requirement is, irrespective of which state the workflow is in currently, when a user changes an item in the source list as "complete" , the workflow should be terminated.

What would be the best way to achieve this? Should I handle this item change event in all the 20 states? or is there a better way of achieving this?

Please advice.





State Machine Workflow With CustomList



How To get Custom List value  in state machine workflow.i can get it for document library but not list.

This is my sample code


           id = Convert.ToInt16(workflowProperties.Item.ID);
            name = workflowProperties.Item["name"].ToString();
            status = workflowProperties.Item["status"].ToString();


I got an error Value Can't be null ..any suggestion???








Error retrieving Workflow Properties in a Custom State Machine Workflow WSS 3.0

Using Visual Studio 2008 and the Office 2008 State Machine workflow template, I created a VERY SIMPLE workflow with ONE state. In the state initialization, I create a simple task. This works fine when I hard code the title, etc for the task. But, when I need to get some properties out of the list where the workflow was started, I get an exception  I've done this in a sequential workflow and it works fine. Error is: "Value cannot be null. Parameter name: uriString. Code snippet is:

using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Workflow;
using Microsoft.SharePoint.WorkflowActions;

namespace SOPProjectWorkflow
    public sealed partial class Workflow1 : StateMachineWorkflowActivity
        public Workflow1()

        public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties();
        public Guid

Upgrade Sharepoint 2007 Custom State Machine/Sequential workflow to SharePoint 2010



What's the path for upgrading the SharePoint 2007 Custom State Machine/Sequential workflow to SharePoint 2010 when the current SharePoint 2007 environment is upgraded to SharePoint 2010 by an inplace upgrade?

What's the typical estimate time for upgrading SP2007 custom workflow to SP2010 custom workflow?  My gut says 40 to 80 hrs or even less than that, what’s your thoughts?

FYI...I tried to upgrade the SharePoint custom workflow built using visual studio 2008 in SP2007 environment to visual studio 2010 solution/project in SP2010 environment, I got the error messages to refer the following dll's

Microsoft.SharePoint.dll and Microsoft.SharePoint.WorkflowActions.dll

Even after referring the new dlls still the workflow design doesn't show up in the canvas...still work on this to fix mean while want to know the experts insights on this.

sharepoint 2010 state machine Workflow With Association column


i create sharepoint 2010 state machine Workflow  and i need to add Association column (as in designer) is it possible to do?

and if yes could u plz tell me how??

Quick Reference for state machine workflow in VS 2010

Any quick learning / crash course references on how to create state machine workflows in Visual Studio 2010?

create task using c# code in state machine workflow


hi all;

i need to create task activity using c# code under specific condition to more than one person (parallel task)

any idea and if u please could u support me with samples as i'm new in workflow using VS2010


thanks in advance

State Machine workflow in SharePoint and have state expire



I'm designing a workflow in Framework 4 to run against a list in SharePoint 2010.  The List's Content Type is an InfoPath 2010 form that contains various fields and checkboxes.  The workflow contains various states, with the movement between states dependent upon which checkbox a user checks.  I use the OnWorkflowItemChanged event to capture when this happens.  But I'd also like to send out emails if the workflow sits in one these states for a certain amount of time...i.e. no one has checked a certain box to move onto the next state.  Workflows in Exchange Public Folders used to have an "Expiry" setting on states that would fire an event when you've been in that state fro xx amount of time.

So basically in the state, I need to wait for the InfoPath form to change and also have a timer going that gets started each time you enter the state...and if you don't change the form, it sends an email and goes back into the same state...with the time reset and running again.

I'm new to Windows Workflow and can't seem to figure anything out.

thanks for any help or guidance





ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend