SharePoint Workflow Whitepaper
SharePoint Workflow Whitepaper
SharePoint
Workflow
Authoring in Visio
Premium 2010
1
Page 1
Table of Contents
Topics covered in this whitepaper include:
SharePoint workflow authoring experience in Visio Premium 2010
Visualization of SharePoint Designer 2010 workflows
Workflow visualization in SharePoint with Visio Services
Contents
Cover Sheet....................................................................................................................................................................... 2
Introduction................................................................................................................................................................... 2
Table of Contents..............................................................................................................................................................1
SharePoint Workflow Authoring in Visio Premium 2010.................................................................................................2
Workflow Validation.....................................................................................................................................................5
Exporting Workflow to SharePoint Designer 2010.....................................................................................................11
Visualization of SharePoint Designer 2010 Workflows..................................................................................................12
Export a workflow from SharePoint Designer 2010 into Visio Premium 2010...........................................................12
Collaborating on Workflow Design through Round-tripping......................................................................................14
Workflow Visualization in SharePoint with Visio Services........................................................................................14
Level of Workflow Support.........................................................................................................................................16
Page 1
Page 2
Since then, the Visio team and the Microsoft® SharePoint Designer® team have partnered to enhance the workflow
authoring experience. In Visio Premium 2010, SharePoint workflows can be authored as a flowchart and exported to
SharePoint Designer 2010. For business analysts who are used to defining business processes in Visio, it means there is
now an easy way to translate business logic in Visio to workflow rules in SharePoint Designer.
Automate
Visio Premium SharePoint
business logic
2010 Designer 2010
Business
Business Analyst
Analyst Workflow IT
IT Professional
Professional
Visio Drawing Workflow
Workflows authored in SharePoint Designer 2010 can also be imported into Visio Premium 2010. For IT professionals
who have been implementing SharePoint workflows in SharePoint Designer, it means there is now an alternative way to
present these workflows in a visual representation for documentation and for sharing with a broader audience.
Visio 2010
Premium
Workflow
Workflow
IT
IT Professional
Professional SharePoint
(Visio Services)
Visio Web
Drawing
Process
Process Stakeholders
Stakeholders
This whitepaper gives an overview of how Visio Premium 2010 and SharePoint Designer 2010 together enable easier
workflow authoring and tracking. It also includes detailed tips for working successfully between Visio and SharePoint
Designer.
Page 2
Page 3
With Visio Premium 2010, we allow Business Analysts and Process Analysts who are already familiar with flowcharting
in Visio to continue to author their business logic in Visio, but we also allow them to go further by exporting that business
flow to SharePoint Designer 2010 such that the workflow can be automated in SharePoint.
In Visio Premium 2010, we are introducing a brand new drawing template for authoring SharePoint workflows. When you
launch Visio, you can click on New under the File tab, click on the Flowchart Template Category, then click on Microsoft
SharePoint Workflow to start authoring a SharePoint workflow.
Note that SharePoint Workflows should only be created from the SharePoint Workflow template, not other Flowchart
templates. Visio does not recognize basic flowcharts or any other non-SharePoint Workflow shapes as SharePoint
workflows.
Page 3
Page 4
Upon opening the drawing, three stencils are available: SharePoint Workflow Actions, SharePoint Workflow Conditions,
and SharePoint Workflow Terminators.
All shapes in the SharePoint Workflow stencils directly correlate to workflow activities provided out-of-box in
SharePoint. A workflow action is a “task” or a “step” in the workflow. “Send an Email” is an example of a SharePoint
workflow action. A workflow condition is similar to a decision shape in a flowchart, where a flowchart path is dependent
on some parameter or logic. An example of a SharePoint workflow condition is “Created By”, where the next workflow
activities to execute depends on who created the item in the workflow. Finally, a workflow terminator is used to signify
the start or the end of a workflow.
To start authoring a SharePoint workflow, you can drop shapes to the drawing canvas, just like creating any flowchart in
Visio. All workflows should start with the Start shape, and end with the Terminate shape. For connectors following a
condition shape, you can right-click on the connector, and click on “Yes”, “No”, or “(Blank)” to add a label to the
connector.
Page 4
Page 5
You can also modify the original shape text and replace it with text more relevant to your business process. This shape
text is shown in SharePoint Designer after the workflow is exported from Visio. This can help the SharePoint Designer
user better understand the purpose of the workflow activity.
Workflow Validation
To successfully export a workflow to SharePoint Designer 2010, the workflow must first be valid. To validate a
workflow, users can click on the Process tab, and click on the Check Diagram button.
In the event that your workflow has issues, an Issues window will pop up, and the shape having the issue will be
highlighted.
Page 5
Page 6
While some issues are more common than others, here is a complete table of possible issues as you validate your diagram.
This table also includes sample diagrams for each issue, and suggestions on how to fix the diagram. All workflows to be
exported to SharePoint Designer must be sequential workflows. State machine workflows and workflows with loops are
not supported by SharePoint Designer, and Visio will raise validation issues for such workflows. In addition, Visio does
not support the exporting of workflows to Microsoft® Visual Studio®.
No
Created by a specified
person
Yes Compare document field Yes Send an email Collect data from a user
activity from multiple paths by
duplicating the activity:
Created by a specified
Compare document field Send an email Collect data from a user
person
No Add time to date
Add a comment
The connector must be Created by a Specified Person Yes Update List Item
Ensure dangling connector is removed
connected to two or is connected to a valid workflow
workflow shapes. shape.
No
Send an Approval
No
No
No
No
Visio will automatically validate the workflow first to make sure the workflow can be exported and consumed by
SharePoint Designer. If there are issues related to the workflow, you will need to fix them (e.g. add connector, add
Terminate shape), before you try exporting again. An issue-free workflow can be exported as a Visio Workflow
Interchange (*.vwi) file.
The Visio Workflow Interchange file can in turn be imported into SharePoint Designer 2010. In SharePoint Designer
2010, users can first select Workflows in the Site Objects panel, then click the Import from Visio button in the Workflows
tab to import the workflow into SharePoint Designer 2010.
The imported workflow is surfaced in SharePoint Designer as text, and all custom shape text in the Visio diagram are
imported into SharePoint Designer as activity labels (the gray text in the image below) to help clarify business intent:
Page 12
1. Export a workflow from SharePoint Designer 2010 for use in Visio Premium 2010
2. Publish workflow and visualization together from SharePoint Designer 2010
Export a workflow from SharePoint Designer 2010 into Visio Premium 2010
To visualize a workflow from SharePoint Designer 2010, the user can click the Export to Visio command on the
Workflow tab and a Workflow Visio Interchange (*.vwi) file will be created:
Page 13
To import the file into Visio, create a new drawing using the Microsoft SharePoint Workflow template and click on the
Import command in the Process tab:
From there, the workflow is visualized in Visio, and the user is free to edit and enhance the diagram just the same way as
any flowchart using features such as Themes or Auto Align & Space:
Page 14
As a result, the workflow is not only being executed, but users can easily track progress of the workflow through
visualization! For example, in the diagram below, there are icons indicating tasks “in progress” or “completed”. People
assigned to the tasks are also displayed clearly within the Task shapes:
Page 16
This is made possible by Visio Services, which enables viewing of Visio Web Drawings on SharePoint without requiring
the Visio client to be installed for viewing.
Conclusion
As businesses increasingly look to capture and optimize business processes to ensure compliance and efficiency, there is a
great opportunity to automate these business processes as workflows on SharePoint. With Visio Premium 2010 and
SharePoint Designer 2010, moving business processes to execution on SharePoint and tracking such workflows visually is
easier than ever.