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

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

Reg. State Machine WF in asp.net

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :JavaScript/VBScript


   Can anyone tell me the real time scenario, where exactly they have implemented state machine WF. Can you send some corresponding links related to the same. Thanks in advance.



View Complete Post

More Related Resource Links

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

Feedback on state machine migration

Hi folks,In order to help migrate WF customers from .Net 3.X to .Net 4 Beta1, our team has posted a set of migration documents over here. Please give them a read and provide any feedback you have on state machine migration over on this thread.Thanks in advance for trying .Net 4, and we're looking forward to your feedback.-Yavor GeorgievProgram Manager, Connected Framework

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  

WF 4 State Machine

Hi, Could you tell me how I could create a label adorner for connector and a context menu for connector/label? Thank you very much

WF 4 State Machine connector and state

Hi, I've got a couple of questions 1. In WF 4 State Machine connector XAML i have this   <UserControl.ContextMenu x:Uid="cxtMenu"> <ContextMenu> <MenuItem Header="Open new window"/> </ContextMenu> right after  </UserControl.Resources> However, the context menu that I see is still StateMachineDesigner contextmenu. What is wrong?  2. For catching mouse double click on connector, there is "OnConnectorMouseDoubleClick", but I can't find something similar for state mouse double click ( I see that it works because it makes the activity visual root). How is this handled? 3. How I determin the activity which has a specific outgoing connector? "GetConnectorModelItem(DependencyObject obj)" returns StateMachine. I'm interested in getting a state somehow Thank you very much

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

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 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.

retrieve the previous activity in state machine


using VS2008, WWF 3.5, state machine workflow


I am supporting a project written sometime ago by a team no longer here... it uses the WCSFContrib from CodePlex that has had no discussion activity in a year.  At the heart this is a state machine workflow, so I suspect that anyone can point me in the right direction. 

I need to know the actual path taken by a user through the workflow so that I may transition to a previous activity.  How can I do this?

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.





ASP.Net + State Machine Workflow + Delay Activites

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.

State Machine for WF4


1. Can anyone tell me when there is going to be an official release of StateMachine ActivityPack? on codeplex there is only a beta version published in aprtil.

2. Will this release have any API for querying current State?


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
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