.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

Add additional approvers to running sequential workflow

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Hi, Is it possible to add additional approvers to a running workflow instance? I am using Visual Studio 2008. I see out-of-the-box SharePoint approval workflow has functionality to add participants after workflow starts. In SharePoint approval workflow When I add new approver it does not create new workflow instance rather uses the current running workflow instance and creates new tasks for additional approvers. I am looking to achieve same functionality. I have tried EnableWorkFlowModification Activity -> OnWorkflowModified -> CreateTask. However when I debug code through Visual Studio it does not throw any errors but when I look at workflow status I see "An error has occur..".

Please can anyone help me?



View Complete Post

More Related Resource Links

Sharepoint sequential Purchase Requisition workflow using expense total to determine approvers


I am working on a sequential workflow in VS2008 that needs to determine approvers based on the total expense field entered in the PO form (Infopath 2007).  Right now I have the form set as a browser-based form associated with a document library to kick off the workflow.  The tricky part is the approval logic needs to pull approvers from SQL server 2008 tables and I am struggling with best approach---should this be a separate task form and module that uses the submitted data (classes formed from an init form)?  If so, are there any examples out there using SQL-based queries on HR hierarchy data to work from?


ASP.NET Workflow: Web Apps That Support Long-Running Operations


Integrating workflow into ASP.NET applications means communicating with activities via a workflow queue and hosting the runtime in the global application class. We'll show you how.

Michael Kennedy

MSDN Magazine January 2009

Serial approval workflow keeps running


I have a serial approval workflow created out of the box. The setting cancell this workflow when the document is rejected is selected. But if one of the approvers rejects it the workflow keeps running. After this is it will give acces denied errors for the other approvers.

So for example what is happening. The workflow is started and sends a email to persone 1. This persone approves so the workflow sends a email to persone 2. Persone 2 decided to reject the document. Now i want the workflow to be cancelled, but it keep running and sends a email to persone 3 for approval. If persone 3 opens the workflow he get's a acces denied error, i guess because of the reject.

Anyone has a idea what is happening here?

How to get information about Sharepoint Running Workflow in Visual Studio 2008

Can any one tell me about. How i can get information about sharepoint running workflow in visual studio 2008.

Sequential Workflow project unable to compile referencing x64 Workflow Activity Library

Folks -   I have an sequential workflow project targeting x64 that will not compile if the workflow activity library that it references is compiled for x64 (it will compile if the activity library targets x86).  The compile error I receive is: Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. [project name]   Any thoughts on how to figure this out?   Thanks.

How to keep my Workflow alive only during the time my client application is running ?

Hi, I want to my workflow do some action when server  lose connection with client and at the same time client get exceptions about it. It is possible to implement some session mechanism or something like that with workflow service ? Regards Marcin

Workflow Runtime and Long Running Processes

I am trying to get a handle on the fact that applications have to manage the persistance of workflows directly. in 4.0.  If I set a workflow to run every night at 3:00 AM and then be persisted, how will I know that my application will be awake and ready to do the job.  I know that SharePoint currently uses a timer on the server which fires off every 5 minutes (default). 

Share Point Designer 2007 Workflow (Sequential) - multi-collect data from user

I am currently building a multi-step workflow using ShrePoint designer for MOSS2007. I am getting a bit confused as to if I have an error or if I am doing something incorrect. Here is what I have going. My workflow consists of something similar to the following New document comes in, a collect data from user routine is ran and assigned to a reviewer. My understanding when I create a collect data from user WorkFlow step is any data I request is saved in the "Tasks" list. Therefore I need to grab the workflow task ID in order to later lookup what the reviewer submitted... I understand this...   However, I have one more collect data from user workflow step and I have one more item to collect. Even though this is a brand new collect data from user workflow step - does the collected data still go into the "Tasks" list? In other words, if I have two steps in a workflow and both of these steps are "collect data from user", does the data from both steps go into the same "Tasks" list?  I could see how this might be possible as long as the Task list columns contain all the items for all the different "collect" data from user steps.  I don't see two different Tasks lists representing or named "Reviewer" or "Final" or anything, so I assume the items are all in "Tasks"   However..

