Welcome to this segment! Advanced Workflow Concepts using SharePoint Designer 2010 © 2011 Applied Knowledge Group, Inc. 1
Welcome to this segment!
Advanced Workflow Concepts using SharePoint
Designer 2010
© 2011 Applied Knowledge Group, Inc. 1
About the Presenter
Applied Knowledge Group
4 Pillars Approach
People
Process
Learning
Technology
Susan Hernandez, AKG Senior Developer
MCSD, MCTS, MCAD (SharePoint 2010 Development)
© 2011 Applied Knowledge Group, Inc. 2
Introduction
What will we cover today?
Workflows Basic – A Recap
Will be in your handout – may not be covered in this presentation due to time constraints
Workflows Advanced Concepts
Other Things to Consider
Briefly mention concepts not covered in session but worth looking up
© 2011 Applied Knowledge Group, Inc. 3
Workflow Basics – A Recap
Out-of-the-Box Workflows
Approval
Publishing Approval
Collect Feedback
Collect Signatures
Only functions with Word, Excel, and InfoPath
Disposition Approval
Three-State
© 2011 Applied Knowledge Group, Inc. 4
Workflow Basics – A Recap Steps, Conditions, and Actions
Steps
Logical group of one or more actions
Conditions
Limitations on running the actions – like IF statement
Actions
Single unit of processing, such as sending an Email, Checking in an Item, or Collecting Data from a User
© 2011 Applied Knowledge Group, Inc. 5
Workflow Basics – A Recap
Actions Core Actions
Mostly manipulation of a particular piece of info
List Actions
Work on an entire list item at one time
Task Actions
Manipulate the associated Tasks list and pauses the workflow until complete
Document Set Actions
Work on complete Document Set at once
Utility Actions
Let you preform functions such as working with string values
Relational Actions
Includes one action – finding a user’s manager
© 2011 Applied Knowledge Group, Inc. 6
Workflow Basics – A Recap
Other Workflow Concepts Save vs. Publish
Else-If Branch
Parallel Block
Impersonation Step
Publishing Globally
Initiation Form Parameters
Local Variables
Association Columns
Start Options
© 2011 Applied Knowledge Group, Inc. 7
Workflow Basics – A Recap
Best Practices BEFORE creation of workflows:
Create all lists you will need and all fields in lists
Create and define Document Sets
If you wish to use Content Approval, turn it on
If you’re using InfoPath, “Promote” appropriate fields
BEFORE saving your workflow:
If you’re using a List Workflow, change the association of the Task List
NEVER modify OOB workflows
© 2011 Applied Knowledge Group, Inc. 8
Workflow Basics – A Recap
Tips & Tricks Try to use Reusable workflows – if you
don’t then you can’t move the workflow
Use the “Log to History List” action often
At Beginning
At End
Once per step (at least)
Once per condition
Do not hard-code user names – use Lists © 2011 Applied Knowledge Group, Inc. 9
Workflow Advanced Concepts
Define Workflow Lookup Dialog box
Used with:
Conditions (compare Any value to Any value)
Setting workflow variables
Looking up data from Task List (i.e. Collect Data From a User or Start Approval Process actions)
© 2011 Applied Knowledge Group, Inc. 10
Working with “Define Workflow Lookup” Data Source
Current Item
Workflow Variables and Parameters
Workflow Context
Association: History List
Association: Task List
Current List
User Profiles
[Other Lists and Libraries in your site]
SELECT [Assigned To] FROM Tasks WHERE Tasks.ID = 2
© 2011 Applied Knowledge Group, Inc. 11
Working with “Define Workflow Lookup”
Field From Source
Choice of the field (or parameter or variable) you want to retrieve from the Data Source chosen above
This is your return value
SELECT [Assigned To] FROM Tasks WHERE
Tasks.ID = 2
© 2011 Applied Knowledge Group, Inc. 12
Working with “Define Workflow Lookup”
Return Field As
Often Disabled
Person type Field
As String (116;#Susan Hernandez)
Display Name
Email Address
Login Name
User Id Number
© 2011 Applied Knowledge Group, Inc. 13
Working with “Define Workflow Lookup”
Find the List Item / Field
The field, from the Data Source chosen above, that you want to use for filter criteria
SELECT [Assigned To] FROM Tasks WHERE
Tasks.ID = 2
© 2011 Applied Knowledge Group, Inc. 14
Working with “Define Workflow Lookup”
Find the List Item / Value The value that you want
to use for filter criteria
Can press the fx button and use another Lookup
Will be a dropdown box if it’s a Choice field you’re filtering on
SELECT [Assigned To] FROM Tasks WHERE
Tasks.ID = 2
© 2011 Applied Knowledge Group, Inc. 15
“Define Workflow Lookup” In Action
DEMO
© 2011 Applied Knowledge Group, Inc. 16
Working with the Start Approval Process Action
Like the OOB Approval Process
Several New Variables Added
© 2011 Applied Knowledge Group, Inc. 17
Working with the Start Approval Process Action
© 2011 Applied Knowledge Group, Inc. 18
Working with the Start Approval Process Action
© 2011 Applied Knowledge Group, Inc. 19
Working with the Start Approval Process Action
© 2011 Applied Knowledge Group, Inc. 20
Working with the Start Approval Process Action
© 2011 Applied Knowledge Group, Inc. 21
Working with the Start Approval Process Action
© 2011 Applied Knowledge Group, Inc. 22
Approval Process – Change the completion conditions
© 2011 Applied Knowledge Group, Inc. 23
Approval Process – Change the behavior of a Single Task
© 2011 Applied Knowledge Group, Inc. 24
Approval Process – Change the behavior of overall process
© 2011 Applied Knowledge Group, Inc. 25
“Approval Process” In Action
DEMO
© 2011 Applied Knowledge Group, Inc. 26
Other Things to Consider
DON’T USE WORKFLOW HISTORY FOR LEGAL TRAIL
Can be tampered with – it’s just data stored in a list
Things not covered due to time constraints, but worth looking into
Writing Workflows using Visio
Exporting workflows from Visio
Importing Visio workflows into SharePoint Designer
Modifying Workflow Forms using InfoPath 2010
Initiation Forms, Task Forms, and Association Forms
Saving as a template – exporting to a WSP file (SharePoint Solution Package)
© 2011 Applied Knowledge Group, Inc. 27
Q & A
© 2011 Applied Knowledge Group, Inc. 28
Thank You!
Visit http://suehernandez.wordpress.com for materials and presentation
Company Blog:
http://info.akgroup.com/blog-0
Follow us on Twitter! Like us on Facebook!
© 2011 Applied Knowledge Group, Inc. 29