.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

custom workflow visual studio 2010 for SharePoint 2010

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint

Hi Everybody,

I have written a custom workflow in visual studio 2010 with custom Task Edit Form which is associated with content type and that content type is in turn associated with Task List. When an item is created in the target list to which my custom workflow is attached, a task item is created when I click on that task item it loads the custom Task Edit Form page where I have defined the UI and on click of Approve button I just Alter the task by using method SPWorkflowTask.AlterTask(this._TaskListItem, taskHash, true); when this line executed it executes the Task Changed invoked method where I am taking true and false value from the UI and updates the corresponding metadata in target list.

The problem is when I create 2 target list items their workflow status becomes pending and when I approve one of them, both the items get approved i.e. Task Changed event get called 2 times and both line items workflow status become completed. The task list item corresponding to one approved get 100% completed but other one did not show its completion.

View Complete Post

More Related Resource Links

Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverlight 3

Learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverli

Watch the video that accompanies the MSDN article and learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Office Client Workflow: Visual Studio 2010 SharePoint Workflow

Learn how project templates for SharePoint 2010 in Visual Studio 2010 allow developers to build sequential and state machine workflows for SharePoint and import reusable workflows created in SharePoint Designer. (Length: 10:36)

create task edit form issues for sharepoint 2010 workflow using visual studio 2010

I use infopath 2007 created a task edit form and I use VS 2010 to create a sequential workflow.I want to use the custom tash edit form in the workflow.The problem I got is the InfoPath form doesn't get deployed to sharepoint. I'm able to upload the infopath form to sharepoint though central admin app. here is the element.xml :<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  <Workflow     Name="WorkflowProject4 - Workflow1"     Description="My SharePoint Workflow"     Id="e6aa6cdb-667f-456a-b216-7639a1dcd3c7"     CodeBesideClass="WorkflowProject4.Workflow1.Workflow1"     CodeBesideAssembly="$assemblyname$">    <Categories/>    <MetaData>      <AssociationCategories>List</AssociationCategories>            <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:TaskForm:-myXSD-2009-12-10T22-33-23</Task0_FormURN>      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>    </MetaData>  </Workflow></Elements>and here is the feature1.template.xml<Feature xmlns="http://schemas.microsoft.com/sharepoint/">  <Properties>    <Property Key="GloballyAvailable" Value="true" />    <Property Key="RegisterForms" Value="*.xsn"/>  </Properties></Feature>anything

Making your own cusctom workflow developed in visual studio 2010 available in sharepoint designer 20

Hi, i have a custom workflow(sequential),developed using visual studio 2010. Now, i want to make it available to sharepoiint designer 2010,as an action.Has anyone done something like dis before? I have tried creating an actions file and changes in web. config ,but when i open my designer it says it cannot find the assembly(my custom worklow). What does it mean,i have tried this method by watching solutions on internet. If anyone has done this task, kindly guide me thanks a lot :)

Deploying custom project workflow using visual studio 2010


Hi All,

After i developed a custom project server workflow using vs 2010, i tried to deploy it using this article http://msdn.microsoft.com/en-us/library/ff459292.aspx and everything done great (Add, Install and Activiate) .. when i tried to debug from VS 2010 i got this error while deploying the project:

Error 6 Error occurred in deployment step 'Activate Features': Feature with Id 'c34364d9-0323-4e46-98c1-d74f638e6c7d' is not installed in this farm, and cannot be added to this scope.
  0 0 WorkflowProject1

i'm pretty sure that the Guids are the same ... and i got the same error when i tried to activate the feature from VS 2010 directly

here is my feature xml (inside VS 2010)

How add custom form field in workflow task using visual studio 2010



I need to create a simple workflow using Visual Studio 2010.

Workflow having following activities:

1. Create a task assign to workflow initiator. This task have one dropdown field with two choice (Approved,Rejected). 

2. Wait for the task change.

3. In Task edit form, only title and custom drop-down field are visible. User need to select from one of the choice and complete the task.

Creating Custom Extensions for SharePoint 2010 Development Tools in Visual Studio 2010 (Visual How T

Watch the video and explore the code as you learn to create custom extensions using the SharePoint 2010 development tools in Visual Studio 2010.

Video: Creating Custom Extensions for SharePoint 2010 Development Tools in Visual Studio 2010

Watch this visual how-to video and learn to create custom extensions using the SharePoint 2010 development tools in Visual Studio 2010.

sharepoint 2010 custom webservice, visual studio 2010, unable to get reference - content type is tex


I followed the MSDN example in how to create a custom webservice that integrates with sharepoint at http://msdn.microsoft.com/en-us/library/ms464040.aspx

I'm able to successfully call the custom webservice it walks you through from internet explorer out of a sharepoint 2010 site using a URL such as http://vm-spproduction/sites/resource/_vti_bin/service.asmx

And, I'm able to successfully call the same custom webservice from internet explorer out of the same sharepoint 2010 server with the URL http://vm-spproduction/_vti_bin/service.asmx

In Visual Studio 2010 (running on the same hardware server as sharepoint 2010), I am able to bring up the same custom webservice in the add web reference using the advanced buttons of the add service reference dialog.  But, when the custom webservice is found, visual studio reports the following error:

The document at the url http://vm-spproduction/sites/resource/_vti_bin/service.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from '

Creating SharePoint 2010 Workflow using Visual Studio 2010 walkthrough


Dear all

I am new in SharePoint development using VS2010.

I am looking for examples for developing Workflow from inside Vs2010 on list or on Site.


Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

First Look: Visual Studio 2010 Tools for SharePoint Development


This article provides a first look at tools in Visual Studio 2010 designed to support development and deployment of SharePoint 2010 solutions. The article provides an example of designing and deploying a visual Web part.

Steve Fox

MSDN Magazine October 2009

Chapter 3: SharePoint Developer Tools in Microsoft Visual Studio 2010 (Inside SharePoint 2010)

Learn what's new with the SharePoint developer platform from experts on Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010.

Video: Visual Studio 2010 SharePoint 2010 Development Tools Overview

This SharePoint Conference video provides an overview of SharePoint 2010 development with Visual Studio 2010, including project and item templates. (Length: 01:17:11)

Video: Introduction to Visual Studio 2010 SharePoint Tools

Visual Studio 2010 contains a new set of tools that make developing SharePoint 2010 applications as easy as any other .NET applications such as WPF or ASP.NET. (Length: 8:30)

Video: Visual Studio: SharePoint 2010 Tools Project Structure

Visual Studio 2010 includes support out of the box for the most common types of projects that you may want to build with SharePoint 2010 as well as new features for more easily defining features, solutions, and wizards to walk through the most common settings for each project type. (Length: 24:23)
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