sequential workflow + Active directory

Hi, i wanna get manager name of the login users in visual studio sequential workflow... Thanks ___________ arWINdh

Error editing a document that is running a workflow

After workflow is started i try edit document, but this error is displayed: System.ArgumentNullException: Value cannot be null.  Parameter name: s     em System.IO.StringReader..ctor(String s)      em System.Xml.XmlDocument.LoadXml(String xml)      em Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml)      em Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml)      em Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode()      em Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource()      em Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e)      em Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e)      em Microsoft.Share.Point.Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e)      em System.Web.UI.Control.LoadRecursive()      em System.Web.UI.Control.LoadRecursive()      em System.Web.UI.Control.L

Urgent- How to show sequential workflow on asp.net web page dynamically

Hi All,My basic question is how can we show a sequential workflow diagram on asp.net web page dynamically. using WWF can we do this?. i have gone throgh the some of forums/articles but i could not find right information anywhere. please suggest me the right path to achieve this.

Visual Studio 2008 Professional v.s. Standard - support SharePoint 2007 sequential workflow?


I would like to ask if VS2008 Standard edition support the project type of SharePoint2007 sequential workflow?

I have a VS2008 Professional edition and it is Ok to create SharePoint2007 sequential workflow project and deply to MOSS2007 successfully.

Is it possible in a VS2008 Standard edition?

Thanks in advance.

Problems when deploying sequential workflow with association Infopath form of sharepoint 2010 using


I’ve create a workflow project with infopath in it. And I get the error

 “Error occurred in deployment step 'Activate Features': Unable to locate the workflow's association data. To restore the association data to the workflow, restart the workflow settings wizard by selecting the workflow node in Solution Explorer and then clicking the ellipsis button (…) on one of the properties in the Properties window that has an ellipsis button.”

I'd really appreciate of any help.

SharePoint 2007 Sequential Workflow in Visual Studio



I've got a problem of creating Sharepoint 2007 Sequential Workflow via Visual Studio 2008.

I have a Visual Studio 2008 on my machine which is not the server machine (Window XP) and a server which has SharePoint Server. I had been assigned task to work on Sharepoint Workflow. So, I have decided to create a project on my Visual Studio 2008, Sharepoint 2007 Sequential Workflow. But, I got the problem down here which blocked me. 

"32-bit version of SharePoint Server is not installed. Please install a 32-bit version of SharePoint Server"

and following error in other system:

"Could not load file or assembly 'Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies"

- I am also not allowed to install Visual Studio 2008 on the server.

- I could not install Sharepoint Service 3.0 or SharePoint Server on my machine.

I hope you some body could help me with this matter.


Sequential workflow with user input in SPD 2007


I'm just getting in to workflows, so I assume this will result in a simple "do this" or "use VS" answer... anyways..

I am looking to create a sequential workflow in SPD 2007 for MOSS 2007 that will basically be a 5+ step approval workflow.  It will start either on-demand or when a new item is created in a list.  The first part will prompt a user to enter one or more reviewers, then the workflow will route the document through the specific reviewers and several static reviewers.  Each person will accept or deny the document, and write comments as necessary.  The only part I am having trouble with is prompting the user for reviewers, and then properly routing the document to those reviewers.  I have tried to collect the data via an initiation parameter, and I have tried to collect it as an action without much luck.  If possible, what’s the best way to do this without resorting to using VS?




Running multiple versions of the same workflow

I wanted to know how I can have have multiple versions of the same workflow running at the same time.  Currently the issue I have is if there is a workflow (version 1.1) which in an IDLE state and then I change the workflow (version 1.2).  Then the IDLE workflow is not able to run. 

How to set Approvers Group for OOTB Workflow



I have created a publishing site with workflow and it has already attached Page Approval workflow to my pages library. Now OOTB all the submission are direclty sent to OOTB Approvers group , but I have created my own approvers group "ABC Approvers" with some extra permissions . I want all my submission to be sent to this(as well). I know how to do this manually but I have 50 subsites in my sitecollection which in future are going to grow in numbers. 

Is there a way that I can change or add the group using object model or via powershell script. Please help.

Kind Regards,



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