Steps Involved:
using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Collections; 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 SequentialWorkflow.Workflow1 { public sealed partial class Workflow1 : SequentialWorkflowActivity { public Workflow1() { InitializeComponent(); } public Guid workflowId = default(System.Guid); public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties(); private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e) { } } }
Right click the solution and click on Deploy. Open SharePoint Site and go to Testing custom list to which the workflow is associated by default.Create a new item and you could be able to see a new column named SequentialWorkflow – Workflow1 which show the status of the workflow.
Note:
In this project I have not added any activity so the workflow status will show completed. This blog is just to explain how to create sequential workflow using Visual Studio 2010 which will be used in my next blog where you will see how to use CreateTask activity.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: