Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft Visio 2010 Business Process Diagramming and Validation

You're reading from  Microsoft Visio 2010 Business Process Diagramming and Validation

Product type Book
Published in Jul 2010
Publisher Packt
ISBN-13 9781849680141
Pages 344 pages
Edition 1st Edition
Languages
Author (1):
David Parker David Parker
Profile icon David Parker

Table of Contents (15) Chapters

Microsoft Visio 2010 Business Process Diagramming and Validation
Credits
Foreword
About the Author
About the Reviewers
1. Preface
1. Overview of Process Management in Microsoft Visio 2010 2. Understanding the Microsoft Visio Object Model 3. Understanding the ShapeSheet™ 4. Understanding the Validation API 5. Developing a Validation API Interface 6. Reviewing Validation Rules and Issues 7. Creating Validation Rules 8. Publishing Validation Rules and Diagrams 9. A Worked Example for Data Flow Model Diagrams

ValidationIssues


The ValidationIssues collection stores the issues created by the Validation.Validate([RuleSet as ValidationRuleSet][, Flags as ValidationFlags]) method and by the RuleSet.AddIssue([TargetPage as Page][,TargetShape as Shape]) method. It can be reset using the Clear() method, which will also zero the LastValidatedDate of the parent Validation object.

Most issues are automatically created by the Validate() method, but you can write code to add issues whenever the user clicks Check Diagram against a particular rule set. You would do this by listening to the RuleSetValidated(RuleSet as ValidationRuleSet) event of the Application, Documents, or Document object. This technique is used by the Microsoft SharePoint Workflow template in Visio 2010.

You can enumerate the current issues in a document, and check which rule has been transgressed.

Public Sub EnumerateIssues()
Dim issue As Visio.ValidationIssue
Dim shpName As String
Dim doc As Visio.Document
Set doc = Visio.ActiveDocument...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}