Home > sharepoint designer 2007 > Create Workflows using SharePoint Designer 2007

Create Workflows using SharePoint Designer 2007

SharePoint designer helps us to create workflows and attach the workflows to a content type like list, document, etc. In other words, SharePoint designer creates workflows and publishes the workflow on the SharePoint server site.

To understand it better, we will build a simple workflow of completed and incomplete tasks. We will create two lists, one is the incomplete tasks and the other the completed tasks. The workflow will flow something like this:

  • User will create a task and enter the status of the task.
  • If the task is incomplete, nothing will happen.
  • Once the task is marked as complete, the task will be copied from incomplete task list to completed task list.
  • The task will be deleted from the incomplete task list.

So let’s understand the important steps we will need to create the above workflow using SharePoint designer.

Create a team site using the SharePoint team site template.

Create two task lists, one is incomplete task list and the other completed task list.

To create task list, click on site action -> Create: Add a new library list -> create a task.

start spd

Open the site in your SharePoint designer using click on file -> open site.

Go to workflows by clicking on file -> new -> SharePoint content and click ok as shown in the below figure:


1a

3

This is an important step. In this step, we define two important things. The first is this workflow will be attached to which list. Currently we have attached the workflow to incomplete tasks list. Second we need to define the events on which the workflow should be activated. For the current scenario, we have considered two events; one when the item is created and the second when the item is updated.

4

This is one more crucial step where we need to define on what condition the workflow will execute and what action should take place if the condition is true. So when a task status is completed, two actions will take place. First the task will be copied from the incomplete task list to the completed task list. Second the task is deleted from the incomplete task list.

Once you click finish, you can see the workflow created in the SharePoint designer. This workflow is also published to the SharePoint server.

You can see if the workflow is associated with the incomplete task list. Go to incomplete tasks -> Settings -> List settings -> Workflow settings. You can see that the workflow is attached to the incomplete task list.

5

6

Ok, now it’s time to see the workflow in action. So go to incomplete task list and create a task with status completed.

Once you click ok, you see the task for some seconds in the incomplete tasks list and then the task is copied to the completed task list and deleted from the incomplete task list.

7so using SPD its not hard to create good workflows for sharepoint; also SPD can be used to integrate workflows developed with .net and which are well tested. I will try to cover that as well in coming days.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: