Development

Tips & code for programming Visio & using the ShapeSheet

Maps & Geography

Maps & geography shapes & templates galore!

Network

Shapes & tools for Visio network diagrams.

News

Find out what’s new in the Visio world!

Shapes

Download useful & attractive Visio shapes. For free!

where can i buy windows 7 cheapest buy windows 7 upgrade from xp windows vista purchase price buy inventor 2010 pctools spyware doctor 5.5 buy windows 7 best price norton ghost 12 product key windows 7 price future shop windows xp price singapore windows 2008 web server download omnipage coupon buy windows 7 starter download adobe indesign cs3 for mac buy vista to windows 7 microsoft project 2003 download buy windows xp operating system windows 7 home premium cheap mathcad pricing photoshop buy mac discount autocad 2009 purchase microsoft money 2007 deluxe download photoshop mac autodesk maya 2009 price windows vista business download windows 7 price 64 bit purchase windows 7 ultimate full version buy windows 7 home premium key lightroom for apple purchase windows xp india adobe cs4 photoshop buy where to buy encarta 2009 purchase vista oem buy windows 7 tesco cheap adobe fireworks windows 7 price online best price corel draw 11 mac discount powerpoint buy microsoft office for mac canada buy microsoft project 2002 adobe production premium mac turbotax 2009 deluxe best price windows 7 ultimate 64 bit best price buy windows 7 amazon adobe flash pricing adobe dreamweaver sale purchase windows 7 ultimate buy quickbooks pro 2007 roxio copy & convert 3 buy download photoshop elements 6 steinberg nuendo price uniblue registrybooster 2009 download cheap photoshop programs adobe photoshop elements cheapest buy windows 7 future shop adobe presenter 7 download microsoft office 2003 sale buy quarkxpress 8 for mac purchase adobe cs3 design premium purchase after effects cs3 paperport professional 12 prices cakewalk download parallels desktop price buy microsoft windows 7 home premium cheap adobe after effects for mac how to purchase windows 7 online download microsoft streets and trips 2008 microsoft office 2003 cheapest buy windows 7 online singapore purchase autodesk 3ds max 2009 buy windows xp pro best price adobe flash cs3 buy uniblue registrybooster 2009 cheap windows 7 ultimate retail buy autodesk autocad buy microsoft office document imaging purchase microsoft office 2003 buy windows xp media centre edition discount microsoft windows 7 ultimate windows 7 price upgrade cheap adobe photoshop software burnaware professional price buy acronis true image 2010 windows 7 price change buy acrobat 7 where to buy adobe flash cs3 quicken 2010 price buy windows xp corporate buy office 2007 student product key windows 7 price hong kong buy windows 7 64 buy acrobat professional 9 symantec winfax pro 10.4 buy cheap windows 7 keys adobe photoshop cs4 buy buy microsoft visio 2007 turbotax deluxe 2009 download windows xp price in rupees buy lightroom software buy windows 7 buy windows 7 serial key steinberg nuendo 3 download download autodesk 3ds max 9 buy ms project online windows 7 price egypt windows 2008 enterprise download parallels mac download adobe lightroom sale cheap cubase 5 where to buy windows xp service pack 2 purchase windows vista download cheap windows 7 in singapore lowest price microsoft office purchase windows 7 license key where can i buy windows 7 starter edition buy i.r.i.s. readiris pro 11 cheap windows xp operating system buy office 2003 key where to buy windows xp cheap autocad mechanical 2009 download buy matlab software buy 3ds max 2010 student download dragon naturally speaking autocad inventor download get autocad 2010 buy adobe illustrator cs2 buy windows 7 mac windows xp price canada steinberg cubase sx3 download cheap windows 2003 enterprise download adobe illustrator cs3 can i buy windows xp online windows xp price in malaysia buy adobe cs4 suite best price adobe illustrator cs3 download font folio 11 acdsee pro license key cs3 production premium mac ms streets and trips 2008 download download adobe illustrator mac windows 7 price in india where can i buy cubase sx3 windows vista download iso roxio creator 2010 coupon code microsoft office price student windows 7 home premium 64 bit oem buy microsoft frontpage software buy windows xp 64 pro cheap windows 7 home premium full version buy burnaware professional cheap microsoft works 9 microsoft visio download adobe cs4 web premium oem download disk director cheap adobe creative suite cs4 microsoft money home and business download buy parallels desktop 5 for mac cheapest norton 360 3.0 lightroom price buy windows vista pro microsoft money buy online buy microsoft expression blend 3 buy windows 7 full version for students purchase lightroom 2 buy microsoft office ultimate pdf converter professional 6 promotional code buy adobe cs3 design premium buy indesign cs3 software buy windows vista ultimate upgrade acdsee photo editor download microsoft office 2003 professional cheap windows 7 for college students illustrator cs3 download download adobe indesign cs4 cyberlink powerdirector prices buy windows vista ultimate license buy access 2003 online windows 7 price guide mathcad price buy after effects cs4 mac cheap fl studio 8 xxl cheap photoshop elements 8 buy windows vista home premium oem buy wordperfect x3 buy windows 7 home premium 64 bit buy windows 7 brisbane buy windows 7 bangkok autodesk mudbox price purchase vista license cheap adobe premiere elements 8 download adobe creative suite 4 design premium best price microsoft excel 2003 buy microsoft project 2000 microsoft expression price discount photoshop elements 8 cheap maya software 3ds max sale buy windows 7 ebay windows 7 price 2010 deskshare videoeditmagic 4.3 price buy windows xp 2010 norton 360 price comparison buy windows xp used adobe contribute mac purchase windows 7 for mac buy windows vista home premium product key buy windows 2003 datacenter buy windows 7 professional cheap microsoft windows 7 ultimate buy sony vegas pro 8 purchase access 2007 final cut express 4 cost download microsoft visio 2007 buy onenote 2003 photoshop lightroom for mac symantec pcanywhere download windows 7 price pakistan buy premiere pro cs3 cheap windows 7 for students in australia web page maker 3 download buy windows xp home sp3 adobe photoshop best buy cheap windows 2008 enterprise buy windows 7 direct download download microsoft mappoint 2009 buy windows xp home download microsoft autoroute 2007 europe ashampoo burning studio download buy windows xp calgary archicad 13 download adobe cs4 design premium trial price photoshop elements 8 windows 7 home premium cheapest autodesk lustre pricing purchase archicad 13 acdsee pro 2 download windows 7 discount canada vmware workstation 7 download discount autodesk 3ds max 2009 buy autodesk inventor professional buy windows xp home full version buy windows 7 language pack buy microsoft office 07 buy microsoft excel 2007 download propellerhead reason 4 mappoint 2009 european buy access 2007 only buy frontpage 2003 purchase windows 7 ultimate online purchase microsoft windows vista buy dragon naturally speaking 10 oil price vista gadget pinnacle studio 14 best price cheap corel video studio pro x2 buy photoshop 7 for mac buy adobe cs3 design premium mac download ashampoo burning studio 9 cheap microsoft project 2007 dvd ripper platinum 5 buy adobe premiere pro cs4 download best price microsoft windows vista windows 7 discount for high school students purchase windows 7 professional (64 bit) compare price photoshop buy windows 7 philippines buy microsoft office powerpoint 2007 purchase windows xp sp3 buy photoshop elements 8 mcafee total protection 2009 download best buy autocad 2009 buy windows vista singapore purchase windows 7 now buy windows xp mumbai buy windows 7 ultimate 64 bit oem windows 7 price kenya ms works download adobe acrobat 9 oem buy windows 7 downloadable adobe cs4 web premium trial cheap windows 7 professional best price windows 7 home premium oem download adobe photoshop elements 6 navisworks manage price windows 7 price comparison buy guitar pro 5.2 download acronis true image 11 buy nero 8 ultra edition acdsee price download adobe robohelp 8 buy powerdirector 7 ultra imsi turbofloorplan home and landscape pro 12 buy buy microsoft expression studio 2 windows 7 discount for military buy windows 7 30 download pinnacle studio 12 ultimate adobe acrobat price comparison mappoint 2009 europe buy cheap avanquest mylogomaker professional 2 buy windows xp cheap microsoft office discount code buy windows 7 switzerland buy windows xp volume license buy norton 360 download cheap adobe photoshop cs3 download microsoft expression studio 3 buy office 2010 professional fl studio 8 xxl download buy microsoft office 2007 home and student cheap adobe cs4 design premium abbyy finereader 9.0 express edition where to buy streets and trips 2010 office 2007 price student buy roxio creator 2010 cheap adobe cs4 master collection mac buy windows xp ebay cheap indesign software buy corel photoimpact x3 download avanquest mylogomaker professional 2 cheap ashampoo burning studio 8 adobe captivate pricing autocad architecture oem buy microsoft office pro 2007 where can i buy powerpoint 2003 turbo tax cost buy windows 7 india online purchase windows 7 license online buy adobe flash cs4 buy windows vista ultimate product key buy cs4 mac buy adobe indesign cs4 best buy microsoft windows 7 ultimate cheap adobe dreamweaver cs4 mac cheap windows 7 canada roxio creator 2009 special edition microsoft office 2010 price in india windows 7 price canadian buy windows xp embedded download corel draw 12 adobe creative suite 4 production premium download buy adobe photoshop cs3 extended buy windows vista business 64 bit buy ms office 2003 pro best buy quicken 2010 buy microsoft office for mac cheap buy adobe after effects cs4 cheap norton 360 3.0 best price adobe cs4 master collection windows 7 price for teachers buy windows xp student purchase adobe acrobat 8 professional buy sql server guitar pro 5 mac download
Home » News, Shapes, Visio 2010

Visio 2010 SharePoint Workflows

Submitted by Visio Guy on August 10, 2009 – 8:38 pm | | 6704 views 6 Comments

visio-sharepoint-workflowIf you peek into the flowchart templates on offer for Visio 2010, you’ll see a new item called Microsoft SharePoint WorkFlow.

If you use SharePoint and need to design workflows, then this might be an exciting new option for those not able to use Visual Studio or not thrilled by SharePoint Designer.

Recently, an associate referred me to Wictor Wilén’s blog, which contains quite a few articles related to SharePoint. Wictor recently added Creating SharePoint 2010 workflows with Visio 2010 and shared his opinions and insights on the new functionality in Visio 2010. I’m more of a Visio Guy than a SharePoint Guy, so be sure to check out Wictor’s article to get a SharePoint expert’s view on the new template!

Not being one to waste an educational opportunity, I dove into the new Visio SharePoint Workflow features as deep as I could.

Note: this article was written about the Technical Preview of Visio 2010, released in July of 2009. The final product may have different features and details than those reviewed here.

Starting a Workflow

Just getting started in Visi0 2010 is a bit different than you might be used to. To begin a new flow, you use the Getting Started Experience screen. This new area lets you choose template types, set options, print, share, open, save and set various options.

flowchart-templatesclick to view larger image

While this screen has some beautiful icons and higher-quality previews than previous versions, it is a bit awkward to get to, and the scrollbars within the panel are not immediately obvious. You might think that there aren’t many new templates until you finally discover the scroll bar!

Once you’ve scrolled down and discoverd the Flowcharts template, you can dive down and pick a particular one. Of course, we clicked on Microsoft SharePoint Workflow:

sharepoint-workflow-template

click to view larger image

and am sharing all the juicy screenshots and details with you today.

Visio SharePoint Workflow Shapes and Stencils

The template opens with three stencils to get you going:

  • SharePoint Workflow Terminators
  • SharePoint Workflow Conditions
  • SharePoint WorkflowActions

I’ve expanded the three stencil windows so you can see what is on offer in this Technical Preview version of Visio 2010:

sharepoint-workflow-shapes

click to view larger image

If you want to take a closer look at the actual shapes, here they are:

Here are the Terminators and Actions shapes:

actions-terminators

click to view larger image

And the Conditions shapes:

workflow-conditions

click to view larger image

As of the Technical Preview, none of these shapes had any Shape Data fields. I don’t know if these will come later in the final product or not. It makes sense to me that a workflow designer might want, for example, to specify an e-mail recipient for the Send an Email action.

But perhaps the Visio workflow template is intended as a first, rough step in the overall definition process. The text that the user types into the shape could indicate the rough purpose of the action or condition. Understood in general terms by the person who actually does the work. The binding to technical mechanisms could then be completed by someone deeper in the IT department.

Drawing the Workflow

Of course, your new template won’t have stencils strewn all over the place! They are all neatly docked on the left, with some new, more streamlined tab-management for keeping your Visio stencils accessible, but out of the way:

sharepoint-workflow-start

click to view larger image

You can see my tentativeness at workflow design: I was only able to confidently drop a Start and Terminate shape, before I got stuck!

Validating the Workflow

Yes, I said validate! Although my workflow doesn’t look like much, I decided to mess around, and wandered over to the Process tab on the Ribbon. There, I found an interesting button called Check Diagram.

This button has three intriguing sub-items that show that Microsoft was serious about adding business-process-oriented features into this release of Visio:

  • Check Diagram
  • Rules to Check
  • Import Rules From

In the screenshot below, you’ll see that I’ve expanded the middle item to reveal that SharePoint Workflow is specified as the rule-set for this diagram. So you can apply specific sets of rules to process diagrams in Visio 2010–neat!

checked-diagram-1

click to view larger image

When I pressed Check Diagram, Visio found some problems with my workflow.  Suprise, surprise!

checked-diagram-1

click to view larger image

You see the errors in the Issues Window at the bottom. When you double-click an “issue”, Visio highlights the shape that is having a problem, so you can easily debug your process flows.

If you’re wondering where these rules are stored, well they are stored in the document. One easy way to see them is to save the Visio document to its Visio-xml format (.vdx), add an “.xml” extension to the end of the file, then view it in Internet Explorer. Way down near the bottom of the file, you’ll see the “<v14:Validation>” element, which contains rule sets and rule definitions:

validation-xml

click to view larger image

You can get at the rules via automation too:


Sub ValidationDump()

Dim doc As Visio.Document
Set doc = ThisDocument

Dim rss As Visio.ValidationRuleSets
Set rss = doc.Validation.RuleSets
Debug.Print &quot;Rulesets: &quot; &amp; rss.Count
Debug.Print

Dim rs As Visio.ValidationRuleSet
Dim r As Visio.ValidationRule

For Each rs In rss

Debug.Print &quot;Ruleset: &quot; &amp; rs.Name
Debug.Print &quot;         &quot; &amp; rs.Description
Debug.Print

For Each r In rs.Rules
Debug.Print vbTab &amp; &quot;Rule.......&quot; &amp; r.NameU
Debug.Print vbTab &amp; &quot;Category.....&quot; &amp; r.Category
Debug.Print vbTab &amp; &quot;Description..&quot; &amp; r.Description
Debug.Print vbTab &amp; &quot;FilterExpr...&quot; &amp; r.FilterExpression
Debug.Print vbTab &amp; &quot;TargetType...&quot; &amp; r.TargetType
Debug.Print vbTab &amp; &quot;TestExpr....&quot; &amp; r.TestExpression
Debug.Print
Next

Next

End Sub

For our test workflow, we get this information, which you can also see in the xml that we showed earlier:

Rulesets: 1

Ruleset: SharePoint Workflow
Rules that ensure a SharePoint Workflow diagram is properly constructed for export to a Visio Workflow Interchange (.vwi) file.

Rule…….MultipleStartWorkflows
Category…..SharePoint Workflow
Description..The diagram must only have one workflow and one start shape.
FilterExpr…
TargetType…0
TestExpr….

Rule…….NoStartShape
Category…..SharePoint Workflow
Description..The workflow must have a start shape.
FilterExpr…
TargetType…1
TestExpr….

Rule…….InvShapeType
Category…..SharePoint Workflow
Description..The shape is not a SharePoint workflow shape. Only SharePoint workflow shapes can be connected in a workflow.
FilterExpr…
TargetType…0
TestExpr….

Rule…….ConnectionToParent
Category…..SharePoint Workflow
Description..Loop back to parent shape is not allowed.
FilterExpr…
TargetType…0
TestExpr….

Rule…….OrphanConnector
Category…..SharePoint Workflow
Description..The connector must be connected to two workflow shapes.
FilterExpr…
TargetType…0
TestExpr….

Rule…….TerminateHasChildren
Category…..SharePoint Workflow
Description..The terminate shape must not have outgoing connections.
FilterExpr…
TargetType…0
TestExpr….

Rule…….NoIfElseBranches
Category…..SharePoint Workflow
Description..The condition shape must have at least one outgoing connection with label Yes or No.
FilterExpr…
TargetType…0
TestExpr….

Rule…….NoIfElseValue
Category…..SharePoint Workflow
Description..The condition shape does not have connections labeled with Yes or No.
FilterExpr…
TargetType…0
TestExpr….

Rule…….StartHasParent
Category…..SharePoint Workflow
Description..The start shape must not have incoming connections.
FilterExpr…
TargetType…0
TestExpr….

Rule…….MultipleNoPaths
Category…..SharePoint Workflow
Description..The decision shape can only have one outgoing No connection.
FilterExpr…
TargetType…0
TestExpr….

Rule…….SequentialParallel
Category…..SharePoint Workflow
Description..A parallel execution is implicitly terminated.
FilterExpr…
TargetType…0
TestExpr….

Rule…….ImplicitParallelTerm
Category…..SharePoint Workflow
Description..Parallel activities that are also sequential are not allowed.
FilterExpr…
TargetType…0
TestExpr….

Rule…….DuplicateConnections
Category…..SharePoint Workflow
Description..Duplicate connections exist between workflow shapes.
FilterExpr…
TargetType…0
TestExpr….

Rule…….NestingDepth
Category…..SharePoint Workflow
Description..Workflow nesting levels must not exceed a maximum of 10.
FilterExpr…
TargetType…0
TestExpr….

Rule…….CompoundCondition
Category…..SharePoint Workflow
Description..A compound condition cannot be manually added to a workflow diagram. The compound condition can only be generated when importing workflow from SharePoint Designer.
FilterExpr…
TargetType…0
TestExpr….

Rule…….EmptyWorkflow
Category…..SharePoint Workflow
Description..The start shape is not connected to workflow shapes.
FilterExpr…
TargetType…0
TestExpr….

Rule…….CustomAction
Category…..SharePoint Workflow
Description..A custom action cannot be added to a workflow diagram. The custom action can only be generated when importing workflow from SharePoint Designer.
FilterExpr…
TargetType…0
TestExpr….

Rule…….UnconnectedWorkflowShape
Category…..SharePoint Workflow
Description..The workflow shape is not connected to the workflow.
FilterExpr…
TargetType…0
TestExpr….

Rule…….NoTerminateShape
Category…..SharePoint Workflow
Description..The action shape is not connected to a terminate shape.
FilterExpr…
TargetType…0
TestExpr….

Interchange Between Visio WorkFlows and SharePoint

Once you’ve corrected your errors and gotten the Issues Window to come clean, you can think about Exporting your workflow.

But first, there are a few things to note in the screenshot below:

  • The Send an Email shape has no Shape Data fields (none of the SharePoint Workflow shapes do)
  • The Issues Window is clear of errors because all the shapes are properly connected
  • There’s an Export button highlighted at the top of the screen

test-workflow-checked

click to view larger image

When we click the Export button, Visio generates a Visio Workflow Interchange (.vwi) file. This file is actually a zipped archive, similar to what was introduced in most of the Office 2007 file formats.

You can just add “.zip” to the end of the filename, then quickly open it up and examine the contents. Inside, you’ll find four files:

  • workflow.vdx
  • workflow.xoml
  • [Content_Types].xml
  • workflow.xoml.rules

Hmm, SharePoint folks will immediately spot the XOML file and find that interesting, but let’s chat a bit about each file.

workflow.vdx is just the Visio-in-xml-format snapshot of your SharePoint workflow at the time of exporting.

workflow.xoml contains a bunch of stuff that you will recognize if you know SharePoint workflows from the back-end:

workflow-xoml

click to view larger image

If you look closely at the xoml nodes for OfficeTask (Generate Task Process) and EmailActivity (Send an Email to Bob), you’ll see lots of missing information in the form of “{x:Null}”.

workflow-xoml-xml

click to view larger image

This is where I thought it might make sense to have some Shape Data fields that would allow users to more fully-specify their workflows before exporting them.

[Content_Types].xml looks like this, for the curious:

content-types-xml

click to view larger image

And finally the rule definitions file, workflow.xoml.rules, simply references the xml namespace: “http://schemas.microsoft.com/winfx/2006/xaml/workflow”

rule-definitions

click to view larger image

What all these files and data means can probably be guessed by those who understand SharePoint intimately, or those who read blogs like Wictor Wilén’s.

Regardless, designing SharePoint workflows in Visio, in a manner that is deeper than just sketching a flow will surely be welcome by many. I’ve only touched on a few of the enhancements around process diagramming

Related Posts

  1. Visio Services and SharePoint 2010
  2. SharePoint Planning Visio Diagrams
  3. Visio 2010 Year-calendar (Jahreskalender) Template
  4. Visio 2010 Live Preview for Layout – Cool, Smooth Animations
  5. Visio 2010 Master Icons Get a Facelift!

6 Comments »

  • Visio Guy says:

    A note about the “My Stuff” tab on the Ribbon in the screen shots…

    You’ll see an item called “My Stuff”. This isn’t a new feature in Visio 2010, it is the result of my messing around, trying to customize the ribbon.

    I know some of you were full of excitement about the new “My Stuff” feature–sorry to dash your hopes. :)

  • Clayton Cobb says:

    Yes, after designing the workflow in Visio – even without the shape data – you can use “Import from Visio” in SharePoint Designer and reference the VWI file. It renders in SPD without the start/end pieces and shows the logic that you designed in Visio with placeholders for the missing data just like when you create an SPD workflow from scratch except that all the pieces are in the right order and didn’t require an SPD person to build it. From here, the SPD person fills out the data elements as needed and publishes it to SharePoint, which is where I can’t give more details.

  • Visio Guy says:

    Hi CC,

    That’s great information! I know we’re OK to talk about Office 2010 client applications but server-stuff is still hush hush.

    It’s really great to have SharePoint experts like yourself chime in on this subject, so thanks for commenting!

    From my limited knowledge of SharePoint Designer, it looks like “having all the pieces…in the right order” from the Visio diagram will save people lots and lots of clicking in SPD.

  • Clayton Cobb says:

    Exactly – as you saw in my tweet, I openly asked what I can and can’t share…not so much to get an answer but so that the fuys like @DavePae know that I am very much following the NDA but know that both Visio and SPD are open to the public. The problem is that SPD10 no longer can function outside of #SharePoint, and it can’t work with with older versions of #SharePoint, so anything I mention about SDP10 is by default a reference to #SP2010.

    As for your last comment, it’s not just that it will save people lots of time in SPD, but rather it will empower our business analysts – SharePoint-knolwedgeable or not – to actually BUILD workflows around their business processes that are directly usable in SharePoint (with a few steps, of course, but they aren’t a problem). The ramifications this has are huge, though I realize things like Nintex and K2 BlackPearl do this at an even higher level, but we now have much better options than we did before without having to purchase 3rd party. For many of my clients, including my current big one, that will be a huge boon.

  • [...] Visio Guy » Visio 2010 SharePoint Workflows [...]

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.