Saturday, March 20, 2010

Workflows with Visio and SharePoint Designer

    Create a new Visio diagram

    clip_image001

    Choose Microsoft SharePoint Workflow

    clip_image002

    The following Actions are supported by Visio to design a workflow:

    clip_image003

    clip_image004

    After you designed the workflow do not forget to add an start and an end to the workflow

    clip_image005

    Export the workflow in the Visio Workflow Interchange format

    clip_image006

    Open SharePoint Designer and connect to the site collection where you want to enable the Visio workflow

    clip_image007

    Open up the workflow site objects and click on the button "Import from Visio"

    clip_image008

    Select the vmi file create and exported with Visio

    clip_image009

    After choosing the workflows file a wizard will be started

    clip_image010

    You can define the name for the workflow and choose the type

    • Bound to a list or library or
    • Reusable (all or specific content type)

    clip_image011

    SharePoint Designer is preparing the workflow configuration

    clip_image012

    The following pictures shows the workflow designed in Visio. You can now change the name (ID3) and all blue underline terms and configure the actions.

    clip_image013

    For example

    • increment a variable
    • copy the current item to the calendar list
    • replace contribute permissions of the current item to read permissions
    • the finally send a mail to the administrator

    clip_image014

    If there is a error in the workflow definition, you will get the following error message.

    clip_image015

    Save the xoml file to SharePoint.

    clip_image016

    After saving the workflow you can configure it with SharePoint Designer

    clip_image017

    And now we will test the workflow. First of all we need a element in the calendar list

    clip_image018

    And now we need to start the new workflow

    clip_image019

    Click on SharePoint Workflow

    clip_image020

    And click on Start

    clip_image021

    After starting we can have a look to the workflow history

    clip_image022

    Here we can see the SharePoint Designer/Visio workflow completed

    clip_image023

    In my environment if you want to see the workflow diagram i get a unexpected error.

    clip_image024

No comments: